| | |
| | | }, |
| | | data() { |
| | | return { |
| | | loginAct: false, |
| | | $webHost:'https://rbb98765.zrgy-bbg.com', |
| | | protocolChecked: [1], |
| | | offIcon,leftIcon,kkIcon, |
| | |
| | | |
| | | |
| | | }, |
| | | mounted(){ |
| | | this.windowHeight = uni.getSystemInfoSync().windowHeight; |
| | | this.interval = setInterval(() => { |
| | | let newHeight = window.innerHeight; |
| | | if (this.windowHeight !== newHeight) { |
| | | this.windowHeight = newHeight; |
| | | this.handleResize(); |
| | | } |
| | | }, 200); |
| | | }, |
| | | methods: { |
| | | kk(){ |
| | | |
| | |
| | | }, |
| | | submit() { |
| | | const _this = this; |
| | | if(!this.protocolChecked[0]){uni.showToast({title: '请阅读并同意相关协议', icon: 'none'});return;} |
| | | if(!this.loginAct){uni.showToast({title: '请阅读并同意相关协议', icon: 'none'});return;} |
| | | if(!_this.cardName){ |
| | | uni.showToast({ |
| | | title: "请填写您的姓名", |
| | |
| | | }) |
| | | |
| | | |
| | | }, |
| | | agreeClick () { |
| | | this.loginAct = !this.loginAct |
| | | }, |
| | | getSmsCode(){ |
| | | const that = this; |
| | |
| | | |
| | | <view style=" padding: 0 30rpx;margin-left: 20rpx;"> |
| | | <view style="display: flex;"> |
| | | <uv-checkbox-group |
| | | activeColor="#FF1472" |
| | | shape="circle" |
| | | v-model="protocolChecked"> |
| | | <uv-checkbox size="14" :name="1" > |
| | | |
| | | </uv-checkbox> |
| | | <text class="protocol-text" > |
| | | 我已阅读并同意<text style="font-size: 24rpx;color: #4766FE" class="link-text" @click="$refs.agreement.open()">《相关协议》</text> |
| | | </text> |
| | | </uv-checkbox-group> |
| | | <image @click="agreeClick" style="width: 50rpx;height: 50rpx;" :src="!loginAct ? '/static/imgs/check.png' : '/static/imgs/checked.png'" ></image> |
| | | <text class="protocol-text" style="line-height: 50rpx" > |
| | | 我已阅读并同意<text style="font-size: 24rpx;color: #4766FE" class="link-text" @click="$refs.agreement.open()">《相关协议》</text> |
| | | </text> |
| | | |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="sub" v-if="show"> |
| | | <button :class="protocolChecked[0]?'':'nots'" class="sub_btn" @click="submit">提交</button> |
| | | <button :class="loginAct?'':'nots'" class="sub_btn" @click="submit">提交</button> |
| | | </view> |
| | | |
| | | <agreement ref="agreement"></agreement> |