|
|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="present">
|
|
|
|
|
<u-image style="display: flex;justify-content: center;" mode="heightFix" width="auto" height="720rpx" :src="require('@/static/present.png')"></u-image>
|
|
|
|
|
<u-image style="display: flex;justify-content: center;" mode="heightFix" width="auto" height="700rpx" :src="require('@/static/present.png')"></u-image>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="login">
|
|
|
|
|
@ -107,7 +107,6 @@ import popover from "@/component/popover/index.vue";
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad() {
|
|
|
|
|
this.getNotices()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
toRaffle() {
|
|
|
|
|
@ -127,33 +126,35 @@ import popover from "@/component/popover/index.vue";
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
sendCode() {
|
|
|
|
|
if(!/^1[3-9]\d{9}$/.test(`192${this.inputMobile}`)) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'none',
|
|
|
|
|
title: '手机号不正确'
|
|
|
|
|
// if(!/^1[3-9]\d{9}$/.test(`192${this.inputMobile}`)) {
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: 'none',
|
|
|
|
|
// title: '手机号不正确'
|
|
|
|
|
// })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
if(this.$refs.uCode.canGetCode) {
|
|
|
|
|
this.$refs.uCode.start()
|
|
|
|
|
this.$u.api.sendSms({
|
|
|
|
|
tempate_key: 'sms_code_template',
|
|
|
|
|
mobile: this.inputMobile
|
|
|
|
|
//`192${this.inputMobile}`
|
|
|
|
|
}).then(res => {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'none',
|
|
|
|
|
title: res.msg
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
if(this.$refs.uCode.canGetCode) {
|
|
|
|
|
this.$refs.uCode.start()
|
|
|
|
|
this.$u.api.sendSms({
|
|
|
|
|
tempate_key: 'sms_code_template',
|
|
|
|
|
mobile: `192${this.inputMobile}`
|
|
|
|
|
}).then(res => {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'none',
|
|
|
|
|
title: res.msg
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$u.toast('倒计时结束后再发送');
|
|
|
|
|
}
|
|
|
|
|
this.$u.toast('倒计时结束后再发送');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
bindMobile() {
|
|
|
|
|
if(this.code) {
|
|
|
|
|
this.$u.api.bindMobile({
|
|
|
|
|
mobile: `192${this.inputMobile}`,
|
|
|
|
|
mobile: this.inputMobile,
|
|
|
|
|
//`192${this.inputMobile}`,
|
|
|
|
|
code: this.code
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.popoverType = 3;
|
|
|
|
|
@ -176,6 +177,16 @@ import popover from "@/component/popover/index.vue";
|
|
|
|
|
return 'laugh';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
vuex_token: {
|
|
|
|
|
handler(newVal){
|
|
|
|
|
if(newVal) {
|
|
|
|
|
this.getNotices()
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
immediate: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
@ -205,13 +216,13 @@ import popover from "@/component/popover/index.vue";
|
|
|
|
|
|
|
|
|
|
& .logo {
|
|
|
|
|
|
|
|
|
|
margin-top: 4vh;
|
|
|
|
|
margin-top: 3vh;
|
|
|
|
|
margin-left: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& .title {
|
|
|
|
|
|
|
|
|
|
margin-top: 4vh;
|
|
|
|
|
margin-top: 3vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& .notice {
|
|
|
|
|
@ -221,19 +232,19 @@ import popover from "@/component/popover/index.vue";
|
|
|
|
|
color: #fff;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
margin: .2vh 140rpx 0 140rpx;
|
|
|
|
|
margin: .1vh 140rpx 0 140rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.present {
|
|
|
|
|
|
|
|
|
|
margin-top: 0.75vh;
|
|
|
|
|
margin-top: 0.5vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.login {
|
|
|
|
|
height: 448rpx;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
margin: -5.6vh 60rpx 0 60rpx;
|
|
|
|
|
margin: -12vh 60rpx 0 60rpx;
|
|
|
|
|
padding: 0 52rpx 3.5vh 40rpx;
|
|
|
|
|
&-bkg {
|
|
|
|
|
filter: drop-shadow(14rpx 14rpx 4rpx rgba(0,0,0,0.3));
|
|
|
|
|
@ -308,7 +319,7 @@ import popover from "@/component/popover/index.vue";
|
|
|
|
|
line-height: 32rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
padding-top: 6.9vh;
|
|
|
|
|
padding-top: 4vh;
|
|
|
|
|
padding-bottom: 2.28vh;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|