正在显示
26 个修改的文件
包含
273 行增加
和
168 行删除
@@ -16,9 +16,7 @@ Page({ | @@ -16,9 +16,7 @@ Page({ | ||
16 | 16 | ||
17 | 17 | ||
18 | 18 | ||
19 | - /** | ||
20 | - * 生命周期函数--监听页面加载 | ||
21 | - */ | 19 | + |
22 | getaboutdata() { | 20 | getaboutdata() { |
23 | let that = this; | 21 | let that = this; |
24 | let url = 'pubilc/about'; | 22 | let url = 'pubilc/about'; |
@@ -31,71 +29,68 @@ Page({ | @@ -31,71 +29,68 @@ Page({ | ||
31 | aboutdata.picurl = res.data.data.picurl; | 29 | aboutdata.picurl = res.data.data.picurl; |
32 | aboutdata.title = res.data.data.title; | 30 | aboutdata.title = res.data.data.title; |
33 | that.setData({ | 31 | that.setData({ |
34 | - aboutdata: aboutdata | 32 | + aboutdata: aboutdata, |
35 | }) | 33 | }) |
36 | WxParse.wxParse('content', 'html', res.data.data.post_content, that, 5); | 34 | WxParse.wxParse('content', 'html', res.data.data.post_content, that, 5); |
37 | - | ||
38 | } | 35 | } |
39 | - | ||
40 | - // this.setData({ | ||
41 | - // imgUrls: res.data.data | ||
42 | - // }) | ||
43 | }).catch((errMsg) => { | 36 | }).catch((errMsg) => { |
44 | console.log(errMsg) | 37 | console.log(errMsg) |
45 | }) | 38 | }) |
46 | }, | 39 | }, |
47 | 40 | ||
48 | - | ||
49 | - onLoad: function (options) { | 41 | + /** |
42 | + * 生命周期函数--监听页面加载 | ||
43 | + */ | ||
44 | + onLoad: function(options) { | ||
50 | this.getaboutdata(); | 45 | this.getaboutdata(); |
51 | }, | 46 | }, |
52 | 47 | ||
53 | /** | 48 | /** |
54 | * 生命周期函数--监听页面初次渲染完成 | 49 | * 生命周期函数--监听页面初次渲染完成 |
55 | */ | 50 | */ |
56 | - onReady: function () { | 51 | + onReady: function() { |
57 | 52 | ||
58 | }, | 53 | }, |
59 | 54 | ||
60 | /** | 55 | /** |
61 | * 生命周期函数--监听页面显示 | 56 | * 生命周期函数--监听页面显示 |
62 | */ | 57 | */ |
63 | - onShow: function () { | 58 | + onShow: function() { |
64 | 59 | ||
65 | }, | 60 | }, |
66 | 61 | ||
67 | /** | 62 | /** |
68 | * 生命周期函数--监听页面隐藏 | 63 | * 生命周期函数--监听页面隐藏 |
69 | */ | 64 | */ |
70 | - onHide: function () { | 65 | + onHide: function() { |
71 | 66 | ||
72 | }, | 67 | }, |
73 | 68 | ||
74 | /** | 69 | /** |
75 | * 生命周期函数--监听页面卸载 | 70 | * 生命周期函数--监听页面卸载 |
76 | */ | 71 | */ |
77 | - onUnload: function () { | 72 | + onUnload: function() { |
78 | 73 | ||
79 | }, | 74 | }, |
80 | 75 | ||
81 | /** | 76 | /** |
82 | * 页面相关事件处理函数--监听用户下拉动作 | 77 | * 页面相关事件处理函数--监听用户下拉动作 |
83 | */ | 78 | */ |
84 | - onPullDownRefresh: function () { | 79 | + onPullDownRefresh: function() { |
85 | 80 | ||
86 | }, | 81 | }, |
87 | 82 | ||
88 | /** | 83 | /** |
89 | * 页面上拉触底事件的处理函数 | 84 | * 页面上拉触底事件的处理函数 |
90 | */ | 85 | */ |
91 | - onReachBottom: function () { | 86 | + onReachBottom: function() { |
92 | 87 | ||
93 | }, | 88 | }, |
94 | 89 | ||
95 | /** | 90 | /** |
96 | * 用户点击右上角分享 | 91 | * 用户点击右上角分享 |
97 | */ | 92 | */ |
98 | - onShareAppMessage: function () { | 93 | + onShareAppMessage: function() { |
99 | 94 | ||
100 | } | 95 | } |
101 | }) | 96 | }) |
1 | <!--pages/about/about.wxml--> | 1 | <!--pages/about/about.wxml--> |
2 | <view class='topimg'> | 2 | <view class='topimg'> |
3 | - <image src='/images/banenr.png'></image> | 3 | + <image src='{{aboutdata.picurl}}'></image> |
4 | </view> | 4 | </view> |
5 | <view class='content'> | 5 | <view class='content'> |
6 | <view class='title'>{{aboutdata.title}}</view> | 6 | <view class='title'>{{aboutdata.title}}</view> |
@@ -280,16 +280,20 @@ Page({ | @@ -280,16 +280,20 @@ Page({ | ||
280 | if (picurl == undefined) { | 280 | if (picurl == undefined) { |
281 | picurl = '' | 281 | picurl = '' |
282 | } | 282 | } |
283 | + | ||
284 | + | ||
285 | + // else if (list.mobile == '') { | ||
286 | + // warn = '请填写您的手机号' | ||
287 | + // } else if (!(/^[1][3,4,5,7,8][0-9]{9}$/.test(list.mobile))) { | ||
288 | + // warn = "手机号格式不正确"; | ||
289 | + // } | ||
290 | + | ||
283 | if (list.name == "") { | 291 | if (list.name == "") { |
284 | warn = "请填写您的姓名"; | 292 | warn = "请填写您的姓名"; |
285 | } else if (sex_index == undefined) { | 293 | } else if (sex_index == undefined) { |
286 | warn = "请填写您的性别"; | 294 | warn = "请填写您的性别"; |
287 | } else if (list.family_role == '') { | 295 | } else if (list.family_role == '') { |
288 | warn = '请填写您的家庭角色' | 296 | warn = '请填写您的家庭角色' |
289 | - } else if (list.mobile == '') { | ||
290 | - warn = '请填写您的手机号' | ||
291 | - } else if (!(/^[1][3,4,5,7,8][0-9]{9}$/.test(list.mobile))) { | ||
292 | - warn = "手机号格式不正确"; | ||
293 | } else if (list.birthday == '') { | 297 | } else if (list.birthday == '') { |
294 | warn = "请填选择您的出生日期" | 298 | warn = "请填选择您的出生日期" |
295 | } else { | 299 | } else { |
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | </view> | 39 | </view> |
40 | <view class='item_list'> | 40 | <view class='item_list'> |
41 | <view class='list_title'> | 41 | <view class='list_title'> |
42 | - <text class='list_icon'>*</text> | 42 | + <!-- <text class='list_icon'>*</text> --> |
43 | <text>手机号</text> | 43 | <text>手机号</text> |
44 | </view> | 44 | </view> |
45 | <view class='list_input'> | 45 | <view class='list_input'> |
@@ -13,9 +13,8 @@ Page({ | @@ -13,9 +13,8 @@ Page({ | ||
13 | 13 | ||
14 | //选择支付方式 | 14 | //选择支付方式 |
15 | buyWay(e) { | 15 | buyWay(e) { |
16 | - console.log(e) | ||
17 | wx.navigateTo({ | 16 | wx.navigateTo({ |
18 | - url: '../payWay/payWay?id=' + e.currentTarget.id + '&moneyt=' + e.currentTarget.dataset.moneyt, | 17 | + url: '../payWay/payWay?id=' + e.currentTarget.id + '&moneyt=' + e.currentTarget.dataset.moneyt + '&money=' + e.currentTarget.dataset.money, |
19 | }) | 18 | }) |
20 | }, | 19 | }, |
21 | 20 |
@@ -3,11 +3,11 @@ | @@ -3,11 +3,11 @@ | ||
3 | <view class='banner_img'> | 3 | <view class='banner_img'> |
4 | <image src='/images/ele@2x.png'></image> | 4 | <image src='/images/ele@2x.png'></image> |
5 | </view> | 5 | </view> |
6 | - <text class='banner_info'>{{toplist[0].t_text}}</text> | 6 | + <text class='banner_info'>{{toplist[0].t_title}}</text> |
7 | <view class='banner_title'>{{toplist[0].title}}</view> | 7 | <view class='banner_title'>{{toplist[0].title}}</view> |
8 | <!-- <view class='banner_content'>完成新手任务,赠送{{toplist[0].title}}</view> --> | 8 | <!-- <view class='banner_content'>完成新手任务,赠送{{toplist[0].title}}</view> --> |
9 | - <view class='banner_content'>{{toplist[0].t_title}}{{toplist[0].title}}</view> | ||
10 | - <navigator class='list_btn' hover-class="navigator-hover" url='/pages/index/payWay/payWay?id={{toplist[0].id}}&moneyt={{toplist[0].moneyt}}&title={{toplist[0].title}}'>立即购买</navigator> | 9 | + <view class='banner_content'>{{toplist[0].t_text}}</view> |
10 | + <navigator class='list_btn' hover-class="navigator-hover" url='/pages/index/payWay/payWay?id={{toplist[0].id}}&moneyt={{toplist[0].moneyt}}&title={{toplist[0].title}}&money={{toplist[0].money}}'>立即购买</navigator> | ||
11 | </view> | 11 | </view> |
12 | <view class='item_list_box'> | 12 | <view class='item_list_box'> |
13 | <view class="item_list {{(index+1)%2==0?'year_list':''}}" wx:for='{{mainlist}}' wx:key> | 13 | <view class="item_list {{(index+1)%2==0?'year_list':''}}" wx:for='{{mainlist}}' wx:key> |
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | <text>或{{item.moneyt}}T币</text> | 17 | <text>或{{item.moneyt}}T币</text> |
18 | </view> | 18 | </view> |
19 | <navigator class='list_btn month_card' hover-class="navigator-hover" | 19 | <navigator class='list_btn month_card' hover-class="navigator-hover" |
20 | - url='/pages/index/payWay/payWay?id={{item.id}}&moneyt={{item.moneyt}}&title={{item.title}}' >立即购买</navigator> | 20 | + url='/pages/index/payWay/payWay?id={{item.id}}&moneyt={{item.moneyt}}&title={{item.title}}&money={{item.money}}' >立即购买</navigator> |
21 | </view> | 21 | </view> |
22 | </view> | 22 | </view> |
23 | </view> | 23 | </view> |
@@ -64,8 +64,9 @@ Page({ | @@ -64,8 +64,9 @@ Page({ | ||
64 | edit_state3: false, | 64 | edit_state3: false, |
65 | coverage: '', | 65 | coverage: '', |
66 | focus: false, | 66 | focus: false, |
67 | + focus2: false, | ||
67 | sub_index: '', | 68 | sub_index: '', |
68 | - birthday:'' | 69 | + birthday: '' |
69 | }, | 70 | }, |
70 | 71 | ||
71 | //回到顶部 | 72 | //回到顶部 |
@@ -210,11 +211,6 @@ Page({ | @@ -210,11 +211,6 @@ Page({ | ||
210 | // xielie: index | 211 | // xielie: index |
211 | // }) | 212 | // }) |
212 | 213 | ||
213 | - if (type == 'fujiaxian') { | ||
214 | - this.setData({ | ||
215 | - focus: true | ||
216 | - }) | ||
217 | - } | ||
218 | // 已经添加的主险 | 214 | // 已经添加的主险 |
219 | let tempMain_list = Object.assign([], this.data.main_array) | 215 | let tempMain_list = Object.assign([], this.data.main_array) |
220 | this.data.inforid != 0 && this.data.inforid != undefined | 216 | this.data.inforid != 0 && this.data.inforid != undefined |
@@ -347,8 +343,21 @@ Page({ | @@ -347,8 +343,21 @@ Page({ | ||
347 | 343 | ||
348 | //确认选择的推荐方案 | 344 | //确认选择的推荐方案 |
349 | confirmCase() { | 345 | confirmCase() { |
350 | - let index = this.data.xulie; | ||
351 | let type = this.data.addType; | 346 | let type = this.data.addType; |
347 | + console.log(type) | ||
348 | + if (type == 'fujiaxian') { | ||
349 | + this.setData({ | ||
350 | + focus: true, | ||
351 | + focus2:false | ||
352 | + }) | ||
353 | + } else { | ||
354 | + this.setData({ | ||
355 | + focus2: true, | ||
356 | + focus: false | ||
357 | + }) | ||
358 | + } | ||
359 | + console.log(this.data.focus2, this.data.focus) | ||
360 | + let index = this.data.xulie; | ||
352 | var that = this | 361 | var that = this |
353 | var main_array = [] | 362 | var main_array = [] |
354 | var projectlist = Object.assign([], this.data.showProjectlist) | 363 | var projectlist = Object.assign([], this.data.showProjectlist) |
@@ -531,13 +540,28 @@ Page({ | @@ -531,13 +540,28 @@ Page({ | ||
531 | addUnit2(e) { | 540 | addUnit2(e) { |
532 | var beneficiary_list = this.data.beneficiary_list; | 541 | var beneficiary_list = this.data.beneficiary_list; |
533 | var index = e.currentTarget.dataset.index | 542 | var index = e.currentTarget.dataset.index |
543 | + var num = 0 | ||
534 | beneficiary_list[index].unit = e.detail.value; | 544 | beneficiary_list[index].unit = e.detail.value; |
535 | - if (beneficiary_list[index].unit > 100) { | ||
536 | - wx.showToast({ | ||
537 | - title: '请重新输入收益比例', | ||
538 | - icon: 'none' | ||
539 | - }) | ||
540 | - beneficiary_list[index].unit = 0 | 545 | + |
546 | + // if (beneficiary_list[index].unit > 100) { | ||
547 | + // wx.showToast({ | ||
548 | + // title: '请重新输入收益比例', | ||
549 | + // icon: 'none' | ||
550 | + // }) | ||
551 | + // beneficiary_list[index].unit = 0 | ||
552 | + // } | ||
553 | + | ||
554 | + | ||
555 | + for (var i = 0; i < beneficiary_list.length; i++) { | ||
556 | + // num += beneficiary_list[i].unit | ||
557 | + // if (num > 100) { | ||
558 | + // wx.showToast({ | ||
559 | + // title: '请重新输入收益比例', | ||
560 | + // icon: 'none' | ||
561 | + // }) | ||
562 | + // } else { | ||
563 | + // beneficiary_list[index].unit = 0 | ||
564 | + // } | ||
541 | } | 565 | } |
542 | this.setData({ | 566 | this.setData({ |
543 | beneficiary_list: beneficiary_list, | 567 | beneficiary_list: beneficiary_list, |
@@ -589,6 +613,7 @@ Page({ | @@ -589,6 +613,7 @@ Page({ | ||
589 | addPersons2(e) { | 613 | addPersons2(e) { |
590 | var list = this.data.beneficiary_list; | 614 | var list = this.data.beneficiary_list; |
591 | var len = list.length | 615 | var len = list.length |
616 | + var num = 0 | ||
592 | if (list[len - 1].name == undefined) { | 617 | if (list[len - 1].name == undefined) { |
593 | wx.showToast({ | 618 | wx.showToast({ |
594 | title: '请输入受益人', | 619 | title: '请输入受益人', |
@@ -600,12 +625,27 @@ Page({ | @@ -600,12 +625,27 @@ Page({ | ||
600 | icon: 'none' | 625 | icon: 'none' |
601 | }) | 626 | }) |
602 | } else { | 627 | } else { |
603 | - list[len] = { | ||
604 | - // name_array: this.data.insure, | ||
605 | - name: '', | ||
606 | - unit: '' | 628 | + for (var i = 0; i < list.length; i++) { |
629 | + num += list[i].unit | ||
630 | + if (num > 100) { | ||
631 | + console.log(list) | ||
632 | + wx.showToast({ | ||
633 | + title: '请重新输入收益比例,收益比之和不得超过100', | ||
634 | + icon: 'none' | ||
635 | + }) | ||
636 | + list[len - 1].unit = '' | ||
637 | + } else { | ||
638 | + list[len] = { | ||
639 | + // name_array: this.data.insure, | ||
640 | + name: '', | ||
641 | + unit: '' | ||
642 | + } | ||
643 | + } | ||
607 | } | 644 | } |
608 | } | 645 | } |
646 | + | ||
647 | + | ||
648 | + | ||
609 | this.setData({ | 649 | this.setData({ |
610 | beneficiary_list: list | 650 | beneficiary_list: list |
611 | }) | 651 | }) |
@@ -632,10 +672,9 @@ Page({ | @@ -632,10 +672,9 @@ Page({ | ||
632 | //删除收益人 | 672 | //删除收益人 |
633 | deletebenefict(e) { | 673 | deletebenefict(e) { |
634 | let index = e.currentTarget.dataset.index; | 674 | let index = e.currentTarget.dataset.index; |
635 | - let tempbenefict = this.data.beneficiary_list | 675 | + let tempbenefict = this.data.beneficiary_list |
636 | let beneficiaryList = this.data.beneficiaryList | 676 | let beneficiaryList = this.data.beneficiaryList |
637 | // 获取当前选项的受益人 | 677 | // 获取当前选项的受益人 |
638 | - // let person = tempbenefict[index].beneficiary_name; | ||
639 | let person = tempbenefict[index].name; | 678 | let person = tempbenefict[index].name; |
640 | tempbenefict.splice(index, 1); | 679 | tempbenefict.splice(index, 1); |
641 | if (person) beneficiaryList.splice(beneficiaryList.indexOf(person), 1) | 680 | if (person) beneficiaryList.splice(beneficiaryList.indexOf(person), 1) |
@@ -648,13 +687,11 @@ Page({ | @@ -648,13 +687,11 @@ Page({ | ||
648 | 687 | ||
649 | //添加附加险 | 688 | //添加附加险 |
650 | addRisk() { | 689 | addRisk() { |
651 | - // var risk_list = Object.assign({}, this.data.risk_list); | ||
652 | var risk_list = this.data.risk_list; | 690 | var risk_list = this.data.risk_list; |
653 | var len = risk_list.length | 691 | var len = risk_list.length |
654 | risk_list[len] = { | 692 | risk_list[len] = { |
655 | name: '', | 693 | name: '', |
656 | mo: [], | 694 | mo: [], |
657 | - // project_time: '', | ||
658 | title: '', | 695 | title: '', |
659 | num: '' | 696 | num: '' |
660 | } | 697 | } |
@@ -976,13 +1013,13 @@ Page({ | @@ -976,13 +1013,13 @@ Page({ | ||
976 | selectUnit4(e) { | 1013 | selectUnit4(e) { |
977 | var unit = e.currentTarget.dataset.unit; | 1014 | var unit = e.currentTarget.dataset.unit; |
978 | let index = e.currentTarget.dataset.index; | 1015 | let index = e.currentTarget.dataset.index; |
979 | - var focus=this.data.focus | 1016 | + var focus = this.data.focus |
980 | // let risk_list = Object.assign([], this.data.risk_list); | 1017 | // let risk_list = Object.assign([], this.data.risk_list); |
981 | let risk_list = this.data.risk_list | 1018 | let risk_list = this.data.risk_list |
982 | risk_list[index].title = unit | 1019 | risk_list[index].title = unit |
983 | if (risk_list[index].title == '终身') { | 1020 | if (risk_list[index].title == '终身') { |
984 | risk_list[index].num = '' | 1021 | risk_list[index].num = '' |
985 | - focus=true | 1022 | + focus = true |
986 | } | 1023 | } |
987 | this.setData({ | 1024 | this.setData({ |
988 | risk_list: risk_list, | 1025 | risk_list: risk_list, |
@@ -1008,7 +1045,7 @@ Page({ | @@ -1008,7 +1045,7 @@ Page({ | ||
1008 | this.setData({ | 1045 | this.setData({ |
1009 | insure: res.data.data.list, | 1046 | insure: res.data.data.list, |
1010 | recognizee: res.data.data.list, | 1047 | recognizee: res.data.data.list, |
1011 | - birthday:res.data.data.list[0].birthday | 1048 | + birthday: res.data.data.list[0].birthday |
1012 | // beneficiary_list: beneficiary_list, | 1049 | // beneficiary_list: beneficiary_list, |
1013 | }) | 1050 | }) |
1014 | } | 1051 | } |
@@ -161,7 +161,7 @@ | @@ -161,7 +161,7 @@ | ||
161 | </view> | 161 | </view> |
162 | <view class='list_input_box'> | 162 | <view class='list_input_box'> |
163 | <view class='list_input'> | 163 | <view class='list_input'> |
164 | - <input type='number' placeholder='请填写' name='year_money' value='{{year_money}}' bindinput='yearMoney'></input> | 164 | + <input type='number' placeholder='请填写' name='year_money' value='{{year_money}}' focus='{{focus2}}' bindinput='yearMoney'></input> |
165 | </view> | 165 | </view> |
166 | <view class='list_input'> | 166 | <view class='list_input'> |
167 | <input class='income_input' type='text' placeholder='请填写' value='元/年' disabled='true'></input> | 167 | <input class='income_input' type='text' placeholder='请填写' value='元/年' disabled='true'></input> |
@@ -116,10 +116,12 @@ page { | @@ -116,10 +116,12 @@ page { | ||
116 | 116 | ||
117 | .list_input input { | 117 | .list_input input { |
118 | width: 100%; | 118 | width: 100%; |
119 | + height: 100%; | ||
119 | border: 0; | 120 | border: 0; |
120 | outline: none; | 121 | outline: none; |
121 | font-size: 30rpx; | 122 | font-size: 30rpx; |
122 | color: #000; | 123 | color: #000; |
124 | + line-height: 1; | ||
123 | } | 125 | } |
124 | 126 | ||
125 | .list_input .picker { | 127 | .list_input .picker { |
@@ -451,6 +453,7 @@ page { | @@ -451,6 +453,7 @@ page { | ||
451 | font-size: 28rpx; | 453 | font-size: 28rpx; |
452 | color: #1a1a1a; | 454 | color: #1a1a1a; |
453 | text-align: left; | 455 | text-align: left; |
456 | + line-height: 1; | ||
454 | } | 457 | } |
455 | 458 | ||
456 | .icon-xuanzhongkuang, .icon-fangkuang { | 459 | .icon-xuanzhongkuang, .icon-fangkuang { |
@@ -86,7 +86,7 @@ | @@ -86,7 +86,7 @@ | ||
86 | </view> | 86 | </view> |
87 | <view class='popup_img' wx:else> | 87 | <view class='popup_img' wx:else> |
88 | <!-- <view class='iconfont icon-guanbi' catchtap='deleteImg' data-index='{{index}}'></view> --> | 88 | <!-- <view class='iconfont icon-guanbi' catchtap='deleteImg' data-index='{{index}}'></view> --> |
89 | - <image src='{{approve_pic}}' bindtap='viewImg' data-index='{{index}}'></image> | 89 | + <image src='{{approve_pic}}'></image> |
90 | </view> | 90 | </view> |
91 | </view> | 91 | </view> |
92 | <view class="save_btn" bindtap='saveInfo'>保存</view> | 92 | <view class="save_btn" bindtap='saveInfo'>保存</view> |
1 | // pages/index/inviteList/inviteList.js | 1 | // pages/index/inviteList/inviteList.js |
2 | -const app=getApp(); | 2 | +const app = getApp(); |
3 | Page({ | 3 | Page({ |
4 | 4 | ||
5 | /** | 5 | /** |
6 | * 页面的初始数据 | 6 | * 页面的初始数据 |
7 | */ | 7 | */ |
8 | data: { | 8 | data: { |
9 | - tab_state:false, | ||
10 | - invitalist:[] | 9 | + tab_state: false, |
10 | + invitalist: [] | ||
11 | }, | 11 | }, |
12 | 12 | ||
13 | //展开收起 | 13 | //展开收起 |
@@ -21,28 +21,28 @@ Page({ | @@ -21,28 +21,28 @@ Page({ | ||
21 | }, | 21 | }, |
22 | 22 | ||
23 | 23 | ||
24 | + invitationList() { | ||
25 | + let url = 'counselor/invite' | ||
26 | + let params = { | ||
27 | + UserId: app.globalData.UserId, | ||
28 | + } | ||
29 | + app.post(url, params).then((res) => { | ||
30 | + console.log(res) | ||
31 | + if (res.data.code == 200) { | ||
32 | + this.setData({ | ||
33 | + invitalist: res.data.data.listmessages | ||
34 | + }) | ||
24 | 35 | ||
25 | - | ||
26 | - invitationList() { | ||
27 | - let url = 'counselor/invite' | ||
28 | - let params = { | ||
29 | - UserId: app.globalData.UserId, | ||
30 | - } | ||
31 | - app.post(url, params).then((res) => { | ||
32 | - console.log(res) | ||
33 | - if (res.data.code == 200) { | ||
34 | - this.setData({ | ||
35 | - invitalist: res.data.data.listmessages | 36 | + } |
36 | }) | 37 | }) |
37 | - | ||
38 | - } | ||
39 | - }) | ||
40 | - }, | 38 | + }, |
39 | + | ||
40 | + | ||
41 | /** | 41 | /** |
42 | * 生命周期函数--监听页面加载 | 42 | * 生命周期函数--监听页面加载 |
43 | */ | 43 | */ |
44 | onLoad: function(options) { | 44 | onLoad: function(options) { |
45 | - this.invitationList(); | 45 | + this.invitationList(); |
46 | }, | 46 | }, |
47 | 47 | ||
48 | /** | 48 | /** |
1 | <!--pages/index/inviteList/inviteList.wxml--> | 1 | <!--pages/index/inviteList/inviteList.wxml--> |
2 | <view class='charge_box'> | 2 | <view class='charge_box'> |
3 | - <view class='envoy_title_box'> | ||
4 | - <text>邀请名单</text> | ||
5 | - <text>充值记录</text> | ||
6 | - </view> | ||
7 | - <view class='box' wx:for='{{invitalist}}' wx:key> | ||
8 | - <view class='envoy_content_box'> | ||
9 | - <view> | ||
10 | - <view class='envoy_title'>{{item.name}}</view> | ||
11 | - </view> | ||
12 | - <view bindtap='tabExpand' data-index='{{index}}'> | ||
13 | - <text class="iconfont font_icon {{item.tab_state?'icon-shang':'icon-xiala'}}"></text> | ||
14 | - <!-- <text class='envoy_hint' wx:if='{{item.tab_state}}'>收起</text> | ||
15 | - <text class='envoy_hint' wx:else>展开</text> --> | ||
16 | - </view> | 3 | + <view class='envoy_title_box'> |
4 | + <text>邀请名单</text> | ||
5 | + <text>充值记录</text> | ||
17 | </view> | 6 | </view> |
18 | - <view class="envoy_info_box {{!item.tab_state?'expand':''}}" wx:if='{{item.pg.length>0}}'> | ||
19 | - <view class='envoy_content' wx:for='{{item.pg}}' wx:key> | ||
20 | - <view>{{item.change}}</view> | ||
21 | - <view class=''>{{item.time}}</view> | 7 | + <view class='box' wx:for='{{invitalist}}' wx:key> |
8 | + <view class='envoy_content_box'> | ||
9 | + <view> | ||
10 | + <view class='envoy_title'>{{item.name}}</view> | ||
11 | + </view> | ||
12 | + <view bindtap='tabExpand' data-index='{{index}}'> | ||
13 | + <text class="iconfont font_icon {{item.tab_state?'icon-shang':'icon-xiala'}}"></text> | ||
14 | + <!-- <text class='envoy_hint' wx:if='{{item.tab_state}}'>收起</text> | ||
15 | + <text class='envoy_hint' wx:else>展开</text> --> | ||
16 | + </view> | ||
22 | </view> | 17 | </view> |
23 | - </view> | ||
24 | - </view> | 18 | + <view class="envoy_info_box {{!item.tab_state?'expand':''}}" wx:if='{{item.pg.length>0}}'> |
19 | + <view class='envoy_content' wx:for='{{item.pg}}' wx:key> | ||
20 | + <view>{{item.time}} </view> | ||
21 | + <view class='envoy_title'>{{item.description}}</view> | ||
22 | + </view> | ||
23 | + </view> | ||
24 | + </view> | ||
25 | </view> | 25 | </view> |
@@ -12,7 +12,8 @@ Page({ | @@ -12,7 +12,8 @@ Page({ | ||
12 | PayType: 1, //1为余额支付2为微信支付 | 12 | PayType: 1, //1为余额支付2为微信支付 |
13 | balance: '', | 13 | balance: '', |
14 | Page: 0, | 14 | Page: 0, |
15 | - end_time:'' | 15 | + end_time:'', |
16 | + money:'' | ||
16 | }, | 17 | }, |
17 | setpaytype1() { | 18 | setpaytype1() { |
18 | this.setData({ | 19 | this.setData({ |
@@ -126,7 +127,8 @@ Page({ | @@ -126,7 +127,8 @@ Page({ | ||
126 | that.setData({ | 127 | that.setData({ |
127 | VipId: options.id, | 128 | VipId: options.id, |
128 | moneyt: options.moneyt, | 129 | moneyt: options.moneyt, |
129 | - title: options.title | 130 | + title: options.title, |
131 | + money:options.money | ||
130 | }) | 132 | }) |
131 | this.TB() | 133 | this.TB() |
132 | }, | 134 | }, |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <view class='banner_box' id='{{VipId}}'> | 2 | <view class='banner_box' id='{{VipId}}'> |
3 | <view>{{title}}</view> | 3 | <view>{{title}}</view> |
4 | <!-- <text class='money'>100</text> 元 </view>--> | 4 | <!-- <text class='money'>100</text> 元 </view>--> |
5 | - <view class='banner_hint'>微信支付返{{moneyt}}T币</view> | 5 | + <view class='banner_hint'>微信支付返{{money}}T币</view> |
6 | </view> | 6 | </view> |
7 | <view class='content_item'> | 7 | <view class='content_item'> |
8 | <view class='item_list' bindtap='setpaytype1'> | 8 | <view class='item_list' bindtap='setpaytype1'> |
@@ -76,7 +76,7 @@ Page({ | @@ -76,7 +76,7 @@ Page({ | ||
76 | appointment_time: '', | 76 | appointment_time: '', |
77 | level_state: false, | 77 | level_state: false, |
78 | time_state: false, | 78 | time_state: false, |
79 | - interval:false, | 79 | + interval: false, |
80 | }, | 80 | }, |
81 | 81 | ||
82 | // 打电话 | 82 | // 打电话 |
@@ -224,18 +224,43 @@ Page({ | @@ -224,18 +224,43 @@ Page({ | ||
224 | }, | 224 | }, |
225 | 225 | ||
226 | //删除日志 | 226 | //删除日志 |
227 | - delLog(e){ | 227 | + delLog(e) { |
228 | let that = this; | 228 | let that = this; |
229 | - let id = e.currentTarget.dataset.id; //客户id | ||
230 | - let url ='counselor/logDelete' | ||
231 | - let params={ | ||
232 | - log_id:id | ||
233 | - } | ||
234 | - app.post(url,params).then((res)=>{ | ||
235 | - if (res.data.code == 200) { | 229 | + wx.showModal({ |
230 | + title: '提示', | ||
231 | + content: '确认删除?', | ||
232 | + showCancel: true, | ||
233 | + cancelText: '取消', | ||
234 | + cancelColor: '', | ||
235 | + confirmText: '确认', | ||
236 | + confirmColor: '', | ||
237 | + success: function(res) { | ||
236 | console.log(res) | 238 | console.log(res) |
237 | - this.getData() | ||
238 | - } | 239 | + if (res.confirm) { |
240 | + let id = e.currentTarget.dataset.id; //客户id | ||
241 | + let url = 'counselor/logDelete' | ||
242 | + let params = { | ||
243 | + log_id: id | ||
244 | + } | ||
245 | + app.post(url, params).then((res) => { | ||
246 | + if (res.data.code == 200) { | ||
247 | + wx.showToast({ | ||
248 | + title: '删除成功', | ||
249 | + }) | ||
250 | + that.getData() | ||
251 | + } | ||
252 | + }) | ||
253 | + } else { | ||
254 | + wx.showToast({ | ||
255 | + title: '删除失败', | ||
256 | + icon: 'none' | ||
257 | + }) | ||
258 | + } | ||
259 | + }, | ||
260 | + fail: function(res) { | ||
261 | + console.log(res) | ||
262 | + }, | ||
263 | + complete: function(res) {}, | ||
239 | }) | 264 | }) |
240 | }, | 265 | }, |
241 | 266 |
@@ -44,10 +44,10 @@ | @@ -44,10 +44,10 @@ | ||
44 | position: fixed; | 44 | position: fixed; |
45 | top: 110rpx; | 45 | top: 110rpx; |
46 | left: 0; | 46 | left: 0; |
47 | - z-index: 10; | ||
48 | width: 100%; | 47 | width: 100%; |
49 | height: 100%; | 48 | height: 100%; |
50 | background-color: rgba(0, 0, 0, 0.5); | 49 | background-color: rgba(0, 0, 0, 0.5); |
50 | + z-index: 999; | ||
51 | } | 51 | } |
52 | 52 | ||
53 | .choose_itenbox { | 53 | .choose_itenbox { |
@@ -32,7 +32,6 @@ Page({ | @@ -32,7 +32,6 @@ Page({ | ||
32 | 32 | ||
33 | //保单详情 | 33 | //保单详情 |
34 | summaryDetail(e) { | 34 | summaryDetail(e) { |
35 | - console.log(e) | ||
36 | var InId = e.currentTarget.dataset.inid | 35 | var InId = e.currentTarget.dataset.inid |
37 | wx.navigateTo({ | 36 | wx.navigateTo({ |
38 | url: '/pages/index/policyListDetail/policyListDetail?InId=' + InId, | 37 | url: '/pages/index/policyListDetail/policyListDetail?InId=' + InId, |
@@ -439,6 +438,13 @@ Page({ | @@ -439,6 +438,13 @@ Page({ | ||
439 | var collect = res.data.data.list.collect; | 438 | var collect = res.data.data.list.collect; |
440 | for (var j = 0; j < collect.length; j++) { | 439 | for (var j = 0; j < collect.length; j++) { |
441 | collect[j].collect_state = false | 440 | collect[j].collect_state = false |
441 | + for (var i = 0; i < collect[j].list.length; i++) { | ||
442 | + if (collect[j].list[i].num == 0) { | ||
443 | + collect[j].list[i].num = 0 | ||
444 | + } else { | ||
445 | + collect[j].list[i].num = Math.round((collect[j].list[i].num) * 10000) / 10000 | ||
446 | + } | ||
447 | + } | ||
442 | } | 448 | } |
443 | 449 | ||
444 | //保单明细 | 450 | //保单明细 |
@@ -152,11 +152,15 @@ | @@ -152,11 +152,15 @@ | ||
152 | <view class='summary_content_box'> | 152 | <view class='summary_content_box'> |
153 | <view class='summary_list' wx:for='{{item.list}}' wx:key wx:for-item='its' wx:for-index='sindex'> | 153 | <view class='summary_list' wx:for='{{item.list}}' wx:key wx:for-item='its' wx:for-index='sindex'> |
154 | <view class='summary_content'>{{its.name}}</view> | 154 | <view class='summary_content'>{{its.name}}</view> |
155 | - <view class='summary_content'>{{its.num}}</view> | 155 | + <view class='summary_content'> |
156 | + <text>{{its.num}} </text> | ||
157 | + <text wx:if="{{its.name == '每日住院津贴'}}">元/天</text> | ||
158 | + <text wx:else>万</text> | ||
159 | + </view> | ||
156 | <view class='summary_content forehead'> | 160 | <view class='summary_content forehead'> |
157 | <input type='number' placeholder='请输入' value="{{its.plan}}" bindinput='suggestForehead' data-num='{{its.num}}' data-sindex='{{sindex}}' data-mindex='{{mindex}}' focus='' disabled='{{selected}}'></input> | 161 | <input type='number' placeholder='请输入' value="{{its.plan}}" bindinput='suggestForehead' data-num='{{its.num}}' data-sindex='{{sindex}}' data-mindex='{{mindex}}' focus='' disabled='{{selected}}'></input> |
158 | </view> | 162 | </view> |
159 | - <view class='summary_content'>{{its.gap}}</view> | 163 | + <view class='summary_content gap'>{{its.gap}}</view> |
160 | </view> | 164 | </view> |
161 | </view> | 165 | </view> |
162 | </view> | 166 | </view> |
@@ -187,15 +191,14 @@ | @@ -187,15 +191,14 @@ | ||
187 | <view class='list_title'>{{sit.name}}</view> | 191 | <view class='list_title'>{{sit.name}}</view> |
188 | </view> | 192 | </view> |
189 | </view> | 193 | </view> |
190 | - {{item.information_state}} | ||
191 | <scroll-view scroll-x> | 194 | <scroll-view scroll-x> |
192 | <view class='scroll_content_box'> | 195 | <view class='scroll_content_box'> |
193 | <view class='list_content_box' wx:for='{{information}}' wx:key='' wx:if='{{item.information_state}}'> | 196 | <view class='list_content_box' wx:for='{{information}}' wx:key='' wx:if='{{item.information_state}}'> |
194 | <view class='item_list'> | 197 | <view class='item_list'> |
195 | <view class='list_title'>{{item.recognizee}}</view> | 198 | <view class='list_title'>{{item.recognizee}}</view> |
196 | </view> | 199 | </view> |
197 | - <view class='item_list'> | ||
198 | - <view class='list_title' bindtap='summaryDetail' data-InId='{{item.id}}'>{{item.in_num}}</view> | 200 | + <view class='item_list'> |
201 | + <view class='list_title' style='text-decoration:underline' bindtap='summaryDetail' data-InId='{{item.id}}'>{{item.in_num}}</view> | ||
199 | </view> | 202 | </view> |
200 | <view class='item_list'> | 203 | <view class='item_list'> |
201 | <view class='list_title'>{{item.main_risks}}</view> | 204 | <view class='list_title'>{{item.main_risks}}</view> |
@@ -223,7 +226,12 @@ | @@ -223,7 +226,12 @@ | ||
223 | <view class='null_box'></view> | 226 | <view class='null_box'></view> |
224 | <cover-view class='bottom_box'> | 227 | <cover-view class='bottom_box'> |
225 | <cover-view class='plan_btn'> | 228 | <cover-view class='plan_btn'> |
226 | - <button class='plan_btn' style='border:0;' data-status='{{status}}' bindtap="{{save_state?'saveInfo':''}}">保存</button> | 229 | + <button class='plan_btn' style='width:100%;border:0' data-status='{{status}}' bindtap="{{save_state?'saveInfo':''}}"> |
230 | + <text style='color:#fff'>测试测试 </text> | ||
231 | + <text style='color:#0286ff;'>保存 </text> | ||
232 | + 保存 | ||
233 | + <text style='color:#fff'>测试测试</text> | ||
234 | + </button> | ||
227 | </cover-view> | 235 | </cover-view> |
228 | <cover-view class="plan_btn2 {{shareState?'plan_active':''}}"> | 236 | <cover-view class="plan_btn2 {{shareState?'plan_active':''}}"> |
229 | <button class="plan_btn2 {{shareState?'plan_active':''}}" style='border:0;' open-type="{{shareState?'share':''}}" data-status='{{status}}'>发送给客户</button> | 237 | <button class="plan_btn2 {{shareState?'plan_active':''}}" style='border:0;' open-type="{{shareState?'share':''}}" data-status='{{status}}'>发送给客户</button> |
@@ -287,6 +287,9 @@ page { | @@ -287,6 +287,9 @@ page { | ||
287 | .forehead { | 287 | .forehead { |
288 | color: #0286ff; | 288 | color: #0286ff; |
289 | } | 289 | } |
290 | +.gap{ | ||
291 | + color: #ff5c2e; | ||
292 | +} | ||
290 | 293 | ||
291 | /* 体检报告 */ | 294 | /* 体检报告 */ |
292 | 295 | ||
@@ -419,6 +422,9 @@ page { | @@ -419,6 +422,9 @@ page { | ||
419 | align-items: center; | 422 | align-items: center; |
420 | justify-content: center; | 423 | justify-content: center; |
421 | } | 424 | } |
425 | +.plan_btn i{ | ||
426 | + color: red; | ||
427 | +} | ||
422 | .plan_btn2 { | 428 | .plan_btn2 { |
423 | width: 335rpx; | 429 | width: 335rpx; |
424 | height: 80rpx; | 430 | height: 80rpx; |
1 | // pages/index/summaryList2/summaryList2.js | 1 | // pages/index/summaryList2/summaryList2.js |
2 | const app=getApp() | 2 | const app=getApp() |
3 | Page({ | 3 | Page({ |
4 | - | 4 | + |
5 | /** | 5 | /** |
6 | * 页面的初始数据 | 6 | * 页面的初始数据 |
7 | */ | 7 | */ |
@@ -25,6 +25,15 @@ Page({ | @@ -25,6 +25,15 @@ Page({ | ||
25 | recommend:[], | 25 | recommend:[], |
26 | status:'' | 26 | status:'' |
27 | }, | 27 | }, |
28 | + | ||
29 | + | ||
30 | + //保单详情 | ||
31 | + summaryDetail(e) { | ||
32 | + var InId = e.currentTarget.dataset.inid | ||
33 | + wx.navigateTo({ | ||
34 | + url: '/pages/index/policyListDetail/policyListDetail?InId=' + InId, | ||
35 | + }) | ||
36 | + }, | ||
28 | // 打电话 | 37 | // 打电话 |
29 | makePhoneCall() { | 38 | makePhoneCall() { |
30 | let that = this; | 39 | let that = this; |
@@ -113,11 +113,15 @@ | @@ -113,11 +113,15 @@ | ||
113 | <view class='summary_content_box'> | 113 | <view class='summary_content_box'> |
114 | <view class='summary_list' wx:for='{{item.list}}' wx:key wx:for-item='its' wx:for-index='sindex'> | 114 | <view class='summary_list' wx:for='{{item.list}}' wx:key wx:for-item='its' wx:for-index='sindex'> |
115 | <view class='summary_content'>{{its.name}}</view> | 115 | <view class='summary_content'>{{its.name}}</view> |
116 | - <view class='summary_content'>{{its.text}}</view> | 116 | + <view class='summary_content'> |
117 | + <text>{{its.text}}</text> | ||
118 | + <text wx:if="{{its.name == '每日住院津贴'}}">元/天</text> | ||
119 | + <text wx:else>万</text> | ||
120 | + </view> | ||
117 | <view class='summary_content forehead'> | 121 | <view class='summary_content forehead'> |
118 | <input type='number' placeholder='' value="{{its.plan}}" focus='' disabled='true'></input> | 122 | <input type='number' placeholder='' value="{{its.plan}}" focus='' disabled='true'></input> |
119 | </view> | 123 | </view> |
120 | - <view class='summary_content'>{{its.gap!=''?its.gap:'-'}}</view> | 124 | + <view class='summary_content gap'>{{its.gap!=''?its.gap:'-'}}</view> |
121 | </view> | 125 | </view> |
122 | </view> | 126 | </view> |
123 | </view> | 127 | </view> |
@@ -155,7 +159,7 @@ | @@ -155,7 +159,7 @@ | ||
155 | <view class='list_title'>{{item.recognizee}}</view> | 159 | <view class='list_title'>{{item.recognizee}}</view> |
156 | </view> | 160 | </view> |
157 | <view class='item_list'> | 161 | <view class='item_list'> |
158 | - <view class='list_title'>{{item.in_num}}</view> | 162 | + <view class='list_title' style='text-decoration:underline' bindtap='summaryDetail' data-InId='{{item.id}}'>{{item.in_num}}</view> |
159 | </view> | 163 | </view> |
160 | <view class='item_list'> | 164 | <view class='item_list'> |
161 | <view class='list_title'>{{item.main_risks}}</view> | 165 | <view class='list_title'>{{item.main_risks}}</view> |
@@ -13,7 +13,7 @@ Page({ | @@ -13,7 +13,7 @@ Page({ | ||
13 | time: '获取验证码', //倒计时 | 13 | time: '获取验证码', //倒计时 |
14 | currentTime: 60, | 14 | currentTime: 60, |
15 | disabled: true, | 15 | disabled: true, |
16 | - code:'', | 16 | + code: '', |
17 | }, | 17 | }, |
18 | 18 | ||
19 | //体检报告详情检测 | 19 | //体检报告详情检测 |
@@ -64,16 +64,16 @@ Page({ | @@ -64,16 +64,16 @@ Page({ | ||
64 | app.post(url, params).then((res) => { | 64 | app.post(url, params).then((res) => { |
65 | console.log(that.data.PublishId, app.globalData.UserId, that.data.code) | 65 | console.log(that.data.PublishId, app.globalData.UserId, that.data.code) |
66 | if (res.data.code == 200) { | 66 | if (res.data.code == 200) { |
67 | - if(res.data.data.type==1){ | ||
68 | - wx.navigateTo({ | ||
69 | - url: '/pages/index/summaryList2/summaryList2?PublishId=' + that.data.PublishId, | ||
70 | - }) | ||
71 | - }else{ | ||
72 | - wx.showToast({ | ||
73 | - title: '验证码超时', | ||
74 | - icon:'none' | ||
75 | - }) | ||
76 | - } | 67 | + if (res.data.data.type == 1) { |
68 | + wx.navigateTo({ | ||
69 | + url: '/pages/index/summaryList2/summaryList2?PublishId=' + that.data.PublishId, | ||
70 | + }) | ||
71 | + } else { | ||
72 | + wx.showToast({ | ||
73 | + title: '验证码超时', | ||
74 | + icon: 'none' | ||
75 | + }) | ||
76 | + } | ||
77 | } | 77 | } |
78 | }).catch((errMsg) => { | 78 | }).catch((errMsg) => { |
79 | console.log(errMsg) | 79 | console.log(errMsg) |
@@ -81,15 +81,20 @@ Page({ | @@ -81,15 +81,20 @@ Page({ | ||
81 | } | 81 | } |
82 | }, | 82 | }, |
83 | 83 | ||
84 | - getCode(e){ | 84 | + getCode(e) { |
85 | this.setData({ | 85 | this.setData({ |
86 | - code:e.detail.value | 86 | + code: e.detail.value |
87 | }) | 87 | }) |
88 | }, | 88 | }, |
89 | 89 | ||
90 | // 倒计时按钮变化 | 90 | // 倒计时按钮变化 |
91 | getVerificationCode() { | 91 | getVerificationCode() { |
92 | - if (!(/^1(3|4|5|7|8)\d{9}$/.test(this.data.mobile))) { | 92 | + if (this.data.mobile == '') { |
93 | + wx.showToast({ | ||
94 | + title: '请联系顾问填写手机号', | ||
95 | + icon: 'none', | ||
96 | + }) | ||
97 | + } else if (!(/^1(3|4|5|7|8)\d{9}$/.test(this.data.mobile))) { | ||
93 | wx.showToast({ | 98 | wx.showToast({ |
94 | title: '手机号不正确', | 99 | title: '手机号不正确', |
95 | icon: 'none', | 100 | icon: 'none', |
@@ -101,15 +106,15 @@ Page({ | @@ -101,15 +106,15 @@ Page({ | ||
101 | mobile: this.data.mobile | 106 | mobile: this.data.mobile |
102 | } | 107 | } |
103 | app.post(url, params).then((res) => { | 108 | app.post(url, params).then((res) => { |
104 | - console.log('验证码',res) | ||
105 | - if(res.data.data.type==1){ | 109 | + console.log('验证码', res) |
110 | + if (res.data.data.type == 1) { | ||
106 | this.setData({ | 111 | this.setData({ |
107 | disabled: true, | 112 | disabled: true, |
108 | }) | 113 | }) |
109 | - }else{ | 114 | + } else { |
110 | wx.showToast({ | 115 | wx.showToast({ |
111 | title: '验证码错误', | 116 | title: '验证码错误', |
112 | - icon:'none' | 117 | + icon: 'none' |
113 | }) | 118 | }) |
114 | } | 119 | } |
115 | }) | 120 | }) |
@@ -98,14 +98,14 @@ Page({ | @@ -98,14 +98,14 @@ Page({ | ||
98 | console.log(res) | 98 | console.log(res) |
99 | if (res.data.data.type == 1) { | 99 | if (res.data.data.type == 1) { |
100 | wx.showToast({ | 100 | wx.showToast({ |
101 | - title: '提交成功,请等待后台审核', | 101 | + title: '正在人工审核', |
102 | icon: 'success', | 102 | icon: 'success', |
103 | duration: 2000, | 103 | duration: 2000, |
104 | mask: true, | 104 | mask: true, |
105 | }) | 105 | }) |
106 | } else if (res.data.data.type == -1) { | 106 | } else if (res.data.data.type == -1) { |
107 | wx.showToast({ | 107 | wx.showToast({ |
108 | - title: '正在人工审核', | 108 | + title: 'T币数值错误', |
109 | icon: 'none', | 109 | icon: 'none', |
110 | duration: 2000, | 110 | duration: 2000, |
111 | }) | 111 | }) |
@@ -167,13 +167,6 @@ Page({ | @@ -167,13 +167,6 @@ Page({ | ||
167 | 167 | ||
168 | //T币交易记录 | 168 | //T币交易记录 |
169 | TB() { | 169 | TB() { |
170 | - wx.navigateTo({ | ||
171 | - url: '../index/TB/TB', | ||
172 | - }) | ||
173 | - }, | ||
174 | - | ||
175 | - //会员充值 | ||
176 | - vipCharge() { | ||
177 | if (app.globalData.UserType == 4) { | 170 | if (app.globalData.UserType == 4) { |
178 | wx.showToast({ | 171 | wx.showToast({ |
179 | title: '暂无权限', | 172 | title: '暂无权限', |
@@ -181,11 +174,25 @@ Page({ | @@ -181,11 +174,25 @@ Page({ | ||
181 | }) | 174 | }) |
182 | } else { | 175 | } else { |
183 | wx.navigateTo({ | 176 | wx.navigateTo({ |
184 | - url: '../index/VipRecharge/VipRecharge', | 177 | + url: '../index/TB/TB', |
185 | }) | 178 | }) |
186 | } | 179 | } |
187 | }, | 180 | }, |
188 | 181 | ||
182 | + //会员充值 | ||
183 | + vipCharge() { | ||
184 | + // if (app.globalData.UserType == 4) { | ||
185 | + // wx.showToast({ | ||
186 | + // title: '暂无权限', | ||
187 | + // icon: 'none' | ||
188 | + // }) | ||
189 | + // } else { | ||
190 | + wx.navigateTo({ | ||
191 | + url: '../index/VipRecharge/VipRecharge', | ||
192 | + }) | ||
193 | + // } | ||
194 | + }, | ||
195 | + | ||
189 | //报告浏览记录 | 196 | //报告浏览记录 |
190 | reportList() { | 197 | reportList() { |
191 | wx.navigateTo({ | 198 | wx.navigateTo({ |
@@ -233,7 +240,7 @@ Page({ | @@ -233,7 +240,7 @@ Page({ | ||
233 | twoCode(e) { | 240 | twoCode(e) { |
234 | let imgurl = e.currentTarget.dataset.imgurl | 241 | let imgurl = e.currentTarget.dataset.imgurl |
235 | console.log(e) | 242 | console.log(e) |
236 | - if (app.globalData.UserType == 4) { | 243 | + if (app.globalData.UserType == 4 && app.globalData.user_index!=4) { |
237 | wx.showToast({ | 244 | wx.showToast({ |
238 | title: '暂无权限', | 245 | title: '暂无权限', |
239 | icon: 'none' | 246 | icon: 'none' |
@@ -389,7 +396,7 @@ Page({ | @@ -389,7 +396,7 @@ Page({ | ||
389 | wx.setNavigationBarTitle({ | 396 | wx.setNavigationBarTitle({ |
390 | title: '客户个人中心' | 397 | title: '客户个人中心' |
391 | }) | 398 | }) |
392 | - } else if (app.globalData.UserType === 2){ | 399 | + } else if (app.globalData.UserType === 2) { |
393 | wx.setNavigationBarTitle({ | 400 | wx.setNavigationBarTitle({ |
394 | title: '客户个人中心' | 401 | title: '客户个人中心' |
395 | }) | 402 | }) |
@@ -187,7 +187,7 @@ | @@ -187,7 +187,7 @@ | ||
187 | <view class="envoy_info_box {{!item.tab_state?'expand':''}}"> | 187 | <view class="envoy_info_box {{!item.tab_state?'expand':''}}"> |
188 | <view class='envoy_content' wx:for='{{item.pg}}' wx:key=''> | 188 | <view class='envoy_content' wx:for='{{item.pg}}' wx:key=''> |
189 | <view>{{item.time}}</view> | 189 | <view>{{item.time}}</view> |
190 | - <view class='envoy_title'>{{item.change}}元</view> | 190 | + <view class='envoy_title'>{{item.parent_change}}元</view> |
191 | </view> | 191 | </view> |
192 | </view> | 192 | </view> |
193 | </view> | 193 | </view> |
@@ -206,7 +206,7 @@ | @@ -206,7 +206,7 @@ | ||
206 | </view> | 206 | </view> |
207 | </view> | 207 | </view> |
208 | <view class='content_box'> | 208 | <view class='content_box'> |
209 | - <view class='item_list' bindtap='twoCode' data-imgurl='{{counselor.wechat_code}}'> | 209 | + <view class='item_list' bindtap='twoCode' data-imgurl='{{popularize.wechat_code}}'> |
210 | <view class='list_icon'> | 210 | <view class='list_icon'> |
211 | <text class='iconfont icon-jisuanqi'></text> | 211 | <text class='iconfont icon-jisuanqi'></text> |
212 | </view> | 212 | </view> |
@@ -235,7 +235,7 @@ | @@ -235,7 +235,7 @@ | ||
235 | <view class="envoy_info_box {{!items.tab_state?'expand':''}}"> | 235 | <view class="envoy_info_box {{!items.tab_state?'expand':''}}"> |
236 | <view class='envoy_content' wx:for='{{items.pg}}' wx:for-item='item' wx:for-index='index' wx:key> | 236 | <view class='envoy_content' wx:for='{{items.pg}}' wx:for-item='item' wx:for-index='index' wx:key> |
237 | <view>{{item.time}} </view> | 237 | <view>{{item.time}} </view> |
238 | - <view class='envoy_title'>{{item.change}}元</view> | 238 | + <view class='envoy_title'>{{item.description}}</view> |
239 | </view> | 239 | </view> |
240 | </view> | 240 | </view> |
241 | </view> | 241 | </view> |
@@ -37,15 +37,9 @@ | @@ -37,15 +37,9 @@ | ||
37 | "list": [] | 37 | "list": [] |
38 | }, | 38 | }, |
39 | "miniprogram": { | 39 | "miniprogram": { |
40 | - "current": 9, | 40 | + "current": 8, |
41 | "list": [ | 41 | "list": [ |
42 | { | 42 | { |
43 | - "id": 2, | ||
44 | - "name": "保单体检", | ||
45 | - "pathName": "pages/index/periodicReviews/periodicReviews", | ||
46 | - "query": "allinfo={\"family_id\":128,\"warn_time\":0,\"warn_status\":0,\"infor\":2,\"users\":[{\"family_id\":128,\"id\":241,\"name\":\"测试\",\"family_role\":\"家住\",\"user_family\":1,\"cid\":413,\"key_status\":0},{\"family_id\":128,\"id\":242,\"name\":\"ceshi\",\"family_role\":\"haiz\",\"user_family\":0,\"cid\":413,\"key_status\":0}]}" | ||
47 | - }, | ||
48 | - { | ||
49 | "id": -1, | 43 | "id": -1, |
50 | "name": "个人信息录入", | 44 | "name": "个人信息录入", |
51 | "pathName": "pages/index/EntryInformation/EntryInformation", | 45 | "pathName": "pages/index/EntryInformation/EntryInformation", |
@@ -91,18 +85,18 @@ | @@ -91,18 +85,18 @@ | ||
91 | "scene": null | 85 | "scene": null |
92 | }, | 86 | }, |
93 | { | 87 | { |
94 | - "id": 10, | ||
95 | - "name": "保单新增", | ||
96 | - "pathName": "pages/index/policyManage/policyManage", | ||
97 | - "query": "FamilyId=19", | ||
98 | - "scene": null | ||
99 | - }, | ||
100 | - { | ||
101 | "id": -1, | 88 | "id": -1, |
102 | "name": "保单添加", | 89 | "name": "保单添加", |
103 | "pathName": "pages/index/addListDetail/addListDetail", | 90 | "pathName": "pages/index/addListDetail/addListDetail", |
104 | "query": "def_id=135&FamilyId=70&name=333", | 91 | "query": "def_id=135&FamilyId=70&name=333", |
105 | "scene": null | 92 | "scene": null |
93 | + }, | ||
94 | + { | ||
95 | + "id": -1, | ||
96 | + "name": "aa", | ||
97 | + "pathName": "pages/index/summaryList/summaryList", | ||
98 | + "query": "allinfo={\"family_id\":78,\"warn_time\":9000000000,\"warn_status\":0,\"infor\":2,\"users\":[{\"family_id\":78,\"id\":153,\"name\":\"刘晓艳\",\"family_role\":\"11\",\"user_family\":1,\"cid\":5,\"key_status\":0},{\"family_id\":78,\"id\":154,\"name\":\"秘密\",\"family_role\":\"你们\",\"user_family\":0,\"cid\":5,\"key_status\":0}]}", | ||
99 | + "scene": null | ||
106 | } | 100 | } |
107 | ] | 101 | ] |
108 | } | 102 | } |
-
请 注册 或 登录 后发表评论