From 6db09b2ff91114c6ca1c8cb25f11494c7d987539 Mon Sep 17 00:00:00 2001 From: GL <954534408@qq.com> Date: Mon, 10 Aug 2020 15:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=9F=E6=8D=A2=E5=9B=BE=E7=89=87=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/banner/index.js | 4 +++- project.config.json | 11 ++++++++--- utils/imgurl.js | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/components/banner/index.js b/components/banner/index.js index 92081ff..6a41cd9 100644 --- a/components/banner/index.js +++ b/components/banner/index.js @@ -24,11 +24,13 @@ Component({ */ methods: { gotobannerdetail: function(e) { + console.log(this.data.list) if (e.currentTarget.dataset.data.type == 3) { // 小程序路径 let indexOf = (e.currentTarget.dataset.data.pagePath).indexOf("="); + console.log(indexOf, "123") let id = (e.currentTarget.dataset.data.pagePath).substring(indexOf); - let type = (e.currentTarget.dataset.data.pagePath).substr(23,2) + let type = (e.currentTarget.dataset.data.pagePath).substr(indexOf + 1, 2)// 2020/7/22 变量获取pagePath中的type console.log(indexOf, id, type); console.log(e.currentTarget.dataset.data.pagePath) if(type == 'cd' || type == 'sd'){ diff --git a/project.config.json b/project.config.json index a98338f..850364e 100644 --- a/project.config.json +++ b/project.config.json @@ -4,16 +4,18 @@ "ignore": [] }, "setting": { - "urlCheck": false, + "urlCheck": true, "es6": true, + "enhance": false, "postcss": true, - "preloadBackgroundData": false, "minified": true, "newFeature": true, "coverView": true, + "nodeModules": false, "autoAudits": false, "showShadowRootInWxmlPanel": true, "scopeDataCheck": false, + "uglifyFileName": false, "checkInvalidKey": true, "checkSiteMap": true, "uploadWithSourceMap": true, @@ -22,7 +24,10 @@ "disablePlugins": [], "outputPath": "" }, - "useCompilerModule": false, + "preloadBackgroundData": false, + "compileHotReLoad": false, + "useIsolateContext": true, + "useCompilerModule": true, "userConfirmedUseCompilerModuleSwitch": false }, "compileType": "miniprogram", diff --git a/utils/imgurl.js b/utils/imgurl.js index be7f628..c351b5f 100644 --- a/utils/imgurl.js +++ b/utils/imgurl.js @@ -1,4 +1,4 @@ -const baseUrl = 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/' +const baseUrl = 'https://formall.oss-accelerate.aliyuncs.com/cimg/' module.exports = { 'act': { 'url': baseUrl + 'act.png',