作者 wumengyu

暂存

... ... @@ -20,9 +20,10 @@ Page({
over_time:'',
is_showRelease_modal:false,
},
//查看我的订单
//查看我的发布
goMyRelease() {
wx.redirectTo({url:'/pages/order/order-detail/order-detail?id=' + this.data.order_id})
// wx.redirectTo({url:'/pages/order/order-detail/order-detail?id=' + this.data.order_id});
wx.redirectTo({url:'/pages/meal/detail/detail?id=' + this.data.id})
},
//完成按钮
goBack() {
... ... @@ -146,7 +147,7 @@ Page({
app.post(url, params, {}).then((res) => {
console.log('确定发布', res);
if(+res.code === 1 && res.message == '发布成功') {
this.setData({is_showRelease_modal:true,order_id:+res.data.id})
this.setData({is_showRelease_modal:true,order_id:+res.data.id,id:+res.data.activeId})
}else {
wx.showToast({title:res.message,icon:'none'})
}
... ...
... ... @@ -104,7 +104,7 @@
<view class="modal" wx:if="{{is_showRelease_modal}}" catchtouchmove="disableScroll">
<image class="sorry-img" src="../../images/success@2x.png"></image>
<view class="title">恭喜您发布成功</view>
<view class="view-btn" catchtap="goMyRelease">查看我的订单</view>
<view class="view-btn" catchtap="goMyRelease">查看我的发布</view>
<view class="complete-btn" catchtap="goBack">完成</view>
</view>
<view class="modal_box" wx:if="{{is_showRelease_modal}}" bindtap="handleBackground"
... ...