作者 刘晓艳

家庭保险

正在显示 48 个修改的文件 包含 2013 行增加950 行删除

要显示太多修改。

为保证性能只显示 48 of 48+ 个文件。

... ... @@ -84,6 +84,8 @@ App({
checkstatus: '', //分享参数(0为无分享参数,1为保单分享,2为注册分享,3为文章分享)
UserStatus: '', //用户状态(1初次登录需要授权操作,2多次登录不需要授权)
PublishId: '', //如果是保单分享返回保单id
NewsId: '' //如果是文章分享返回文章id
NewsId: '', //如果是文章分享返回文章id
temp_UserType:'',
user_index:''
}
})
\ No newline at end of file
... ...
{
"pages": [
"pages/start/start",
"pages/index/summaryList2/summaryList2",
"pages/index/register/register",
"pages/about/about",
"pages/index/personalPolicyList/personalPolicyList",
"pages/index/agreement/agreement",
"pages/index/browseRecordDetail/browseRecordDetail",
"pages/index/consultantList/consultantList",
... ... @@ -10,7 +12,9 @@
"pages/index/CustomerManagement/CustomerManagement",
"pages/index/ArticleDetails/ArticleDetails",
"pages/index/reportList/reportList",
"pages/index/reportList2/reportList2",
"pages/index/editProfile/editProfile",
"pages/index/editProfile2/editProfile2",
"pages/index/policyList/policyList",
"pages/index/policyListDetail/policyListDetail",
"pages/index/policyManage/policyManage",
... ... @@ -27,6 +31,7 @@
"pages/index/remind/remind",
"pages/index/summaryList/summaryList",
"pages/index/learnShare/learnShare",
"pages/index/EntryInformation2/EntryInformation2",
"pages/index/EntryInformation/EntryInformation",
"pages/index/Program/Program",
"pages/index/Suggest/Suggest",
... ...
.no_data {
color: #999;
font-size: 36rpx;
text-align: center;
width: 100%;
height: 100%;
position: fixed;
left: 0;
top: 0;
display: flex;
align-items: center;
justify-content: center;
}
/* iconfont */
@font-face {
font-family: 'iconfont'; /* project id 926819 */
src: url('//at.alicdn.com/t/font_926819_0twe6hg7mqhh.eot');
src: url('//at.alicdn.com/t/font_926819_0twe6hg7mqhh.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_926819_0twe6hg7mqhh.woff') format('woff'),
url('//at.alicdn.com/t/font_926819_0twe6hg7mqhh.ttf') format('truetype'),
url('//at.alicdn.com/t/font_926819_0twe6hg7mqhh.svg#iconfont') format('svg');
src: url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.eot');
src: url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.woff2') format('woff2'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.woff') format('woff'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.ttf') format('truetype'),
url('//at.alicdn.com/t/font_926819_0pzhvmpbjahd.svg#iconfont') format('svg');
}
.iconfont {
font-family:"iconfont" !important;
font-size:16px;
font-style:normal;
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-chongzhi:before { content: "\e606"; }
.icon-chongzhi:before {
content: "\e606";
}
.icon-bi:before { content: "\e60a"; }
.icon-bi:before {
content: "\e60a";
}
.icon-renzheng:before { content: "\e646"; }
.icon-renzheng:before {
content: "\e646";
}
.icon-anquan:before { content: "\e63c"; }
.icon-anquan:before {
content: "\e63c";
}
.icon-listpress:before { content: "\e627"; }
.icon-listpress:before {
content: "\e627";
}
.icon-xiala1:before { content: "\e61c"; }
.icon-xiala1:before {
content: "\e61c";
}
.icon-baodanyuhetong:before { content: "\e642"; }
.icon-baodanyuhetong:before {
content: "\e642";
}
.icon-shu:before { content: "\e645"; }
.icon-shu:before {
content: "\e645";
}
.icon-fenxiang2:before { content: "\e620"; }
.icon-fenxiang2:before {
content: "\e620";
}
.icon-fangxingxuanzhongfill:before { content: "\e721"; }
.icon-fangxingxuanzhongfill:before {
content: "\e721";
}
.icon-bianji:before { content: "\e6b4"; }
.icon-bianji:before {
content: "\e6b4";
}
.icon-zhaoxiangji1:before { content: "\e663"; }
.icon-zhaoxiangji1:before {
content: "\e663";
}
.icon-guanyuwomen:before { content: "\e61e"; }
.icon-xuanzhong2:before {
content: "\e62b";
}
.icon-ren-copy:before { content: "\e600"; }
.icon-guanyuwomen:before {
content: "\e61e";
}
.icon-xuanzhong:before { content: "\e61a"; }
.icon-ren-copy:before {
content: "\e600";
}
.icon-artboard61:before { content: "\e788"; }
.icon-xuanzhong:before {
content: "\e61a";
}
.icon-jinru:before { content: "\e618"; }
.icon-artboard61:before {
content: "\e788";
}
.icon-kehu:before { content: "\e613"; }
.icon-jinru:before {
content: "\e618";
}
.icon-jiating1:before { content: "\e81d"; }
.icon-kehu:before {
content: "\e613";
}
.icon-wuuiconxiangjifangda:before { content: "\e623"; }
.icon-jiating1:before {
content: "\e81d";
}
.icon-guwen:before { content: "\e61d"; }
.icon-wuuiconxiangjifangda:before {
content: "\e623";
}
.icon-tianjia:before { content: "\e648"; }
.icon-guwen:before {
content: "\e61d";
}
.icon-xiala:before { content: "\e619"; }
.icon-tianjia:before {
content: "\e648";
}
.icon-icon-test:before { content: "\e72e"; }
.icon-xiala:before {
content: "\e619";
}
.icon-fangkuang:before { content: "\e629"; }
.icon-icon-test:before {
content: "\e72e";
}
.icon-jiating:before { content: "\e73d"; }
.icon-fangkuang:before {
content: "\e629";
}
.icon-jiaoyijilu:before { content: "\e638"; }
.icon-jiating:before {
content: "\e73d";
}
.icon-jinbi:before { content: "\e672"; }
.icon-jiaoyijilu:before {
content: "\e638";
}
.icon-bianji1:before { content: "\e68a"; }
.icon-jinbi:before {
content: "\e672";
}
.icon-mingdanguanli:before { content: "\e658"; }
.icon-bianji1:before {
content: "\e68a";
}
.icon-renzheng1:before { content: "\e62a"; }
.icon-mingdanguanli:before {
content: "\e658";
}
.icon-dkw_wode-:before { content: "\e60e"; }
.icon-renzheng1:before {
content: "\e62a";
}
.icon-guanbi2:before { content: "\e60f"; }
.icon-dkw_wode-:before {
content: "\e60e";
}
.icon-wenjian:before { content: "\e67d"; }
.icon-guanbi2:before {
content: "\e60f";
}
.icon-xuanzhongyuandian:before { content: "\e624"; }
.icon-wenjian:before {
content: "\e67d";
}
.icon-sousuo:before { content: "\e617"; }
.icon-xuanzhongyuandian:before {
content: "\e624";
}
.icon-xuanze:before { content: "\e6c3"; }
.icon-sousuo:before {
content: "\e617";
}
.icon-xuanze:before {
content: "\e6c3";
}
.icon-sousuo1:before { content: "\e632"; }
.icon-sousuo1:before {
content: "\e632";
}
.icon-yuan:before { content: "\e622"; }
.icon-yuan:before {
content: "\e622";
}
.icon-YDUI-naozhong:before { content: "\e65d"; }
.icon-YDUI-naozhong:before {
content: "\e65d";
}
.icon-ren:before { content: "\e6d9"; }
.icon-ren:before {
content: "\e6d9";
}
.icon-ziliao:before { content: "\e603"; }
.icon-ziliao:before {
content: "\e603";
}
.icon-kehuguanli-copy-copy:before { content: "\e63a"; }
.icon-kehuguanli-copy-copy:before {
content: "\e63a";
}
.icon-add:before { content: "\e604"; }
.icon-add:before {
content: "\e604";
}
.icon-baodanxinxi:before { content: "\e602"; }
.icon-baodanxinxi:before {
content: "\e602";
}
.icon-hengxian1:before { content: "\e626"; }
.icon-hengxian1:before {
content: "\e626";
}
.icon-riqi:before { content: "\ea1a"; }
.icon-riqi:before {
content: "\ea1a";
}
.icon-tijian:before { content: "\e605"; }
.icon-tijian:before {
content: "\e605";
}
.icon-hengxian:before { content: "\e657"; }
.icon-hengxian:before {
content: "\e657";
}
.icon-gouwuche:before { content: "\e609"; }
.icon-gouwuche:before {
content: "\e609";
}
.icon-yaoqing:before { content: "\e60b"; }
.icon-yaoqing:before {
content: "\e60b";
}
.icon-guanbi:before { content: "\e621"; }
.icon-guanbi:before {
content: "\e621";
}
.icon-xiazai:before { content: "\e625"; }
.icon-xiazai:before {
content: "\e625";
}
.icon-fenxiang:before { content: "\e62e"; }
.icon-fenxiang:before {
content: "\e62e";
}
.icon-xuexi:before { content: "\e61b"; }
.icon-xuexi:before {
content: "\e61b";
}
.icon-baogao:before { content: "\e639"; }
.icon-baogao:before {
content: "\e639";
}
.icon-weixinzhifu:before { content: "\e647"; }
.icon-weixinzhifu:before {
content: "\e647";
}
.icon-dianhua:before { content: "\e67c"; }
.icon-dianhua:before {
content: "\e67c";
}
.icon-xiugai:before { content: "\e607"; }
.icon-xiugai:before {
content: "\e607";
}
.icon-xuanzhong1:before { content: "\e61f"; }
.icon-xuanzhong1:before {
content: "\e61f";
}
.icon-guanli:before { content: "\e6e3"; }
.icon-guanli:before {
content: "\e6e3";
}
.icon-tixian:before { content: "\e62d"; }
.icon-tixian:before {
content: "\e62d";
}
.icon-shang:before { content: "\e611"; }
.icon-shang:before {
content: "\e611";
}
.icon-rizhi:before { content: "\e614"; }
.icon-rizhi:before {
content: "\e614";
}
.icon-baogao1:before { content: "\e62f"; }
.icon-baogao1:before {
content: "\e62f";
}
.icon-jisuanqi:before { content: "\e608"; }
.icon-jisuanqi:before {
content: "\e608";
}
.icon-jiatingzhanghu:before { content: "\e615"; }
.icon-jiatingzhanghu:before {
content: "\e615";
}
.icon-shuoming:before { content: "\e633"; }
.icon-shuoming:before {
content: "\e633";
}
.icon-nav:before { content: "\e601"; }
.icon-nav:before {
content: "\e601";
}
.icon-xuanzhongkuang:before { content: "\e628"; }
.icon-xuanzhongkuang:before {
content: "\e628";
}
.icon-ling:before { content: "\e8bf"; }
.icon-ling:before {
content: "\e8bf";
}
.icon-dianhua2:before { content: "\e649"; }
.icon-dianhua2:before {
content: "\e649";
}
.icon-fangan:before { content: "\e60c"; }
.icon-fangan:before {
content: "\e60c";
}
.icon-fenxiang1:before { content: "\e634"; }
.icon-fenxiang1:before {
content: "\e634";
}
.icon-gray-crown:before { content: "\e60d"; }
.icon-gray-crown:before {
content: "\e60d";
}
.icon-shanchu1:before { content: "\e616"; }
.icon-shanchu1:before {
content: "\e616";
}
.icon-kakou:before { content: "\e660"; }
.icon-kakou:before {
content: "\e660";
}
.icon-shezhi:before { content: "\e610"; }
.icon-shezhi:before {
content: "\e610";
}
.icon-jianyi:before { content: "\e696"; }
.icon-jianyi:before {
content: "\e696";
}
.icon-zhuanfa:before { content: "\e783"; }
.icon-zhuanfa:before {
content: "\e783";
}
.icon-shanchu:before { content: "\e67b"; }
.icon-shanchu:before {
content: "\e67b";
}
.icon-danjiantou:before { content: "\e612"; }
.icon-danjiantou:before {
content: "\e612";
}
... ...
... ... @@ -10,6 +10,8 @@ Page({
GoId: '', //分享人id
articleDetail: [], //文章详情内容
share_num: '',
UserId:'',
UserType:''
},
//文章详情
listDetail() {
... ... @@ -33,6 +35,22 @@ Page({
})
},
//注册顾问
goRegister(){
wx.navigateTo({
url: '/pages/index/register/register',
})
},
//查看顾问详情
goDetail(e){
var CounselorId = this.data.GoId
console.log(222, CounselorId)
wx.navigateTo({
url: '/pages/index/editProfile2/editProfile2?CounselorId=' + CounselorId,
})
},
//有奖分享
prizeshare() {
var that = this;
... ... @@ -69,9 +87,13 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
console.log(options.GoId)
let that = this;
that.setData({
NewsId: options.NewsId
NewsId: options.NewsId,
UserId:app.globalData.UserId,
GoId: options.GoId,
UserType:app.globalData.UserType
})
that.listDetail();
... ... @@ -88,7 +110,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
// this.listDetail()
},
/**
... ... @@ -122,30 +144,39 @@ Page({
/**
* 用户点击右上角分享
*/
onShareAppMessage: function (option) {
let that = this;
// 设置菜单中的转发按钮触发转发事件时的转发内容
var shareObj = {
title: '', // 默认是小程序的名称(可以写slogan等)
path: '/pages/start/start?doctorid=' + app.globalData.doctorid, // 默认是当前页面,必须是以‘/’开头的完整路径
imageUrl: '',//自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
success: function (res) {
// 转发成功之后的回调
if (res.errMsg == 'shareAppMessage:ok') { }
},
fail: function () {
// 转发失败之后的回调
if (res.errMsg == 'shareAppMessage:fail cancel') {
// 用户取消转发
} else if (res.errMsg == 'shareAppMessage:fail') {
// 转发失败,其中 detail message 为详细失败信息
}
},
complete: function () {
// 转发结束之后的回调(转发成不成功都会执行)
}
}   // 来自页面内的按钮的转发
return shareObj;
}
onShareAppMessage: function (options) {
console.log(options)
this.prizeshare()
// 设置菜单中的转发按钮触发转发事件时的转发内容
var shareObj = {
title: options.target.dataset.title, // 默认是小程序的名称(可以写slogan等)
path: '/pages/start/start?status=' + options.target.dataset.status + '&GoId=' + app.globalData.UserId, // 默认是当前页面,必须是以‘/’开头的完整路径
imgUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
success: function (res) {
// 转发成功之后的回调
if (res.errMsg == 'shareAppMessage:ok') { }
},
fail: function () {
// 转发失败之后的回调
if (res.errMsg == 'shareAppMessage:fail cancel') {
// 用户取消转发
} else if (res.errMsg == 'shareAppMessage:fail') {
// 转发失败,其中 detail message 为详细失败信息
}
},
complete: function () {
// 转发结束之后的回调(转发成不成功都会执行)
}
}   // 来自页面内的按钮的转发
if (options.from == 'button') {
// var eData = options.target.dataset;
// console.log(eData.name); // shareBtn
// 此处可以修改 shareObj 中的内容
shareObj.path = '/pages/start/start?status=' + options.target.dataset.status
}   // 返回shareObj
return shareObj;
}
})
\ No newline at end of file
... ...
... ... @@ -11,30 +11,25 @@
</view>
<view class='banner_box' wx:if="{{GoId!=''}}">
<view class='head_img'>
<image src='/images/img2.png'></image>
<image src='{{articleDetail.user.picurl}}'></image>
</view>
<view class='head_info_box'>
<view class='user_name'>苏菀菁</view>
<view>15869584682</view>
<view>某某机构</view>
<view>某某职业</view>
<view class='user_name'>{{articleDetail.user.name}}</view>
<view>{{articleDetail.user.mobile}}</view>
<view>{{articleDetail.user.work}}</view>
<view>{{articleDetail.user.work_post}}</view>
</view>
<view class='edit_box'>
<view class='edit_box' bindtap='goDetail'>
<view>查看详情</view>
</view>
<view class='banner_info'>我要开通名片功能</view>
<view class='banner_info' wx:if='{{UserType!=3}}' bindtap='goRegister'>我要开通名片功能</view>
</view>
<view class='list_content'>
<!-- <view>八月的阳光下,蝉隐去鸣噪,只剩下天空,纯净如水一样湛蓝,八月的浓绿,连接着真情与彩虹,连接着嫩绿与金黄;八月的激情,连接着幼稚与成熟,连接着真诚和永恒;八月的力度,连接着单一与和谐,连接着平安与幸福。八月,岂止是绿的画、情的诗、力的歌,它更是花粉朋友们一个美好的回忆!下面是关于八月的精美随拍,欢迎欣赏!</view>
<view> 文章详情标题字号大小为40号,行高72px; 正文字号大小为30号,行高56px。</view> -->
<template is="wxParse" data="{{wxParseData:content.nodes}}" />
</view>
<view class='bottom_box' >
<button open-type='share'></button>
<view class='bottom_box'>
<button data-status="{{articleDetail.status}}" data-title='{{articleDetail.title}}' open-type='share'></button>
<text class='iconfont icon-zhuanfa'></text>
<text>转发</text>
</view>
... ...
... ... @@ -80,7 +80,7 @@
}
.list_info_box {
font-size: 24rpx;
font-size: 28rpx;
color: #97a0a8;
margin-bottom: 30rpx;
}
... ...
... ... @@ -7,11 +7,13 @@ Page({
*/
data: {
currentTab: 2,
Status:'',
KeyWord:'',
list:''
Status: '',
KeyWord: '',
list: '',
mainid: '',
vip_state: false
},
//点击切换
tabCharge(e) {
var that = this;
... ... @@ -50,50 +52,80 @@ Page({
title: '会员到期,请充值',
icon: 'none'
}, 2000)
wx.navigateTo({
url: '../../my/recharge/recharge',
that.setData({
vip_state: false
})
} else if (res.data.data.type == '-12') {
wx.showToast({
title: '您已经被禁用,请联系管理员',
icon: 'none'
}, 2000)
that.setData({
vip_state: false
})
} else if (res.data.data.type == '-11') {
wx.showToast({
title: '您的权限不足',
icon: 'none'
}, 2000)
} else {
that.setData({
vip_state: false
})
} else if (res.data.data.type == '1') {
that.setData({
list: res.data.data.list,
cid: res.data.data.list[0].users[0].cid,
KeyWord: ''
// cid: res.data.data.list[0].users[0].cid,
KeyWord: '',
vip_state: true
})
if (res.data.data.list[0].users[0].cid != '') {
that.setData({
cid: res.data.data.list[0].users[0].cid,
})
}
}
}
}).catch((errMsg) => {
// console.log(errMsg)
})
},
//家庭信息
familyData() {
familyData(e) {
var that = this
let familyid = e.currentTarget.dataset.familyid;
let list = that.data.list;
// console.log(list)
for (let items of list) {
if (items.family_id == familyid) {
for (let j in items.users) {
if (items.users[j].user_family == 1) {
that.setData({
mainid: items.users[j].id, //户主ID
cid: items.users[j].cid //顾问ID
})
}
}
}
}
wx.navigateTo({
url: '../remind/remind',
url: '../remind/remind?cid=' + this.data.cid + '&mainid=' + this.data.mainid,
})
},
//个人信息详情
infoDetail() {
infoDetail(e) {
// wx.navigateTo({
// url: '../personInfo/personInfo?DefId=' + e.currentTarget.dataset.id,
// })
wx.navigateTo({
url: '../personInfo/personInfo',
url: '/pages/index/EntryInformation2/EntryInformation2?DefId=' + e.currentTarget.dataset.id,
})
},
//创建新家庭
addFamily() {
var flag=true
var flag = true
wx.navigateTo({
url: '../addNewFamily/addNewFamily?flag=' + flag,
})
... ... @@ -106,6 +138,7 @@ Page({
url: '../addNewFamily/addNewFamily?familyid=' + familyid,
})
},
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -124,7 +157,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
this.getdata()
},
/**
... ...
... ... @@ -16,15 +16,16 @@
</view>
<view class='item_list' wx:for='{{list}}' wx:key=''>
<view class='list_left_box'>
<view class='list_label_box' bindtap='familyData'>
<view class='list_label_box' bindtap='familyData' data-familyid='{{item.family_id}}'>
<view class='iconfont icon-jiating1'></view>
<view>跟踪提醒</view>
<text class='iconfont icon-yuan label_icon' wx:if='{{item.warn_status==1}}'></text>
</view>
<view class='list_label_item'>
<view class='label_item' wx:for='{{item.users}}' wx:for-item='user' wx:key='' data-family_id='{{user.family_id}}' bindtap='infoDetail'>
<view class='label_item' wx:for='{{item.users}}' wx:for-item='user' wx:key='' data-id='{{user.id}}' bindtap='infoDetail'>
<text>{{user.name}}({{user.family_role}})</text>
<text class='iconfont icon-yuan '></text>
<text class='iconfont icon-yuan' wx:if='{{user.user_family==1}}'></text>
<text class='iconfont icon-yuan user_point' wx:if='{{user.key_status==1}}'></text>
</view>
<!-- <view class='label_item'>
<text>曹文正(爸爸)</text>
... ... @@ -37,7 +38,7 @@
</view>
</view>
<view class='list_right_box'>
<view class='list_btn_box' bindtap='addPerson' data-familyid='{{item.family_id}}'>
<view class='list_btn_box' bindtap="{{vip_state?'addPerson':''}}" data-familyid='{{item.family_id}}'>
<view class='list_btn'>
<view class='iconfont icon-shezhi'></view>
</view>
... ... @@ -47,6 +48,6 @@
</view>
<view class='null_box'></view>
<view class='bottom'>
<view class='bottom_box' bindtap='addFamily'>创建新家庭</view>
<view class='bottom_box' bindtap="{{vip_state?'addFamily':''}}">创建新家庭</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -91,6 +91,7 @@
}
.list_left_box {
width: 87%;
display: flex;
align-items: flex-start;
}
... ...
... ... @@ -39,7 +39,7 @@ Page({
//名字
setName(e) {
console.log(e)
// console.log(e)
var list = this.data.list;
list.name = e.detail.value;
this.setData({
... ... @@ -172,7 +172,7 @@ Page({
let url = 'counselor/DefAdd';
let params = {}
app.post(url, params).then((res) => {
console.log(res)
// console.log(res)
if (res.data.code == 200) {
var list = this.data.list
that.setData({
... ... @@ -186,14 +186,21 @@ Page({
//选择用户标签
selectLabel(e) {
var mindex = e.currentTarget.dataset.mindex
var sindex = e.currentTarget.dataset.sindex
var list = this.data.list
var id = e.currentTarget.dataset.id
var label_ids = this.data.label_ids
label_ids.push(id)
var status = e.currentTarget.dataset.status
var label_list = this.data.label_list
var mindex = e.currentTarget.dataset.mindex
var sindex = e.currentTarget.dataset.sindex
var label_ids = this.data.label_ids;
//去重
const add = label_ids.every((label_ids) => {
return label_ids != id
})
if (add) {
label_ids.push(id)
}
label_list[mindex].data[sindex].status = !(label_list[mindex].data[sindex].status)
this.setData({
label_list: label_list,
... ... @@ -247,9 +254,10 @@ Page({
var flag = true;
var state = that.data.state
var list = this.data.list;
console.log(list.sex, list.sex == '')
if (list.name == "") {
warn = "请填写您的姓名";
} else if (list.sex == '') {
} else if (list.sex !=0 && list.sex!=1) {
warn = "请填写您的性别";
} else if (list.family_role == '') {
warn = '请填写您的家庭角色'
... ... @@ -270,7 +278,7 @@ Page({
mid: list.mid,
user_status: list.user_status,
status_num: list.status_num,
picurl: list.picurl,
picurl: this.data.hasimg,
text: list.text,
label_ids: this.data.label_ids,
family_id: that.data.familyid,
... ... @@ -321,16 +329,17 @@ Page({
var label_ids = this.data.label_ids
var label_list = res.data.data.label_list
for (var i = 0; i < label_list.length; i++) {
console.log(label_list[i].data.length)
for (var j = 0; j < label_list[i].data.length; j++) {
if (label_list[i].data[j].status == 1) {
label_ids.push(label_list[i].data[j].id)
}
}
}
var list = res.data.data.list;
list.sex = res.data.data.list.sex;
console.log(list.sex)
that.setData({
list: res.data.data.list,
list: list,
label_list: res.data.data.label_list,
sex_index: res.data.data.list.sex,
card_index: parseInt(res.data.data.list.user_status) - 1,
... ...
... ... @@ -49,8 +49,8 @@
<text>出生日期</text>
</view>
<view class='list_input'>
<picker class='picker' mode="date" value='{{list.birthday }}' bindchange='birthDate'>
<input placeholder='请选择出生日期' value='{{list.birthday }}' disabled='true'></input>
<picker class='picker' mode="date" value='{{list.birthday}}' bindchange='birthDate'>
<input placeholder='请选择出生日期' value='{{list.birthday}}' disabled='true'></input>
</picker>
</view>
</view>
... ... @@ -104,7 +104,7 @@
</view>
<view bindtap='chooseImg' wx:else>
<view class='iconfont icon-add'></view>
<view>请上传清晰的保单照片</view>
<view>上传客户照片</view>
</view>
</view>
</view>
... ... @@ -120,14 +120,14 @@
<view class='item_list'>
<view class='list_title'>添加用户标签</view>
</view>
<view class='item_list item_label_box' wx:for='{{label_list}}' wx:key='' data-Mindex='{{index}}'>
<view class='item_list item_label_box' wx:for='{{label_list}}' wx:key='' wx:for-index='mindex'>
<view class='list_label_title'>{{item.label}} </view>
<view class='list_label'>
<view class="address_btn {{item.status?'unit_address':''}}" data-id='{{item.id}}' data-status='{{item.status}}' wx:for='{{item.data}}' wx:key='' data-Sindex='{{index}}' data-Mindex='{{index}}' bindtap='selectLabel'>{{item.name}}</view>
<view class="address_btn {{sub_its.status?'unit_address':''}}" data-id='{{sub_its.id}}' data-status='{{sub_its.status}}' wx:for='{{item.data}}' wx:for-item='sub_its' wx:key='' wx:for-index='sindex' data-sindex='{{sindex}}' data-mindex='{{mindex}}' bindtap='selectLabel'>{{sub_its.name}}</view>
</view>
</view>
</view>
<!-- 底部按钮 -->
<view class='null_box'></view>
<view class='bottom_box'>
... ...
// pages/Program/Program.js
const app=getApp();
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
list: [],
temobj:{
name:'',
firm:'',
text:''
}
},
getlist() {
let that=this;
let url = 'counselor/SchemeList';
let params = {
userId: app.globalData.UserId
}
app.post(url, params).then((res) => {
if (res.data.code == 200) {
list: [],
temobj: {
name: '',
firm: '',
text: '',
last_state: true,
add_state: false,
input_stete:false
},
},
//获取预设方案列表
getlist() {
let that = this;
// var list=this.data.list
// list.push({
// name: '',
// firm: '',
// text: '',
// id: 0,
// last_state: true
// })
// that.setData({
// list: list
// })
let url = 'counselor/SchemeList';
let params = {
userId: app.globalData.UserId
}
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code == 200) {
var list = res.data.data.list
if (list.length == 0) {
list.push({
name: '',
firm: '',
text: '',
id: 0,
last_state: true
})
that.setData({
list: list
})
} else {
that.setData({
list: res.data.data.list
})
}
that.getLength()
}
}).catch((err) => {
// console.log(err)
})
},
//设置名字
setName(e) {
let that = this;
let list = that.data.list;
let index = e.currentTarget.dataset.index;
list[index].name = e.detail.value;
that.setData({
list: res.data.data.list
list: list
})
}
}).catch((err) => {
console.log(err)
})
},
setname(e){
let that = this;
let list = that.data.list;
let index = e.currentTarget.dataset.index;
list[index].name = e.detail.value;
that.setData({
list: list
})
},
setfirm(e){
let that = this;
let list = that.data.list;
let index = e.currentTarget.dataset.index;
list[index].firm = e.detail.value;
that.setData({
list: list
})
},
settemname(e){
let that=this;
let temobj = that.data.temobj;
temobj.name = e.detail.value;
that.setData({
temobj: temobj
})
},
settemfirm(e) {
let that = this;
let temobj = that.data.temobj;
temobj.firm = e.detail.value;
that.setData({
temobj: temobj
})
},
settemtext(e) {
let that = this;
let temobj = that.data.temobj;
temobj.text = e.detail.value;
that.setData({
temobj: temobj
})
},
settext(e){
let that=this;
let list = that.data.list;
let index = e.currentTarget.dataset.index;
list[index].text = e.detail.value;
that.setData({
list: list
})
},
deltemobj(){
let that=this;
let temobj={
name: '',
firm: '',
text: '',
}
that.setData({
temobj: temobj
})
},
addtemobj(){
let that=this;
let url ='counselor/SchemeSave';
let params={
userId: app.globalData.UserId,
name: that.data.temobj.name,
firm: that.data.temobj.firm,
text: that.data.temobj.text
}
app.post(url, params).then((res)=>{
if(res.data.code==200){
that.getlist();
let temobj = {
name: '',
firm: '',
text: '',
}
},
//设置公司名
setFirm(e) {
let that = this;
let list = that.data.list;
let index = e.currentTarget.dataset.index;
list[index].firm = e.detail.value;
that.setData({
temobj: temobj
list: list
})
}
}).catch((err)=>{
console.log(err)
})
},
//保存按钮
del(e){
let that=this;
let index = e.currentTarget.dataset.index;
let list=that.data.list;
let id = e.currentTarget.id;
wx.showModal({
title: '提示',
content: '是否删除预设方案',
cancelColor:'#000000',
confirmColor:'#3cc51f',
showCancel:true,
cancelText:'取消',
confirmText:'确定',
success(res) {
if (res.confirm) {
let url ='counselor/SchemeDelete';
app.post(url, { SchemeId:id}).then((res)=>{
if(res.data.code==200){
if(res.data.data.type==1){
that.getlist();
wx.showToast({
title: '操作成功',
icon: 'none',
duration: 2000
})
}
}
})
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
},
//保存所有
allsave(){
let that=this;
let list = this.data.list;
for (let i = 0; i < list.length;i++){
if (i == (list.length-1)){
wx.showToast({
title: '保存成功',
icon: 'success',
duration: 2000,
mask: true,
},
//保障内容
setText(e) {
let that = this;
let list = that.data.list;
let index = e.currentTarget.dataset.index;
list[index].text = e.detail.value;
that.setData({
list: list
})
},
//添加方案
addPlan(e) {
let that = this;
let list = that.data.list;
let index = e.currentTarget.dataset.index;
list[index].add_state = false
list[index].input_stete=true
this.setData({
list: list
})
setTimeout(function(){
wx.navigateBack({
delta: 1
})
},1000)
}else{
let url = 'counselor/SchemeSave';
let params = {
userId: app.globalData.UserId,
schemeId: list[i].id,
name: list[i].name,
firm: list[i].firm,
text: list[i].text
userId: app.globalData.UserId,
schemeId: e.currentTarget.dataset.id,
name: list[index].name,
firm: list[index].firm,
text: list[index].text
}
app.post(url, params).then((res) => {
if (res.data.code == 200) {
console.log(res)
if (res.data.code == 200) {
list.push({
name: '',
firm: '',
text: '',
id: 0,
last_state: true,
add_state: false,
input_stete:false
})
that.setData({
list: list
})
that.getLength2();
}
})
},
}
}).catch((err) => {
console.log(err)
getLength() {
var list = this.data.list
list[list.length - 1].add_state = true
for (var obj in list) {
if (obj == list.length - 1) {
list[list.length - 1].last_state = false
} else {
list[obj].last_state = true
}
}
this.setData({
list: list
})
}
}
},
},
getLength2() {
// this.getlist()
var list = this.data.list
list[list.length - 1].add_state = true
for (var obj in list) {
if (obj == list.length - 1) {
list[list.length - 1].last_state = false
} else {
list[obj].last_state = true
}
}
this.setData({
list: list
})
},
//保存按钮
del(e) {
let that = this;
let index = e.currentTarget.dataset.index;
let list = that.data.list;
let id = e.currentTarget.dataset.id;
if (list.length != 1) {
wx.showModal({
title: '提示',
content: '是否删除预设方案',
cancelColor: '#000000',
confirmColor: '#3cc51f',
showCancel: true,
cancelText: '取消',
confirmText: '确定',
success(res) {
if (res.confirm) {
let url = 'counselor/SchemeDelete';
let params = {
SchemeId: id
}
app.post(url, params).then((res) => {
// console.log(res)
that.getlist();
})
} else if (res.cancel) {
// console.log('用户点击取消')
}
}
})
} else {
this.setData({
last_state: false
})
}
},
settemname(e) {
let that = this;
let temobj = that.data.temobj;
temobj.name = e.detail.value;
that.setData({
temobj: temobj
})
},
settemfirm(e) {
let that = this;
let temobj = that.data.temobj;
temobj.firm = e.detail.value;
that.setData({
temobj: temobj
})
},
settemtext(e) {
let that = this;
let temobj = that.data.temobj;
temobj.text = e.detail.value;
that.setData({
temobj: temobj
})
},
deltemobj() {
let that = this;
let temobj = {
name: '',
firm: '',
text: '',
}
that.setData({
temobj: temobj
})
},
//保存所有
allsave() {
let that = this;
let list = this.data.list;
console.log(list[list.length - 1].name)
if (list[list.length - 1].name != '' && list[list.length - 1].id == 0) {
let url = 'counselor/SchemeSave';
let params = {
userId: app.globalData.UserId,
schemeId: 0,
name: list[list.length - 1].name,
firm: list[list.length - 1].firm,
text: list[list.length - 1].text
}
app.post(url, params).then((res) => {
if (res.data.code == 200) {
// wx.showToast({
// title: '添加成功',
// })
wx.navigateBack({
delta: 1
})
}
})
} else {
list.pop()
that.setData({
list: list
})
}
that.getlist();
console.log(that.data.list)
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let that=this;
that.getlist();
onLoad: function(options) {
let that = this;
that.getlist();
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
let that = this;
that.getlist();
onShow: function() {
let that = this;
that.getlist();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function() {
}
})
\ No newline at end of file
... ...
<!--pages/Program/Program.wxml-->
<view class='line_box'></view>
<view wx:for='{{list}}' wx:key>
<view class='line_box'></view>
<view class='content_box'>
<view class='item_list'>
<view>产品名称</view>
<view class='list_input'>
<input placeholder='请输入产品名称' value='{{item.name}}' bindinput='setmame'
data-index='{{index}}'></input>
<input placeholder='请输入产品名称' value='{{item.name}}' bindinput='setName' data-index='{{index}}' placeholder-class='pl_style' disabled='{{item.last_state}}'></input>
</view>
</view>
<view class='item_list'>
<view>保险公司</view>
<view class='list_input'>
<input placeholder='请输入保险公司' value='{{item.firm}}' bindinput='setfirm'
data-index='{{index}}'></input>
<input placeholder='请输入保险公司' value='{{item.firm}}' bindinput='setFirm' data-index='{{index}}' placeholder-class='pl_style' disabled='{{item.last_state}}'></input>
</view>
</view>
<view class='item_list'>
<view>保障内容</view>
<view class='list_input'>
<input placeholder='请输入保障内容' value='{{item.text}}' bindinput='settext' data-index='{{index}}'></input>
<textarea placeholder='请输入保障内容' value='{{item.text}}' bindinput='setText' data-index='{{index}}' placeholder-class='pl_style' disabled='{{item.last_state}}'></textarea>
</view>
</view>
</view>
<view class='list_btn_box'>
<view class='list_btn' bindtap='del' id='{{item.id}}'>删除方案</view>
<view class='list_btn' bindtap='del' data-id='{{item.id}}' wx:if='{{item.last_state}}'>删除方案</view>
<view class='list_btn add_btn' bindtap='addPlan' data-id='{{item.id}}' data-index='{{index}}' wx:if='{{item.add_state}}'>添加方案</view>
</view>
<view class='line_box'></view>
<!-- <view class='line_box'></view> -->
</view>
<view>
<!-- <view wx:if='{{}}'>
<view class='content_box'>
<view class='item_list'>
<view>产品名称</view>
... ... @@ -51,9 +50,9 @@
</view>
<view class='list_btn_box'>
<view class='list_btn' bindtap='deltemobj'>删除方案</view>
<view class='list_btn add_btn' bindtap='addtemobj'>添加方案</view>
<view class='list_btn add_btn' bindtap='addtemobj'>添加方案</view>
</view>
</view>
</view> -->
<view class='bottom_box'>
<view class='save_btn' bindtap='allsave'>保存</view>
</view>
\ No newline at end of file
... ...
/* pages/Program/Program.wxss */
page{
padding:0 0 150rpx 0;
page {
padding: 0 0 150rpx 0;
}
.line_box {
width: 100%;
height: 16rpx;
... ... @@ -24,17 +26,29 @@ page{
.list_input {
width: 79%;
margin-left: 30rpx;
font-size: 28rpx;
}
.list_input input {
width: 100%;
border: 0;
outline: none;
padding-bottom: 3rpx;
box-sizing: border-box;
font-size: 28rpx;
}
.list_input textarea {
width: 100%;
min-height: 160rpx;
height: 200rpx;
padding-top: 10rpx;
font-size: 28rpx;
box-sizing: border-box;
}
.pl_style {
font-size: 28rpx;
color: #999;
}
.list_btn_box {
... ... @@ -55,12 +69,14 @@ page{
align-items: center;
justify-content: center;
}
.add_btn{
.add_btn {
border: 0;
background: #0286FF;
background: #0286ff;
color: #fff;
margin-left: 20rpx;
}
.bottom_box {
width: 100%;
padding: 30rpx;
... ... @@ -68,6 +84,8 @@ page{
bottom: 0;
left: 0;
box-sizing: border-box;
z-index: 100;
background: #fff;
}
.save_btn {
... ...
... ... @@ -33,7 +33,7 @@
.pl_style {
font-size: 28rpx;
color: #1a1a1a;
color: #999999;
}
.bottom_box {
... ...
... ... @@ -18,12 +18,13 @@ Page({
insure: ['投保人', '投保人2'],
insureindex: -1,
beneficiary_list: [{
name: ['受益人1', '受益人2'],
name_array: ['受益人1', '受益人2'],
unit: ''
}],
beneficiaryindex: -1,
tempfavoree: [], // 已选择的受益人
beneficiaryList: [],
beneficiaryindex: -1,
name: '', //受益人的名字,
beneficiary_name: '',
imgs: [],
main_risk: [],
... ... @@ -36,18 +37,37 @@ Page({
rang_beneficiary: [],
risk_list: [{
name: '',
projectlist: [],
mo: [],
project_time: '',
time: 1
title: '',
num: ''
}],
main_array: [],
warranty_one: [],
warranty_two: [],
warranty_one: '',
warranty_two: {},
guarantee_name: '',
long_money: [],
long_money: {},
time_name: '',
type_money: '',
more: [],
guarantee: [],
InfoId: 0,
def_id: '',
edit_state: false
},
//保单号
policyNum(e) {
this.setData({
in_num: e.detail.value,
})
},
//保单号
setFirm(e) {
this.setData({
firm: e.detail.value,
})
},
//投保人
... ... @@ -55,7 +75,7 @@ Page({
var insure = this.data.insure
this.setData({
insureindex: e.detail.value,
applicant_name: insure[e.detail.value]
applicant_name: insure[e.detail.value],
})
},
... ... @@ -68,11 +88,43 @@ Page({
})
},
//主险名称
setRiskName(e) {
// console.log(e)
this.setData({
main_risks: e.detail.value,
})
// console.log(this.data.main_risks)
},
//保费
yearMoney(e) {
this.setData({
year_money: e.detail.value,
})
},
//设置银行
setBank(e) {
this.setData({
bank: e.detail.value,
})
},
//设置账号
setBankNum(e) {
this.setData({
bank_num: e.detail.value,
})
},
//合同生效日
compactTime(e) {
this.setData({
compact_time: e.detail.value,
})
this.countImpletionTime()
this.countImpletionTime2()
},
//缴费期满日
... ... @@ -91,13 +143,18 @@ Page({
//保障项目弹窗
ensureProject(e) {
this.setData({
edit_state: false
})
let that = this;
let type = e.currentTarget.dataset.type;
let index = e.currentTarget.dataset.xulie;
let tempProjectlist = Object.assign(this.data.projectlist, {});
// 已经添加的附加险
let rist_list = Object.assign(this.data.risk_list, {});
let tempRist = rist_list[index].projectlist;
console.log(rist_list)
let tempRist = rist_list[index].mo;
// 已经添加的主险
let tempMain_list = Object.assign(this.data.main_array, {})
if (type == 'zhuxian') {
... ... @@ -120,18 +177,19 @@ Page({
}
}
}
}
wx.setNavigationBarTitle({
title: '选择保障项目',
})
this.setData({
popup_state: true,
addType: type,
xulie: index,
projectlist: tempProjectlist
})
// }
},
// 调取保障项目接口
... ... @@ -167,6 +225,9 @@ Page({
var title = projectlist[index].title
for (var i = 0; i < title.length; i++) {
title[i].current = ''
if (title[i].current == '') {
title[i].label_state = false
}
}
projectlist[index].title[sindex].current = sindex
if (projectlist[index].title[sindex].current == sindex) {
... ... @@ -197,8 +258,11 @@ Page({
projectlist[index].choose_status = !projectlist[index].choose_status;
// console.log(projectlist)
this.setData({
projectlist: projectlist
projectlist: projectlist,
})
if (this.data.inforid != 0) {
edit_state: false
}
},
//确认选择的推荐方案
... ... @@ -209,12 +273,27 @@ Page({
var main_array = []
var projectlist = Object.assign(this.data.projectlist, {})
for (var i = 0; i < projectlist.length; i++) {
// for (var j = 0; j < projectlist[i].title.length; j++) {
if (projectlist[i].choose_status) {
// if (projectlist[i].title[j].current == ''){
// projectlist[i].title[j].label_state=false
main_array.push(projectlist[i])
// }
}
// }
}
// for (var i = 0; i < projectlist.length; i++) {
// for (var j = 0; j < projectlist[i].title.length; j++) {
// if (projectlist[i].choose_status) {
// if (projectlist[i].title[j].current == '') {
// projectlist[i].title[j].label_state = false
// main_array.push(projectlist[i])
// }
// }
// }
// }
if (main_array != '') {
wx.showToast({
title: '添加成功',
... ... @@ -223,7 +302,8 @@ Page({
if (type == 'fujiaxian') {
let tempRist = that.data.risk_list;
tempRist[index]['projectlist'] = main_array;
console.log(tempRist)
tempRist[index]['mo'] = main_array;
that.setData({
risk_list: tempRist,
})
... ... @@ -259,39 +339,106 @@ Page({
}, 1000)
},
//主线保障期
//重组主险的保障项目
tempMain() {
// var main_array = this.data.main_array
// var warranty_one = this.data.warranty_one
// var temp = {}
// var len = main_array.length
// for (var i = 0; i < main_array.length; i++) {
// if (main_array[i].choose_status) {
// temp.num = main_array[i].beneficiary_name
// temp.title = main_array[i].name
// warranty_one.push(temp)
// }
// var hash = {};
// var temrecommend = warranty_one.reduce(function (item, next) {
// hash[next.name] ? '' : hash[next.name] = true && item.push(next);
// return item
// }, [])
// console.log(temrecommend)
// this.setData({
// warranty_one: temrecommend
// })
// }
var main_array = this.data.main_array
var warranty_one1 = []
console.log(main_array)
for (var i = 0; i < main_array.length; i++) {
var temp = {}
for (var j = 0; j < main_array[i].title.length; j++) {
if (main_array[i].choose_status) {
if (main_array[i].title[j].label_state) {
temp.id = main_array[i].id
temp.name = main_array[i].name
temp.num = main_array[i].num
temp.title = main_array[i].title[j].name
temp.t_id = main_array[i].title[j].t_id
}
}
}
warranty_one1.push(temp)
console.log(warranty_one1)
this.setData({
guarantee: warranty_one1
})
}
},
//主险名称
addRiskName(e) {
var risk_list = this.data.risk_list
var index = e.currentTarget.dataset.index
risk_list[index].name = e.detail.value
this.setData({
risk_list: risk_list
})
},
//主险保障其
addRiskUnit(e) {
var risk_list = this.data.risk_list
var index = e.currentTarget.dataset.index
risk_list[index].num = e.detail.value
this.setData({
risk_list: risk_list
})
},
//重组附加险整体数据结构
tempAddRisk() {
var risk_list = this.data.risk_list
var temp_risk = []
var sub_array = []
console.log(risk_list)
for (var i = 0; i < risk_list.length; i++) {
var temp = {}
for (var j = 0; j < risk_list[i].mo.length; j++) {
var subtemp = {}
for (var k = 0; k < risk_list[i].mo[j].title.length; k++) {
if (risk_list[i].name != '') {
if (risk_list[i].mo[j].choose_status) {
if (risk_list[i].mo[j].title[k].label_state) {
temp.name = risk_list[i].name
temp.num = risk_list[i].num
temp.title = risk_list[i].title
subtemp.id = risk_list[i].mo[j].id
subtemp.name = risk_list[i].mo[j].name
subtemp.num = risk_list[i].mo[j].num
subtemp.title = risk_list[i].mo[j].title[k].name
subtemp.t_id = risk_list[i].mo[j].title[k].t_id
}
}
}
}
sub_array.push(subtemp)
}
temp.mo = sub_array
temp_risk.push(temp)
console.log(temp_risk)
this.setData({
more: temp_risk
})
}
},
//选择受益人姓名
beneficiarySelect(e) {
// console.log(e)
if (this.data.inforid != 0) {
this.setData({
edit_state: false
})
}
var index = e.currentTarget.dataset.mindex
var beneficiary_list = Object.assign(this.data.beneficiary_list, {});
// 获取当前已选择的收益人
let tempBenefice = Object.assign(this.data.beneficiaryList, {})
// 当前选择的收益人
let nowPerson = beneficiary_list[index].name[e.detail.value];
let nowPerson = beneficiary_list[index].name_array[e.detail.value];
// 判断受益人是否已经添加
const add = tempBenefice.every((tempBenefice) => {
return tempBenefice != nowPerson
... ... @@ -306,28 +453,14 @@ Page({
icon: 'none'
})
}
// for (var i = 0; i < beneficiary_list.length; i++) {
// for (var j = 0; j < beneficiary_list[i].name.length; j++) {
// var beneficiary_name =
// beneficiary_list[index].beneficiary_name = beneficiary_list[i].name[e.detail.value]
// // console.log(beneficiary_list)
// }
// }
// let tempRangArry = this.data.rang_beneficiary;
// tempRangArry[index] = beneficiary_list[index].name[e.detail.value]
// console.log(tempRangArry)
this.setData({
beneficiary_list: beneficiary_list,
beneficiaryList: tempBenefice
})
},
//添加收益比例
addUnit(e) {
var beneficiary_list = this.data.beneficiary_list;
... ... @@ -354,7 +487,7 @@ Page({
})
} else {
list[len] = {
name: ['受益人1', '受益人2'],
name_array: this.data.insure,
unit: ''
}
}
... ... @@ -365,7 +498,6 @@ Page({
},
//重组添加受益人
tempBeneficiary() {
var beneficiary_list = this.data.beneficiary_list
var len = beneficiary_list.length;
... ... @@ -377,12 +509,6 @@ Page({
temp.unit = beneficiary_list[i].unit;
}
tempfavoree1.push(temp)
// var hash = {};
// var temrecommend = tempfavoree.reduce(function (item, next) {
// hash[next.name] ? '' : hash[next.name] = true && item.push(next);
// return item
// }, [])
this.setData({
tempfavoree: tempfavoree1
})
... ... @@ -390,7 +516,6 @@ Page({
}
},
//删除收益人
deletebenefict(e) {
let index = e.currentTarget.dataset.index;
... ... @@ -409,13 +534,19 @@ Page({
//添加附加险
addRisk() {
if (this.data.inforid != 0) {
this.setData({
edit_state: false
})
}
var risk_list = Object.assign(this.data.risk_list, {});
var len = risk_list.length
risk_list[len] = {
name: '',
projectlist: [],
mo: [],
project_time: '',
time: ''
title: '',
num: ''
}
this.setData({
risk_list: risk_list
... ... @@ -431,6 +562,7 @@ Page({
risk_list: risk_list
})
},
//上传图片
uploadImage() {
let that = this;
... ... @@ -533,12 +665,20 @@ Page({
});
},
//保障期
warrantyTwo(e) {
if (this.data.inforid != 0) {
this.setData({
edit_state: false
})
}
var guarantee_name = e.detail.value
this.setData({
guarantee_name: guarantee_name
guarantee_name: e.detail.value
})
this.countImpletionTime2()
},
//选择各项单位
... ... @@ -547,8 +687,10 @@ Page({
this.setData({
unit: unit
})
this.countImpletionTime2()
},
//重组保障期数据格式
tempWarranty() {
var guarantee_name = this.data.guarantee_name
... ... @@ -556,14 +698,68 @@ Page({
var warranty_two = this.data.warranty_two
warranty_two.num = guarantee_name
warranty_two.title = unit
this.setData({
warranty_two: warranty_two
})
},
//计算缴费期满日,主线保障其
countImpletionTime2() {
var guarantee_name = parseInt(this.data.guarantee_name)
var unit = this.data.unit
var compact_time = this.data.compact_time
var year = parseInt(new Date(compact_time).getFullYear())
console.log(year)
var month = parseInt(new Date(compact_time).getMonth() + 1)
var day = parseInt(new Date(compact_time).getDate())
// var impletion_time = this.data.impletion_time
var warranty_one = this.data.warranty_one
var tempbirth_time = ''
var birthday = '1995-04-20'
var birthday_year = parseInt(new Date(birthday).getFullYear())
if (compact_time == '') {
wx.showToast({
title: '请选择合同生效日',
icon: 'none'
})
} else {
if (unit == '年') {
var temp_year = (year + guarantee_name)
var temp_day = day - 1
if (month < 10) month = "0" + month;
if (temp_day < 10) temp_day = "0" + temp_day;
// impletion_time = temp_year + '-' + month + '-' + temp_day
warranty_one = temp_year + '-' + month + '-' + temp_day
} else if (unit == '岁') {
var temp_year = (birthday_year + guarantee_name - 1)
var temp_year2 = (birthday_year + guarantee_name)
var temp_month = month
if (temp_month < 10) temp_month = "0" + temp_month;
if (month < 10) month = "0" + month;
if (day < 10) day = "0" + day;
// impletion_time = temp_year + '-' + temp_month + '-' + day
warranty_one = temp_year2 + '-' + month + '-' + day
} else if (unit == '终身') {
// impletion_time = '终身缴费'
warranty_one = '终身'
}
this.setData({
// impletion_time: impletion_time,
warranty_one: warranty_one
})
}
},
//缴费时长
burningTime(e) {
if (this.data.inforid != 0) {
this.setData({
edit_state: false
})
}
var time_name = e.detail.value
this.setData({
time_name: time_name
... ... @@ -583,10 +779,10 @@ Page({
tempburningTime() {
var time_name = this.data.time_name
var unit = this.data.unit2
console.log(unit)
var long_money = this.data.long_money
long_money.num = time_name
long_money.title = unit
// console.log(long_money)
this.setData({
long_money: long_money
})
... ... @@ -597,42 +793,49 @@ Page({
countImpletionTime() {
var time_name = parseInt(this.data.time_name)
var unit = this.data.unit2
var compact_time = this.data.compact_time
var year = parseInt(new Date(compact_time).getFullYear())
var month = parseInt(new Date(compact_time).getMonth() + 1)
var day = parseInt(new Date(compact_time).getDate())
var impletion_time = this.data.impletion_time
var warranty_one = this.data.warranty_one
// var warranty_one = this.data.warranty_one
var tempbirth_time = ''
var birthday = '1995-04-20'
var birthday_year = parseInt(new Date(birthday).getFullYear())
if (unit == '年') {
var temp_year = (year + time_name)
var temp_day = day - 1
if (month < 10) month = "0" + month;
if (temp_day < 10) temp_day = "0" + temp_day;
impletion_time = temp_year + '-' + month + '-' + temp_day
warranty_one = temp_year + '-' + month + '-' + temp_day
} else if (unit == '岁') {
var temp_year = (birthday_year + time_name - 1)
var temp_year2 = (birthday_year + time_name)
var temp_month = month
if (temp_month < 10) temp_month = "0" + temp_month;
if (month < 10) month = "0" + month;
if (day < 10) day = "0" + day;
impletion_time = temp_year + '-' + temp_month + '-' + day
warranty_one = temp_year2 + '-' + month + '-' + day
} else if (unit == '终身') {
impletion_time = '终身缴费'
warranty_one = '终身'
if (compact_time == '') {
wx.showToast({
title: '请选择合同生效日',
icon: 'none'
})
} else {
if (unit == '年') {
var temp_year = (year + time_name)
var temp_day = day - 1
if (month < 10) month = "0" + month;
if (temp_day < 10) temp_day = "0" + temp_day;
impletion_time = temp_year + '-' + month + '-' + temp_day
// warranty_one = temp_year + '-' + month + '-' + temp_day
} else if (unit == '岁') {
var temp_year = (birthday_year + time_name - 1)
var temp_year2 = (birthday_year + time_name)
var temp_month = month
if (temp_month < 10) temp_month = "0" + temp_month;
if (month < 10) month = "0" + month;
if (day < 10) day = "0" + day;
impletion_time = temp_year + '-' + temp_month + '-' + day
// warranty_one = temp_year2 + '-' + month + '-' + day
} else if (unit == '终身') {
impletion_time = '终身缴费'
// warranty_one = '终身'
}
this.setData({
impletion_time: impletion_time,
// warranty_one: warranty_one
})
}
this.setData({
impletion_time: impletion_time,
warranty_one: warranty_one
})
},
//缴费方式
... ... @@ -644,49 +847,202 @@ Page({
})
},
//附加险保障其
selectUnit4(e) {
var unit = e.currentTarget.dataset.unit;
let index = e.currentTarget.dataset.index;
let risk_list = Object.assign(this.data.risk_list, {});
risk_list[index].time = unit
risk_list[index].title = unit
this.setData({
risk_list: risk_list
})
},
// 保单验证&&上传保单
listVerify(e) {
//家庭成员
familyMember() {
var FamilyId = this.data.FamilyId
let url = 'counselor/familyname'
let params = {
FamilyId: FamilyId,
}
app.post(url, params).then((res) => {
// console.log(res)
var beneficiary_list = this.data.beneficiary_list
for (var i in beneficiary_list) {
beneficiary_list[i].name_array = res.data.data.list
}
// console.log(beneficiary_list)
if (res.data.code == 200) {
this.setData({
insure: res.data.data.list,
recognizee: res.data.data.list,
beneficiary_list: beneficiary_list,
})
}
})
},
setStorge(e) {
this.tempBeneficiary()
this.tempWarranty()
this.tempburningTime()
this.tempMain()
this.tempAddRisk()
var favoree = JSON.stringify(this.data.tempfavoree)
var warranty_two = JSON.stringify(this.data.warranty_two)
var long_money = JSON.stringify(this.data.long_money)
var more = JSON.stringify(this.data.more)
var guarantee = JSON.stringify(this.data.guarantee)
var warn = ""; //弹框时提示的内容
var in_num = this.data.in_num
var firm = this.data.firm
var applicant = this.data.applicant_name
var recognizee = this.data.recognizee_name
var main_risks = this.data.main_risks
var year_money = this.data.year_money
var compact_time = this.data.compact_time
var impletion_time = this.data.impletion_time
var warranty_one = JSON.stringify(this.data.warranty_one)
var type_money = this.data.type_money
var bank = this.data.bank
var bank_num = this.data.bank_num
var picurl = JSON.stringify(this.data.imgs)
let url = 'counselor/inforsave'
let params = {
// InfoId: this.data.inforid,
def_id: this.data.def_id,
in_num: in_num,
firm: firm,
applicant: applicant,
recognizee: recognizee,
favoree: favoree,
main_risks: main_risks,
guarantee: guarantee,
year_money: year_money,
warranty_two: warranty_two,
compact_time: compact_time,
impletion_time: impletion_time,
warranty_one: warranty_one,
long_money: long_money,
type_money: type_money,
bank: bank,
bank_num: bank_num,
more: more,
picurl: picurl,
}
app.post(url, params).then((res) => {
if (res.data.code == 200) {
wx.navigateBack({
delta: 1,
})
}
})
},
//获取缓存内容
getStorage() {
let url = 'counselor/inforCopy'
let params = {
def_id: this.data.def_id,
}
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code == 200) {
var warranty_two = res.data.data.def.warranty_two
var unit = this.data.unit
unit = warranty_two.title
var long_money = res.data.data.def.long_money
var unit2 = this.data.unit2
unit2 = long_money.title
var type_money = res.data.data.def.type_money
var unit3 = this.data.unit3
unit3 = type_money
var beneficiary_list = res.data.data.def.favoree
for (var obj in beneficiary_list) {
beneficiary_list[obj].beneficiary_name = beneficiary_list[obj].name
beneficiary_list[obj].name_array = this.data.insure
}
this.setData({
imgs: res.data.data.def.picurl,
type_money: res.data.data.def.type_money,
unit3: unit3,
year_money: res.data.data.def.year_money,
long_money: res.data.data.def.long_money,
unit2: unit2,
in_num: res.data.data.def.in_num,
firm: res.data.data.def.firm,
main_risks: res.data.data.def.main_risks,
main_array: res.data.data.def.guarantee,
applicant_name: res.data.data.def.applicant,
recognizee_name: res.data.data.def.recognizee,
warranty_one: res.data.data.def.warranty_one,
warranty_two: res.data.data.def.warranty_two,
unit: unit,
compact_time: res.data.data.def.compact_time,
impletion_time: res.data.data.def.impletion_time,
bank: res.data.data.def.bank,
bank_num: res.data.data.def.bank_num,
risk_list: res.data.data.def.more,
beneficiary_list: beneficiary_list,
edit_state: true,
})
}
})
},
// 保单验证&&上传保单
listVerify(e) {
console.log(this.data.inforid)
if (this.data.inforid == 0 || this.data.inforid == undefined) {
this.tempBeneficiary()
this.tempWarranty()
this.tempburningTime()
this.tempMain()
this.tempAddRisk()
var favoree = JSON.stringify(this.data.tempfavoree)
var warranty_two = JSON.stringify(this.data.warranty_two)
var long_money = JSON.stringify(this.data.long_money)
var more = JSON.stringify(this.data.more)
var guarantee = JSON.stringify(this.data.guarantee)
} else if (this.data.edit_state) {
var favoree = JSON.stringify(this.data.beneficiary_list)
var warranty_two = JSON.stringify(this.data.warranty_two)
var long_money = JSON.stringify(this.data.long_money)
var more = JSON.stringify(this.data.risk_list)
var guarantee = JSON.stringify(this.data.main_array)
} else {
this.tempBeneficiary()
this.tempWarranty()
this.tempburningTime()
this.tempMain()
this.tempAddRisk()
var favoree = JSON.stringify(this.data.tempfavoree)
var warranty_two = JSON.stringify(this.data.warranty_two)
var long_money = JSON.stringify(this.data.long_money)
var more = JSON.stringify(this.data.more)
var guarantee = JSON.stringify(this.data.guarantee)
}
var warn = ""; //弹框时提示的内容
var flag = true; //判断信息输入是否完整判断弹窗
var in_num = e.detail.value.policy_num
var firm = e.detail.value.company;
var applicant = this.data.applicant_name
var recognizee = this.data.recognizee_name
var favoree = this.data.tempfavoree
var main_risks = e.detail.value.main_risks
var year_money = e.detail.value.year_money
var compact_time = this.data.compact_time
var impletion_time = this.data.impletion_time
var warranty_one = this.data.main_array
var warranty_two = this.data.warranty_two
var warranty_one = JSON.stringify(this.data.warranty_one)
var type_money = this.data.type_money
var bank = e.detail.value.bank
var bank_num = e.detail.value.bank_num
var type_money = this.data.type_money
var long_money = this.data.long_money
var year_money = e.detail.value.year_money
// var coverage = e.detail.value.base_money
var main_risks = e.detail.value.main_risks
var warranty = e.detail.value.Guarantee_period
var picurl = JSON.stringify(this.data.imgs)
var guarantee = JSON.stringify(this.data.selectitem) //保障项目
var more = JSON.stringify(this.data.addlist)
// if (this.data.inforid != undefined) {
if (in_num == '') {
warn = '请输入保单号!'
} else if (firm == '') {
... ... @@ -697,28 +1053,30 @@ Page({
warn = '请输入被保险人!'
} else if (favoree == '') {
warn = '请输入受益人!'
} else if (main_risks == '') {
warn = '请输入主险名称!'
} else if (year_money == '') {
warn = '请输入年交保费!'
} else if (compact_time == '') {
warn = '请输入合同生效日!'
} else if (impletion_time == '') {
warn = '请输入缴费期满日!'
} else if (warranty == '') {
} else if (warranty_two.num == '') {
warn = '请输入保障期!'
} else if (long_money.num == '') {
warn = '请输入缴费时长!'
} else if (type_money == '') {
warn = '请输入缴费方式!'
} else if (bank == '') {
warn = '请输入续费银行!'
} else if (bank_num == '') {
warn = '请输入续费账号!'
} else if (!(/^[0-9]+.?[0-9]*/.test(bank_num))) {
warn = '请输入正确续费账号!'
} else if (year_money == '') {
warn = '请输入年交保费!'
} else if (main_risks == '') {
warn = '请输入主险名称!'
} else if (coverage == '') {
warn = '请输入主险基本保额!'
} else if (more.length == 2) {
warn = '请上传上传附加险!'
} else if (guarantee.length == 0) {
warn = '请选择保障项目!'
} else if (impletion_time == '') {
warn = '请输入缴费期满日!'
} else if (warranty_one == '') {
warn = '请输入主险保障期!'
} else if (more == '') {
warn = '请输入附加险!'
} else if (picurl.length == 2) {
warn = '请选择图片!'
} else {
... ... @@ -733,17 +1091,19 @@ Page({
applicant: applicant,
recognizee: recognizee,
favoree: favoree,
main_risks: main_risks,
guarantee: guarantee,
year_money: year_money,
warranty_two: warranty_two,
compact_time: compact_time,
impletion_time: impletion_time,
warranty: warranty,
warranty_one: warranty_one,
long_money: long_money,
type_money: type_money,
bank: bank,
bank_num: bank_num,
year_money: year_money,
main_risks: main_risks,
coverage: coverage,
more: more,
guarantee: guarantee,
picurl: picurl
picurl: picurl,
}
app.post(url, params).then((res) => {
if (res.data.code == 200) {
... ... @@ -753,105 +1113,7 @@ Page({
}
})
}
// }
// else {
// if (in_num == '') {
// warn = '请输入保单号!'
// } else if (firm == '') {
// warn = '请输入所属公司!'
// } else if (applicant == '') {
// warn = '请输入投保人!'
// } else if (recognizee == '') {
// warn = '请输入被保险人!'
// } else if (favoree == '') {
// warn = '请输入受益人!'
// } else if (compact_time == '') {
// warn = '请输入合同生效日!'
// } else if (impletion_time == '') {
// warn = '请输入缴费期满日!'
// } else if (warranty == '') {
// warn = '请输入保障期!'
// } else if (bank == '') {
// warn = '请输入续费银行!'
// } else if (bank_num == '') {
// warn = '请输入续费账号!'
// } else if (!(/^[0-9]+.?[0-9]*/.test(bank_num))) {
// warn = '请输入正确续费账号!'
// } else if (year_money == '') {
// warn = '请输入年交保费!'
// } else if (main_risks == '') {
// warn = '请输入主险名称!'
// } else if (coverage == '') {
// warn = '请输入主险基本保额!'
// } else if (more.length == 2) {
// warn = '请上传上传附加险!'
// } else if (guarantee.length == 2) {
// warn = '请选择保障项目!'
// } else if (picurl.length == 2) {
// warn = '请选择图片!'
// } else {
// flag = false
// // 添加、修改保单接口调取
// let url = 'counselor/inforuodate'
// let params = {
// def_id: this.data.def_id,
// in_num: in_num,
// firm: firm,
// applicant: applicant,
// recognizee: recognizee,
// favoree: favoree,
// compact_time: compact_time,
// impletion_time: impletion_time,
// warranty: warranty,
// bank: bank,
// bank_num: bank_num,
// year_money: year_money,
// main_risks: main_risks,
// coverage: coverage,
// more: more,
// guarantee: guarantee,
// picurl: picurl
// }
// app.post(url, params).then((res) => {
// var projectlist = this.data.projectlist
// for (var i = 0; i < projectlist.length; i++) {
// projectlist[i].status = false
// }
// if (res.data.code == 200) {
// var continue1 = e.detail.target.dataset.type
// var complete = e.detail.target.dataset.type
// if (continue1 == 'continue1') {
// wx.showToast({
// title: '添加成功',
// icon: 'none',
// duration: 2000,
// })
// this.setData({
// nullNum: '',
// addlist: [{
// name: '',
// num: '',
// title: ''
// }],
// projectlist: projectlist,
// imgs: [],
// compact_time: '',
// impletion_time: ''
// })
// } else if (complete == complete) {
// wx.showToast({
// title: '添加成功',
// icon: 'none',
// duration: 2000,
// })
// wx.navigateBack({
// delta: 1,
// })
// }
// }
// })
// }
// }
if (flag == true) {
wx.showToast({
title: warn,
... ... @@ -862,11 +1124,107 @@ Page({
},
//获取编辑保单接口
getlistVerify() {
let url = 'counselor/infordef'
let params = {
InfoId: this.data.inforid,
}
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code == 200) {
var warranty_two = res.data.data.def.warranty_two
var unit = this.data.unit
unit = warranty_two.title
var long_money = res.data.data.def.long_money
var unit2 = this.data.unit2
unit2 = long_money.title
var type_money = res.data.data.def.type_money
var unit3 = this.data.unit3
unit3 = type_money
var beneficiary_list = res.data.data.def.favoree
for (var obj in beneficiary_list) {
beneficiary_list[obj].beneficiary_name = beneficiary_list[obj].name
beneficiary_list[obj].name_array = this.data.insure
}
var risk_list = res.data.data.def.more
var projectlist = this.data.projectlist
for (var i = 0; i < risk_list.length; i++) {
for (var j = 0; j < projectlist.length; j++) {
for (var k = 0; k < projectlist[j].title.length; k++) {
if (risk_list[i].id == projectlist[j].id) {
if (risk_list[i].title == projectlist[j].title[k].name) {
var title = {}
title.name = projectlist[j].title[k]
// risk_list[i].push(title)
}
}
}
}
}
var warranty_two = res.data.data.def.warranty_two
var guarantee_name = warranty_two.num
var long_money = res.data.data.def.long_money
var time_name = long_money.num
this.setData({
imgs: res.data.data.def.picurl,
type_money: res.data.data.def.type_money,
unit3: unit3,
year_money: res.data.data.def.year_money,
long_money: res.data.data.def.long_money,
unit2: unit2,
in_num: res.data.data.def.in_num,
firm: res.data.data.def.firm,
main_risks: res.data.data.def.main_risks,
main_array: res.data.data.def.guarantee,
applicant_name: res.data.data.def.applicant,
recognizee_name: res.data.data.def.recognizee,
warranty_one: res.data.data.def.warranty_one,
warranty_two: res.data.data.def.warranty_two,
unit: unit,
compact_time: res.data.data.def.compact_time,
impletion_time: res.data.data.def.impletion_time,
bank: res.data.data.def.bank,
bank_num: res.data.data.def.bank_num,
risk_list: risk_list,
beneficiary_list: beneficiary_list,
edit_state: true,
guarantee_name: guarantee_name,
time_name: time_name,
})
}
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
this.ensureProjectList()
this.setData({
def_id: options.def_id,
inforid: options.inforid,
FamilyId: options.FamilyId,
recognizee_name: options.name
})
if (options.inforid == undefined) {
this.setData({
inforid: 0
})
}
if (options.FamilyId != '') {
this.familyMember()
}
if (options.inforid != undefined) {
this.getlistVerify()
} else {
// this.getStorage()
}
},
/**
... ...
... ... @@ -28,86 +28,54 @@
</view>
<!-- 表单部分 -->
<!-- <block wx:else> -->
<form bindsubmit='listVerify' bindreset="formReset">
<view class='content_item'>
<view class='item_list'>
<view class='list_title'>保单号</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='list_num' value='{{listdetail.in_num}}' bindinput='itemNum'></input>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<input type='text' placeholder='请输入' name='policy_num' value='{{nullNum}}' bindinput='policyNum'></input>
<input type='text' placeholder='请输入' name='policy_num' value='{{in_num}}' bindinput='policyNum'></input>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>所属公司</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='company' value='{{listdetail.firm}}'></input>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<input type='text' placeholder='请输入' name='company' value='{{nullNum}}'></input>
<input type='text' placeholder='请输入' name='company' value='{{firm}}' bindinput='setFirm'></input>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>投保人</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<picker class='picker' range='{{insure}}' value='{{insureindex}}' bindchange='insureSelect'>
<input type='text' placeholder='请选择' name='policy_holder' value='{{insure[insureindex]}}'></input>
</picker>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<picker class='picker' range='{{insure}}' value='{{insureindex}}' bindchange='insureSelect'>
<input type='text' placeholder='请选择' name='policy_holder' value='{{insure[insureindex]}}' disabled='true'></input>
<input type='text' placeholder='请选择' name='policy_holder' value='{{applicant_name}}' disabled='true'></input>
</picker>
<!-- <input type='text' placeholder='请填写' name='policy_holder' value='{{nullNum}}'></input> -->
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>被保险人</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<picker class='picker' range='{{recognizee}}' value='{{recognizeeindex}}' bindchange='recognizeeSelect'>
<text>{{recognizee[recognizeeindex]}}</text>
</picker>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<picker class='picker' range='{{recognizee}}' value='{{recognizeeindex}}' bindchange='recognizeeSelect'>
<input placeholder='请选择' value='{{recognizee[recognizeeindex]}}' disabled='true'></input>
</picker>
<!-- bindchange='recognizeeSelect' -->
<view class='picker' range='{{recognizee}}' value='{{recognizeeindex}}'>
<input placeholder='请选择' value='{{recognizee_name}}' disabled='true'></input>
</view>
</view>
<!-- </block> -->
</view>
<view>
<view class='item_list' wx:for='{{beneficiary_list}}' wx:key='' wx:for-index='its'>
<view class='item_list benefic' wx:for='{{beneficiary_list}}' wx:key='' wx:for-index='its'>
<view class='list_title'>受益人</view>
<view class='list_input_box'>
<view class='list_input'>
<picker class='picker' range='{{item.name}}' range-key='' value='{{beneficiaryindex}}' wx:for-index='index' bindchange='beneficiarySelect' data-mindex='{{its}}'>
<picker class='picker' range='{{item.name_array}}' range-key='' value='{{beneficiaryindex}}' wx:for-index='index' bindchange='beneficiarySelect' data-mindex='{{its}}'>
<input type='text' placeholder='请选择' name='beneficiary' value='{{item.beneficiary_name}}' disabled='true'></input>
</picker>
</view>
<view class='list_input'>
<input class='income_input' type='text' placeholder='受益比例%' name='beneficiary' value='{{item.unit}}' bindinput='addUnit'></input>
<input class='income_input' type='text' placeholder='受益比例' name='beneficiary' value='{{item.unit}}' bindinput='addUnit'></input>
<text>%</text>
</view>
</view>
<view class='iconfont icon-guanbi shouyi' bindtap='deletebenefict' wx:if="{{its>0}}" data-index='{{its}}'></view>
</view>
<view class='iconfont icon-wuuiconxiangjifangda add_person' wx:if="{{beneficiary_list.length<beneficiary_list[0].name.length}}" data-mindex='{{its}}' data-sindex='{{index}}' bindtap='addPersons'>
<view class='iconfont icon-wuuiconxiangjifangda add_person' wx:if="{{beneficiary_list.length<beneficiary_list[0].name_array.length}}" data-mindex='{{its}}' data-sindex='{{index}}' bindtap='addPersons'>
<text>添加受益人</text>
</view>
</view>
... ... @@ -117,27 +85,27 @@
<view class='list_title'>
<text class='symbol_icon'>*</text>
<text>主险名称</text>
</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='text' placeholder='请填写' name='main_risks' value='{{listdetail.main_risks}}'></input>
</view>
</block>
<block wx:else> -->
</view>
<view class='list_input'>
<input type='text' placeholder='请填写' name='main_risks' value='{{nullNum}}'></input>
<input type='text' placeholder='请填写' name='main_risks' value='{{main_risks}}' bindinput='setRiskName'></input>
</view>
<!-- </block> -->
</view>
<view class='protec_item_box'>
<view>
<view class='protec_item' wx:for='{{main_array}}' wx:key=''>
<view>{{item.name}}</view>
<view class='protec_num'>{{item.num}}<block wx:for='{{item.title}}' wx:for-item='danwei' wx:key=''><text wx:if="{{danwei.label_state}}">{{danwei.name}}</text></block></view>
<view class='protec_num'>{{item.num}}
<text wx:if='{{edit_state}}'>{{item.title}}</text>
<block wx:else>
<block wx:for='{{item.title}}' wx:for-item='danwei' wx:key=''>
<text wx:if="{{danwei.label_state}}">{{danwei.name}}</text>
</block>
</block>
</view>
</view>
</view>
<view class='protec_bottom_box'>
<view class='add_risk_btn protec_btn' bindtap='ensureProject' data-type='zhuxian' data-xulie='0'>
<view class='add_risk_btn protec_btn' bindtap='ensureProject' data-type='zhuxian' data-xulie='0'>
<text class='iconfont icon-shezhi'></text>
<text>管理保障项目</text>
</view>
... ... @@ -152,7 +120,7 @@
</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='number' placeholder='请填写' name='year_money' value='{{year_money}}'></input>
<input type='number' placeholder='请填写' name='year_money' value='{{year_money}}' bindinput='yearMoney'></input>
</view>
<view class='list_input'>
<input class='income_input' type='text' placeholder='请填写' value='元/年' disabled='true'></input>
... ... @@ -161,29 +129,18 @@
</view>
<view class='item_list'>
<view class='list_title'>合同生效日</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<picker class='picker' mode="date" bindchange='compactTime' value='{{compact_time}}'>
<view>{{compact_time}}</view>
<input placeholder='请选择' value='{{compact_time}}' disabled='true'></input>
</picker>
<text class='iconfont icon-riqi'></text>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<picker class='picker' mode="date" bindchange='compactTime' value='{{compact_time}}'>
<input placeholder='请选择' value='{{compact_time}}' disabled='true'></input>
</picker>
<text class='iconfont icon-riqi'></text>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>保障期</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='beneficiary' value='{{listdetail.favoree}}' bindinput='warrantyTwo'></input>
<input type='text' placeholder='请输入' value='{{warranty_two.num}}' bindinput='warrantyTwo'></input>
</view>
<view class='list_label_box'>
<view class="list_label_item {{unit=='年'?'list_label_active':''}}" bindtap='selectUnit' data-unit='年'>年</view>
... ... @@ -196,7 +153,7 @@
<view class='list_title'>缴费时长</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='beneficiary' value='{{}}' bindinput='burningTime'></input>
<input type='text' placeholder='请输入' name='beneficiary' value='{{long_money.num}}' bindinput='burningTime'></input>
</view>
<view class='list_label_box'>
<view class="list_label_item {{unit2=='年'?'list_label_active':''}}" bindtap='selectUnit2' data-unit='年'>年</view>
... ... @@ -215,93 +172,53 @@
</view>
<view class='item_list'>
<view class='list_title'>续费银行</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='text' placeholder='请填写' name='Renew_bank' value='{{listdetail.bank}}'></input>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<input type='text' placeholder='请填写' name='bank' value='{{bank}}'></input>
<input type='text' placeholder='请填写' name='bank' value='{{bank}}' bindinput='setBank'></input>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>续费账号</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='number' placeholder='输入后四位' name='renew_num' value='{{listdetail.bank_num}}'></input>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<input type='text' placeholder='请填写' name='bank_num' value='{{bank_num}}'></input>
<input type='text' placeholder='请填写' name='bank_num' value='{{bank_num}}' bindinput='setBankNum'></input>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>缴费期满日</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<picker class='picker' mode="date" bindchange='impletionTime' value='{{impletion_time}}'>
<view>{{impletion_time}}</view>
</picker>
<text class='iconfont icon-riqi'></text>
</view>
</block>
<block wx:else> -->
<!-- <view class='list_input'>
<picker class='picker' mode="date" bindchange='impletionTime' value='{{impletion_time}}'>
<input placeholder='请选择' value='{{impletion_time}}' disabled='true'></input>
</picker>
<text class='iconfont icon-riqi'></text>
</view> -->
<view class='list_input'>
<input type='text' placeholder='自动计算' name='impletion_time' value='{{impletion_time}}'></input>
<input type='text' placeholder='自动计算' name='impletion_time' value='{{impletion_time}}' disabled='true'></input>
</view>
<!-- </block> -->
</view>
<view class='item_list'>
<view class='list_title'>主险保障期</view>
<!-- <block wx:if='{{inforid}}'>
<view class='list_input'>
<input type='number' placeholder='请填写' name='Guarantee_period' value='{{listdetail.warranty}}'></input>
<!-- <text class='iconfont icon-riqi'></text>
</view>
</block>
<block wx:else> -->
<view class='list_input'>
<input type='text' placeholder='自动计算' name='warranty_one' value='{{warranty_one}}'></input>
<view class='list_input'>
<input type='text' placeholder='自动计算' name='warranty_one' value='{{warranty_one}}' disabled='true'></input>
</view>
<!-- <view class='list_input'>
<picker class='picker' range='{{period_time}}' value='{{period_index}}' bindchange='periodTime'>
<input placeholder='自动计算' value='{{warranty_one}}' disabled='true'></input>
</picker>
<!-- <text class='iconfont icon-riqi'></text>
</view> -->
<!-- </block> -->
</view>
</view>
<view class='content_item'>
<!-- wx:for='{{addlist}}' wx:key='' -->
<view class='risk_box'>
<view class='risk_item' wx:for='{{risk_list}}' wx:key=''>
<view class='iconfont icon-guanbi symool_box' bindtap='deleteRisk' wx:if="{{index>0}}" data-index='{{index}}'></view>
<view class='item_list'>
<view class='list_title project'>附加险名称</view>
<view class='list_input'>
<input type='text' placeholder='请填写' bindinput='additional_risk' value='{{item.name}}'></input>
<input type='text' placeholder='请填写' bindinput='addRiskName' value='{{item.name}}' data-index='{{index}}'></input>
</view>
</view>
<view class='protec_item_box'>
<view>
<view class='protec_item' wx:for='{{item.projectlist}}' wx:for-item='project' wx:key=''>
<view class='protec_item' wx:for='{{item.mo}}' wx:for-item='project' wx:key=''>
<view>{{project.name}}</view>
<view class='protec_num'>{{project.num}}<block wx:for='{{project.title}}' wx:for-item='danwei' wx:key=''><text wx:if="{{danwei.label_state}}">{{danwei.name}}</text></block></view>
<view class='protec_num'>{{project.num}}
<text wx:if='{{edit_state}}'>{{project.title}}</text>
<block wx:else>
<block wx:for='{{project.title}}' wx:for-item='danwei' wx:key=''>
<text wx:if="{{danwei.label_state}}">{{danwei.name}}</text>
</block>
</block>
</view>
</view>
</view>
<view class='protec_bottom_box'>
... ... @@ -315,12 +232,12 @@
<view class='list_title'>保障期</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder='请输入' name='beneficiary' value='{{listdetail.favoree}}'></input>
<input type='text' placeholder='请输入' name='beneficiary' value='{{item.num}}' data-index='{{index}}' bindinput='addRiskUnit'></input>
</view>
<view class='list_label_box'>
<view class="list_label_item {{item.time==10?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='10'>年</view>
<view class="list_label_item {{item.time==11?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='11'>岁 </view>
<view class="list_label_item {{item.time==12?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='12'>终身</view>
<view class="list_label_item {{item.title=='年'?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='年'>年</view>
<view class="list_label_item {{item.title=='岁'?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='岁'>岁</view>
<view class="list_label_item {{item.title=='终身'?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='终身'>终身</view>
</view>
</view>
</view>
... ... @@ -339,17 +256,6 @@
</view>
<view class='popup_item' wx:if='{{show}}'>
<!-- <block wx:if='{{inforid}}'>
<view class='popup_list' wx:for='{{projectlist}}' wx:key='' wx:if='{{item.status}}'>
<view class='popup_content popup_content2'>
<view class=''>{{item.name}}</view>
<view class='popup_input'>
<view class='input_content'>{{item.num}}{{item.title}}</view>
</view>
</view>
</view>
</block>
<block wx:else> -->
<view class='popup_list' wx:for='{{projectlist}}' wx:key='' wx:if='{{item.status}}'>
<view class='popup_content popup_content2'>
<view class=''>{{item.name}}</view>
... ... @@ -358,7 +264,6 @@
</view>
</view>
</view>
<!-- </block> -->
</view>
<view class='box'>
<!-- 上传图片 -->
... ... @@ -380,8 +285,7 @@
<!--底部按钮 -->
<view class='null_box'></view>
<view class='bottom_box'>
<button class='bottom_btn save_btn'>暂存</button>
<button class='bottom_btn save_btn' bindtap='setStorge'>暂存</button>
<button class='bottom_btn' data-type='complete' formType='submit'>完成</button>
</view>
</form>
<!-- </block> -->
\ No newline at end of file
</form>
\ No newline at end of file
... ...
... ... @@ -92,8 +92,13 @@ page {
.list_input {
width: 75%;
position: relative;
display: flex;
align-items: center;
font-size: 29rpx;
}
.list_input text{
/* margin-left: 10rpx; */
}
.icon-riqi {
font-size: 48rpx;
position: absolute;
... ... @@ -450,10 +455,10 @@ page {
justify-content: center;
}
.risk_item{
position: relative
.risk_item {
position: relative;
}
.symool_box {
font-size: 25rpx;
color: #999;
... ... @@ -464,8 +469,6 @@ page {
top: 20rpx;
}
.add_person {
font-size: 60rpx;
color: #0286ff;
... ... @@ -481,11 +484,14 @@ page {
color: #999;
margin-left: 15rpx;
}
.icon-guanbi.shouyi{
position: unset;
margin-left: -22rpx;
font-size: 22rpx;
align-self: flex-start;
margin-top:-10rpx;
}
\ No newline at end of file
.benefic {
position: relative;
}
.icon-guanbi.shouyi {
position: absolute;
right: -17rpx;
top: 7rpx;
font-size: 22rpx;
}
... ...
// pages/index/addLog/addLog.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
defid: '', //客户ID
cid: '', //顾问ID
content: "", //内容
min: 0, //最少字数
max: 100, //最多字数
},
getText(e) {
// 获取输入框的内容
var content = e.detail.value;
this.setData({
content: content
})
// 获取输入框内容的长度
var len = parseInt(content.length);
//最少字数限制
if (len <= this.data.min)
this.setData({
texts: "加油,够5个字可以得20积分哦"
})
else if (len > this.data.min)
this.setData({
texts: " "
})
//最多字数限制
if (len > this.data.max) return;
// 当输入框内容的长度大于最大长度限制(max)时,终止setData()的执行
this.setData({
currentWordNumber: len //当前字数
});
},
//返回客户信息
addLogs() {
var currentTab=1
wx.navigateTo({
url: '../remind/remind?currentTab=' + currentTab,
let url = 'counselor/logadd';
app.post(url, {
DefId: this.data.DefId,
UserId: this.data.cid,
Content: this.data.content
}).then((res) => {
if (res.data.code == 200) {
wx.showToast({
title: '添加日志成功',
icon: 'success',
duration: 2000
})
setTimeout(function() {
wx.navigateBack({
delta: 1
})
}, 3000)
}
}).catch((errMsg) => {
console.log(errMsg)
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
let that = this;
that.setData({
DefId: options.DefId,
cid: options.cid
})
},
/**
... ...
... ... @@ -4,7 +4,7 @@
<text class='iconfont icon-wenjian'></text>添加日志
</view>
<view class='content_input'>
<textarea class="areas" placeholder='请输入要添加的内容' minlength="{{min}}" maxlength="{{max}}" bindinput="gettext">
<textarea class="areas" placeholder='请输入要添加的内容' minlength="{{min}}" maxlength="{{max}}" bindinput="getText">
<text class="currentWordNumber">{{currentWordNumber|0}}/{{max}}</text>
</textarea>
</view>
... ...
... ... @@ -45,7 +45,8 @@ page {
.currentWordNumber {
position: absolute;
bottom: 30rpx;
right: 100rpx;
right: 0;
color: #999;
}
.bottom_btn {
... ...
... ... @@ -9,6 +9,7 @@ Page({
list:[],
page:0
},
//文章详情
listDetail(e){
console.log(e.currentTarget.id)
... ... @@ -16,11 +17,11 @@ Page({
url: '../ArticleDetails/ArticleDetails?NewsId='+e.currentTarget.id,
})
},
getlist(){
let that=this;
let params = {
userId: app.globalData.UserId,
// userId: 166,
page: that.data.page
}
let url ='counselor/NewsSend';
... ... @@ -36,12 +37,14 @@ Page({
console.log(err)
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let that = this;
that.getlist();
},
/**
... ...
... ... @@ -9,13 +9,13 @@ Page({
PushId:'',
list:[]
},
getlist(){
let that=this;
let url ='counselor/PushDef';
let params={
pushId: that.data.PushId,
userId: app.globalData.UserId,
}
app.post(url,params).then((res)=>{
if(res.data.code==200){
... ...
<view class="content_box">
<view class='content_title'>
<text>交易记录</text>
<text>共{{list.sum}}人浏览</text>
</view>
<view class='list_box'>
<view class="item_list" wx:for='{{list.list}}' wx:key>
<view class="list_content">{{item.user_nickname}}</view>
<view class="list_content">{{item.name}}</view>
<view class='list_info'>浏览{{item.num}}次</view>
</view>
</view>
... ...
// pages/consultantList/consultantList.js
const app=getApp()
Page({
/**
* 页面的初始数据
*/
data: {
list:[],
},
// 跳转顾问认证
getList() {
console.log(app.globalData.UserId)
let url = 'member/counselorlist';
let params={
UserId : app.globalData.UserId
}
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code = 200) {
this.setData({
list: res.data.data.list
})
}
}).catch((errMsg) => {
console.log(errMsg)
})
},
//
listDetail(e){
var CounselorId=e.currentTarget.dataset.id
wx.navigateTo({
url: '/pages/index/editProfile2/editProfile2?CounselorId=' + CounselorId,
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.getList()
},
/**
... ...
<!--pages/consultantList/consultantList.wxml-->
<view class='content_box'>
<view class='item_list' wx:for='{{[1,1,1,1,1]}}'>
<view class='no_data' wx:if='{{list.length==0}}'>暂无数据</view>
<view class='content_box' wx:else>
<view class='item_list' wx:for='{{list}}' wx:key='' bindtap='listDetail' data-id='{{item.id}}'>
<view class='banner_box'>
<view class='head_img'>
<image src='/images/img2.png'></image>
<image src='{{item.avatar}}'></image>
</view>
<view class='head_info_box'>
<view class='user_name'>苏菀菁(联络人)</view>
<view class='user_name'>{{item.name}}</view>
<view class='user_info'>
<text>电话</text>
<text>1893659824</text>
<text>{{item.mobile}}</text>
</view>
</view>
</view>
... ...
// pages/editProfile/editProfile.js
const app=getApp()
Page({
/**
* 页面的初始数据
*/
data: {
userinfo: [],
username: '',
work: '',
workpost: '',
city: '',
honor: '',
signature: '',
worktime: '',
hasimg: '',
approve_pic:''
},
//获取资料详情
userInfo() {
let url = 'counselor/userdef'
let params = {
UserId: app.globalData.UserId
}
app.post(url, params).then((res) => {
console.log(res.data.data.list.work_time == '0000-00-00')
var worktime = res.data.data.list.work_time
if (res.data.data.list.work_time == '0000-00-00'){
worktime=''
}
if (res.data.code == 200) {
this.setData({
userinfo: res.data.data.list,
username: res.data.data.list.name,
work: res.data.data.list.work,
workpost: res.data.data.list.work_post,
city: res.data.data.list.city,
honor: res.data.data.list.honor,
signature: res.data.data.list.signature,
worktime: worktime,
hasimg: res.data.data.list.avatar,
approve_pic: res.data.data.list.approve_pic,
})
}
})
},
// 选择上传的图片
chooseimg() { //这里是选取图片的方法
var that = this;
wx.chooseImage({
count: 1,
success: (res) => {
var tempFilePaths = res.tempFilePaths
let url = '/users/upload'
let strtime = +new Date()
let params = {
picurl: tempFilePaths[0],
strtime: strtime,
token: app.strTime(strtime)
}
wx.uploadFile({
url: 'https://insurance.w.broteam.cn/pubilc/upload', //仅为示例,非真实的接口地址
filePath: tempFilePaths[0],
name: 'picurl',
formData: {
'strtime': strtime,
'token': app.strTime(strtime)
},
success: function (res) {
var data = JSON.parse(res.data);
var picurl = data.data.picurl;
picurl = picurl.indexOf('http') != '-1' ? picurl : "http://" + picurl
that.setData({
hasimg: picurl
})
}
})
}
})
},
// 选择上传的图片
chooseimg2() { //这里是选取图片的方法
var that = this;
wx.chooseImage({
count: 1,
success: (res) => {
var tempFilePaths = res.tempFilePaths
let url = '/users/upload'
let strtime = +new Date()
let params = {
picurl: tempFilePaths[0],
strtime: strtime,
token: app.strTime(strtime)
}
wx.uploadFile({
url: 'https://insurance.w.broteam.cn/pubilc/upload', //仅为示例,非真实的接口地址
filePath: tempFilePaths[0],
name: 'picurl',
formData: {
'strtime': strtime,
'token': app.strTime(strtime)
},
success: function (res) {
var data = JSON.parse(res.data);
var picurl = data.data.picurl;
picurl = picurl.indexOf('http') != '-1' ? picurl : "http://" + picurl
that.setData({
approve_pic: picurl
})
}
})
}
})
},
//保存资料
saveInfo(){
wx.navigateBack({
delta:1
//
userName(e) {
this.setData({
username: e.detail.value
})
},
//
work(e) {
this.setData({
work: e.detail.value
})
},
//
workPost(e) {
this.setData({
workpost: e.detail.value
})
},
//
city(e) {
this.setData({
city: e.detail.value
})
},
//
honor(e) {
this.setData({
honor: e.detail.value
})
},
//
signature(e) {
this.setData({
signature: e.detail.value
})
},
//
workTime(e) {
this.setData({
worktime: e.detail.value
})
},
//保存修改个人资料
saveInfo() {
let url = 'counselor/userdefdo'
let params = {
UserId: app.globalData.UserId,
Avatar: this.data.hasimg,
Name: this.data.username,
Work: this.data.work,
WorkPost: this.data.workpost,
City: this.data.city,
Honor: this.data.honor,
Signature: this.data.signature,
WorkTime: this.data.worktime,
ApprovePic:this.data.approve_pic
}
app.post(url, params).then((res) => {
this.userInfo()
if (res.data.code == 200) {
wx.showToast({
title: '保存成功',
icon: 'none',
duration: 2000,
})
wx.navigateBack({
delta: 1
})
}
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.userInfo()
},
/**
... ...
<!--pages/my/editProfile/editProfile.wxml-->
<view class='banner_box' bindtap='chooseimg'>
<view class='header_opacity' wx:if='{{!hasimg}}'>
{{hasimg}}
<view class='header_portrait' wx:if='{{!hasimg}}'>
<image src="{{userinfo.avatar}}"></image>
<view class='iconfont icon-zhaoxiangji1'></view>
<view class='iconfont icon-bi'></view>
</view>
<view class='header_portrait'>
<!-- <view class='iconfont icon-zhaoxiangji1'></view> -->
<view class='iconfont icon-bi' ></view>
<image src="{{hasimg}}"></image>
</view>
... ... @@ -16,25 +16,25 @@
<view class="item_list">
<view class="list_title">姓名</view>
<view class="list_content">
<input type="text" value='{{username}}' class="input_item" bindinput='userName'></input>
<input type="text" placeholder='请输入' value="{{username?username:''}}" class="input_item" bindinput='userName'></input>
</view>
</view>
<view class="item_list">
<view class="list_title">保险公司</view>
<view class="list_content">
<input type="text" value='{{work}}' class="input_item" bindinput='work'></input>
<input type="text" placeholder='请输入' value="{{work}}" class="input_item" bindinput='work'></input>
</view>
</view>
<view class="item_list">
<view class="list_title">职业名称</view>
<view class="list_content">
<input type="text" value='{{workpost}}' class="input_item" bindinput='workPost'></input>
<input type="text" placeholder='请输入' value="{{workpost}}" class="input_item" bindinput='workPost'></input>
</view>
</view>
<view class="item_list">
<view class="list_title">所在城市</view>
<view class="list_content">
<input type="text" value='{{city}}' class="input_item" bindinput='city'></input>
<input type="text" placeholder='请输入' value="{{city}}" class="input_item" bindinput='city'></input>
</view>
</view>
</view>
... ... @@ -42,36 +42,33 @@
<view class="item_list">
<view class="list_title">获得荣誉</view>
<view class="list_content">
<input type="text" value='{{honor}}' class="input_item" bindinput='honor'></input>
<input type="text" placeholder='请输入' value="{{honor}}" class="input_item" bindinput='honor'></input>
</view>
</view>
<view class="item_list">
<view class="list_title">座右铭</view>
<view class="list_content">
<input type="text" value='{{signature}}' class="input_item" bindinput='signature'></input>
<input type="text" placeholder='请输入' value="{{signature}}" class="input_item" bindinput='signature'></input>
</view>
</view>
<view class="item_list">
<view class="list_title">从业时间</view>
<view class="list_content">
<!-- 默认单位年 -->
<input type="text" value='{{worktime}}' class="input_item" bindinput='workTime'></input>
<view class="list_content">
<!-- 默认单位年 -->
<input type="text" placeholder='请输入' value='{{worktime}}' class="input_item" bindinput='workTime'></input>
</view>
</view>
<view class='box'>
<!-- 上传图片 -->
<view class='upload_box'>
<!-- <block wx:for='{{imgs}}' wx:key=''>
<view class='popup_img'>
<view class='iconfont icon-guanbi' catchtap='deleteImg' data-index='{{index}}'></view>
<image src='{{item}}' bindtap='viewImg' data-index='{{index}}'></image>
</view>
</block> -->
<!-- wx:if='{{imgs.length<6}}' -->
<view bindtap='uploadImage'>
<view class='upload_box' bindtap='chooseimg2'>
<view wx:if="{{approve_pic==''}}">
<view class='iconfont icon-add'></view>
<view>上传照片</view>
</view>
<view class='popup_img' wx:else>
<!-- <view class='iconfont icon-guanbi' catchtap='deleteImg' data-index='{{index}}'></view> -->
<image src='{{approve_pic}}' bindtap='viewImg' data-index='{{index}}'></image>
</view>
</view>
<view class="save_btn" bindtap='saveInfo'>保存</view>
</view>
... ...
... ... @@ -27,7 +27,22 @@ page {
align-items: center;
justify-content: center;
}
.icon-bi {
width: 40rpx;
height: 40rpx;
font-size: 26rpx;
color: #f80;
background: #f5f5fa;
opacity: 0.8;
border-radius: 50%;
position: absolute;
right: 0rpx;
bottom: 0;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
}
.header_portrait image {
width: 100%;
height: 100%;
... ... @@ -37,7 +52,7 @@ page {
.header_opacity {
width: 200rpx;
height: 200rpx;
background-color: rgba(0, 0, 0, 0.6);
/* background-color: rgba(0, 0, 0, 0.6); */
border-radius: 50%;
position: absolute;
top: 50%;
... ... @@ -47,7 +62,7 @@ page {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
/* overflow: hidden; */
}
.icon-zhaoxiangji1 {
... ...
... ... @@ -32,6 +32,7 @@ Page({
getIndex() {
let url = 'pubilc/index'
app.post(url, null).then((res) => {
console.log(res)
this.setData({
imgUrls: res.data.data.banner,
modules: res.data.data.modules,
... ... @@ -51,7 +52,7 @@ Page({
// 客户管理跳转
goclient: function() {
if (app.globalData.UserType == 3) {
if (app.globalData.UserType == 3 || app.globalData.UserType == 4) {
wx.navigateTo({
url: '../index/CustomerManagement/CustomerManagement',
})
... ... @@ -65,7 +66,7 @@ Page({
// 保单体检
gotest: function() {
if (app.globalData.UserType == 3) {
if (app.globalData.UserType == 3 || app.globalData.UserType == 4) {
wx.navigateTo({
url: '../index/periodicReviews/periodicReviews',
})
... ...
... ... @@ -11,7 +11,7 @@
</swiper>
<view class="dots">
<block wx:for="{{imgUrls}}" wx:key=''>
<view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
<view class="dot{{index == currentSwiper ? 'active' : ''}}"></view>
</block>
</view>
</view>
... ... @@ -20,28 +20,12 @@
<view class='sub_title'>一款专注于保险售后服务的专属工具</view>
</view>
<view class='cell_box'>
<!-- <view class='cell' style='background-image:url({{modules[0].picurl}});' bindtap='goclient'>
<view class='cell' style='background-image:url({{modules[0].picurl}});' bindtap='goclient'>
</view>
<view class='cell' style='background-image:url({{modules[1].picurl}});' bindtap='gotest'>
</view>
<view class='cell' style='background-image:url({{modules[2].picurl}});' bindtap='golearn'>
</view>
<view class='cell' style='background-image:url({{modules[3].picurl}});'bindtap='weikaifa'>
</view> -->
<view class='cell' style='background-image: url(../../images/icon01.png);' bindtap='goclient'>
<view class='cell_title'>客户管理</view>
<view class='cell_subtitle'>Customer Management</view>
</view>
<view class='cell' style='background-image: url(../../images/icon02.png);' bindtap='gotest'>
<view class='cell_title'>保单体检</view>
<view class='cell_subtitle'>Health Examination</view>
</view>
<view class='cell' style='background-image: url(../../images/icon03.png);' bindtap='golearn'>
<view class='cell_title'>学习分享</view>
<view class='cell_subtitle'>Learning Sharing</view>
</view>
<view class='cell' style='background-image: url(../../images/icon04.png);' bindtap='estimationTools'>
<view class='cell_title'>计算工具</view>
<view class='cell_subtitle'>Computational tools</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -10,9 +10,10 @@ Page({
MenuId: 0, //分类id
KeyWord: '',
Page: 0,
news:[],
hasMoreData:false
news: [],
hasMoreData: false
},
//设置查询的关键词
setKeyWord(e) {
let that = this;
... ... @@ -20,6 +21,7 @@ Page({
KeyWord: e.detail.value
})
},
// 选择分类
chooseClassify(e) {
var id = e.currentTarget.dataset.id
... ... @@ -28,6 +30,7 @@ Page({
})
this.getdata();
},
//获取文章类别
getdata() {
let that = this;
... ... @@ -41,7 +44,7 @@ Page({
console.log(res)
if (res.data.code == 200) {
this.setData({
classify:res.data.data.menu,
classify: res.data.data.menu,
news: res.data.data.news,
})
// if (MenuId == 0) {
... ... @@ -68,11 +71,12 @@ Page({
//文章详情
listDetail(e) {
var NewsId=e.currentTarget.dataset.id
var NewsId = e.currentTarget.dataset.id
wx.navigateTo({
url: '../ArticleDetails/ArticleDetails?NewsId=' + NewsId,
})
},
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -91,7 +95,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
this.getdata();
},
/**
... ...
... ... @@ -14,7 +14,7 @@ page {
height: 64rpx;
background: #fafafa;
border-radius: 32rpx;
font-size: 26rpx;
font-size: 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
... ... @@ -134,7 +134,8 @@ page {
.list_label {
display: inline-block;
width: 70rpx;
/* width: 70rpx; */
padding: 5rpx 10rpx;
height: 30rpx;
border-radius: 5rpx;
border: 1rpx solid #0286ff;
... ...
... ... @@ -12,6 +12,7 @@ Page({
PayType: 1, //1为余额支付2为微信支付
balance: '',
Page: 0,
end_time:''
},
setpaytype1() {
this.setData({
... ... @@ -108,7 +109,8 @@ Page({
console.log(res)
if (res.data.code == 200) {
this.setData({
balance: Math.round(res.data.data.balance)
balance: Math.round(res.data.data.balance),
end_time: res.data.data.end_time
})
}
... ...
... ... @@ -27,4 +27,5 @@
</view>
</view>
<view class='balance'>您的可用T币余额: <text>{{balance}}</text> </view>
<view class='balance'>您的到期时间: <text>{{end_time}}</text> </view>
<view class='bottom_btn' bindtap='gopay'>立即支付</view>
\ No newline at end of file
... ...
// pages/index/periodicReviews/periodicReviews.js
const app=getApp()
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
KeyWord:''
KeyWord: '',
vip_state:false
},
//设置搜索关键词
setkeyword(e) {
this.setData({
... ... @@ -15,11 +17,20 @@ Page({
})
},
//
goData() {
this.getData()
},
//家庭保单汇总表
summaryList(e) {
var num = e.currentTarget.dataset.num
var index = e.currentTarget.dataset.index
var allinfo = JSON.stringify(e.currentTarget.dataset.allinfo)
this.setData({
allinfo: allinfo
})
var mid = e.currentTarget.dataset.mid
if (mid == 1) {
this.setData({
... ... @@ -36,15 +47,12 @@ Page({
url: '../summaryList/summaryList?allinfo=' + allinfo,
})
}
// wx.navigateTo({
// url: '../summaryList/summaryList',
// })
},
//保单列表
policyList(e) {
wx.navigateTo({
url: '../policyList/policyList?DefId=' + e.currentTarget.id,
url: '/pages/index/personalPolicyList/personalPolicyList?DefId=' + e.currentTarget.id,
})
},
... ... @@ -57,8 +65,9 @@ Page({
//报告列表
reportList(e) {
var allinfo = JSON.stringify(e.currentTarget.dataset.allinfo)
wx.navigateTo({
url: '../reportList/reportList?FamilyId=' + e.currentTarget.dataset.familyid,
url: '../reportList/reportList?FamilyId=' + e.currentTarget.dataset.familyid+'&allinfo='+allinfo,
})
},
... ... @@ -68,53 +77,57 @@ Page({
let url = 'counselor/familylist';
let param = {
UserId: app.globalData.UserId,
Status: 1, //固定传1
Status: 1, //固定传1
KeyWord: that.data.KeyWord
}
app.post(url, param).then((res) => {
console.log(res)
if (res.data.code == 200) {
if (res.data.data.type == '-13') {
setTimeout(function () {
wx.showToast({
title: '会员到期,请充值',
icon: 'none',
duration: 2000,
success: function () { }
}, 2000)
wx.navigateTo({
url: '../../my/recharge/recharge',
})
wx.showToast({
title: '会员到期,请充值',
icon: 'none',
duration: 2000,
success: function() {}
}, 2000)
that.setData({
vip_state: false
})
} else if (res.data.data.type == '-12') {
wx.showToast({
title: '您已经被禁用,请联系管理员',
icon: 'none',
success: function () {
setTimeout(function () {
success: function() {
setTimeout(function() {
wx.navigateTo({
url: '/pages/index/index',
})
}, 2000)
}
}, 2000)
that.setData({
vip_state: false
})
} else if (res.data.data.type == '-11') {
wx.showToast({
title: '您的权限不足',
icon: 'none',
success: function () {
setTimeout(function () {
success: function() {
setTimeout(function() {
wx.navigateTo({
url: '/pages/index/index',
})
})
}
}, 2000)
that.setData({
vip_state: false
})
} else {
that.setData({
list: res.data.data.list,
KeyWord: ''
KeyWord: '',
vip_state: true
})
}
}
... ... @@ -142,7 +155,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
this.getData()
},
/**
... ...
... ... @@ -10,10 +10,9 @@
</view>
<view class='line_box'></view>
<view class='content_box'>
<view class='item_list' wx:for='{{list}}' wx:key='' wx:for-index='indexs' wx:for-item='items'>
<view class='item_list' wx:for='{{list}}' wx:key='' wx:for-index='indexs' wx:for-item='items'>
<view class='list_left_box'>
<view class='list_label_box' bindtap='summaryList' data-num='{{items.infor}}'
data-family_id='{{items.family_id}}' data-allinfo='{{items}}'>
<view class='list_label_box' bindtap='summaryList' data-num='{{items.infor}}' data-family_id='{{items.family_id}}' data-allinfo='{{items}}'>
<view class='iconfont icon-jiating1'></view>
<view>生成报告</view>
<text class='peoper_num'>{{items.infor}}</text>
... ... @@ -22,7 +21,8 @@
<view class='list_label_item'>
<view class='label_item' bindtap='policyList' wx:for='{{items.users}}' wx:for-item='item' wx:for-index="index" wx:key id='{{item.id}}'>
<text>{{item.name}}({{item.family_role}})</text>
<text class='iconfont icon-yuan '></text>
<text class='iconfont icon-yuan' wx:if='{{item.user_family==1}}'></text>
</view>
<!-- <view class='label_item'>
<text>曹文正(爸爸)</text>
... ... @@ -30,13 +30,13 @@
</view>
<view class='label_item'>
<text>曹文正(爸爸)</text>
<!-- <text class='iconfont icon-yuan user_point'></text>
<!-- <text class='iconfont icon-yuan user_point' wx:if='{{item.key_status==1}}'></text>
</view> -->
</view>
</view>
<view class='list_right_box'>
<view class='list_btn_box'>
<view class='list_btn' bindtap='PolicyManage' data-familyid='{{items.family_id}}'>
<view class='list_btn' bindtap="{{vip_state?'PolicyManage':''}}" data-familyid='{{items.family_id}}'>
<view>保单管理</view>
</view>
<view class='list_btn' bindtap='reportList' data-familyid='{{items.family_id}}' data-allinfo='{{items}}'>
... ...
// pages/index/personInfo/personInfo.js
const app=getApp()
Page({
/**
* 页面的初始数据
*/
data: {
DefId: '',//客户Id
datalist: ''
},
getData() {
let that = this;
let url = 'counselor/deflist';
app.post(url,
{ DefId: this.data.DefId }).then((res) => {
console.log(res)
if (res.data.code == 200) {
that.setData({
datalist: res.data.data.list
})
}
}).catch((errMsg) => {
console.log(errMsg)
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
let that = this;
console.log(options)
that.setData({
DefId: options.DefId
})
that.getData();
},
/**
* 生命周期函数--监听页面初次渲染完成
... ...
// pages/PolicyList/PolicyList.js
const app=getApp()
Page({
/**
* 页面的初始数据
*/
data: {
policylist: [],
DefId: ''//客户Id
},
//
listDetail() {
listDetail(e) {
var InId = e.currentTarget.dataset.id
wx.navigateTo({
url: '../policyListDetail/policyListDetail',
url: '../policyListDetail/policyListDetail?InId=' + InId,
})
},
// 保单列表接口调取
policyList() {
let that = this;
let url = 'member/insurancelist'
let params = {
UserId: app.globalData.UserId
}
app.post(url, params).then((res) => {
console.log(res)
that.setData({
policylist: res.data.data.list
})
console.log(that.data.policylist)
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
onLoad: function (options) {
let that = this;
console.log(options.DefId);
that.setData({
DefId: options.DefId
})
this.policyList()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
... ...
<!--pages/PolicyList/PolicyList.wxml-->
<view class='content_box' wx:for='{{[1,1,1,1,1]}}' bindtap='listDetail'>
<view class='item_list'>
<view class='list_title_box'>
<view>
<text class='user_name'>某顾问</text>
<text class='phone_num'>18965842659</text>
<view class='no_data' wx:if='{{policylist.length==0}}'>暂无数据</view>
<block wx:else>
<view class='content_box' wx:for='{{policylist}}' wx:key='' bindtap='listDetail' data-id='{{item.id}}'>
<view class='item_list'>
<view class='list_title_box'>
<view>
<text class='user_name'>{{item.recognizee}}</text>
<text class='phone_num'>{{item.umobile}}</text>
</view>
<view class='list_icon_box'>
<view class='iconfont icon-dianhua2'></view>
</view>
</view>
<view class='list_icon_box'>
<view class='iconfont icon-dianhua2'></view>
</view>
</view>
<view class='list_content_box'>
<view>
<text class='list_info'>被保险人:某某某</text>
</view>
<view>
<text class='list_title'>主险名称</text>
<text>平安保险</text>
</view>
<view>
<text class='list_title'>主险名称</text>
<text>2018年11月30日</text>
</view>
<view>
<text class='list_title'>保额</text>
<text>8000万元</text>
</view>
<view>
<text class='list_title'>保费</text>
<text>10万元</text>
<view class='list_content_box'>
<view>
<text class='list_info'>被保险人:{{item.recognizee}}</text>
</view>
<view>
<text class='list_title'>主险名称</text>
<text>平安保险</text>
</view>
<view>
<text class='list_title'>生效日</text>
<text>{{item.compact_time}}</text>
</view>
<view>
<text class='list_title'>保额</text>
<text>{{item.coverage}}万元</text>
</view>
<view>
<text class='list_title'>保费</text>
<text>10万元</text>
</view>
</view>
</view>
</view>
</view>
</block>
\ No newline at end of file
... ...
// pages/index/PolicyListDetail/PolicyListDetail.js
// pages/my/listDetail/listDetail.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
InId: '',
listdetail: [], //保单详情列表
insurancetype: [], //保险类型
},
// 保单详情接口调取
listDetail() {
let url = 'member/insurancedef'
let params = {
InId: this.data.InId
}
app.post(url, params).then((res) => {
console.log(res)
this.setData({
listdetail: res.data.data.def,
insurancetype: res.data.data.def.more.in,
})
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
let that = this;
that.setData({
InId: options.InId
})
this.listDetail()
},
/**
... ...
... ... @@ -23,9 +23,12 @@
<view class='list_input'>{{listdetail.recognizee}}</view>
</view>
<view class='item_list'>
<view class='item_list' wx:for='{{listdetail.favoree}}' wx:key>
<view class='list_title'>受益人</view>
<view class='list_input'> {{listdetail.favoree}}</view>
<view class='list_input'>
<text>{{item.name}} </text>
<text>{{item.unit}}% </text>
</view>
</view>
<view class='item_list'>
<view class='list_title'>年缴保费</view>
... ... @@ -41,7 +44,7 @@
</view>
<view class='item_list'>
<view class='list_title'>保障期</view>
<view class='list_input'>{{listdetail.warranty}}</view>
<view class='list_input'>{{listdetail.long_money.num}}{{listdetail.long_money.title}}</view>
</view>
<view class='item_list'>
<view class='list_title'>续费银行</view>
... ... @@ -51,11 +54,11 @@
<view class='list_title'>续费账号</view>
<view class='list_input'>{{listdetail.bank_num}}</view>
</view>
<view class='item_list'>
<view class='item_list'>
<view class='list_title'>主险名称</view>
<view class='list_input'>{{listdetail.main_risks}}</view>
</view>
<view class='item_list'>
<view class='item_list'>
<view class='list_title'>主险保额</view>
<view class='list_input'>{{listdetail.coverage}}</view>
</view>
... ...
... ... @@ -42,19 +42,25 @@ page {
align-items: center;
border-bottom: 1rpx dashed #ebebeb;
padding: 23rpx 0;
font-size: 28rpx;
color: #000;
}
.list_title {
width: 160rpx;
font-size: 24rpx;
/* font-size: 24rpx; */
color: #000;
}
.list_input {
font-size: 24rpx;
/* font-size: 24rpx; */
color: #000;
}
.list_input text {
margin-right: 40rpx;
}
.bottom_box {
padding: 32rpx;
margin-top: 16rpx;
... ... @@ -63,5 +69,3 @@ page {
align-items: center;
justify-content: center;
}
\ No newline at end of file
... ...
// pages/policyManage/policyManage.js
const app=getApp()
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
inforlist:[]
inforlist: []
},
//添加保单
addList() {
addList(e) {
let def_id = e.currentTarget.dataset.id
let FamilyId = this.data.FamilyId
var name=e.currentTarget.dataset.name
wx.navigateTo({
url: '../addListDetail/addListDetail',
url: '../addListDetail/addListDetail?def_id=' + e.currentTarget.id + '&FamilyId=' + FamilyId +'&name='+name
})
},
//保单详情
listDetail() {
listDetail(e) {
var InId = e.currentTarget.dataset.def_id
wx.navigateTo({
url: '../policyListDetail/policyListDetail',
url: '../policyListDetail/policyListDetail?InId=' + InId,
})
},
//编辑保单
editPolicy() {
editPolicy(e) {
let def_id = e.currentTarget.id;
let inforid = e.currentTarget.dataset.inforid; //保单id
let FamilyId = this.data.FamilyId
wx.navigateTo({
url: '../addListDetail/addListDetail',
url: '../addListDetail/addListDetail?def_id=' + def_id + '&inforid=' + inforid + '&FamilyId=' + FamilyId,
})
},
//删除保单
delPolicy() {
delPolicy(e) {
let inforid = e.currentTarget.dataset.inforid; //保单id
var that=this
wx.showModal({
title: '提示',
content: '确认要删除吗?',
showCancel: true,
cancelText: '取消',
cancelColor: '#999',
confirmText: '确认',
confirmColor: '#0286FF',
success: function(res) {
if (res.confirm) {
let url = 'counselor/delinfor'
let params = {
InforId: inforid
}
app.post(url, params).then((res) => {
if (res.data.data.type == 1) {
wx.showToast({
title: '删除成功',
icon: 'none',
duration: 2000,
})
}
that.getData();
})
}
},
})
},
//返回保单体检
periodicReviews() {
wx.navigateTo({
url: '../periodicReviews/periodicReviews',
})
},
//goRemind
goRemind() {
wx.navigateTo({
... ... @@ -63,6 +101,7 @@ Page({
console.log(errMsg)
})
},
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -85,7 +124,8 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
let that = this;
that.getData();
},
/**
... ...
... ... @@ -5,7 +5,7 @@
<view class='item_box' wx:for='{{inforlist}}' wx:for-index='indexs' wx:for-item="items" wx:key>
<view class='item_title_box item_top'>
<view class='user_name'>{{items.name}}</view>
<view class='item_cell' id='{{items.def_id}}' bindtap='addList'>
<view class='item_cell' id='{{items.def_id}}' data-name='{{items.name}}' bindtap='addList'>
<view class='iconfont icon-tianjia'></view>
<view>添加保单</view>
</view>
... ...
... ... @@ -18,7 +18,7 @@ Page({
date: '请选择日期',
time: '获取验证码', //倒计时
currentTime: 60,
disabled:true,
disabled: true,
telnum: '',
sharetext: '',
},
... ... @@ -317,10 +317,6 @@ Page({
image: '',
duration: 1000,
})
} else if (res.data.data.type == 1) {
wx.navigateTo({
url: '../index/index',
})
} else if (res.data.data.type == -1) {
wx.showToast({
title: '注册失败',
... ... @@ -328,7 +324,26 @@ Page({
image: '',
duration: 1000,
})
} else if (res.data.data.type == 1) {
console.log('tijiaochengong')
wx.showToast({
title: '注册成功',
icon: 'none',
})
// wx.switchTab({
// url: '/pages/index/index',
// })
wx.navigateTo({
url: '/pages/start/start',
})
}
// else if(res.data.data.type == 1) {
// wx.navigateTo({
// url: '/pages/index/index',
// })
// }
})
}
... ...
... ... @@ -21,17 +21,17 @@
<form bindsubmit="formSubmit">
<view class='content_box'>
<view class='content_item'>
<view class='item_list'>
<view class='item_list'>
<view class='list_title'>真实姓名</view>
<view class='list_input'>
<input type='text' placeholder='请填写您的真实姓名' name='name'></input>
<input type='text' placeholder='请填写您的真实姓名' name='name' placeholder-class='pl_style'></input>
</view>
</view>
<view class='item_list'>
<view class='list_title'>所属机构</view>
<view class='list_input'>
<picker class='list_picker' value='{{index}}' range='{{company_array}}' range-key="{{firm}}" bindchange="company">
<input placeholder='请选择保险公司' value='{{company_array[company_index]}}' disabled='true'></input>
<input placeholder='请选择保险公司' value='{{company_array[company_index]}}' disabled='true' placeholder-class='pl_style'></input>
<view class='iconfont icon-xiala'></view>
</picker>
</view>
... ... @@ -40,7 +40,7 @@
<view class='list_title'>职业名称</view>
<view class='list_input' bindtap='chargePicker'>
<picker class='list_picker' value='{{titleindex}}' range='{{jobTitle_array}}' bindchange="jobTitle">
<input placeholder='请选择当前职位' value='{{jobTitle_array[titleindex]}}' disabled='true'></input>
<input placeholder='请选择当前职位' value='{{jobTitle_array[titleindex]}}' disabled='true' placeholder-class='pl_style'></input>
<view class='iconfont icon-xiala'></view>
</picker>
</view>
... ... @@ -48,7 +48,7 @@
<view class='item_list'>
<view class='list_title'>所在城市</view>
<view class='list_input'>
<input type='text' placeholder='请填写您的所在城市' name='city'></input>
<input type='text' placeholder='请填写您的所在城市' name='city' placeholder-class='pl_style'></input>
</view>
</view>
</view>
... ... @@ -57,14 +57,14 @@
<view class='item_list'>
<view class='list_title'>手机号</view>
<view class='list_input'>
<input type='text' placeholder='请填写手机号' name='tel' bindinput='telNum'></input>
<input type='number' placeholder='请填写手机号' name='tel' bindinput='telNum' placeholder-class='pl_style'></input>
</view>
</view>
<!-- 获取验证码 -->
<view class='item_list'>
<view class='list_title'>验证码</view>
<view class='list_input '>
<input type='text' placeholder='请填写验证码' class='verification_code' name='code'></input>
<input type='number' placeholder='请填写验证码' class='verification_code' name='code' placeholder-class='pl_style'></input>
<view class='code_btn' wx:if='{{disabled}}' bindtap="getVerificationCode">{{time}}</view>
<view class='code_btn' wx:else>{{time}}</view>
</view>
... ...
... ... @@ -67,19 +67,25 @@ picker {
.list_input {
width: 74%;
/* height: 100%; */
margin-left: 36rpx;
display: flex;
}
.list_input input {
border: 1;
width: 100%;
height: 100%;
border: 0;
outline: none;
font-size: 30rpx;
}
.pl_style {
font-size: 30rpx;
color: #999;
}
.list_picker {
width: 100%;
/* font-size: 24rpx; */
position: relative;
}
... ... @@ -146,10 +152,12 @@ picker {
.agreement_hint {
color: #0286ff;
}
.null_box{
.null_box {
width: 100%;
height: 180rpx;
}
.bottom_box {
width: 100%;
background: #fff;
... ...