|
@@ -145,11 +145,6 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- uni.removeStorageSync('stepIndex')
|
|
|
- // 注册全局监听事件
|
|
|
- uni.$once('read', this.read)
|
|
|
- this.getUserPhone()
|
|
|
- this.getServerList()
|
|
|
// 存储当前扫码的设备及网点id
|
|
|
// if(options.scene){
|
|
|
// let scene=decodeURIComponent(options.scene);
|
|
@@ -159,7 +154,12 @@
|
|
|
// //其他逻辑处理。。。。。
|
|
|
// }
|
|
|
this.$store.state.vuex_orderInfo.bizId = option.bizId || '9898'
|
|
|
- this.$store.state.vuex_orderInfo.storeId = option.storeId || ''
|
|
|
+ this.$store.state.vuex_orderInfo.storeId = option.storeId || '100000'
|
|
|
+ uni.removeStorageSync('stepIndex')
|
|
|
+ // 注册全局监听事件
|
|
|
+ uni.$once('read', this.read)
|
|
|
+ this.getUserPhone()
|
|
|
+ this.getServerList()
|
|
|
},
|
|
|
onUnload() {
|
|
|
uni.removeStorageSync('stepIndex')
|
|
@@ -186,7 +186,8 @@
|
|
|
},
|
|
|
// 获取服务列表
|
|
|
getServerList () {
|
|
|
- getStoreItems({storeId:100000}).then(res =>{
|
|
|
+ let storeId = this.$store.state.vuex_orderInfo.storeId
|
|
|
+ getStoreItems({storeId:storeId}).then(res =>{
|
|
|
if (res.status == 200) {
|
|
|
this.itemList = res.data
|
|
|
this.serverIndex = 0
|
|
@@ -266,6 +267,10 @@
|
|
|
},
|
|
|
// 去付款 保存订单
|
|
|
handleSubmit (){
|
|
|
+ if(this.itemList.length==0){
|
|
|
+ this.toashMsg('请先选择服务')
|
|
|
+ return
|
|
|
+ }
|
|
|
if (this.isRead !='read') {
|
|
|
this.toashMsg('请先阅读并同意无人洗车《注意事项及服务协议》!')
|
|
|
return
|