From ccd5f1004fca69f57b585709c258ff74952e3d19 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Wed, 20 Jan 2021 14:24:21 +0800 Subject: [PATCH] 小程序自定义,要有商家名称 --- components/diy_video/diy_video.js | 2 ++ pages/goods/goodsInfo/goodsInfo.js | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/diy_video/diy_video.js b/components/diy_video/diy_video.js index 9564a86..bb34cac 100644 --- a/components/diy_video/diy_video.js +++ b/components/diy_video/diy_video.js @@ -38,6 +38,8 @@ Component({ var arr = new Array(), arrs = new Array(); arr = text.split('vid='); /*console.log("截取vid后面的"+arr[1]);*/ + if(!arr || arr.length<=0 || !arr[1]) return false; + arrs = arr[1].split('"'); /* console.log("截取&前面的的"+arrs[0]);*/ var vipid = arrs[0]; diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 2f2c3da..bf7e9c2 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -3750,9 +3750,9 @@ Page({ context.setFillStyle("white") context.fillText('强烈推荐', x1 + width+8*unit, y1-1*unit); - context.setFillStyle("black") - context.setFontSize(24 * unit) - context.fillText(getApp().globalData.config.store_name, 40 * unit, 130 * unit); + //context.setFillStyle("black") + //context.setFontSize(24 * unit) + //context.fillText(getApp().globalData.config.store_name, 40 * unit, 130 * unit); } } else { //--昵称--- -- libgit2 0.21.4