首页修改
This commit is contained in:
@@ -2,20 +2,16 @@
|
||||
<view class="Box flex-between">
|
||||
<view class="content flex-colum" @click="indexInvoicing" v-if="improveinformation">
|
||||
<image src="@/static/item3.png" mode="aspectFill"></image>
|
||||
<text>自开票</text>
|
||||
<text>极速开票</text>
|
||||
</view>
|
||||
<view class="content flex-colum" @click="webview" v-if="improveinformation">
|
||||
<image src="@/static/item2.png" mode="aspectFill"></image>
|
||||
<text>开票员管理</text>
|
||||
<text>后台管理</text>
|
||||
</view>
|
||||
<view class="content flex-colum" @click="indexorder" v-if="improveinformation">
|
||||
<image src="@/static/item1.png" mode="aspectFill"></image>
|
||||
<text>开票记录</text>
|
||||
</view>
|
||||
<!-- <view class="content flex-colum" @click="information">
|
||||
<image src="@/static/item4.png" mode="aspectFill"></image>
|
||||
<text>完善商家信息</text>
|
||||
</view> -->
|
||||
<view class="content flex-colum" @click="notification" v-if="improveinformation">
|
||||
<image src="@/static/item6.png" mode="aspectFill"></image>
|
||||
<text>绑定通知</text>
|
||||
@@ -28,54 +24,60 @@
|
||||
data() {
|
||||
return {
|
||||
improveinformation: false,
|
||||
improveinformationlist: {}
|
||||
improveinformationlist: {},
|
||||
onLoaduserId: '',
|
||||
onLoadtype: ''
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
// getLocationInfo() {
|
||||
// uni.getLocation({
|
||||
// type: 'wgs84',
|
||||
// success: (res) => {
|
||||
// console.log(res, '获取距离')
|
||||
// // this.lng = res.longitude
|
||||
// // this.lat = res.latitude
|
||||
// // this.positionindex()
|
||||
// },
|
||||
// fail: (err) => {
|
||||
// // this.positionindex()
|
||||
// console.log(err, '获取错误')
|
||||
// }
|
||||
// });
|
||||
// },
|
||||
async onLoad(e) {
|
||||
if (e.userId) {
|
||||
// this.onLoaduserId = e.userId
|
||||
// this.onLoadtype = e.type
|
||||
uni.cache.set('userId', e.userId);
|
||||
}
|
||||
uni.request({
|
||||
url: uni.conf.baseUrl + 'store/storestatus',
|
||||
data: {
|
||||
//参数
|
||||
store_id: uni.getStorageSync('userId')
|
||||
},
|
||||
method: 'POST', //请求方式,必须为大写
|
||||
success: res => {
|
||||
this.improveinformationform = res.data.data.store
|
||||
uni.cache.set('form', this.improveinformationform);
|
||||
if (res.data.data.sz_status == 0) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/index/information'
|
||||
});
|
||||
// uni.redirectTo({
|
||||
// url: '/pages/index/information?store=' + JSON.stringify(this.improveinformationform)
|
||||
// });
|
||||
} else {
|
||||
this.improveinformation = true
|
||||
}
|
||||
},
|
||||
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'
|
||||
});
|
||||
} 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: {
|
||||
merchant() {
|
||||
uni.pro.navigateTo('index/merchant');
|
||||
},
|
||||
information() {
|
||||
uni.pro.navigateTo('index/information', this.improveinformationform);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user