作者 LXY
@@ -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,
@@ -159,7 +159,6 @@ Page({ @@ -159,7 +159,6 @@ Page({
159 console.log(tempRist) 159 console.log(tempRist)
160 // 已经添加的主险 160 // 已经添加的主险
161 let tempMain_list = Object.assign(this.data.main_array, {}) 161 let tempMain_list = Object.assign(this.data.main_array, {})
162 - console.log(type)  
163 if (type == 'zhuxian') { 162 if (type == 'zhuxian') {
164 if (tempMain_list.length > 0) { 163 if (tempMain_list.length > 0) {
165 for (let i in tempProjectlist) { 164 for (let i in tempProjectlist) {
@@ -168,6 +167,7 @@ Page({ @@ -168,6 +167,7 @@ Page({
168 tempProjectlist[i].choose_status = true 167 tempProjectlist[i].choose_status = true
169 for (let g in tempProjectlist[i].title) { 168 for (let g in tempProjectlist[i].title) {
170 tempProjectlist[i].title[g].t_id == tempMain_list[j].t_id ? tempProjectlist[i].title[g].label_state = true : '' 169 tempProjectlist[i].title[g].t_id == tempMain_list[j].t_id ? tempProjectlist[i].title[g].label_state = true : ''
  170 +
171 } 171 }
172 } 172 }
173 } 173 }
@@ -181,7 +181,7 @@ Page({ @@ -181,7 +181,7 @@ Page({
181 tempProjectlist[i].choose_status = true 181 tempProjectlist[i].choose_status = true
182 for (let g in tempProjectlist[i].title) { 182 for (let g in tempProjectlist[i].title) {
183 console.log(tempProjectlist[i].title[g]) 183 console.log(tempProjectlist[i].title[g])
184 - tempProjectlist[i].title[g].t_id == tempMain_list[j].t_id ? tempProjectlist[i].title[g].label_state = true : '' 184 + tempProjectlist[i].title[g].t_id == tempRist[j].t_id ? tempProjectlist[i].title[g].label_state = true : ''
185 } 185 }
186 } 186 }
187 } 187 }
@@ -839,7 +839,7 @@ Page({ @@ -839,7 +839,7 @@ Page({
839 var FamilyId = this.data.FamilyId 839 var FamilyId = this.data.FamilyId
840 let url = 'counselor/familyname' 840 let url = 'counselor/familyname'
841 let params = { 841 let params = {
842 - FamilyId: FamilyId || id, 842 + FamilyId: FamilyId||id,
843 } 843 }
844 app.post(url, params).then((res) => { 844 app.post(url, params).then((res) => {
845 // console.log(res) 845 // console.log(res)
@@ -1149,12 +1149,9 @@ Page({ @@ -1149,12 +1149,9 @@ Page({
1149 1149
1150 //获取编辑保单接口 1150 //获取编辑保单接口
1151 getlistVerify(id) { 1151 getlistVerify(id) {
1152 - wx.setNavigationBarTitle({  
1153 - title: '编辑保单',  
1154 - })  
1155 let url = 'counselor/infordef' 1152 let url = 'counselor/infordef'
1156 let params = { 1153 let params = {
1157 - InfoId: this.data.inforid || id, 1154 + InfoId: this.data.inforid||id,
1158 } 1155 }
1159 app.post(url, params).then((res) => { 1156 app.post(url, params).then((res) => {
1160 if (res.data.code == 200) { 1157 if (res.data.code == 200) {
@@ -1232,35 +1229,18 @@ Page({ @@ -1232,35 +1229,18 @@ Page({
1232 1229
1233 this.ensureProjectList() 1230 this.ensureProjectList()
1234 let that = this; 1231 let that = this;
1235 - // this.setData({  
1236 - // def_id: options.def_id,  
1237 - // inforid: options.inforid,  
1238 - // FamilyId: options.FamilyId,  
1239 - // recognizee_name: options.name  
1240 - // })  
1241 - // if (options.inforid == undefined) {  
1242 - // this.setData({  
1243 - // inforid: 0  
1244 - // })  
1245 - // }  
1246 - options.inforid ? (that.getlistVerify(options.inforid), that.setData({ 1232 + options.inforid ? (that.getlistVerify(options.inforid),that.setData({
1247 inforid: options.inforid, 1233 inforid: options.inforid,
1248 edit_state: true 1234 edit_state: true
1249 - })) : "" 1235 + }),wx.setNavigationBarTitle({
  1236 + title: '编辑保单',
  1237 + })): ""
1250 options.def_id ? that.setData({ 1238 options.def_id ? that.setData({
1251 def_id: options.def_id, 1239 def_id: options.def_id,
1252 }) : "" 1240 }) : ""
1253 - options.FamilyId ? (that.familyMember(options.FamilyId), that.setData({ 1241 + options.FamilyId ? (that.familyMember(options.FamilyId),that.setData({
1254 FamilyId: options.FamilyId 1242 FamilyId: options.FamilyId
1255 - })) : '';  
1256 -  
1257 - // if (options.FamilyId != '') {  
1258 - // this.familyMember()  
1259 - // }  
1260 - // if (options.inforid != undefined) {  
1261 - // this.getlistVerify()  
1262 - // }  
1263 - 1243 + })):'';
1264 if (wx.getStorageSync('storge_state') && options.inforid == undefined) { 1244 if (wx.getStorageSync('storge_state') && options.inforid == undefined) {
1265 this.getStorage() 1245 this.getStorage()
1266 } 1246 }
@@ -1314,4 +1294,4 @@ Page({ @@ -1314,4 +1294,4 @@ Page({
1314 onShareAppMessage: function() { 1294 onShareAppMessage: function() {
1315 1295
1316 } 1296 }
1317 -})  
  1297 + })
@@ -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",