zhb 1 deň pred
rodič
commit
e3c125b57c
1 zmenil súbory, kde vykonal 135 pridanie a 92 odobranie
  1. 135 92
      pages/customer/deposit.vue

+ 135 - 92
pages/customer/deposit.vue

@@ -33,7 +33,8 @@
                                         <h5 class="mb-3" v-t="'Custom.Deposit.Title2'"></h5>
                                         <uni-forms-item>
                                             <cwg-combox :clearable="false" v-model:value="channelId"
-                                                :options="channelListOptions" :placeholder="t('placeholder.choose')" needSpace>
+                                                :options="channelListOptions" :placeholder="t('placeholder.choose')"
+                                                needSpace>
                                             </cwg-combox></uni-forms-item>
                                     </view>
 
@@ -70,7 +71,7 @@
                                                         WireTransferAccount.bankUname || '--'
                                                     }}</text></view>
                                             <view class="row"><text class="label">{{ t('Custom.Deposit.bankName')
-                                                    }}</text><text class="content">{{ WireTransferAccount.bankName
+                                            }}</text><text class="content">{{ WireTransferAccount.bankName
                                                         ||
                                                         '--'
                                                     }}</text></view>
@@ -80,7 +81,7 @@
                                                         WireTransferAccount.bankCardNum || '--'
                                                     }}</text></view>
                                             <view class="row"><text class="label">{{ t('Custom.Deposit.bankAddr')
-                                                    }}</text><text class="content">{{ WireTransferAccount.bankAddr
+                                            }}</text><text class="content">{{ WireTransferAccount.bankAddr
                                                         ||
                                                         '--'
                                                     }}</text></view>
@@ -90,7 +91,7 @@
                                                         WireTransferAccount.swiftCode || '--'
                                                     }}</text></view>
                                             <view class="row"><text class="label">{{ t('Custom.Deposit.bankCode')
-                                                    }}</text><text class="content">{{ WireTransferAccount.bankCode
+                                            }}</text><text class="content">{{ WireTransferAccount.bankCode
                                                         ||
                                                         '--'
                                                     }}</text></view>
@@ -143,7 +144,7 @@
                                             <view class="label-with-icon">
                                                 <text>{{ t('Custom.Deposit.EstimatedAmount') + '(' +
                                                     `${channelData.transformCurrency || channelData.currency}` + ')'
-                                                    }}</text>
+                                                }}</text>
                                                 <uni-tooltip placement="top">
                                                     <!-- <view class="help-icon">ⓘ</view> -->
                                                     <cwg-icon name="icon_about us" :size="16" />
@@ -196,61 +197,82 @@
                                     <!-- ========== 赠金活动部分 ========== -->
                                     <!-- 10%赠金(年中赠金) -->
                                     <view v-if="tableData4Flag">
