|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="IbInfo">
|
|
<view class="IbInfo">
|
|
|
<cwg-popup ref="dialogApplyIb" type="center" :title="t('Home.msg.ibTitle')" showFooterLine
|
|
<cwg-popup ref="dialogApplyIb" type="center" :title="t('Home.msg.ibTitle')" showFooterLine
|
|
|
- :cancelText="t('Btn.Cancel')" :confirmText="confirmText" @close="closeIb" @confirm="confirmIb">
|
|
|
|
|
|
|
+ :cancelText="t('Btn.Cancel')" :confirmText="confirmText" @close="closeIb" @confirm="confirmIb" :slot-name="'agree'">
|
|
|
<view class="dia-content" v-if="ibStatus.status == 0">
|
|
<view class="dia-content" v-if="ibStatus.status == 0">
|
|
|
<view
|
|
<view
|
|
|
class="content"
|
|
class="content"
|
|
@@ -171,15 +171,22 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="agree" slot="footer">
|
|
|
|
|
- <checkbox-group v-model="ibAgree">
|
|
|
|
|
- <label class="checkbox">
|
|
|
|
|
- <checkbox value="1" />
|
|
|
|
|
- <text class="crm-cursor" style="text-decoration: underline;" @click="dialogCheckTip = true">{{
|
|
|
|
|
- t('Home.msg.Agree1') }}</text>
|
|
|
|
|
- </label>
|
|
|
|
|
- </checkbox-group>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <template #agree>
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <view class="agree" >
|
|
|
|
|
+ <checkbox-group v-model="ibAgree" @change="onAgreeChange">
|
|
|
|
|
+ <label class="checkbox">
|
|
|
|
|
+ <checkbox value="1" />
|
|
|
|
|
+ <text class="crm-cursor" style="text-decoration: underline;" @click="dialogCheckTip = true">{{
|
|
|
|
|
+ t('Home.msg.Agree1') }}</text>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ </checkbox-group>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
</cwg-popup>
|
|
</cwg-popup>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -256,6 +263,9 @@
|
|
|
const closeIb = async () => {
|
|
const closeIb = async () => {
|
|
|
dialogApplyIb.value.close()
|
|
dialogApplyIb.value.close()
|
|
|
}
|
|
}
|
|
|
|
|
+ const onAgreeChange = async (value) => {
|
|
|
|
|
+ ibAgree.value = (value?.detail?.value.length) || ''
|
|
|
|
|
+ }
|
|
|
// 确认按钮
|
|
// 确认按钮
|
|
|
const confirmIb = async () => {
|
|
const confirmIb = async () => {
|
|
|
const status = ibStatus.value.status
|
|
const status = ibStatus.value.status
|
|
@@ -278,6 +288,7 @@ icon: 'none'})
|
|
|
}
|
|
}
|
|
|
// 申请ib
|
|
// 申请ib
|
|
|
const applyIb = async () => {
|
|
const applyIb = async () => {
|
|
|
|
|
+ console.log(ibAgree.value)
|
|
|
if (!ibAgree.value) {
|
|
if (!ibAgree.value) {
|
|
|
uni.showToast({title: t("Msg.Read"),icon: 'none'})
|
|
uni.showToast({title: t("Msg.Read"),icon: 'none'})
|
|
|
return
|
|
return
|
|
@@ -315,7 +326,7 @@ icon: 'none'})
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
getLogin()
|
|
getLogin()
|
|
|
- dialogApplyIb.value.open()
|
|
|
|
|
|
|
+ // dialogApplyIb.value.open()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
@@ -359,4 +370,27 @@ icon: 'none'})
|
|
|
text-indent: 0;
|
|
text-indent: 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ .agree {
|
|
|
|
|
+ margin: px2rpx(24) 0;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: flex-start;
|
|
|
|
|
+
|
|
|
|
|
+ .checkbox {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: flex-start;
|
|
|
|
|
+ gap: px2rpx(8);
|
|
|
|
|
+
|
|
|
|
|
+ :deep(uni-checkbox .uni-checkbox-input) {
|
|
|
|
|
+ border-radius: px2rpx(4);
|
|
|
|
|
+ width: px2rpx(18);
|
|
|
|
|
+ height: px2rpx(18);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ text {
|
|
|
|
|
+ font-size: px2rpx(13);
|
|
|
|
|
+ color: var(--color-zinc-500);
|
|
|
|
|
+ line-height: 1.5;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|