k.zhang 4 lat temu
rodzic
commit
258bc8832a

+ 2 - 2
pages/details/details.js

@@ -23,7 +23,7 @@ Page({
     that.goods_sign = goodsSign
     that.search_id = searchId
     wx.request({
-    url: 'http://49.234.19.130:8081/v1/pdd/ddk/detail', 
+    url: 'https://www.shisanmiao.com/v1/pdd/ddk/detail', 
     data: { goods_sign: goodsSign, search_id: searchId,pid: pid }, 
     header: { 
       "Content-Type": "application/json"
@@ -45,7 +45,7 @@ Page({
   console.log("pdd")
   
   wx.request({
-    url: 'http://49.234.19.130:8081/v1/pdd/url/generate', 
+    url: 'https://www.shisanmiao.com/v1/pdd/url/generate', 
     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"

+ 1 - 1
pages/details/details.wxml

@@ -20,7 +20,7 @@
     </view>
     <view class="goodsPrice">
       <text class="jprice">劵后价¥{{(item.min_group_price-item.coupon_discount)/100}}元</text>  
-      <l-button plain="{{true}}" type="error"  width="50" height="40" class="fanli"  >返利{{item.promotion_rate/100}}元</l-button>
+      <!-- <l-button plain="{{true}}" type="error"  width="50" height="40" class="fanli"  >返利{{item.promotion_rate/100}}元</l-button> -->
     </view>
     <view class="goodsbtm">
       <text class="yprice">原价¥{{item.min_group_price/100}} </text>

+ 5 - 1
pages/search/search.js

@@ -8,11 +8,15 @@ Page({
 
   },
 
+  onShow: function(){
+    wx.hideHomeButton()
+  },
+
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
-
+    wx.hideHomeButton()
   },
 
   /**

+ 2 - 2
pages/search/search.wxml

@@ -10,14 +10,14 @@
 </l-card>
 
 
-<l-card type="primary" full l-class="card" l-img-class="right-card" image-mode="aspectFit" image="https://cdn.3n6.cn/yun.share.tour/2021-05-27/2029259/1622099734452029086.jpg"
+<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="做一个热爱生活的人!">
   <view class="content">
     大雄要死掉了,他对妻子说:我死之后你找一个男人我就在地下打一一个滚。说完就咽气了。某天...
   </view>
 </l-card>
 
-<l-card type="primary" full l-class="card" l-img-class="right-card" image-mode="" image="https://cdn.3n6.cn/yun.share.tour/2021-05-27/2029259/1622099734452029086.jpg"
+<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="做一个热爱生活的人!">
   <view class="content">
     大雄要死掉了,他对妻子说:我死之后你找一个男人我就在地下打一一个滚。说完就咽气了。某天...

+ 17 - 14
pages/shouye/shouye.js

@@ -116,12 +116,12 @@ Page({
     that.pageSize = 18
         
     wx.request( { 
-      url: "http://49.234.19.130:8081/v1/set", 
+      url: "https://www.shisanmiao.com/v1/set", 
       header: { 
        "Content-Type": "application/json"
       }, 
       method: "POST",
-      data:  { version: "1.0.1" }, 
+      data:  { version: "1.0.0" }, 
       complete: function( res ) { 
        console.log(res)
        if( res == null || res.data == null ) { 
@@ -129,7 +129,10 @@ Page({
         return; 
        } 
        if (res.data.data.type == "true"){
-          wx.navigateTo({
+          // wx.reLanch({
+          //   url: 'pages/search/search'
+          // })
+          wx.redirectTo({
             url: '../search/search'
           })
        }else{
@@ -137,12 +140,12 @@ Page({
         //获取数据
       setTimeout(that._asyncData, 0);
       wx.request( { 
-       url: "http://49.234.19.130:8081/v1/pdd/ddk/search", 
+       url: "https://www.shisanmiao.com/v1/pdd/ddk/search", 
        header: { 
         "Content-Type": "application/json"
        }, 
        method: "POST",
-       data:  { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true" }, 
+       data:  { page: that.page.toString(), page_size: that.pageSize.toString()}, 
        complete: function( res ) { 
         wx.hideLoading();
         console.log(res)
@@ -186,12 +189,12 @@ Page({
     that.page = 1
     that.pageSize = 18
      wx.request( { 
-     url: "http://49.234.19.130:8081/v1/pdd/ddk/search", 
+     url: "https://www.shisanmiao.com/v1/pdd/ddk/search", 
      header: { 
        "Content-Type": "application/json"
      }, 
      method: "POST",
-     data:  { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", activity_tags: that.activity_tags, pid:that.pid, keyword: that.keyword}, 
+     data:  { page: that.page.toString(), page_size: that.pageSize.toString(), activity_tags: that.activity_tags, pid:that.pid, keyword: that.keyword}, 
      complete: function( res ) { 
        wx.hideLoading();
        console.log(res)
@@ -235,12 +238,12 @@ Page({
    that.page = 1
    that.pageSize = 18
     wx.request( { 
-    url: "http://49.234.19.130:8081/v1/pdd/ddk/search", 
+    url: "https://www.shisanmiao.com/v1/pdd/ddk/search", 
     header: { 
       "Content-Type": "application/json"
     }, 
     method: "POST",
-    data:  { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", activity_tags: that.activity_tags}, 
+    data:  { page: that.page.toString(), page_size: that.pageSize.toString(), activity_tags: that.activity_tags}, 
     complete: function( res ) { 
       wx.hideLoading();
       console.log(res)
@@ -269,7 +272,7 @@ Page({
     var that=this
     var currentPage=that.data.page+1;
     wx.request({
-      url: 'http://49.234.19.130:8081/v1/pdd/ddk/search', 
+      url: 'https://www.shisanmiao.com/v1/pdd/ddk/search', 
       data: {
         listId:that.data.listId,
         pageSize:10,
@@ -326,13 +329,13 @@ Page({
                 that.activity_tags = ""
 
                  wx.request( { 
-                 url: "http://49.234.19.130:8081/v1/pdd/ddk/search", 
+                 url: "https://www.shisanmiao.com/v1/pdd/ddk/search", 
                  header: { 
                    "Content-Type": "application/json"
                  }, 
                  method: "POST",
                 //  data:  { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", activity_tags: that.activity_tags}, 
-                data: { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", pid:that.pid, activity_tags: that.activity_tags,keyword: that.keyword}, 
+                data: { page: that.page.toString(), page_size: that.pageSize.toString(), pid:that.pid, activity_tags: that.activity_tags,keyword: that.keyword}, 
                  complete: function( res ) { 
                    wx.hideLoading();
                   
@@ -398,14 +401,14 @@ Page({
    
    that.page +=1
   wx.request( { 
-   url: "http://49.234.19.130:8081/v1/pdd/ddk/search", 
+   url: "https://www.shisanmiao.com/v1/pdd/ddk/search", 
   //  url: "http://127.0.0.1:8081/v1/pdd/ddk/search", 
    header: { 
     "Content-Type": "application/json"
    }, 
    method: "POST",
    //data: { cityname: "上海", key: "1430ec127e097e1113259c5e1be1ba70" }, 
-   data:  { page: that.page.toString(), page_size: that.pageSize.toString(),with_coupon:"true", activity_tags: that.activity_tags,keyword:that.keyword,pid:that.pid}, 
+   data:  { page: that.page.toString(), page_size: that.pageSize.toString(), activity_tags: that.activity_tags,keyword:that.keyword,pid:that.pid}, 
    complete: function( res ) { 
     wx.hideLoading();
     console.log(res)

+ 2 - 2
pages/shouye/shouye.wxml

@@ -17,8 +17,8 @@
     </view>
     <view class="containertag">
       <l-tag plain="{{true}}" font-color="#d81e06" shape="circle" size="medium"  l-class="tag" class="describe" >{{item.coupon_discount/100}}元券</l-tag>
-      <l-tag plain="{{true}}" font-color="#d81e06" shape="circle" size="medium"  l-class="tag"  class="fanli">返利{{item.promotion_rate/100}}</l-tag>
-     
+      <!-- <l-tag plain="{{true}}" font-color="#d81e06" shape="circle" size="medium"  l-class="tag"  class="fanli">返利{{item.promotion_rate/100}}</l-tag>
+      -->
     </view>
     <view class="price-v">
      <text class="price">劵后¥{{(item.min_group_price-item.coupon_discount)/100}}</text> <text class="yprice">原价{{item.min_group_price/100}}</text>  

+ 3 - 3
project.config.json

@@ -4,7 +4,7 @@
     "ignore": []
   },
   "setting": {
-    "urlCheck": false,
+    "urlCheck": true,
     "es6": true,
     "enhance": true,
     "postcss": true,
@@ -23,7 +23,7 @@
     "compileHotReLoad": false,
     "useMultiFrameRuntime": true,
     "useApiHook": true,
-    "useApiHostProcess": true,
+    "useApiHostProcess": false,
     "babelSetting": {
       "ignore": [],
       "disablePlugins": [],
@@ -39,7 +39,7 @@
   },
   "compileType": "miniprogram",
   "libVersion": "2.17.0",
-  "appid": "wx202109e32b5cbd37",
+  "appid": "wxc5b88e9d942121cc",
   "projectname": "ddk",
   "debugOptions": {
     "hidedInDevtools": []