作者 朱振飞

保单修改

@@ -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",