12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- const pages = require('../../mixin/pages')
- Page({
-
- data: {
- ...pages.data(),
- listUrl: '/api/user/goods/shop/list',
- searchForm: {
- key_words: ''
- }
- },
- ...pages.methods,
-
- onLoad(options) {
- this.fetchOrderList()
- },
-
- onReady() {
- },
-
- onShow() {
- this.getTabBar().init()
- },
-
- onHide() {
- },
-
- onUnload() {
- },
-
- onPullDownRefresh() {
- if (this.data.freshing) {
- return
- }
- this.setData({
- freshing: true
- })
- this.bindCallBack()
- },
-
- onReachBottom() {
- this.fetchOrderList()
- },
- bindCallBack() {
- this.refreshOrderList()
- },
- jumpLeavingAMessage() {
- wx.navigateTo({
- url: '/pages/leavingAMessage/leavingAMessage'
- })
- },
- jumpBusinessDetail(e) {
- const { item } = e.currentTarget.dataset
- wx.navigateTo({
- url: '/pages/businessDetail/businessDetail?shop_id=' + item.id
- })
- }
- })
|