|
|
@ -2,7 +2,6 @@ import { getFactoryPrice, getProxyOrderList } from "../../../api/ztb" |
|
|
import { getPreferList, getInformationList } from "../../../api/moment" |
|
|
import { getPreferList, getInformationList } from "../../../api/moment" |
|
|
const storage = require('../../../utils/storage') |
|
|
const storage = require('../../../utils/storage') |
|
|
const util = require('../../../utils/util') |
|
|
const util = require('../../../utils/util') |
|
|
const event = require('../../../utils/event') |
|
|
|
|
|
const tdsdk = require('../../../libs/tdweapp.js') |
|
|
const tdsdk = require('../../../libs/tdweapp.js') |
|
|
const app = getApp() |
|
|
const app = getApp() |
|
|
const limit = 8 |
|
|
const limit = 8 |
|
|
@ -51,12 +50,13 @@ Page({ |
|
|
this.setData({searchList: rearchStringList, keyIndex: 0 }) |
|
|
this.setData({searchList: rearchStringList, keyIndex: 0 }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
event.on('EventMessage', this, this.onEvent) |
|
|
|
|
|
}, |
|
|
}, |
|
|
onEvent: function (message) { |
|
|
|
|
|
if(message.what == 223){ |
|
|
|
|
|
this.setData({ visible: true }) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
needVip: function () { |
|
|
|
|
|
this.setData({ visible: true }) |
|
|
|
|
|
}, |
|
|
|
|
|
onImageClick: function(){ |
|
|
|
|
|
this.setData({ visible: false }) |
|
|
|
|
|
util.navigateTo('/pages/ztbvip/index') |
|
|
}, |
|
|
}, |
|
|
onClose: function(){ |
|
|
onClose: function(){ |
|
|
this.setData({ visible: false }) |
|
|
this.setData({ visible: false }) |
|
|
@ -243,7 +243,6 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
onUnload: function() { |
|
|
onUnload: function() { |
|
|
tdsdk.Page.onUnload() |
|
|
tdsdk.Page.onUnload() |
|
|
event.remove('EventMessage', this) |
|
|
|
|
|
if(rearchStringList.length){ |
|
|
if(rearchStringList.length){ |
|
|
storage.put('mall-search', rearchStringList.toString()) |
|
|
storage.put('mall-search', rearchStringList.toString()) |
|
|
} |
|
|
} |
|
|
|