|
@@ -17,24 +17,26 @@ Page({
|
|
loadingMoreHidden: true,
|
|
loadingMoreHidden: true,
|
|
coupons: [],
|
|
coupons: [],
|
|
curPage: 1,
|
|
curPage: 1,
|
|
- pageSize: 20
|
|
|
|
- },
|
|
|
|
- tabClick(e) {
|
|
|
|
- // 商品分类点击
|
|
|
|
- const category = this.data.categories.find(ele => {
|
|
|
|
- return ele.id == e.currentTarget.dataset.id
|
|
|
|
- })
|
|
|
|
- if (category.vopCid1 || category.vopCid2) {
|
|
|
|
- wx.navigateTo({
|
|
|
|
- url: '/pages/goods/list-vop?cid1=' + (category.vopCid1 ? category.vopCid1 : '') + '&cid2=' + (category.vopCid2 ? category.vopCid2 : ''),
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- wx.setStorageSync("_categoryId", category.id)
|
|
|
|
- wx.switchTab({
|
|
|
|
- url: '/pages/category/category',
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ pageSize: 20,
|
|
|
|
+ province: "XX省",
|
|
|
|
+ city:"XX市"
|
|
},
|
|
},
|
|
|
|
+ // tabClick(e) {
|
|
|
|
+ // // 商品分类点击
|
|
|
|
+ // const category = this.data.categories.find(ele => {
|
|
|
|
+ // return ele.id == e.currentTarget.dataset.id
|
|
|
|
+ // })
|
|
|
|
+ // if (category.vopCid1 || category.vopCid2) {
|
|
|
|
+ // wx.navigateTo({
|
|
|
|
+ // url: '/pages/goods/list-vop?cid1=' + (category.vopCid1 ? category.vopCid1 : '') + '&cid2=' + (category.vopCid2 ? category.vopCid2 : ''),
|
|
|
|
+ // })
|
|
|
|
+ // } else {
|
|
|
|
+ // wx.setStorageSync("_categoryId", category.id)
|
|
|
|
+ // wx.switchTab({
|
|
|
|
+ // url: '/pages/category/category',
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
tabClickCms(e) {
|
|
tabClickCms(e) {
|
|
// 文章分类点击
|
|
// 文章分类点击
|
|
const category = this.data.cmsCategories[e.currentTarget.dataset.idx]
|
|
const category = this.data.cmsCategories[e.currentTarget.dataset.idx]
|
|
@@ -91,6 +93,30 @@ Page({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onLoad: function(e) {
|
|
onLoad: function(e) {
|
|
|
|
+ wx.request({
|
|
|
|
+ url: 'https://pv.sohu.com/cityjson?ie=utf-8',
|
|
|
|
+ success(res){
|
|
|
|
+ let data = JSON.parse(res.data.split("=")[1].split(";")[0]);
|
|
|
|
+ let ip = data.cip;
|
|
|
|
+ wx.setStorageSync("ip",ip);
|
|
|
|
+ //通过ip获取当前经纬度
|
|
|
|
+ wx.request({
|
|
|
|
+ url: 'https://apis.map.qq.com/ws/location/v1/ip?ip='+ip+'&key=J5JBZ-3H5K3-ZHU3J-3XC2W-2NYPK-75FG4',
|
|
|
|
+ method: 'GET',
|
|
|
|
+ header: {
|
|
|
|
+ 'content-type': 'application/x-www-form-urlencoded'
|
|
|
|
+ },
|
|
|
|
+ success: function (res) {
|
|
|
|
+ wx.setStorageSync("lat",res.data.result.location.lat);
|
|
|
|
+ wx.setStorageSync("lng",res.data.result.location.lng);
|
|
|
|
+ that.setData({
|
|
|
|
+ province: res.data.result.ad_info.province,
|
|
|
|
+ city:res.data.result.ad_info.city
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ })
|
|
wx.showShareMenu({
|
|
wx.showShareMenu({
|
|
withShareTicket: true,
|
|
withShareTicket: true,
|
|
})
|
|
})
|
|
@@ -112,65 +138,69 @@ Page({
|
|
AUTH.authorize().then( aaa => {
|
|
AUTH.authorize().then( aaa => {
|
|
AUTH.bindSeller()
|
|
AUTH.bindSeller()
|
|
TOOLS.showTabBarBadge()
|
|
TOOLS.showTabBarBadge()
|
|
|
|
+ that.kanjiaGoods()
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
AUTH.bindSeller()
|
|
AUTH.bindSeller()
|
|
TOOLS.showTabBarBadge()
|
|
TOOLS.showTabBarBadge()
|
|
|
|
+ that.kanjiaGoods()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.initBanners()
|
|
this.initBanners()
|
|
- this.categories()
|
|
|
|
- this.cmsCategories()
|
|
|
|
|
|
+ // this.categories()
|
|
|
|
+ // this.cmsCategories()
|
|
// https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
// https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
- WXAPI.goodsv2({
|
|
|
|
- recommendStatus: 1
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.code === 0){
|
|
|
|
- that.setData({
|
|
|
|
- goodsRecommend: res.data.result
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- that.getCoupons()
|
|
|
|
- that.getNotice()
|
|
|
|
- that.kanjiaGoods()
|
|
|
|
- that.pingtuanGoods()
|
|
|
|
- this.adPosition()
|
|
|
|
|
|
+
|
|
|
|
+ // WXAPI.goodsv2({
|
|
|
|
+ // recommendStatus: 1
|
|
|
|
+ // }).then(res => {
|
|
|
|
+ // if (res.code === 0){
|
|
|
|
+ // that.setData({
|
|
|
|
+ // goodsRecommend: res.data.result
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+
|
|
|
|
+ // that.getCoupons()
|
|
|
|
+ // that.getNotice()
|
|
|
|
+
|
|
|
|
+ // that.pingtuanGoods()
|
|
|
|
+ // this.adPosition()
|
|
// 读取系统参数
|
|
// 读取系统参数
|
|
- this.readConfigVal()
|
|
|
|
- getApp().configLoadOK = () => {
|
|
|
|
- this.readConfigVal()
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- readConfigVal() {
|
|
|
|
- wx.setNavigationBarTitle({
|
|
|
|
- title: wx.getStorageSync('mallName')
|
|
|
|
- })
|
|
|
|
- this.setData({
|
|
|
|
- mallName:wx.getStorageSync('mallName')?wx.getStorageSync('mallName'):'',
|
|
|
|
- show_buy_dynamic: wx.getStorageSync('show_buy_dynamic')
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- async miaoshaGoods(){
|
|
|
|
- // https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
|
|
- const res = await WXAPI.goodsv2({
|
|
|
|
- miaosha: true
|
|
|
|
- })
|
|
|
|
- if (res.code == 0) {
|
|
|
|
- res.data.result.forEach(ele => {
|
|
|
|
- const _now = new Date().getTime()
|
|
|
|
- if (ele.dateStart) {
|
|
|
|
- ele.dateStartInt = new Date(ele.dateStart.replace(/-/g, '/')).getTime() - _now
|
|
|
|
- }
|
|
|
|
- if (ele.dateEnd) {
|
|
|
|
- ele.dateEndInt = new Date(ele.dateEnd.replace(/-/g, '/')).getTime() -_now
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.setData({
|
|
|
|
- miaoshaGoods: res.data.result
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ // this.readConfigVal()
|
|
|
|
+ // getApp().configLoadOK = () => {
|
|
|
|
+ // this.readConfigVal()
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
|
|
+ // readConfigVal() {
|
|
|
|
+ // wx.setNavigationBarTitle({
|
|
|
|
+ // title: wx.getStorageSync('mallName')
|
|
|
|
+ // })
|
|
|
|
+ // this.setData({
|
|
|
|
+ // mallName:wx.getStorageSync('mallName')?wx.getStorageSync('mallName'):'',
|
|
|
|
+ // show_buy_dynamic: wx.getStorageSync('show_buy_dynamic')
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
|
|
+ // async miaoshaGoods(){
|
|
|
|
+ // // https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
|
|
+ // const res = await WXAPI.goodsv2({
|
|
|
|
+ // miaosha: true
|
|
|
|
+ // })
|
|
|
|
+ // if (res.code == 0) {
|
|
|
|
+ // res.data.result.forEach(ele => {
|
|
|
|
+ // const _now = new Date().getTime()
|
|
|
|
+ // if (ele.dateStart) {
|
|
|
|
+ // ele.dateStartInt = new Date(ele.dateStart.replace(/-/g, '/')).getTime() - _now
|
|
|
|
+ // }
|
|
|
|
+ // if (ele.dateEnd) {
|
|
|
|
+ // ele.dateEndInt = new Date(ele.dateEnd.replace(/-/g, '/')).getTime() -_now
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // this.setData({
|
|
|
|
+ // miaoshaGoods: res.data.result
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
async initBanners(){
|
|
async initBanners(){
|
|
const _data = {}
|
|
const _data = {}
|
|
// 读取头部轮播图
|
|
// 读取头部轮播图
|
|
@@ -200,73 +230,73 @@ Page({
|
|
})
|
|
})
|
|
// 获取购物车数据,显示TabBarBadge
|
|
// 获取购物车数据,显示TabBarBadge
|
|
TOOLS.showTabBarBadge()
|
|
TOOLS.showTabBarBadge()
|
|
- this.goodsDynamic()
|
|
|
|
- this.miaoshaGoods()
|
|
|
|
|
|
+ // this.goodsDynamic()
|
|
|
|
+ // this.miaoshaGoods()
|
|
const refreshIndex = wx.getStorageSync('refreshIndex')
|
|
const refreshIndex = wx.getStorageSync('refreshIndex')
|
|
if (refreshIndex) {
|
|
if (refreshIndex) {
|
|
this.onPullDownRefresh()
|
|
this.onPullDownRefresh()
|
|
wx.removeStorageSync('refreshIndex')
|
|
wx.removeStorageSync('refreshIndex')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- async goodsDynamic(){
|
|
|
|
- const res = await WXAPI.goodsDynamic(0)
|
|
|
|
- if (res.code == 0) {
|
|
|
|
- this.setData({
|
|
|
|
- goodsDynamic: res.data
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- async categories(){
|
|
|
|
- const res = await WXAPI.goodsCategory()
|
|
|
|
- let categories = [];
|
|
|
|
- if (res.code == 0) {
|
|
|
|
- const _categories = res.data.filter(ele => {
|
|
|
|
- return ele.level == 1
|
|
|
|
- })
|
|
|
|
- categories = categories.concat(_categories)
|
|
|
|
- }
|
|
|
|
- this.setData({
|
|
|
|
- categories: categories,
|
|
|
|
- curPage: 1
|
|
|
|
- });
|
|
|
|
- this.getGoodsList(0);
|
|
|
|
- },
|
|
|
|
- async getGoodsList(categoryId, append) {
|
|
|
|
- if (categoryId == 0) {
|
|
|
|
- categoryId = "";
|
|
|
|
- }
|
|
|
|
- wx.showLoading({
|
|
|
|
- "mask": true
|
|
|
|
- })
|
|
|
|
- // https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
|
|
- const res = await WXAPI.goodsv2({
|
|
|
|
- categoryId: categoryId,
|
|
|
|
- page: this.data.curPage,
|
|
|
|
- pageSize: this.data.pageSize
|
|
|
|
- })
|
|
|
|
- wx.hideLoading()
|
|
|
|
- if (res.code == 404 || res.code == 700) {
|
|
|
|
- let newData = {
|
|
|
|
- loadingMoreHidden: false
|
|
|
|
- }
|
|
|
|
- if (!append) {
|
|
|
|
- newData.goods = []
|
|
|
|
- }
|
|
|
|
- this.setData(newData);
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- let goods = [];
|
|
|
|
- if (append) {
|
|
|
|
- goods = this.data.goods
|
|
|
|
- }
|
|
|
|
- for (var i = 0; i < res.data.result.length; i++) {
|
|
|
|
- goods.push(res.data.result[i]);
|
|
|
|
- }
|
|
|
|
- this.setData({
|
|
|
|
- loadingMoreHidden: true,
|
|
|
|
- goods: goods,
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
|
|
+ // async goodsDynamic(){
|
|
|
|
+ // const res = await WXAPI.goodsDynamic(0)
|
|
|
|
+ // if (res.code == 0) {
|
|
|
|
+ // this.setData({
|
|
|
|
+ // goodsDynamic: res.data
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // async categories(){
|
|
|
|
+ // const res = await WXAPI.goodsCategory()
|
|
|
|
+ // let categories = [];
|
|
|
|
+ // if (res.code == 0) {
|
|
|
|
+ // const _categories = res.data.filter(ele => {
|
|
|
|
+ // return ele.level == 1
|
|
|
|
+ // })
|
|
|
|
+ // categories = categories.concat(_categories)
|
|
|
|
+ // }
|
|
|
|
+ // this.setData({
|
|
|
|
+ // categories: categories,
|
|
|
|
+ // curPage: 1
|
|
|
|
+ // });
|
|
|
|
+ // this.getGoodsList(0);
|
|
|
|
+ // },
|
|
|
|
+ // async getGoodsList(categoryId, append) {
|
|
|
|
+ // if (categoryId == 0) {
|
|
|
|
+ // categoryId = "";
|
|
|
|
+ // }
|
|
|
|
+ // wx.showLoading({
|
|
|
|
+ // "mask": true
|
|
|
|
+ // })
|
|
|
|
+ // // https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
|
|
+ // const res = await WXAPI.goodsv2({
|
|
|
|
+ // categoryId: categoryId,
|
|
|
|
+ // page: this.data.curPage,
|
|
|
|
+ // pageSize: this.data.pageSize
|
|
|
|
+ // })
|
|
|
|
+ // wx.hideLoading()
|
|
|
|
+ // if (res.code == 404 || res.code == 700) {
|
|
|
|
+ // let newData = {
|
|
|
|
+ // loadingMoreHidden: false
|
|
|
|
+ // }
|
|
|
|
+ // if (!append) {
|
|
|
|
+ // newData.goods = []
|
|
|
|
+ // }
|
|
|
|
+ // this.setData(newData);
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // let goods = [];
|
|
|
|
+ // if (append) {
|
|
|
|
+ // goods = this.data.goods
|
|
|
|
+ // }
|
|
|
|
+ // for (var i = 0; i < res.data.result.length; i++) {
|
|
|
|
+ // goods.push(res.data.result[i]);
|
|
|
|
+ // }
|
|
|
|
+ // this.setData({
|
|
|
|
+ // loadingMoreHidden: true,
|
|
|
|
+ // goods: goods,
|
|
|
|
+ // });
|
|
|
|
+ // },
|
|
getCoupons: function() {
|
|
getCoupons: function() {
|
|
var that = this;
|
|
var that = this;
|
|
WXAPI.coupons().then(function (res) {
|
|
WXAPI.coupons().then(function (res) {
|
|
@@ -303,35 +333,103 @@ Page({
|
|
this.setData({
|
|
this.setData({
|
|
curPage: 1
|
|
curPage: 1
|
|
});
|
|
});
|
|
- this.getGoodsList(0)
|
|
|
|
|
|
+ this.kanjiaGoodsRefresh()
|
|
|
|
+ // this.kanjiaGoods()
|
|
wx.stopPullDownRefresh()
|
|
wx.stopPullDownRefresh()
|
|
},
|
|
},
|
|
- // 获取砍价商品
|
|
|
|
|
|
+ // 获取热门教员
|
|
async kanjiaGoods(){
|
|
async kanjiaGoods(){
|
|
// https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
// https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
const res = await WXAPI.goodsv2({
|
|
const res = await WXAPI.goodsv2({
|
|
- kanjia: true
|
|
|
|
|
|
+ lat:wx.getStorageSync('lat'),
|
|
|
|
+ lng:wx.getStorageSync('lng'),
|
|
|
|
+ ip:wx.getStorageSync('ip'),
|
|
|
|
+ token:wx.getStorageSync('token')
|
|
});
|
|
});
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
const kanjiaGoodsIds = []
|
|
const kanjiaGoodsIds = []
|
|
- res.data.result.forEach(ele => {
|
|
|
|
|
|
+ res.data.forEach(ele => {
|
|
kanjiaGoodsIds.push(ele.id)
|
|
kanjiaGoodsIds.push(ele.id)
|
|
})
|
|
})
|
|
- const goodsKanjiaSetRes = await WXAPI.kanjiaSet(kanjiaGoodsIds.join())
|
|
|
|
- if (goodsKanjiaSetRes.code == 0) {
|
|
|
|
- res.data.result.forEach(ele => {
|
|
|
|
- const _process = goodsKanjiaSetRes.data.find(_set => {
|
|
|
|
- return _set.goodsId == ele.id
|
|
|
|
- })
|
|
|
|
- if (_process) {
|
|
|
|
- ele.process = 100 * _process.numberBuy / _process.number
|
|
|
|
- ele.process = ele.process.toFixed(0)
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ // const goodsKanjiaSetRes = await WXAPI.kanjiaSet()
|
|
this.setData({
|
|
this.setData({
|
|
- kanjiaList: res.data.result
|
|
|
|
|
|
+ kanjiaList: res.data
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ }else{
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title: res.msg,
|
|
|
|
+ icon:"error",
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // 获取热门教员
|
|
|
|
+ async kanjiaGoodsRefresh(){
|
|
|
|
+ const _this = this
|
|
|
|
+ // https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
|
|
+ const res = await WXAPI.refreshNearTeacherList({
|
|
|
|
+ lat:wx.getStorageSync('lat'),
|
|
|
|
+ lng:wx.getStorageSync('lng'),
|
|
|
|
+ ip:wx.getStorageSync('ip'),
|
|
|
|
+ token:wx.getStorageSync('token')
|
|
|
|
+ });
|
|
|
|
+ if (res.code == 0) {
|
|
|
|
+ wx.request({
|
|
|
|
+ url: 'https://pv.sohu.com/cityjson?ie=utf-8',
|
|
|
|
+ success(res){
|
|
|
|
+ let data = JSON.parse(res.data.split("=")[1].split(";")[0]);
|
|
|
|
+ let ip = data.cip;
|
|
|
|
+ wx.setStorageSync("ip",ip);
|
|
|
|
+ //通过ip获取当前经纬度
|
|
|
|
+ wx.request({
|
|
|
|
+ url: 'https://apis.map.qq.com/ws/location/v1/ip?ip='+ip+'&key=J5JBZ-3H5K3-ZHU3J-3XC2W-2NYPK-75FG4',
|
|
|
|
+ method: 'GET',
|
|
|
|
+ header: {
|
|
|
|
+ 'content-type': 'application/x-www-form-urlencoded'
|
|
|
|
+ },
|
|
|
|
+ success: function (res) {
|
|
|
|
+ wx.setStorageSync("lat",res.data.result.location.lat);
|
|
|
|
+ wx.setStorageSync("lng",res.data.result.location.lng);
|
|
|
|
+
|
|
|
|
+ WXAPI.goodsv2({
|
|
|
|
+ lat:res.data.result.location.lat,
|
|
|
|
+ lng:res.data.result.location.lng,
|
|
|
|
+ ip:ip,
|
|
|
|
+ token:wx.getStorageSync('token')
|
|
|
|
+ }).then(res1 => {
|
|
|
|
+ if (res1.code == 0) {
|
|
|
|
+ const kanjiaGoodsIds = []
|
|
|
|
+ res1.data.forEach(ele => {
|
|
|
|
+ kanjiaGoodsIds.push(ele.id)
|
|
|
|
+ })
|
|
|
|
+ // const goodsKanjiaSetRes = await WXAPI.kanjiaSet()
|
|
|
|
+ _this.setData({
|
|
|
|
+ kanjiaList: res1.data
|
|
|
|
+ })
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title: "刷新成功",
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ that.setData({
|
|
|
|
+ province: res.data.result.ad_info.province,
|
|
|
|
+ city:res.data.result.ad_info.city
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ that.setData({
|
|
|
|
+ province: res.data.result.ad_info.province,
|
|
|
|
+ city:res.data.result.ad_info.city
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title: "刷新失败",
|
|
|
|
+ icon:"error",
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
goCoupons: function (e) {
|
|
goCoupons: function (e) {
|
|
@@ -339,19 +437,19 @@ Page({
|
|
url: "/pages/coupons/index"
|
|
url: "/pages/coupons/index"
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- pingtuanGoods(){ // 获取团购商品列表
|
|
|
|
- const _this = this
|
|
|
|
|
|
+ // pingtuanGoods(){ // 获取团购商品列表
|
|
|
|
+ // const _this = this
|
|
// https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
// https://www.yuque.com/apifm/nu0f75/wg5t98
|
|
- WXAPI.goodsv2({
|
|
|
|
- pingtuan: true
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.code === 0) {
|
|
|
|
- _this.setData({
|
|
|
|
- pingtuanList: res.data.result
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+ // WXAPI.goodsv2({
|
|
|
|
+ // pingtuan: true
|
|
|
|
+ // }).then(res => {
|
|
|
|
+ // if (res.code === 0) {
|
|
|
|
+ // _this.setData({
|
|
|
|
+ // pingtuanList: res.data.result
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
goSearch(){
|
|
goSearch(){
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
url: '/pages/search/index'
|
|
url: '/pages/search/index'
|