|
@@ -15,23 +15,21 @@
|
|
<view class="agreement-checkbox-box">
|
|
<view class="agreement-checkbox-box">
|
|
<checkbox class="agreement-checkbox-input" color="#FFFFFF" :checked="indexData.isAgreed" @change="handleAgreementChange"/>
|
|
<checkbox class="agreement-checkbox-input" color="#FFFFFF" :checked="indexData.isAgreed" @change="handleAgreementChange"/>
|
|
<view class="agreement-text-box">
|
|
<view class="agreement-text-box">
|
|
- 我已阅读并同意<view class="agreement-text">《用户协议》</view>和<view class="agreement-text">《隐私政策》</view>
|
|
|
|
|
|
+ 我已阅读并同意<view class="agreement-text" @click="agreeBtn">《用户协议》</view>和<view @click="agreeBtn" class="agreement-text">《隐私政策》</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="login-btn yzm-btn-disabled" @click="getYzmBtn" :class="indexData.telStatus"></view>
|
|
<view class="login-btn yzm-btn-disabled" @click="getYzmBtn" :class="indexData.telStatus"></view>
|
|
</view>
|
|
</view>
|
|
<view class="wx-btn-img"></view>
|
|
<view class="wx-btn-img"></view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+ <agreeDialog ref="agreeDialogRef"></agreeDialog>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
- import {
|
|
|
|
- ref,
|
|
|
|
- reactive
|
|
|
|
- } from "vue"
|
|
|
|
|
|
+ import {ref,reactive} from "vue"
|
|
import { onLoad,onReady } from '@dcloudio/uni-app';
|
|
import { onLoad,onReady } from '@dcloudio/uni-app';
|
|
|
|
+ import agreeDialog from './agreeDialog.vue'
|
|
|
|
|
|
let indexData = reactive({
|
|
let indexData = reactive({
|
|
phoneNumber: null,
|
|
phoneNumber: null,
|
|
@@ -46,8 +44,12 @@
|
|
token:'',
|
|
token:'',
|
|
})
|
|
})
|
|
|
|
|
|
- onLoad(() => {
|
|
|
|
- getAWSC();
|
|
|
|
|
|
+ const agreeDialogRef = ref(null);
|
|
|
|
+
|
|
|
|
+ onLoad((options) => {
|
|
|
|
+ console.log(options,'options66666');
|
|
|
|
+ getAWSC();
|
|
|
|
+ indexInit(options);
|
|
})
|
|
})
|
|
|
|
|
|
const getAWSC = () => {
|
|
const getAWSC = () => {
|
|
@@ -82,15 +84,11 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
- // let req ={
|
|
|
|
- // sessionId:indexData.sliderObj.sessionId,
|
|
|
|
- // sig:data.sliderObj.sig,
|
|
|
|
- // }
|
|
|
|
const getYzmBtn = () => {
|
|
const getYzmBtn = () => {
|
|
|
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
// url: `/pages/login/login?telNum=${data.phoneNumber}&slider=${encodeURIComponent(data.sliderObj)}`,
|
|
// url: `/pages/login/login?telNum=${data.phoneNumber}&slider=${encodeURIComponent(data.sliderObj)}`,
|
|
- url: `/pages/login/login?data=`+JSON.stringify(sliderObj)
|
|
|
|
|
|
+ url: `/pages/login/login?telNum=${indexData.phoneNumber}&data=`+JSON.stringify(sliderObj)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -120,10 +118,15 @@
|
|
indexData.clearTelIcon = false;
|
|
indexData.clearTelIcon = false;
|
|
}
|
|
}
|
|
|
|
|
|
- const handleAgreementChange= () => {
|
|
|
|
|
|
+ const agreeBtn = () => {
|
|
|
|
+ agreeDialogRef.value.handleShow();
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ const handleAgreementChange= (event) => {
|
|
|
|
+ console.log(event,'event');
|
|
|
|
|
|
- if(indexData.isAgreed){
|
|
|
|
|
|
+ /* if(indexData.isAgreed){
|
|
indexData.isAgreed = !indexData.isAgreed;
|
|
indexData.isAgreed = !indexData.isAgreed;
|
|
- }
|
|
|
|
|
|
+ } */
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|