Browse Source

[砍价][修改]:[砍价详情页面修改,砍价下拉刷新的bug]

tags/安徽版C.4.1.6最终版
meo 6 years ago
parent
commit
50265336d8
1 changed files with 4 additions and 17 deletions
  1. +4
    -17
      pages/bargain/bargainDatail/bargainDatail.js

+ 4
- 17
pages/bargain/bargainDatail/bargainDatail.js View File

@@ -32,7 +32,6 @@ Page({
*/
onLoad: function(options) {
let that = this;
console.log(options)
if (options.orderId || options.orderId && options.from == 'discount') {
if (options.from) {
that.setData({
@@ -44,6 +43,7 @@ Page({
orderId: options.orderId
})
}
app.globalData.wmorder = options.orderId
that.pressOrderDetail(options.orderId);
}
this.getUserInfo()
@@ -228,10 +228,6 @@ Page({
}, 1000)
},





// 时间格式化输出,如11:03 25:19 每1s都会调用一次
dateformat(micro_second) {
// 总秒数
@@ -728,18 +724,9 @@ Page({
*/
onPullDownRefresh: function(e) {
let that = this;
if (that.data.orderId || that.data.orderId && that.data.from == 'discount') {
if (that.data.from) {
that.setData({
orderId: that.data.orderId,
from: "discount"
})
} else {
that.setData({
orderId: that.data.orderId
})
}
that.pressOrderDetail(that.data.orderId);
console.log(app.globalData.wmorder);
if (app.globalData.wmorder) {
that.pressOrderDetail(app.globalData.wmorder);
}
},
onShareAppMessage: function(options) {


Loading…
Cancel
Save