Browse Source

小程序:商家端-商品添加api

panyong 2 years ago
parent
commit
eed3869b9c
1 changed files with 1 additions and 22 deletions
  1. 1 22
      htmldev/wxMini/pages/businessHome/businessHome.js

+ 1 - 22
htmldev/wxMini/pages/businessHome/businessHome.js

@@ -83,28 +83,7 @@ Page({
   },
   async fetchShopInfo() {
     try {
-      // const { status, data } = await getShopInfo()
-      const { status, data, msg } = {
-        'status': true,
-        'data': {
-          'products': [
-            {
-              'product_title': '测试商品',
-              'product_price': 9000,
-              'id': 2,
-              'created_at': '2022-09-14 16:45:54'
-            }
-          ],
-          'user_nickname': 'sd',
-          'user_phone': '18768452697',
-          'user_head_img_url': 'sdsff',
-          'id': 1,
-          'product_total': 1
-        },
-        'code': 200,
-        'msg': '',
-        'url': ''
-      }
+      const { status, data, msg } = await getShopInfo()
       if (status) {
         this.setData({
           shopInfo: data,