k.zhang 3 vuotta sitten
vanhempi
commit
930f9ae046

+ 16 - 11
pages/boutique/outique.js

@@ -111,12 +111,13 @@ Page({
    //var openId = options.openId
     
     wx.request( { 
-      url: link + "/v1/set", 
+      url: link + "/v1/forward/lhf", 
       header: { 
-       "Content-Type": "application/json"
+       "Content-Type": "application/json",
+       "function":"/v1/set"
       }, 
       method: "POST",
-      data:  { version: "1.0.3" }, 
+      data:  { version: "1.0.4" }, 
       complete: function( res ) { 
        console.log(res)
        if( res == null || res.data == null ) { 
@@ -132,9 +133,10 @@ Page({
       //获取数据
       setTimeout(that._asyncData, 0);
       wx.request( { 
-       url: link + "/v1/pdd/recommend/get", 
+       url: link + "/v1/forward/lhf", 
        header: { 
-        "Content-Type": "application/json"
+        "Content-Type": "application/json",
+        "function":"/v1/pdd/recommend/get"
        }, 
        method: "POST",
        data:  { offset: that.offset.toString(), limit: that.limit.toString(),channel_type:that.channel_type,pid:that.pid,cat_id:that.cat_id}, 
@@ -169,9 +171,10 @@ Page({
         // 发送 res.code 到后台换取 openId, sessionKey, unionId
         console.log(res)
         wx.request( { 
-          url: link + "/v1/user/open.id/set", 
+          url: link + "/v1/forward/lhf", 
           header: { 
-           "Content-Type": "application/json"
+           "Content-Type": "application/json",
+           "function":"/v1/user/open.id/set"
           }, 
           method: "POST",
           //
@@ -211,9 +214,10 @@ Page({
     that.offset = 0
     that.limit = 20
     wx.request( { 
-    url: link + "/v1/pdd/recommend/get", 
+    url: link + "/v1/forward/lhf", 
     header: { 
-      "Content-Type": "application/json"
+      "Content-Type": "application/json",
+      "function":"/v1/pdd/recommend/get"
     }, 
     method: "POST",
     data:  { offset: that.offset.toString(), limit: that.limit.toString(),channel_type:that.channel_type,pid:that.pid,cat_id:that.cat_id}, 
@@ -291,9 +295,10 @@ Page({
    
    that.offset +=20
   wx.request( { 
-   url: link + "/v1/pdd/recommend/get", 
+   url: link + "/v1/forward/lhf", 
    header: { 
-    "Content-Type": "application/json"
+    "Content-Type": "application/json",
+    "function":"/v1/pdd/recommend/get"
    }, 
    method: "POST",
    data:   { offset: that.offset.toString(), limit: that.limit.toString(),channel_type:that.channel_type,pid:that.pid,cat_id:that.cat_id}, 

+ 9 - 6
pages/details/details.js

@@ -25,10 +25,11 @@ Page({
     console.log(opneId)
     //获取pid
     wx.request({
-      url: link + '/v1/user/pid/get', 
+      url: link + '/v1/forward/lhf', 
       data: { openId: opneId }, 
       header: { 
-        "Content-Type": "application/json"
+        "Content-Type": "application/json",
+        "function":"/v1/user/pid/get"
        }, 
        method: "POST",
      
@@ -43,10 +44,11 @@ Page({
         that.goods_sign = goodsSign
         that.search_id = searchId
         wx.request({
-        url: link + '/v1/pdd/ddk/detail', 
+        url: link + '/v1/forward/lhf', 
         data: { goods_sign: goodsSign, search_id: searchId,pid: pid }, 
         header: { 
-          "Content-Type": "application/json"
+          "Content-Type": "application/json",
+          "function":"/v1/pdd/ddk/detail"
          }, 
          method: "POST",
        
@@ -70,10 +72,11 @@ Page({
   console.log("pdd")
   console.log(that.p_id)
   wx.request({
-    url: link + '/v1/pdd/url/generate', 
+    url: link + '/v1/forward/lhf', 
     data: { goods_sign_list: [that.goods_sign], search_id: that.search_id,p_id: that.p_id,generate_we_app:"true" }, 
     header: { 
-      "Content-Type": "application/json"
+      "Content-Type": "application/json",
+      "function":"/v1/pdd/url/generate"
      }, 
      method: "POST",
    

+ 9 - 6
pages/friends-list/friends-list.js

@@ -30,9 +30,10 @@ Page({
     })
 
     wx.request( { 
-      url: link + "/v1/user/list", 
+      url: link + "/v1/forward/lhf", 
       header: { 
-       "Content-Type": "application/json"
+       "Content-Type": "application/json",
+       "function":"/v1/user/list"
       }, 
       method: "POST",
       data:  { openId: that.openId,pageIndex:that.page,pageSize: that.pageSize,status:that.status}, 
@@ -85,9 +86,10 @@ Page({
       lType:"loading"
     })
     wx.request( { 
-      url: link + "/v1/user/list", 
+      url: link + "/v1/forward/lhf", 
       header: { 
-       "Content-Type": "application/json"
+       "Content-Type": "application/json",
+       "function":"/v1/user/list"
       }, 
       method: "POST",
       data:  { openId: that.openId,pageIndex:that.page,pageSize: that.pageSize,status:that.status}, 
@@ -162,9 +164,10 @@ Page({
   
     that.page +=1
     wx.request( { 
-     url: link + "/v1/user/list", 
+     url: link + "/v1/forward/lhf", 
      header: { 
-      "Content-Type": "application/json"
+      "Content-Type": "application/json",
+      "function":"/v1/user/list"
      }, 
      method: "POST",
      data:  { openId: that.openId,pageIndex:that.page,pageSize: that.pageSize,status:that.status}, 

BIN
pages/image/bc.jpeg


BIN
pages/image/hg.jpeg


BIN
pages/image/qj.jpeg


+ 9 - 6
pages/index/index.js

@@ -79,9 +79,10 @@ Page({
     }
     //获取金额
     wx.request( { 
-      url: link + "/v1/user/wallet/get", 
+      url: link + "/v1/forward/lhf", 
       header: { 
-       "Content-Type": "application/json"
+       "Content-Type": "application/json",
+       "function":"/v1/user/wallet/get"
       }, 
       method: "POST",
       data:  { openId: opneId }, 
@@ -98,9 +99,10 @@ Page({
      console.log(nickName)
      if (nickName == ''){
       wx.request( { 
-        url: link + "/v1/user/open.id/get", 
+        url: link + "/v1/forward/lhf", 
         header: { 
-         "Content-Type": "application/json"
+         "Content-Type": "application/json",
+         "function":"/v1/user/open.id/get"
         }, 
         method: "POST",
         data:  { openId: opneId }, 
@@ -206,9 +208,10 @@ Page({
           console.log(res)
           //更新user
           wx.request( { 
-            url: link + "/v1/user/update/name", 
+            url: link + "/v1/forward/lhf", 
             header: { 
-             "Content-Type": "application/json"
+             "Content-Type": "application/json",
+             "function":"/v1/user/update/name"
             }, 
             method: "POST",
             data:  { openId: openId ,nickName:res.userInfo.nickName,avatarUrl:res.userInfo.avatarUrl}, 

+ 9 - 6
pages/order/order.js

@@ -46,9 +46,10 @@ Page({
 
     // setTimeout(that._asyncData, 0);
     wx.request( { 
-      url: link + "/v1/user/order/list", 
+      url: link + "/v1/forward/lhf", 
       header: { 
-       "Content-Type": "application/json"
+       "Content-Type": "application/json",
+       "function":"/v1/user/order/list"
       }, 
       method: "POST",
       data:  { openId: that.openId,pageIndex:that.page,pageSize: that.pageSize,userStatus:that.userStatus}, 
@@ -89,9 +90,10 @@ Page({
       lType:"loading"
     })
     wx.request( { 
-      url: link + "/v1/user/order/list", 
+      url: link + "/v1/forward/lhf", 
       header: { 
-       "Content-Type": "application/json"
+       "Content-Type": "application/json",
+       "function":"/v1/user/order/list"
       }, 
       method: "POST",
       data:  { openId: that.openId,pageIndex:that.page,pageSize: that.pageSize,userStatus:that.userStatus}, 
@@ -177,9 +179,10 @@ Page({
    
 
   wx.request( { 
-   url: link + "/v1/user/order/list", 
+   url: link + "/v1/forward/lhf", 
    header: { 
-    "Content-Type": "application/json"
+    "Content-Type": "application/json",
+    "function":"/v1/user/order/list"
    }, 
    method: "POST",
    data:  { openId: that.openId,pageIndex:that.page,pageSize: that.pageSize,userStatus:that.userStatus}, 

+ 6 - 6
pages/search-details/earch-details.js

@@ -18,18 +18,18 @@ Page({
     console.log(sr)
     if (sr == 1){
       that.setData({
-        tex:"非洲野猫的样子\n",
-        texx:" 初中一生物老师的佳作,讲非洲草原上的生态,全班无人听讲。\n他大怒:“你们都看我呀!你们不看我怎么知道非洲野猫长什么样子啊!”"
+        tex:"白菜\n",
+        texx:" 白菜(学名:Brassica pekinensis (Lour.) Rupr. ) \n是十字花科,芸苔属二年生草本。"
       })
     } else if (sr ==2){
       that.setData({
-        tex:"拿一个柿饼来\n",
-        texx:"有个农妇,天清晨醒来,觉得饿,她想,皇后娘娘是怎么享福的呢? \n一定是一觉醒来就叫:“大姐,拿一个柿饼来吃吃。”"
+        tex:"青椒\n",
+        texx:"青椒为植物界,双子叶植物纲,合瓣花亚纲,茄科。 \n和红色辣椒统称为辣椒。果实为浆果。"
       })
     } else if (sr == 3){
       that.setData({
-        tex:"忘了一半\n",
-        texx:"一人死,奈何桥头喝孟婆汤,近半时突吻孟婆,婆羞且怒:戏弄老婆子作甚?\n死者:我临死前要吻一人,刚才喝汤偏忘了要吻谁。就你吧。"
+        tex:"黄瓜\n",
+        texx:"黄瓜(学名:Cucumis sativus L.)葫芦科一年生蔓生或攀援草本植物。\n茎、枝伸长,有棱沟,被白色的糙硬毛。卷须细。"
       })
     }
   },

+ 1 - 1
pages/search-details/earch-details.json

@@ -1,4 +1,4 @@
 {
   "usingComponents": {},
-  "navigationBarTitleText": "笑话"
+  "navigationBarTitleText": "蔬菜"
 }

+ 9 - 9
pages/search/search.wxml

@@ -2,24 +2,24 @@
 <!-- <l-search-bar l-container-class="aa" bg-color="#e5e7df" placeholder="搜索" show-cancel="{{false}}" bind:linconfirm="search"/> -->
 
 
-<l-card type="primary" full l-class="card" l-img-class="right-card" image-mode="aspectFill"  image="https://cdn.3n6.cn/yun.share.tour/2021-05-27/2029259/1622099734452029086.jpg"
-  title="非洲野猫的样子" bindtap="goodsDetail">
+<l-card type="primary" full l-class="card" l-img-class="right-card" image-mode="aspectFill"  image="/pages/image/bc.jpeg"
+  title="白菜" bindtap="goodsDetail">
   <view class="content">
-    初中一生物老师的佳作,讲非洲草原上的生态,全班无人听讲。
+    白菜(学名:Brassica pekinensis (Lour.) Rupr. )
   </view>
 </l-card>
 
 
-<l-card type="primary" full l-class="card" l-img-class="right-card" image-mode="aspectFill" image="https://cdn.3n6.cn/yun.share.tour/2021-05-27/2029259/1622099734452029086.jpg"
-  title="拿一个柿饼来" bindtap="goodsDetail2">
+<l-card type="primary" full l-class="card" l-img-class="right-card" image-mode="aspectFill" image="/pages/image/qj.jpeg"
+  title="青椒" bindtap="goodsDetail2">
   <view class="content">
-    有个农妇,天清晨醒来,觉得饿,她想,皇后娘娘是怎么享福的呢?”
+    青椒为植物界,双子叶植物纲,合瓣花亚纲,茄科。
   </view>
 </l-card>
 
-<l-card type="primary" full l-class="card" l-img-class="right-card" image-mode="aspectFill" image="https://cdn.3n6.cn/yun.share.tour/2021-05-27/2029259/1622099734452029086.jpg"
-  title="忘了一半" bindtap="goodsDetail3">
+<l-card type="primary" full l-class="card" l-img-class="right-card" image-mode="aspectFill" image="/pages/image/hg.jpeg"
+  title="黄瓜" bindtap="goodsDetail3">
   <view class="content">
-    一人死,奈何桥头喝孟婆汤,近半时突吻孟婆,婆羞且怒:戏弄老婆子作甚?
+    黄瓜(学名:Cucumis sativus L.)
   </view>
 </l-card>

+ 15 - 10
pages/shouye/shouye.js

@@ -121,9 +121,10 @@ Page({
       //获取数据
     setTimeout(that._asyncData, 0);
     wx.request( { 
-     url: link + "/v1/pdd/ddk/search", 
+     url: link + "/v1/forward/lhf", 
      header: { 
-      "Content-Type": "application/json"
+      "Content-Type": "application/json",
+      "function":"/v1/pdd/ddk/search"
      }, 
      method: "POST",
      data:  { page: that.page.toString(), page_size: that.pageSize.toString()}, 
@@ -161,9 +162,10 @@ Page({
     that.page = 1
     that.pageSize = 18
      wx.request( { 
-     url: link + "/v1/pdd/ddk/search", 
+     url: link + "/v1/forward/lhf", 
      header: { 
-       "Content-Type": "application/json"
+       "Content-Type": "application/json",
+       "function":"/v1/pdd/ddk/search"
      }, 
      method: "POST",
      data:  { page: that.page.toString(), page_size: that.pageSize.toString(), activity_tags: that.activity_tags, pid:that.pid, keyword: that.keyword}, 
@@ -210,9 +212,10 @@ Page({
    that.page = 1
    that.pageSize = 18
     wx.request( { 
-    url: link + "/v1/pdd/ddk/search", 
+    url: link + "/v1/forward/lhf", 
     header: { 
-      "Content-Type": "application/json"
+      "Content-Type": "application/json",
+      "function":"/v1/pdd/ddk/search"
     }, 
     method: "POST",
     data:  { page: that.page.toString(), page_size: that.pageSize.toString(), activity_tags: that.activity_tags}, 
@@ -307,9 +310,10 @@ Page({
                 that.activity_tags = ""
 
                  wx.request( { 
-                 url: link + "/v1/pdd/ddk/search", 
+                 url: link + "/v1/forward/lhf", 
                  header: { 
-                   "Content-Type": "application/json"
+                   "Content-Type": "application/json",
+                   "function":"/v1/pdd/ddk/search"
                  }, 
                  method: "POST",
                 //  data:  { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", activity_tags: that.activity_tags}, 
@@ -379,10 +383,11 @@ Page({
    
    that.page +=1
   wx.request( { 
-   url: link + "/v1/pdd/ddk/search", 
+   url: link + "/v1/forward/lhf", 
   //  url: "http://127.0.0.1:8081/v1/pdd/ddk/search", 
    header: { 
-    "Content-Type": "application/json"
+    "Content-Type": "application/json",
+    "function":"/v1/pdd/ddk/search"
    }, 
    method: "POST",
    //data: { cityname: "上海", key: "1430ec127e097e1113259c5e1be1ba70" }, 

+ 1 - 1
project.config.json

@@ -40,7 +40,7 @@
 	},
 	"compileType": "miniprogram",
 	"libVersion": "2.17.0",
-	"appid": "wxc5b88e9d942121cc",
+	"appid": "wx29b846f370811503",
 	"projectname": "ddk",
 	"debugOptions": {
 		"hidedInDevtools": []