-                                        <uni-forms-item class="agree" name="agree4">
-                                            <label class="checkbox">
-                                                <checkbox :checked="params.agree4"
-                                                    @click="params.agree4 = !params.agree4" />
-                                                <text>{{ t('news_add_field1.activitiesNZ.itemDeposit1')
-                                                    }}</text>
-                                            </label>
-                                            <view style="line-height: 1.5; font-size: 14px">
-                                                <text>{{ t('news_add_field1.activitiesNZ.itemDeposit2')
-                                                    }}</text>
-                                                <text class="clause crm-cursor" @click="dialogClauseNZ = true">{{
-                                                    t('news_add_field1.activitiesNZ.itemDeposit3')
-                                                    }}</text>
-                                                <text>{{ t('news_add_field1.activitiesNZ.itemDeposit4')
+                                        <uni-forms-item name="agree4">
+                                            <checkbox-group :value="params.agree4 ? ['1'] : []"
+                                                @change="onAgree4Change">
+                                                <label>
+                                                    <checkbox value="1" :checked="params.agree4" />
+                                                    <text>{{ t('news_add_field1.activitiesNZ.itemDeposit1')
                                                     }}</text>
-                                            </view>
+                                                    <view style="line-height: 1.5; font-size: 14px">
+                                                        <text>{{ t('news_add_field1.activitiesNZ.itemDeposit2')
+                                                        }}</text>
+                                                        <text class="clause crm-cursor"
+                                                            @click.stop="dialogClauseNZ = true">{{
+                                                                t('news_add_field1.activitiesNZ.itemDeposit3')
+                                                            }}</text>
+                                                        <text>{{ t('news_add_field1.activitiesNZ.itemDeposit4')
+                                                        }}</text>
+                                                    </view>
+                                                </label>
+                                            </checkbox-group>
                                         </uni-forms-item>
 
                                     </view>
 
                                     <!-- 20%赠金(年中赠金) -->
                                     <view v-if="tableData4TwoFlag">
-                                        <uni-forms-item class="agree" name="agree5">
-                                            <label class="checkbox">
-                                                <checkbox :checked="params.agree5"
-                                                    @click="params.agree5 = !params.agree5" />
-                                                <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit1')
-                                                    }}</text>
-                                            </label>
-                                            <view style="line-height: 1.5; font-size: 14px">
-                                                <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit2')
-                                                    }}</text>
-                                                <text class="clause crm-cursor" @click="dialogClauseNZTwo = true">{{
-                                                    t('news_add_field1.activitiesNZTwo.itemDeposit3') }}</text>
-                                                <text>{{ t('news_add_field1.activitiesNZTwo.itemDeposit4')
+                                        <uni-forms-item name="agree5">
+                                            <checkbox-group :value="params.agree5 ? ['1'] : []"
+                                                @change="onAgree5Change">
+                                                <label>
+                                                    <checkbox value="1" :checked="params.agree5" />
+                                                    <text>{{
+                                                        t('news_add_field1.activitiesNZTwo.itemDeposit1')
                                                     }}</text>
-                                            </view>
+
+                                                    <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 v-if="tableDataNewListFlag">
-                                        <uni-forms-item class="agree" name="agree6">
-                                            <label>
-                                                <checkbox :checked="params.agree6"
-                                                    @click="params.agree6 = !params.agree6" />
-                                                <text>{{ tableDataNewList.title }}</text>
-                                            </label>
-                                            <view style="line-height: 1.5; font-size: 14px">
-                                                <text>{{ t('news_add_field1.activitiesNewList.item1') }}</text>
-                                                <text class="clause crm-cursor" @click="dialogClauseNewList = true">{{
-                                                    tableDataNewList.title }}</text>
-                                                <text>{{ t('news_add_field1.activitiesNewList.item2') }}</text>
-                                            </view>
+                                        <uni-forms-item name="agree6">
+                                            <checkbox-group :value="params.agree6 ? ['1'] : []"
+                                                @change="onAgree6Change">
+                                                <label>
+                                                    <checkbox value="1" :checked="params.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>
+
+                                                </label>
+                                            </checkbox-group>
                                         </uni-forms-item>
 
                                     </view>
@@ -258,63 +280,69 @@
                                     <!-- 20%赠金申请(特定账户类型) -->
                                     <view
                                         v-if="(ACCType == 1 || ACCType == 2 || ACCType == 5 || ACCType == 6 || ACCType == 7) && anshiClose">
-                                        <uni-forms-item class="agree" name="agree3">
-                                            <label class="checkbox">
-                                                <checkbox :checked="params.agree3"
-                                                    @click="params.agree3 = !params.agree3" />
-                                                <text>{{ t('news_add_field1.deposit.item3') }}</text>
-                                            </label>
-                                            <view style="line-height: 1.5; font-size: 14px">
-                                                <text>{{ t('news_add_field1.deposit.item4') }}</text>
-                                                <text class="clause crm-cursor" @click="dialogClause1 = true">{{
-                                                    t('news_add_field1.deposit.item5') }}</text>
-                                                <text>{{ t('news_add_field1.deposit.item6') }}</text>
-                                            </view>
+                                        <uni-forms-item name="agree3">
+                                            <checkbox-group :value="params.agree3 ? ['1'] : []"
+                                                @change="onAgree3Change">
+                                                <label>
+                                                    <checkbox value="1" :checked="params.agree3" />
+                                                    <text>{{ t('news_add_field1.deposit.item3') }}</text>
+                                                    <view style="line-height: 1.5; font-size: 14px">
+                                                        <text>{{ t('news_add_field1.deposit.item4') }}</text>
+                                                        <text class="clause crm-cursor"
+                                                            @click.stop="dialogClause1 = true">{{
+                                                                t('news_add_field1.deposit.item5') }}</text>
+                                                        <text>{{ t('news_add_field1.deposit.item6') }}</text>
+                                                    </view>
+                                                </label>
+                                            </checkbox-group>
                                         </uni-forms-item>
 
                                     </view>
 
                                     <!-- 普通10%赠金(非年中、非特定账户) -->
-                                    <view
-                                        v-if="!tableData4Flag && !tableData4TwoFlag && !tableDataNewListFlag && (country != 'CN' || (country == 'CN' && (ACCType == 1 || ACCType == 2 || ACCType == 7 || ACCType == 5 || ACCType == 6 || ACCType == 8))) && ACCType != 3">
+                                    <view>
                                         <template v-if="isSupportedCountry && (ACCType == 2 || ACCType == 7)">
-                                            <uni-forms-item class="agree" name="agree2">
-                                                <label>
-                                                    <checkbox :checked="params.agree2"
-                                                        @click="params.agree2 = !params.agree2" />
-                                                    <text>{{ t('news_add_field1.deposit.item2_1') }}</text>
-                                                </label>
-                                                <view style="line-height: 1.5; font-size: 14px">
-                                                    <text>{{ t('Custom.Deposit.agree21') }}</text>
-                                                    <cwg-link type="pdf" title="Custom.Deposit.agree22_2"
-                                                        :url="`pdf/pdf4/100Bonus-en.pdf`" style="color: black" />
-                                                    <text>{{ t('Custom.Deposit.agree23_2') }}</text>
-                                                </view>
+                                            <uni-forms-item name="agree2">
+                                                <checkbox-group :value="params.agree2 ? ['1'] : []"
+                                                    @change="onAgree2Change">
+                                                    <label>
+                                                        <checkbox value="1" :checked="params.agree2" />
+                                                        <text>{{ t('news_add_field1.deposit.item2_1') }}</text>
+                                                        <view style="line-height: 1.5; font-size: 14px">
+                                                            <text>{{ t('Custom.Deposit.agree21') }}</text>
+                                                            <cwg-link type="pdf" title="Custom.Deposit.agree22_2"
+                                                                :url="`pdf/pdf4/100Bonus-en.pdf`"
+                                                                style="text-decoration: underline;" />
+                                                            <text>{{ t('Custom.Deposit.agree23_2') }}</text>
+                                                        </view>
+                                                    </label>
+                                                </checkbox-group>
                                             </uni-forms-item>
-
                                         </template>
                                         <template
                                             v-else-if="!isSupportedCountry && ACCType != 8 && !isAfterSeptember30()">
-                                            <uni-forms-item class="agree" name="agree2">
-                                                <label>
-                                                    <checkbox :checked="params.agree2"
-                                                        @click="params.agree2 = !params.agree2" />
-                                                    <text>{{ t('news_add_field1.deposit.item1') }}</text>
-                                                </label>
-                                                <view style="line-height: 1.5; font-size: 14px">
-                                                    <text>{{ t('Custom.Deposit.agree21') }}</text>
-                                                    <cwg-link type="pdf" title="Custom.Deposit.agree22"
-                                                        :url="`pdf/pdf4/${langCN}.pdf`" style="color: black" />
-                                                    <text>{{ t('Custom.Deposit.agree23_1') }}</text>
-                                                </view>
+                                            <uni-forms-item name="agree2">
+                                                <checkbox-group :value="params.agree2 ? ['1'] : []"
+                                                    @change="onAgree2Change">
+                                                    <label>
+                                                        <checkbox value="1" :checked="params.agree2" />
+                                                        <text>{{ t('news_add_field1.deposit.item1') }}</text>
+                                                        <view style="line-height: 1.5; font-size: 14px">
+                                                            <text>{{ t('Custom.Deposit.agree21') }}</text>
+                                                            <cwg-link type="pdf" title="Custom.Deposit.agree22"
+                                                                :url="`pdf/pdf4/${langCN}.pdf`"
+                                                                style="text-decoration: underline;" />
+                                                            <text>{{ t('Custom.Deposit.agree23_1') }}</text>
+                                                        </view>
+                                                    </label>
+                                                </checkbox-group>
                                             </uni-forms-item>
-
                                         </template>
                                     </view>
 
                                     <button class="btn btn-dark waves-effect waves-light" @click="submitConfirm">{{
                                         t('Btn.Submit')
-                                        }}</button>
+                                    }}</button>
 
                                 </view>
 
