From 986da8505aba0da7e717926d70bf327926a28da3 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Fri, 29 Aug 2025 15:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E4=BA=A7=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/info/postProductInfo/index.js | 15 +++++++++++++++ pages/info/postProductInfo/index.wxml | 2 +- pages/info/sceneProductInfo/index.wxml | 9 ++++++++- pages/info/sceneProductInfo/index.wxss | 2 +- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/pages/info/postProductInfo/index.js b/pages/info/postProductInfo/index.js index 1e643e0..7d8f92f 100644 --- a/pages/info/postProductInfo/index.js +++ b/pages/info/postProductInfo/index.js @@ -118,6 +118,10 @@ Page({ resData.parameter_tag_str = resData.parameter_tag.split(',').join(' | ') } + if (resData.supplier_headimg) { + resData.supplier_headimg = that.showImg(resData.supplier_headimg) + } + } catch(e) {} let swiperRange = this.data.swiperRange; @@ -186,6 +190,17 @@ Page({ } }) }, + + showImg (img) { + if (!img) { return img } + if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) { + return img; + } else { + // return "https://test.api.cloud.sz-trip.com"+img + return "https://static.ticket.sz-trip.com" + img; + } + }, + changeAllowance: function () { this.setData({ showAllowance: !this.data.showAllowance diff --git a/pages/info/postProductInfo/index.wxml b/pages/info/postProductInfo/index.wxml index e3ca65f..7397ce9 100644 --- a/pages/info/postProductInfo/index.wxml +++ b/pages/info/postProductInfo/index.wxml @@ -186,7 +186,7 @@ - + {{info.supplier_name}} 进店 diff --git a/pages/info/sceneProductInfo/index.wxml b/pages/info/sceneProductInfo/index.wxml index 38ad34b..ee83019 100644 --- a/pages/info/sceneProductInfo/index.wxml +++ b/pages/info/sceneProductInfo/index.wxml @@ -3,7 +3,14 @@ - + + + + + + diff --git a/pages/info/sceneProductInfo/index.wxss b/pages/info/sceneProductInfo/index.wxss index 39bb9fd..5c0eb15 100644 --- a/pages/info/sceneProductInfo/index.wxss +++ b/pages/info/sceneProductInfo/index.wxss @@ -8,7 +8,7 @@ page { height: 400rpx; } -.swiper image { +.swiper image,.swiper video { height: 400rpx; display: block; width: 100%;