|
|
@@ -301,26 +301,32 @@
|
|
|
|
|
|
<!-- 普通10%赠金(非年中、非特定账户) -->
|
|
|
<view>
|
|
|
- <template v-if="isSupportedCountry && (ACCType == 2 || ACCType == 7)">
|
|
|
+ <template v-if="depositGiveInfo.show == 1 &&!tableData4Flag && !tableData4TwoFlag && !tableDataNewListFlag ">
|
|
|
<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>
|
|
|
+ <text>{{ depositGiveInfo.title }}</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>
|
|
|
+ <text style="margin-bottom: 15px;">{{ depositGiveInfo.subTitle }}</text>
|
|
|
+ <cwg-link v-if="depositGiveInfo.filePath" type="pdf" isText :title="depositGiveInfo.filePath"
|
|
|
+ :url="depositGiveFilePath"
|
|
|
+ style="color: black" />
|
|
|
+ <template v-if="isSupportedCountry && (ACCType == 2 || ACCType == 7)">
|
|
|
+ <text>{{ bonusDepositT("Custom.Deposit.agree21") }}</text>
|
|
|
+ <cwg-link type="pdf" isText :title="bonusDepositT('Custom.Deposit.agree22_2')"
|
|
|
+ :url="`pdf/pdf4/100Bonus-${bonusActivityLang}.pdf`"
|
|
|
+ style="color: black" />
|
|
|
+ <text>{{ bonusDepositT("Custom.Deposit.agree23_2") }}</text>
|
|
|
+ </template>
|
|
|
</view>
|
|
|
</label>
|
|
|
</checkbox-group>
|
|
|
</uni-forms-item>
|
|
|
</template>
|
|
|
<template
|
|
|
- v-else-if="!isSupportedCountry && ACCType != 8 && !isAfterSeptember30()">
|
|
|
+ v-if="!isSupportedCountry && ACCType != 8 && !isAfterSeptember30()">
|
|
|
<uni-forms-item name="agree2">
|
|
|
<checkbox-group :value="params.agree2 ? ['1'] : []"
|
|
|
@change="onAgree2Change">
|
|
|
@@ -415,13 +421,20 @@
|
|
|
<script setup>
|
|
|
import { ref, reactive, computed, watch, onMounted, nextTick, onUnmounted } from 'vue'
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
-const { t, locale } = useI18n()
|
|
|
+const { t, locale ,message} = useI18n()
|
|
|
import useUserStore from '@/stores/use-user-store'
|
|
|
import { customApi } from '@/service/custom'
|
|
|
import { financialApi } from '@/service/financial'
|
|
|
import { activityApi } from '@/service/activity'
|
|
|
import Config from '@/config/index'
|
|
|
+import {
|
|
|
+ getBonusActivityLang,
|
|
|
+ getCountryLocalizedMessage,
|
|
|
+} from "@/utils/bonusActivityLang";
|
|
|
const { Code, Host80, Host04 } = Config
|
|
|
+
|
|
|
+//入金10%/100%赠金活动
|
|
|
+const depositGiveInfo = ref({})
|
|
|
import { initLink } from '@/utils/setUrl'
|
|
|
import isImageType from '@/global/isImageType'
|
|
|
import PaymentMethodsList from './components/PaymentMethodsList.vue'
|
|
|
@@ -574,6 +587,10 @@ const tabsConfig = computed(() => {
|
|
|
// 当前选中的 tab 项
|
|
|
const currentTab = computed(() => tabsConfig.value.find(t => t.value === activeTab.value))
|
|
|
|
|
|
+
|
|
|
+const bonusActivityLang = computed(() => {
|
|
|
+ return getBonusActivityLang(country.value);
|
|
|
+})
|
|
|
// 当前要渲染的表格数据
|
|
|
const currentTableData = computed(() => {
|
|
|
const type = currentTab.value?.type
|
|
|
@@ -1154,6 +1171,25 @@ const chooseBank = (item) => {
|
|
|
form.pin = item.pin
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+const depositGiveFilePath = computed(() => {
|
|
|
+ const filePath = depositGiveInfo.value && depositGiveInfo.value.filePath;
|
|
|
+ if (!filePath) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ const path = String(filePath);
|
|
|
+ if (/^https?:\/\//i.test(path)) {
|
|
|
+ return path;
|
|
|
+ }
|
|
|
+ return Host05.value + path;
|
|
|
+})
|
|
|
+
|
|
|
+const bonusDepositT = (path)=>{
|
|
|
+ return getCountryLocalizedMessage({
|
|
|
+ t,message:message.value
|
|
|
+ }, country.value, path);
|
|
|
+}
|
|
|
+
|
|
|
// 返回首页
|
|
|
const toHome = () => {
|
|
|
uni.switchTab({ url: "/pages/customer/index" })
|
|
|
@@ -1238,7 +1274,7 @@ const closeDigitalPayConfirm = () => {
|
|
|
}
|
|
|
// 打开不参加活动弹窗
|
|
|
const openDontActive = () => {
|
|
|
- if (!tableData4Flag.value && !tableData4TwoFlag.value && !tableDataNewListFlag.value && (country.value != "CN" || (country.value == "CN" && (ACCType.value == 1 || ACCType.value == 2 || ACCType.value == 7))) && ACCType.value != 3 && params.agree2) {
|
|
|
+ if (depositGiveInfo.value.show == 1 && !tableData4Flag.value && !tableData4TwoFlag.value && !tableDataNewListFlag.value && params.agree2) {
|
|
|
tosubmitConfirm()
|
|
|
return
|
|
|
}
|
|
|
@@ -1264,6 +1300,24 @@ const openDontActive = () => {
|
|
|
}
|
|
|
tosubmitConfirm()
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+const getDepositGiveInfo = async (login) => {
|
|
|
+ params.agree2 = false;
|
|
|
+ try{
|
|
|
+ let res = await activityApi.ActivityDepositGiveInfo({
|
|
|
+ login,
|
|
|
+ });
|
|
|
+ if (res.code == Code.StatusOK) {
|
|
|
+ depositGiveInfo.value = res.data || {};
|
|
|
+ } else {
|
|
|
+ uni.showToast({ title:res.msg,icon:'none' });
|
|
|
+ depositGiveInfo.value = {};
|
|
|
+ }
|
|
|
+ }catch(error) {
|
|
|
+ uni.showToast({ title:error.msg,icon:'none' });
|
|
|
+ }
|
|
|
+}
|
|
|
// 打开提交前信息弹窗
|
|
|
const tosubmitConfirm = () => {
|
|
|
dialogDontActive.value = false
|
|
|
@@ -1306,7 +1360,7 @@ const submit = async () => {
|
|
|
phone: channelData.confirmPhone ? dialogCheckConfirm_form.confirmPhone : null,
|
|
|
ip: uni.getStorageSync("CLIENT")
|
|
|
})
|
|
|
- console.log(res, 121212);
|
|
|
+ // console.log(res, 121212);
|
|
|
dialogCheckWait.value = false
|
|
|
if (res.code == Code.StatusOK) {
|
|
|
imageUrl1.value = ""
|
|
|
@@ -1335,7 +1389,7 @@ const submit = async () => {
|
|
|
promoCode: params.promoCode,
|
|
|
ip: uni.getStorageSync("CLIENT")
|
|
|
})
|
|
|
- console.log(res, 121212);
|
|
|
+ // console.log(res, 121212);
|
|
|
dialogCheckWait.value = false
|
|
|
if (res.code == Code.StatusOK) {
|
|
|
dialogCheckOK.value = true
|
|
|
@@ -1368,7 +1422,7 @@ const submit = async () => {
|
|
|
...form
|
|
|
})
|
|
|
dialogCheckWait.value = false
|
|
|
- console.log(res, 121212);
|
|
|
+ // console.log(res, 121212);
|
|
|
|
|
|
if (res.code == Code.StatusOK) {
|
|
|
if (res.data && (res.data.type == 3 || res.data.type == 4 || res.data.type == 6 || res.data.type == 7)) {
|
|
|
@@ -1999,6 +2053,7 @@ watch(isStep3, async (newVal) => {
|
|
|
watch(loginValue, (login) => {
|
|
|
if (login) {
|
|
|
step3.value = true
|
|
|
+ getDepositGiveInfo(login)
|
|
|
get23nianzhongTwoLogin(login);
|
|
|
getActivityExtensionGiveLogin(login);
|
|
|
getActivityExtensionGiveLoginJoin(login);
|