From be5fb211d502ca106a5e927888de4510b6df7d40 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期二, 27 六月 2023 14:36:37 +0800
Subject: [PATCH] no message

---
 public/html/fengqiangbang.html |   40 +++++++++++++++++++++++++++++++++-------
 1 files changed, 33 insertions(+), 7 deletions(-)

diff --git a/public/html/fengqiangbang.html b/public/html/fengqiangbang.html
index 8a8bdb4..3571d34 100644
--- a/public/html/fengqiangbang.html
+++ b/public/html/fengqiangbang.html
@@ -29,13 +29,27 @@
         
         var _config = {
             appKey: 'bkuibk',//姝ゅ鏇挎崲鎴愮敤鎴穉ppKey
-            jumpGoodsUrl: function (items) {   //榛樿鐩存帴杞摼
+            jumpGoodsUrl: function (items,sourceType) {   //榛樿鐩存帴杞摼
+                var url='/pages/goods/goodsDetail?id=' + items.goodsid;
+                switch(sourceType)
+                {
+                    case "jd":
+                       var itemsStr=Infoformat(JSON.stringify(items));
+                        url='/pages/goods/goodsDetail?sourcefrom=fqb&info=' + encodeURIComponent(itemsStr)
+                        break;
+                }
                 uni.navigateTo({
-                  url: '/pages/goods/goodsDetail?id=' + items.goodsid
+                  url: url
                 });
-              //  return '/pages/goods/goodsDetail?id=' + items.goodsid; //鏇挎崲涓鸿缁嗛〉闈㈢殑鍦板潃
             }
         };
+        function Infoformat(info){
+            let formatObj = info.replace(/\%/g,"%25")
+            formatObj = info.replace(/\#/g,"%23")
+            formatObj = info.replace(/\&/g,"%26")
+            formatObj = info.replace(/\?/g,"%3F")
+            return formatObj;
+        }
     </script>
     <style>
         body{
@@ -366,7 +380,7 @@
                                             <span>{{item.dtitle}}</span>
                                         </div>
                                         <div class="lable" style="margin-bottom: 12px;">
-                                            <div class="coupon" style="display: inline-flex;">
+                                            <div v-if="item.quanJine>0" class="coupon" style="display: inline-flex;">
                                                 <span>鍒�</span>{{item.quanJine}}鍏�
                                             </div>
                                             <div style="margin-left:10px;background: linear-gradient(-90deg, #7619EC, #A429F3);" class="coupon" style="display: inline-flex;">
@@ -418,9 +432,9 @@
             ss:0,
             cid:0,
             type:1,
-            posturl:'http://dfg.shop.com',
+            //posturl:'http://dfg.shop.com',
            // posturl:'http://dfgapp.ushopvip.com',
-            //posturl:'http://appapitest.ushopvip.com',
+            posturl:'http://appapitest.ushopvip.com',
             platlist:[
                 {
                     id:"tb",
@@ -447,7 +461,15 @@
         methods:{
             handleCdetailFavorite: function (items) {
                 if(_config.jumpGoodsUrl){
-                    _config.jumpGoodsUrl(items);
+                    var faction='t';
+                    switch(this.platid)
+                    {
+                        case "tb":faction="t";break;
+                        case "jd":faction="j";break;
+                        case "pdd":faction="p";break;
+                        case "dy":faction="d";break;
+                    }
+                    _config.jumpGoodsUrl(items,this.platid);
                 }
                 return;
                 var params = {
@@ -712,6 +734,10 @@
                 })
             },
             imgFomate:function(img){
+                if(this.platid!='tb')
+                {
+                    return img;
+                }
                 if(img.indexOf('http')!='-1'){
                     return img+'_310x310.jpg'
                 }else{

--
Gitblit v1.9.3