|
@@ -105,16 +105,15 @@
|
|
|
</uni-row>
|
|
</uni-row>
|
|
|
|
|
|
|
|
<!-- 二维码弹窗 -->
|
|
<!-- 二维码弹窗 -->
|
|
|
- <uni-popup ref="linkPopup" type="center" :mask-click="false">
|
|
|
|
|
|
|
+ <uni-popup ref="linkPopup" type="center" :title="t('Ib.Index.CreateLink')" :mask-click="false" background-color="#fff">
|
|
|
<view class="dia-content">
|
|
<view class="dia-content">
|
|
|
<view class="content" style="font-size: 14px; text-align: left">
|
|
<view class="content" style="font-size: 14px; text-align: left">
|
|
|
<view class="label">{{ t("Ib.Index.Spread5") }} :</view>
|
|
<view class="label">{{ t("Ib.Index.Spread5") }} :</view>
|
|
|
- <uni-data-select
|
|
|
|
|
|
|
+ <cwg-combox
|
|
|
v-model="excludeShowLoginTypes"
|
|
v-model="excludeShowLoginTypes"
|
|
|
:multiple="true"
|
|
:multiple="true"
|
|
|
- :localdata="excludeList"
|
|
|
|
|
|
|
+ :options="excludeList"
|
|
|
:placeholder="t('placeholder.choose')"
|
|
:placeholder="t('placeholder.choose')"
|
|
|
- style="width: 100%"
|
|
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<view class="label">{{ t("Ib.Index.Spread4") }} :</view>
|
|
<view class="label">{{ t("Ib.Index.Spread4") }} :</view>
|
|
@@ -206,10 +205,12 @@
|
|
|
import useRouter from '@/hooks/useRouter'
|
|
import useRouter from '@/hooks/useRouter'
|
|
|
import {ibApi} from '@/service/ib'
|
|
import {ibApi} from '@/service/ib'
|
|
|
import config from '@/config/index'
|
|
import config from '@/config/index'
|
|
|
|
|
+ import useUserStore from '@/stores/use-user-store'
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
const { t } = useI18n()
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
const {Code } = config
|
|
const {Code } = config
|
|
|
|
|
+ const { userInfo } = useUserStore()
|
|
|
// 数据
|
|
// 数据
|
|
|
const balanceInt = ref(0)
|
|
const balanceInt = ref(0)
|
|
|
const balanceDecimal = ref('00')
|
|
const balanceDecimal = ref('00')
|
|
@@ -223,13 +224,21 @@
|
|
|
ibAmount: "",
|
|
ibAmount: "",
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
|
|
+ const selectedSpreadId = ref('')
|
|
|
const spreadList = ref([])
|
|
const spreadList = ref([])
|
|
|
- const excludeShowLoginTypes = ref()
|
|
|
|
|
|
|
+ const excludeShowLoginTypes = ref([])
|
|
|
const pammManagerValid = ref()
|
|
const pammManagerValid = ref()
|
|
|
const menuList = ref([
|
|
const menuList = ref([
|
|
|
{label: t('Custom.Index.Withdrawals'),type: 1},
|
|
{label: t('Custom.Index.Withdrawals'),type: 1},
|
|
|
{label: t('Custom.Index.Transfer'),type: 2},
|
|
{label: t('Custom.Index.Transfer'),type: 2},
|
|
|
])
|
|
])
|
|
|
|
|
+ const excludeList = ref([])
|
|
|
|
|
+ const excludeLists = ref([
|
|
|
|
|
+ {text: t('AccountType.SeniorAccount'),value: '2'},
|
|
|
|
|
+ // {text: t('AccountType.SeniorAccount'),value: '3'},
|
|
|
|
|
+ {text: t('AccountType.StandardAccount'),value: '7'},
|
|
|
|
|
+ {text: t('AccountType.CentAccount'),value: '8'},
|
|
|
|
|
+ ])
|
|
|
|
|
|
|
|
// 开户链接
|
|
// 开户链接
|
|
|
const linkPopup = ref(null)
|
|
const linkPopup = ref(null)
|
|
@@ -287,8 +296,30 @@
|
|
|
uni.showToast(res.msg)
|
|
uni.showToast(res.msg)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ const getAgentAccountSetting = async () => {
|
|
|
|
|
+ console.log(userInfo)
|
|
|
|
|
+ const {agentAccountSetting = ''} = userInfo.ibInfo ?? {}
|
|
|
|
|
+ if (agentAccountSetting === 0) {
|
|
|
|
|
+ const excludeValues = userInfo.customInfo.excludeShowLoginTypes;
|
|
|
|
|
+ try{
|
|
|
|
|
+ excludeList.value = excludeLists.value.filter(
|
|
|
|
|
+ (item) => !excludeValues.includes(item.value)
|
|
|
|
|
+ )
|
|
|
|
|
+ excludeShowLoginTypes.value = []
|
|
|
|
|
+ }catch(e){
|
|
|
|
|
+ excludeShowLoginTypes.value = []
|
|
|
|
|
+ excludeList.value = excludeLists.value
|
|
|
|
|
+ }
|
|
|
|
|
+ }else {
|
|
|
|
|
+ excludeShowLoginTypes.value = []
|
|
|
|
|
+ excludeList.value = excludeLists.value
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
// 生成开户链接
|
|
// 生成开户链接
|
|
|
- const LinkActivity1 = () => {
|
|
|
|
|
|
|
+ const LinkActivity1 = async () => {
|
|
|
|
|
+ // await loginTypeList()
|
|
|
|
|
+ await getAgentAccountSetting()
|
|
|
|
|
+ selectedSpreadId.value = ''
|
|
|
linkPopup.value.open()
|
|
linkPopup.value.open()
|
|
|
}
|
|
}
|
|
|
// 生成活动分享链接
|
|
// 生成活动分享链接
|