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',