|
@@ -19,9 +19,18 @@ Page({
|
|
getDetail: function (e) {
|
|
getDetail: function (e) {
|
|
let id = e.currentTarget.dataset.id
|
|
let id = e.currentTarget.dataset.id
|
|
let cid = e.currentTarget.dataset.cid
|
|
let cid = e.currentTarget.dataset.cid
|
|
- wx.navigateTo({
|
|
|
|
- url: '/pages/orderClassDetail/orderClassDetail?id='+id+'&cid='+cid,
|
|
|
|
- })
|
|
|
|
|
|
+ let type = e.currentTarget.dataset.type
|
|
|
|
+
|
|
|
|
+ if (type == 2) {
|
|
|
|
+ let item = this.data.list.filter(o=>o.id == id)[0]
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: '/pages/pianoOrderDetail/pianoOrderDetail?str=' + JSON.stringify(item)
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: '/pages/orderClassDetail/orderClassDetail?id=' + id + '&cid=' + cid,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -95,7 +104,7 @@ Page({
|
|
if (o.payDate) {
|
|
if (o.payDate) {
|
|
o.payDate = o.payDate.replace('T', ' ').substring(0, 16)
|
|
o.payDate = o.payDate.replace('T', ' ').substring(0, 16)
|
|
}
|
|
}
|
|
- if (o.refundDate ) {
|
|
|
|
|
|
+ if (o.refundDate) {
|
|
o.refundDate = o.refundDate.replace('T', ' ').substring(0, 16)
|
|
o.refundDate = o.refundDate.replace('T', ' ').substring(0, 16)
|
|
}
|
|
}
|
|
})
|
|
})
|