123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- import httpRequestApi from '../../../utils/APIClient';
- const app = getApp()
- Page({
-
- data: {
- recommendList: []
- },
-
- groupDetail:function ({currentTarget}) {
- const productId = currentTarget.dataset.productid;
- const id = currentTarget.dataset.id;
- const groupId = currentTarget.dataset.groupid;
- const ind = currentTarget.dataset.ind;
-
- wx.navigateTo({
- url: `/pages/groupPage/group-details/group-details?productId=${productId}&id=${id}&groupId=${groupId}`
- })
-
-
-
-
-
-
-
-
-
- },
-
- onLoad: function (options) {
- if (app.globalData.isIOS) {
- wx.redirectTo({
- url: '../../index/index'
- })
- return
- }
- wx.setNavigationBarTitle({
- title: '优惠团购'
- })
-
- httpRequestApi.getGroupList().success( (res) => {
- console.log('推荐团购',res.data.data)
- this.setData({
- recommendList: res.data.data
- })
- }).fail((error) => {
- console.log('错误',error)
- })
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- },
-
- onShareAppMessage: function () {
- }
- })
|