123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- import {get,post} from '../../../utils/http.js'
- Page({
-
- data: {
- store_id:'',
- groupList:'',
- },
-
- onLoad(options) {
-
- this.setData({
- store_id:wx.getStorageSync('store_id')
- })
-
- this.getGroupList()
- },
-
- onReady() {
- },
-
- onShow() {
- },
-
- onHide() {
- },
-
- onUnload() {
- },
-
- onPullDownRefresh() {
- },
-
- onReachBottom() {
- },
-
- onShareAppMessage() {
- },
-
- getGroupList(){
- get('v2/api/grouping/list',{
- store_id:this.data.store_id||wx.getStorageSync('store_id')
- },(res)=>{
- if(res.code==200){
- this.setData({
- groupList:res.data
- })
- }
- })
- },
-
- goRecord(){
- wx.navigateTo({
- url: '/subPackagesB/pages/groupRecord/groupRecord',
- })
- },
-
- goExplain(){
- wx.navigateTo({
- url: '/subPackagesB/pages/groupExplain/groupExplain',
- })
- },
-
- goGoodsGroup(e){
- let id = e.currentTarget.dataset.id
- wx.navigateTo({
- url: `/subPackagesB/pages/groupDetail/groupDetail?id=${id}`,
- })
- }
- })
|