更新
This commit is contained in:
@@ -82,6 +82,12 @@
|
|||||||
sendTextMessage() {
|
sendTextMessage() {
|
||||||
if (!this.submitCheck()) return
|
if (!this.submitCheck()) return
|
||||||
|
|
||||||
|
// this.time = 60
|
||||||
|
// this.timefn()
|
||||||
|
// this.isFocus = true
|
||||||
|
// this.$refs.smscodePopup.open()
|
||||||
|
// return
|
||||||
|
|
||||||
if (this.time === 0) {
|
if (this.time === 0) {
|
||||||
this.params.code = ''
|
this.params.code = ''
|
||||||
this.params.verifyCodeToken = ''
|
this.params.verifyCodeToken = ''
|
||||||
|
|||||||
@@ -871,6 +871,22 @@
|
|||||||
this.getScanRes('fixed_1371293944539422720')
|
this.getScanRes('fixed_1371293944539422720')
|
||||||
},
|
},
|
||||||
openScan() {
|
openScan() {
|
||||||
|
let user = uni.getStorageSync('user')
|
||||||
|
if(!user) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '请您登录',
|
||||||
|
content: "登录星油加油才可以加油 |˛˙꒳˙)♡",
|
||||||
|
confirmText: '去登陆',
|
||||||
|
success: (res) => {
|
||||||
|
if (res.confirm) {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: '../../../BagAuth/pages/login/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
uni.scanCode({
|
uni.scanCode({
|
||||||
scanType: 'qrCode',
|
scanType: 'qrCode',
|
||||||
onlyFromCamera: true,
|
onlyFromCamera: true,
|
||||||
|
|||||||
@@ -159,7 +159,18 @@
|
|||||||
scanType: 'qrCode',
|
scanType: 'qrCode',
|
||||||
onlyFromCamera: true,
|
onlyFromCamera: true,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
console.log(res.result)
|
if (typeof res.result === 'string') {
|
||||||
|
let result = JSON.parse(res.result)
|
||||||
|
if (result.qrcodeText) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '',
|
||||||
|
content: "请使用首页扫一扫功能或油卡页面转卡功能赠油哦 |˛˙꒳˙)♡",
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.getScanRes(res.result)
|
||||||
|
return
|
||||||
|
}
|
||||||
this.getScanRes(res.result)
|
this.getScanRes(res.result)
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user