|
...
|
...
|
@@ -62,7 +62,12 @@ Page({ |
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
//返回我的订单页面
|
|
|
|
navEvent(){
|
|
|
|
wx.redirectTo({
|
|
|
|
url: '/pages/me/list',
|
|
|
|
})
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
|
*/
|
|
...
|
...
|
@@ -221,13 +226,18 @@ Page({ |
|
|
|
},
|
|
|
|
cookbook() {
|
|
|
|
if (this.data.detail.order && this.data.detail.order.cookbooklist.length > 0) {
|
|
|
|
wx.navigateTo({
|
|
|
|
url: util.http_build_query({
|
|
|
|
rid: this.id,
|
|
|
|
oid: this.data.detail.order.id,
|
|
|
|
identity: 1
|
|
|
|
}, '/pack-cookbook/pages/success_new')
|
|
|
|
});
|
|
|
|
let cookbookObj = {
|
|
|
|
rid: this.id,
|
|
|
|
oid: this.data.detail.order.id,
|
|
|
|
sellerName:this.detail.seller.sellername,
|
|
|
|
sid:this.detail.seller.id,
|
|
|
|
identity: '1',
|
|
|
|
hasSuccess:'1',
|
|
|
|
}
|
|
|
|
console.log('跳转到下单页携带参数',{...cookbookObj});
|
|
|
|
wx.navigateTo({
|
|
|
|
url: `/pack-cookbook/pages/success_new?cookbookObj=${JSON.stringify(cookbookObj)}`,
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
App.Advance.CreateOrder({
|
|
|
|
rid: this.id,
|
|
...
|
...
|
@@ -241,8 +251,9 @@ Page({ |
|
|
|
rid: this.id,
|
|
|
|
oid: res.data.id,
|
|
|
|
identity: 1,
|
|
|
|
sid: res.data.sellerid
|
|
|
|
}, '/pack-cookbook/pages/index_news')
|
|
|
|
sid:this.detail.sid,
|
|
|
|
sellerName: this.detail.seller.sellername,
|
|
|
|
}, '/pack-cookbook/pages/index_new')
|
|
|
|
});
|
|
|
|
})
|
|
|
|
}
|
...
|
...
|
|