This commit is contained in:
魏啾
2024-05-17 18:30:40 +08:00
parent 27100de568
commit 7cd5649764
22 changed files with 1980 additions and 50 deletions

View File

@@ -21,6 +21,14 @@
<image src="@/static/item5.png" mode="aspectFill"></image>
<text>新增开票员</text>
</view>
<view class="content flex-colum" @click="billingcode" v-if="improveinformation">
<image src="@/static/item7.png" mode="aspectFill"></image>
<text>开票码</text>
</view>
<view class="content flex-colum" @click="auditbilling" v-if="improveinformation">
<image src="@/static/item8.png" mode="aspectFill"></image>
<text>审核开票</text>
</view>
</view>
<view class="setClipboardDataclass" @click="setClipboardData" v-if="infos.deviceType != 'pc'">
网页版地址:https://h5-invoice.sxczgkj.cn
@@ -60,37 +68,43 @@
this.improveinformation = true
}
}
// uni.request({
// url: uni.conf.baseUrl + 'store/storestatus',
// data: {
// //参数
// store_id: uni.cache.get('userId')
// // type: this.onLoadtype
// },
// method: 'POST', //请求方式,必须为大写
// success: res => {
// this.improveinformationform = res.data.data.store
// uni.cache.set('form', this.improveinformationform);
// // uni.cache.set('userId', this.improveinformationform.id);
// if (res.data.data.sz_status == 0) {
// uni.reLaunch({
// url: '/pages/index/information'
// });
// } else {
// this.improveinformation = true
// }
// },
uni.request({
url: uni.conf.baseUrl + 'store/storestatus',
data: {
//参数
store_id: uni.cache.get('userId')
// type: this.onLoadtype
},
method: 'POST', //请求方式,必须为大写
success: res => {
this.improveinformationform = res.data.data.store
uni.cache.set('form', this.improveinformationform);
// uni.cache.set('userId', this.improveinformationform.id);
if (res.data.data.sz_status == 0) {
uni.reLaunch({
url: '/pages/index/information'
});
} else {
this.improveinformation = true
}
},
// });
});
},
onShow() {},
methods: {
setClipboardData() {
uni.setClipboardData({
data: 'https://h5-invoice.sxczgkj.cn/?userId=' + uni.utils.md5(uni.cache.get('userId')),
data: 'https://h5-invoice.sxczgkj.cn/?userId=' + uni.cache.get('userId'),
success: function() {}
});
},
auditbilling(){
uni.pro.navigateTo('index/auditbilling');
},
billingcode(){
uni.pro.navigateTo('index/billingcode');
},
drawer() {
uni.pro.navigateTo('index/drawer');
},