修改点发票开始之前提交版本

This commit is contained in:
魏啾
2024-08-23 10:28:50 +08:00
parent 7dcde9f91f
commit 4e5b31b2e6
12 changed files with 352 additions and 58 deletions

View File

@@ -65,20 +65,27 @@
};
},
async onLoad(e) {
// await this.$onLaunched;
// alert(location.href.split('#')[0])
if (e.userId) {
// this.onLoaduserId = e.userId
uni.cache.set('Type', e.type);
uni.cache.set('userId', e.userId);
}
// this.jumpToMiniProgram()
let token = await this.api.h5encryption({
store_id: uni.cache.get('userId')
})
if (token.code == 1) {
uni.cache.set('token', token.data.token);
}
console.log(token)
let res = await this.api.storestorestatus({
store_id: uni.cache.get('userId')
})
if (res.code == 1) {
this.improveinformationform = res.data.store
uni.cache.set('form', this.improveinformationform);
// uni.cache.set('userId', this.improveinformationform.id);
if (res.data.sz_status == 0) {
uni.reLaunch({
url: '/pages/index/information'
@@ -198,7 +205,7 @@
let res = await this.api.szzpyhurl({
store_id: uni.getStorageSync('userId')
})
if(res){
if (res) {
uni.pro.navigateTo('webview/webview', {
url: res.data.url,
tape: 1