|
@@ -32,7 +32,7 @@ Page({
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
- onLoad: async function () {
|
|
|
+ onLoad: async function (options) {
|
|
|
console.log(this)
|
|
|
const isAuth = await app.isAuth()
|
|
|
if (!isAuth) {
|
|
@@ -40,6 +40,8 @@ Page({
|
|
|
url: '/pages/prompt/prompt?page=' + this.route,
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
// 获取全部列表
|
|
@@ -200,9 +202,6 @@ Page({
|
|
|
showOrderInfo: async function (e) {
|
|
|
|
|
|
var orderId = e.currentTarget.dataset.orderid;
|
|
|
- console.log(orderId)
|
|
|
- var status = e.currentTarget.dataset.status;
|
|
|
- var writeStatus = e.currentTarget.dataset.writestatus;
|
|
|
wx.navigateTo({
|
|
|
url: '../order/order?id=' + orderId,
|
|
|
})
|
|
@@ -220,6 +219,10 @@ Page({
|
|
|
*/
|
|
|
onShow: async function () {
|
|
|
await this.getAllOrderList()
|
|
|
+ let activeTab = this.data.activeTab;
|
|
|
+ if(activeTab==2){
|
|
|
+ await this.getcommentOffOrderList()
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
/**
|