小程序编译0.0.0

This commit is contained in:
魏啾
2024-11-13 09:25:34 +08:00
parent 1fbf346aec
commit 2147f86b93
65 changed files with 3745 additions and 852 deletions

View File

@@ -68,7 +68,7 @@
短信验证
</view>
<view class="messageboxtoptext">
成功:验证码已发送到手机号{{codephone}}
{{codephone}}
</view>
<view class="messageboxtoptext flex-between">
<input type="mobile" v-model="codelang" placeholder="请输入短信验证码" maxlength="6" />
@@ -173,8 +173,8 @@
data() {
return {
formCode: {
text: '',
url: 'www.baidu.com'
text: '超掌柜',
url: 'https://www.baidu.com/baidu?ie=utf-8&wd=312'
}, //成功后
text: 'uQRCode',
size: 242,
@@ -218,6 +218,9 @@
this.invoicingrecordsthatneed()
}
},
onReady() {
this.merchantStoreshowMerchantStoreReceipt()
},
methods: {
// 设置默认
async setdefault(item) {
@@ -241,7 +244,7 @@
},
// 二维码
async merchantStoreshowMerchantStoreReceipt(lane) {
async merchantStoreshowMerchantStoreReceipt() {
// 获取uQRCode实例
var qr = new uQRCode();
// 设置二维码内容
@@ -266,19 +269,36 @@
content: `确定使用办税员【${item.name}】进行人脸吗?`,
success: (res) => {
if (res.confirm) {
// 这是未登录要发送验证码
this.accountqrcode()
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
},
// 人脸前获取验证码
async accountqrcode() {
await this.api.accountqrcode({
let res = await this.api.accountqrcode({
id: this.loginid
})
this.messageshow = true
if (res.data.url) {
this.formCode.url = res.data.url
this.formCode.text = res.data.text
this.canvasshow = true
this.$nextTick(() => {
this.merchantStoreshowMerchantStoreReceipt()
})
} else {
uni.showToast({
title: res.data.msg,
icon: 'none'
});
this.yanzhengm(false)
this.codephone = res.data.msg
this.messageshow = true
}
},
//登录获取验证码
login(item, textshow) {
@@ -290,6 +310,7 @@
success: (res) => {
if (res.confirm) {
this.getsendsms()
this.yanzhengm(false)
} else if (res.cancel) {
console.log('用户点击取消');
}
@@ -298,24 +319,39 @@
},
// 登录前获取验证码
async getsendsms() {
await this.api.getsendsms({
let res = await this.api.getsendsms({
id: this.loginid
})
this.messageshow = true
if (res.code == 1) {
uni.showToast({
title: res.data.msg,
icon: 'none'
});
this.codephone = res.data.msg
this.messageshow = true
}
},
// 登录成功上传
async sensms() {
console.log(this.textshow)
let res = await this.api.sensms({
id: this.loginid,
code: this.codelang,
})
console.log(res)
if (res.code == 1) {
this.formCode = res.data
uni.showToast({
title: '登录成功',
icon: 'none'
});
this.messageshow = false
switch (this.textshow) {
case '登录':
uni.showToast({
title: '登录成功',
icon: 'none'
});
this.messageshow = false
break;
case '人脸':
await this.accountqrcode()
break;
}
this.reset() //重置
}
},
@@ -383,7 +419,7 @@
});
return false;
}
this.addform.taxphone = this.codephone
// this.addform.taxphone = this.codephone
let res = await this.api.szzpyaddinvoicer(this.addform)
if (res.code == 1) {
this.showpopup = false
@@ -418,10 +454,11 @@
break;
}
this.yanzhengm() //验证码
this.yanzhengm(true) //验证码
},
//点击确定
queding() {
console.log(this.textshow)
switch (this.textshow) {
case '修改':
this.szzpyaddinvoicersendsms()
@@ -436,11 +473,13 @@
},
// 验证码
yanzhengm() {
uni.showToast({
title: '验证码发送成功',
icon: 'none'
});
yanzhengm(e) {
if (e) {
uni.showToast({
title: '验证码发送成功',
icon: 'none'
});
}
// 定时器
this.showText = false;
this.Recapture = '重新获取';
@@ -469,6 +508,7 @@
this.codelang = ''
this.codephone = ''
this.popupshow = false
this.canvasshow = false
this.newissuedbyliststatus()
},
// 列表
@@ -570,6 +610,7 @@
padding: 28rpx 32rpx;
.messageboxtop {
padding: 10rpx 0;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 28rpx;