Commit 77ce9168 authored by 罗超's avatar 罗超

1

parent 24aceba2
...@@ -200,7 +200,8 @@ ...@@ -200,7 +200,8 @@
date: "", date: "",
info: '' info: ''
}], }],
Date: "" Date: "",
up:""
} }
}, },
components: { components: {
...@@ -365,6 +366,9 @@ ...@@ -365,6 +366,9 @@
}, },
//获取详情 //获取详情
getDetail() { getDetail() {
uni.showLoading({
title: '加载中...'
});
this.request2({ this.request2({
url: '/api/AppletDining/GetDiningDetails', url: '/api/AppletDining/GetDiningDetails',
data: { data: {
...@@ -372,6 +376,7 @@ ...@@ -372,6 +376,7 @@
} }
}, },
res => { res => {
uni.hideLoading();
if (res.resultCode == 1) { if (res.resultCode == 1) {
res.data.FoodTag = res.data.FoodTag.split(',') res.data.FoodTag = res.data.FoodTag.split(',')
res.data.GeographicTag = res.data.GeographicTag.split(',') res.data.GeographicTag = res.data.GeographicTag.split(',')
...@@ -385,6 +390,9 @@ ...@@ -385,6 +390,9 @@
this.imgsList.push(obj) this.imgsList.push(obj)
}) })
} }
},
err=>{
uni.hideLoading();
} }
); );
}, },
......
...@@ -175,6 +175,12 @@ ...@@ -175,6 +175,12 @@
uni.requestSubscribeMessage({ uni.requestSubscribeMessage({
tmplIds: res.data.template_message_list, tmplIds: res.data.template_message_list,
complete(_res) { complete(_res) {
if(data.Final_Price===0){
uni.redirectTo({
url: '/pages/jiuzhai/allorderList'
});
return
}
that.queren(res.data.OrderId) that.queren(res.data.OrderId)
} }
}); });
......
This diff is collapsed.
...@@ -87,7 +87,6 @@ ...@@ -87,7 +87,6 @@
onLoad(options) { onLoad(options) {
let obj=JSON.parse(decodeURIComponent(options.data)) let obj=JSON.parse(decodeURIComponent(options.data))
this.ticketdData=obj this.ticketdData=obj
console.log(this.ticketdData)
this.Final_Price=this.ticketdData.PeopleNumber*this.ticketdData.Unit_Price this.Final_Price=this.ticketdData.PeopleNumber*this.ticketdData.Unit_Price
}, },
...@@ -151,6 +150,12 @@ ...@@ -151,6 +150,12 @@
console.log('订阅失败',err) console.log('订阅失败',err)
}, },
complete(_res) { complete(_res) {
if(that.Final_Price===0){
uni.redirectTo({
url: '/pages/jiuzhai/allorderList'
});
return
}
that.queren(res.data.OrderId) that.queren(res.data.OrderId)
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment