|
|
@@ -43,50 +43,60 @@
|
|
|
@click="setAllAmount"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="col-lg-6">
|
|
|
- <!-- 20%赠金-年中赠金 -->
|
|
|
- <view class="form-row" v-if="tableData4TwoFlag">
|
|
|
- <view class="form-col-full">
|
|
|
- <uni-forms-item class="agree">
|
|
|
- <view class="agree-content">
|
|
|
- <checkbox :checked="form.agree5"
|
|
|
- @click="form.agree5 = !form.agree5" />
|
|
|
- <view class="agree-text">
|
|
|
- <view class="agree-title">{{
|
|
|
- t('news_add_field1.activitiesNZTwo.itemDeposit1') }}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </uni-forms-item>
|
|
|
- <view class="agree-detail">
|
|
|
- <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit2') }}</text>
|
|
|
- <text class="clause crm-cursor" style="text-decoration: underline;"
|
|
|
- @click="dialogClauseNZTwo = true">{{
|
|
|
- t('news_add_field1.activitiesNZTwo.itemDeposit3') }}</text>
|
|
|
- <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit4') }}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 赠送活动 -->
|
|
|
- <view class="form-row" v-if="tableDataNewListFlag">
|
|
|
- <view class="form-col-full">
|
|
|
- <uni-forms-item class="agree">
|
|
|
- <view class="agree-content">
|
|
|
- <checkbox :checked="form.agree6"
|
|
|
- @click="form.agree6 = !form.agree6" />
|
|
|
- <view class="agree-text">
|
|
|
- <view class="agree-title">{{ tableDataNewList.title }}
|
|
|
- </view>
|
|
|
+ <!-- 20%赠金-年中赠金 -->
|
|
|
+ <view class="col-lg-12 mb-3" v-if="tableData4TwoFlag">
|
|
|
+ <uni-forms-item class="agree">
|
|
|
+ <checkbox-group :value="form.agree5 ? ['1'] : []" @change="onAgree5Change">
|
|
|
+ <label>
|
|
|
+ <checkbox value="1" :checked="form.agree5" />
|
|
|
+ <text>{{
|
|
|
+ t('news_add_field1.activitiesNZTwo.itemDeposit1')
|
|
|
+ }}</text>
|
|
|
+
|
|
|
+ <p style="margin-top: 10px;line-height: 1.5; font-size: 14px">
|
|
|
+ <text class="crm-cursor" @click.stop="dialogCheckTip = true">{{
|
|
|
+ t('Custom.Withdraw.Des') }}</text>
|
|
|
+ <text>{{
|
|
|
+ t('news_add_field1.activitiesNZTwo.itemDeposit2')
|
|
|
+ }}</text>
|
|
|
+ <text class="clause crm-cursor"
|
|
|
+ style="text-decoration: underline;"
|
|
|
+ @click.stop="dialogClauseNZTwo = true">{{
|
|
|
+ t('news_add_field1.activitiesNZTwo.itemDeposit3')
|
|
|
+ }}</text>
|
|
|
+ <text>{{
|
|
|
+ t('news_add_field1.activitiesNZTwo.itemDeposit4')
|
|
|
+ }}</text>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ </label>
|
|
|
+ </checkbox-group>
|
|
|
+ </uni-forms-item>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 赠送活动 -->
|
|
|
+ <view class="col-lg-12 mb-3" v-if="!tableDataNewListFlag">
|
|
|
+ <view class="form-col-full">
|
|
|
+ <uni-forms-item name="agree6">
|
|
|
+ <checkbox-group :value="form.agree6 ? ['1'] : []"
|
|
|
+ @change="onAgree6Change">
|
|
|
+ <label>
|
|
|
+ <checkbox value="1" :checked="form.agree6" />
|
|
|
+ <text @click.stop="dialogClauseNewList = true"
|
|
|
+ style="text-decoration: underline;">{{
|
|
|
+ tableDataNewList.title }}</text>
|
|
|
+ <view
|
|
|
+ style="margin-top: 10px; line-height: 1.5; font-size: 14px">
|
|
|
+ <text> {{
|
|
|
+ t('news_add_field1.activitiesNewList.item1')
|
|
|
+ }}{{
|
|
|
+ t('news_add_field1.activitiesNewList.item2')
|
|
|
+ }}</text>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </uni-forms-item>
|
|
|
- <view class="agree-detail">
|
|
|
- <text>{{ t('news_add_field1.activitiesNewList.item1') }}</text>
|
|
|
- <text class="clause" @click="dialogClauseNewList = true">{{
|
|
|
- tableDataNewList.title }}</text>
|
|
|
- <text>{{ t('news_add_field1.activitiesNewList.item2') }}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+
|
|
|
+ </label>
|
|
|
+ </checkbox-group>
|
|
|
+ </uni-forms-item>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -215,7 +225,12 @@ const submitting = ref(false)
|
|
|
|
|
|
// 错误信息
|
|
|
const amountErrorMessage = ref('')
|
|
|
-
|
|
|
+const onAgree5Change = (e) => {
|
|
|
+ form.agree5 = e.detail.value.length > 0
|
|
|
+}
|
|
|
+const onAgree6Change = (e) => {
|
|
|
+ form.agree6 = e.detail.value.length > 0
|
|
|
+}
|
|
|
// 表单验证规则
|
|
|
const rules = computed(() => ({
|
|
|
withdrawLogin: {
|
|
|
@@ -418,6 +433,7 @@ function tosubmitConfirm() {
|
|
|
transferConfig()
|
|
|
}
|
|
|
async function transferConfig() {
|
|
|
+
|
|
|
if (submitting.value) return
|
|
|
submitting.value = true
|
|
|
try {
|
|
|
@@ -460,10 +476,10 @@ async function getDateList() {
|
|
|
const res = await ibApi.CustomDropdown({ platform: '' })
|
|
|
if (res.code == Code.StatusOK) {
|
|
|
loginOptions.value = res.data
|
|
|
- // 默认选中第一个
|
|
|
- nextTick(()=>{
|
|
|
- loginValue.value = loginOptions.value?.[0].login
|
|
|
- })
|
|
|
+ // 默认选中第一个
|
|
|
+ nextTick(() => {
|
|
|
+ loginValue.value = loginOptions.value?.[0].login
|
|
|
+ })
|
|
|
} else {
|
|
|
uni.showToast({ title: res.msg, icon: 'none' })
|
|
|
}
|
|
|
@@ -694,13 +710,15 @@ onLoad((options) => {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
@import "@/uni.scss";
|
|
|
-.container{
|
|
|
- padding: 0;
|
|
|
+
|
|
|
+.container {
|
|
|
+ padding: 0;
|
|
|
}
|
|
|
-.text-color{
|
|
|
- color: var(--bs-emphasis-color);
|
|
|
- font-size: px2rpx(14);
|
|
|
- line-height: 1.5;
|
|
|
+
|
|
|
+.text-color {
|
|
|
+ color: var(--bs-emphasis-color);
|
|
|
+ font-size: px2rpx(14);
|
|
|
+ line-height: 1.5;
|
|
|
}
|
|
|
|
|
|
.amount-box {
|