@@ -612,9 +640,24 @@ const resetForm = () => {
     amountErrorMessage.value = ""
     requiteVoucherUrl.value = ""
     imageUrl.value = ""
-  hashCode.value = ''
+    hashCode.value = ''
     imageUrl1.value = ""
 }
+const onAgree2Change = (e) => {
+    params.agree2 = e.detail.value.length > 0
+}
+const onAgree3Change = (e) => {
+    params.agree3 = e.detail.value.length > 0
+}
+const onAgree4Change = (e) => {
+    params.agree4 = e.detail.value.length > 0
+}
+const onAgree5Change = (e) => {
+    params.agree5 = e.detail.value.length > 0
+}
+const onAgree6Change = (e) => {
+    params.agree6 = e.detail.value.length > 0
+}
 const formRef = ref(null)
 const mAmount = reactive({
     minAmount: "",
@@ -1626,10 +1669,10 @@ const showTable = (type) => {
     requiteVoucherUrl.value = ""
     code.value = ""
     WireTransferAccount.bankMsg = ""
-  if (type){
-    introduce.introduce = ""
-    introduce.enIntroduce = ""
-  }
+    if (type) {
+        introduce.introduce = ""
+        introduce.enIntroduce = ""
+    }
 
 }
 const loginComboxOptions = computed(() => {