正在显示
3 个修改的文件
包含
10 行增加
和
7 行删除
@@ -9,7 +9,7 @@ App({ | @@ -9,7 +9,7 @@ App({ | ||
9 | var promise = new Promise((resolve, reject) => { | 9 | var promise = new Promise((resolve, reject) => { |
10 | let that = this; | 10 | let that = this; |
11 | let postData = data; | 11 | let postData = data; |
12 | - let baseUrl = 'http://insurance.w.bronet.cn/'; | 12 | + let baseUrl = 'https://insurance.w.broteam.cn/'; |
13 | wx.request({ | 13 | wx.request({ |
14 | url: baseUrl + url, | 14 | url: baseUrl + url, |
15 | data: postData, | 15 | data: postData, |
@@ -310,10 +310,12 @@ Page({ | @@ -310,10 +310,12 @@ Page({ | ||
310 | * 生命周期函数--监听页面加载 | 310 | * 生命周期函数--监听页面加载 |
311 | */ | 311 | */ |
312 | onLoad: function(options) { | 312 | onLoad: function(options) { |
313 | - this.setData({ | ||
314 | - cid: options.cid, //顾问ID | ||
315 | - mainid: options.mainid //户主ID | ||
316 | - }) | 313 | + options.cid?(this.setData({ |
314 | + cid: options.cid, | ||
315 | + })):'' | ||
316 | + options.mainid?this.setData({ | ||
317 | + mainid: options.id | ||
318 | + }):'' | ||
317 | this.getData() | 319 | this.getData() |
318 | 320 | ||
319 | cellId = options.cellId; | 321 | cellId = options.cellId; |
@@ -4,11 +4,12 @@ | @@ -4,11 +4,12 @@ | ||
4 | "ignore": [] | 4 | "ignore": [] |
5 | }, | 5 | }, |
6 | "setting": { | 6 | "setting": { |
7 | - "urlCheck": false, | 7 | + "urlCheck": true, |
8 | "es6": true, | 8 | "es6": true, |
9 | "postcss": true, | 9 | "postcss": true, |
10 | "minified": true, | 10 | "minified": true, |
11 | - "newFeature": true | 11 | + "newFeature": true, |
12 | + "autoAudits": false | ||
12 | }, | 13 | }, |
13 | "compileType": "miniprogram", | 14 | "compileType": "miniprogram", |
14 | "libVersion": "2.4.0", | 15 | "libVersion": "2.4.0", |
-
请 注册 或 登录 后发表评论