作者 李洪娟

修改保险

{
"pages": [
"pages/start/start",
"pages/index/verigyCode/verigyCode",
"pages/index/summaryList2/summaryList2",
... ... @@ -42,6 +41,7 @@
"pages/index/TB/TB",
"pages/index/index",
"pages/personalCenter/personalCenter"
],
"window": {
"backgroundTextStyle": "light",
... ... @@ -74,5 +74,6 @@
"selectedIconPath": "/images/nav06@2x.png"
}
]
}
},
"sitemapLocation": "sitemap.json"
}
\ No newline at end of file
... ...
{
"navigationBarTitleText": "关于"
"navigationBarTitleText": "关于保单体检专家"
}
\ No newline at end of file
... ...
<!--pages/about/about.wxml-->
<view class='topimg'>
<!-- <view class='topimg'>
<image src='{{aboutdata.picurl}}'></image>
</view>
</view> -->
<view class='content'>
<view class='title'>{{aboutdata.title}}</view>
<!-- <view class='title'>{{aboutdata.title}}</view> -->
<view class='main'>
<import src="../../wxParse/wxParse.wxml" />
<template is="wxParse" data="{{wxParseData:content.nodes}}" />
... ...
... ... @@ -10,7 +10,7 @@
height: 100%;
}
.content{
padding:32rpx 32rpx 0 32rpx;
/* padding:32rpx 32rpx 0 32rpx; */
text-align: center;
}
.title{
... ... @@ -23,4 +23,17 @@
font-size:26rpx;
color:rgba(0,0,0,1);
line-height:44rpx;
}
.wxParse-p{
/* display:flex; */
/* flex-direction: column;
justify-content: center; */
}
.wxParse-p image{
display:block;
width:750rpx!important;
box-sizing: border-box
}
\ No newline at end of file
... ...
... ... @@ -12,7 +12,8 @@ Page({
share_num: '',
UserId: '',
UserType: '',
show_state: true
show_state: false,
state:false
},
goIndex() {
wx.switchTab({
... ... @@ -64,7 +65,7 @@ Page({
app.post(url, {
UserId: app.globalData.UserId
}).then((res) => {
console.log(res)
console.log('4567',res)
if (res.data.code == 200) {
this.setData({
share_num: res.data.data.share_num
... ... @@ -93,7 +94,8 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
console.log('aa', options.show_state)
console.log(options)
let that = this;
that.setData({
NewsId: options.NewsId,
... ... @@ -102,6 +104,12 @@ Page({
UserType: app.globalData.UserType,
show_state: options.show_state
})
console.log('aa', that.data.show_state);
console.log('123', that.data.GoId);
console.log('456', that.data.UserType)
that.listDetail();
},
... ... @@ -152,16 +160,28 @@ Page({
* 用户点击右上角分享
*/
onShareAppMessage: function(options) {
let that=this;
let show_state=''
// console.log(options)
console.log(app.globalData.UserType)
if (app.globalData.UserType == 2) {
this.setData({
show_state: false
that.setData({
state:false
})
}else{
that.setData({
state: true
})
}
console.log(that.data.show_state)
this.prizeshare()
var shareObj = {
title: options.target.dataset.title, // 默认是小程序的名称(可以写slogan等)
path: '/pages/start/start?status=' + options.target.dataset.status + '&GoId=' + app.globalData.UserId + '' + '&show_state=' + this.data.show_state,
path: '/pages/start/start?status=' + options.target.dataset.status + '&GoId=' + app.globalData.UserId + '' + '&show_state=' + that.data.state + '&NewsId' + this.data.NewsId,
imgUrl: '',
}  
... ...
... ... @@ -11,7 +11,7 @@
<text> {{articleDetail.create_time}}</text>
</view>
<!-- &&UserType!=3&&GoId!=UserId&&UserType!=4 -->
<view class='banner_box' wx:if="{{GoId!=''&&show_state==true}}">
<view class='banner_box' wx:if="{{GoId!=''}}">
<view class='head_img'>
<image src='{{articleDetail.user.picurl}}'></image>
</view>
... ...
... ... @@ -13,10 +13,14 @@ Page({
vip_state: false
},
showtotast(){
this.showInfo()
},
showInfo() {
wx.showModal({
title: '提示',
content: '请充值会员',
content: '会员已过期,请充值!',
cancelText: '暂不充值',
confirmText: '立即充值',
success(res) {
... ...
... ... @@ -11,14 +11,14 @@
<view class='line_box'></view>
<view class='content_box'>
<view class='tab_box'>
<view class="tab_item {{currentTab==2?'tab_active':''}}" data-current="2" bindtap='tabCharge'>提醒日期升序</view>
<view class="tab_item {{currentTab==2?'tab_active':''}}" data-current="2" bindtap='tabCharge'>日志降序排序</view>
<view class="tab_item {{currentTab==1?'tab_active':''}}" data-current="1" bindtap='tabCharge'>优先级排序</view>
</view>
<view class='item_list' wx:for='{{list}}' wx:key=''>
<view class='list_left_box'>
<view class='list_label_box' bindtap='familyData' data-familyid='{{item.family_id}}'>
<view class='iconfont icon-jiating1'></view>
<view>跟踪提醒</view>
<view>跟踪日志</view>
<text class='iconfont icon-yuan label_icon' wx:if='{{item.warn_status==1}}'></text>
</view>
<view class='list_label_item'>
... ... @@ -38,7 +38,7 @@
</view>
</view>
<view class='list_right_box'>
<view class='list_btn_box' bindtap="{{vip_state?'addPerson':''}}" data-familyid='{{item.family_id}}'>
<view class='list_btn_box' bindtap="{{vip_state?'addPerson':'showtotast'}}" data-familyid='{{item.family_id}}'>
<view class='list_btn'>
<view class='iconfont icon-shezhi'></view>
</view>
... ...
... ... @@ -248,16 +248,19 @@ Page({
allsave() {
let that = this;
let list = this.data.list;
if (list[list.length - 1].name != '' && list[list.length - 1].id == 0) {
console.log(list[list.length - 1].name);
console.log(list[list.length - 1].id)
if (list[list.length - 1].name != '' && list[list.length - 1].id != 0) {
let url = 'counselor/SchemeSave';
let params = {
userId: app.globalData.UserId,
schemeId: 0,
schemeId: list[list.length - 1].id,
name: list[list.length - 1].name,
firm: list[list.length - 1].firm,
text: list[list.length - 1].text
}
app.post(url, params).then((res) => {
console.log(res)
if (res.data.code == 200) {
// wx.showToast({
// title: '添加成功',
... ...
... ... @@ -22,7 +22,7 @@
<view>{{item.description}}</view>
</view>
<view class='list_info'>
<view class=" ">{{item.text}}</view>
<view class=" ">{{item.text}}</view>
<view class=" ">{{item.time}}</view>
</view>
</view>
... ...
... ... @@ -22,6 +22,7 @@ Page({
let that = this;
let url = 'counselor/vip';
app.post(url, {}).then((res) => {
console.log(res)
if (res.data.code == 200) {
let viplist = res.data.data.viplist;
let toplist = [];
... ...
... ... @@ -7,7 +7,7 @@
<view class='banner_title'>{{toplist[0].title}}</view>
<!-- <view class='banner_content'>完成新手任务,赠送{{toplist[0].title}}</view> -->
<view class='banner_content'>{{toplist[0].t_text}}</view>
<navigator class='list_btn' hover-class="navigator-hover" url='/pages/index/payWay/payWay?id={{toplist[0].id}}&moneyt={{toplist[0].moneyt}}&title={{toplist[0].title}}&money={{toplist[0].money}}'>立即购买</navigator>
<navigator class='list_btn' hover-class="navigator-hover" url='/pages/index/payWay/payWay?id={{toplist[0].id}}&moneyt={{toplist[0].moneyt}}&title={{toplist[0].title}}&money={{toplist[0].backt}}'>立即购买</navigator>
</view>
<view class='item_list_box'>
<view class="item_list {{(index+1)%2==0?'year_list':''}}" wx:for='{{mainlist}}' wx:key>
... ... @@ -17,7 +17,7 @@
<text>或{{item.moneyt}}T币</text>
</view>
<navigator class='list_btn month_card' hover-class="navigator-hover"
url='/pages/index/payWay/payWay?id={{item.id}}&moneyt={{item.moneyt}}&title={{item.title}}&money={{item.money}}' >立即购买</navigator>
url='/pages/index/payWay/payWay?id={{item.id}}&moneyt={{item.moneyt}}&title={{item.title}}&money={{item.backt}}' >立即购买</navigator>
</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -68,7 +68,8 @@ Page({
sub_index: '',
birthday: '',
height: '',
scroll: 0
scroll: 0,
remark:''
},
... ... @@ -1084,6 +1085,7 @@ Page({
var bank = this.data.bank
var bank_num = this.data.bank_num
var picurl = JSON.stringify(this.data.imgs)
var remark=this.data.remark;
let url = 'counselor/inforsave'
let params = {
// InfoId: this.data.inforid,
... ... @@ -1107,6 +1109,7 @@ Page({
bank_num: bank_num,
more: more,
picurl: picurl,
text:remark
}
app.post(url, params).then((res) => {
if (res.data.code == 200) {
... ... @@ -1129,6 +1132,7 @@ Page({
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
... ... @@ -1175,10 +1179,18 @@ Page({
bank_num: res.data.data.def.bank_num,
risk_list: res.data.data.def.more,
beneficiary_list: beneficiary_list,
remark: res.data.data.def.text
})
console.log(this.data.remark)
}
})
},
entermark(e){
this.setData({
remark:e.detail.value
})
},
//完成保单添加
listVerify(e) {
... ... @@ -1305,6 +1317,7 @@ Page({
bank: bank,
bank_num: bank_num,
more: more,
text:this.data.remark,
picurl: picurl,
}
app.post(url, params).then((res) => {
... ...
... ... @@ -311,6 +311,10 @@
</view>
</view>
<view class='box'>
<view class="remarktitle">备注</view>
<view class="remark">
<textarea placeholder='请输入备注' bindinput="entermark" value="{{remark}}"/>
</view>
<!-- 上传图片 -->
<view class='upload_box'>
<block wx:for='{{imgs}}' wx:key=''>
... ...
... ... @@ -515,5 +515,28 @@ page {
position: absolute;
right: -17rpx;
top: 7rpx;
font-size: 22rpx;
font-size: 32rpx;
}
.remarktitle{
color:#333;
font-size: 28rpx;
margin-top:20rpx;
}
.remark{
width:684rpx;
height:300rpx;
margin:20rpx auto 0;
border-radius:10rpx;
border:1rpx solid #999;
padding: 20rpx;
box-sizing: border-box;
font-size:0
}
.remark textarea{
width:638rpx;
height:257rpx;
color:#666;
font-size: 30rpx;
}
\ No newline at end of file
... ...
... ... @@ -53,14 +53,14 @@
<view class="list_title">获得荣誉</view>
<view class="list_content">
<!-- <input type="text" placeholder='请输入' placeholder-class='pl_style' value="{{honor}}" class="input_item" bindinput='honor'></input> -->
<textarea placeholder='请输入' placeholder-class='pl_style' value="{{honor}}" class="area_item" bindinput='honor'></textarea>
<textarea placeholder='请输入' placeholder-class='pl_style' auto-height value="{{honor}}" class="area_item" bindinput='honor'></textarea>
</view>
</view>
<view class="item_list" style=' align-items: flex-start;'>
<view class="list_title">座右铭</view>
<view class="list_content">
<!-- <input type="text" placeholder='请输入' placeholder-class='pl_style' value="{{signature}}" class="input_item" bindinput='signature'></input> -->
<textarea placeholder='请输入' placeholder-class='pl_style' value="{{signature}}" class="area_item" bindinput='signature'></textarea>
<textarea placeholder='请输入' placeholder-class='pl_style' auto-height value="{{signature}}" class="area_item" bindinput='signature'></textarea>
</view>
</view>
<view class="item_list">
... ... @@ -79,7 +79,7 @@
</view>
<view class='popup_img' wx:else>
<!-- <view class='iconfont icon-guanbi' catchtap='deleteImg' data-index='{{index}}'></view> -->
<image src='{{approve_pic}}'></image>
<image src='{{approve_pic}}' mode="aspectFit"></image>
</view>
</view>
<view class="save_btn" bindtap='saveInfo'>保存</view>
... ...
... ... @@ -68,7 +68,7 @@
<!-- 上传图片 -->
<view class='upload_box'>
<view class='popup_img'>
<image src='{{approve_pic}}' data-index='{{index}}'></image>
<image src='{{approve_pic}}' data-index='{{index}}' mode="aspectFit"></image>
</view>
</view>
</view>
... ...
... ... @@ -11,7 +11,8 @@ Page({
KeyWord: '',
Page: 0,
news: [],
hasMoreData: false
hasMoreData: false,
classifyid:''
},
goIndex() {
wx.switchTab({
... ... @@ -28,9 +29,23 @@ Page({
// 选择分类
chooseClassify(e) {
var id = e.currentTarget.dataset.id
var id = e.currentTarget.dataset.id;
let classifyid = e.currentTarget.dataset.classifyid;
let idx=e.currentTarget.dataset.idx;
console.log(idx)
if(idx==undefined){
this.setData({
classifyid:'',
})
}else{
this.setData({
classifyid: classifyid,
})
}
this.setData({
MenuId: id
MenuId:id,
})
this.getdata();
},
... ... @@ -40,7 +55,7 @@ Page({
let that = this;
let url = 'pubilc/news';
let params = {
MenuId: this.data.MenuId,
MenuId: this.data.classifyid,
KeyWord: this.data.KeyWord,
Page: that.data.Page
}
... ...
... ... @@ -10,7 +10,7 @@
<view class='classify_title'>热门分类</view>
<view class='classify_item_box'>
<view class="classify_item {{0==MenuId?'classify_active':''}}" bindtap='chooseClassify' data-id='0'>最新资讯</view>
<view class="classify_item {{index+1==MenuId?'classify_active':''}}" wx:for='{{classify}}' wx:key='' bindtap='chooseClassify' data-id='{{index+1}}'>{{item.name}}</view>
<view class="classify_item {{index+1==MenuId?'classify_active':''}}" wx:for='{{classify}}' wx:key='' bindtap='chooseClassify' data-id='{{index+1}}' data-idx="{{index}}" data-classifyid="{{item.id}}">{{item.name}}</view>
</view>
</view>
... ...
... ... @@ -123,6 +123,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
console.log(options)
let that = this;
that.setData({
VipId: options.id,
... ...
... ... @@ -14,9 +14,9 @@ Page({
// 保单详情接口调取
listDetail() {
let url = 'member/insurancedef'
let url = 'counselor/infordef'
let params = {
InId: this.data.InId
InfoId: this.data.InId
}
app.post(url, params).then((res) => {
console.log(res)
... ...
... ... @@ -57,7 +57,7 @@ Page({
data: {
user_type: [],
type_index: -1,
currentTab: 0,
currentTab: 1,
edit_state: true,
follow_time: '',
place: '',
... ... @@ -80,20 +80,24 @@ Page({
},
showInfo() {
wx.showModal({
title: '提示',
content: '请充值会员',
cancelText: '暂不充值',
confirmText: '立即充值',
success(res) {
console.log(res)
if (res.confirm) {
wx.navigateTo({
url: '/pages/index/VipRecharge/VipRecharge',
})
}
},
})
// wx.navigateTo({
// url: '/pages/index/VipRecharge/VipRecharge',
// })
// wx.showModal({
// title: '提示',
// content: '请充值会员',
// cancelText: '暂不充值',
// confirmText: '立即充值',
// success(res) {
// console.log(res)
// if (res.confirm) {
// wx.navigateTo({
// url: '/pages/index/VipRecharge/VipRecharge',
// })
// }
// },
// })
},
// 打电话
... ...
{
"navigationBarTitleText": "提醒和跟踪"
"navigationBarTitleText": "跟踪日志"
}
\ No newline at end of file
... ...
... ... @@ -34,19 +34,19 @@
<view class='tab_content_box'>
<view class='list_tab_box'>
<view class="list_tab_item {{currentTab==0?'tab_active':''}}" data-current="0" bindtap='tabCharge'>智能提醒</view>
<!-- <view class="list_tab_item {{currentTab==0?'tab_active':''}}" data-current="0" bindtap='tabCharge'>智能提醒</view> -->
<view class="list_tab_item {{currentTab==1?'tab_active':''}}" data-current="1" bindtap='tabCharge'>跟踪日志</view>
</view>
<block wx:if='{{currentTab==0}}'>
<!-- <block wx:if='{{currentTab==0}}'>
<view class='list_content_box'>
<view class='item_list'>
<view class='list_title_box'>
<view class='list_title_info'>跟踪提醒</view>
<view class='list_title_info'>跟踪提醒</view> -->
<!-- <view class='list_info' bindtap='editInfo' data-family_id='{{warn.family_id}}'>
<text>修改</text>
<text class='iconfont icon-bianji'></text>
</view> -->
</view>
<!-- </view> -->
<!-- <block wx:if='{{!edit_state}}'> -->
<!-- <view class='list_info_box'> -->
<!-- {{warn.warn_time!=''?'08:00':''}} -->
... ... @@ -56,40 +56,40 @@
</view> -->
<!-- </block> -->
<!-- <block wx:else> -->
<view class='list_info_box'>
<!-- <view class='list_info_box'>
<view class='list_info_item'>
<view class='item_title'>提醒时间:</view>
<picker value='{{index}}' range='{{remind_times}}' bindchange="{{edit_state&&vip_state?'remindTime':''}}">
<picker value='{{index}}' range='{{remind_times}}' bindchange="{{edit_state&&vip_state?'remindTime':''}}"> -->
<!-- {{remind_time!=''?'08:00':''}} -->
<input placeholder='请选择' value="{{remind_times[index]}}" disabled='true'></input>
<!-- <input placeholder='请选择' value="{{remind_times[index]}}" disabled='true'></input>
</picker>
</view>
<view class='list_info_item' bindtap="{{edit_state&&vip_state?'translate':''}}">
<view class='item_title'>跟踪时间:</view>
<view class='item_title'>跟踪时间:</view> -->
<!-- <picker mode='date' value='{{follow_time}}' bindchange='followTime'> -->
<input placeholder='请选择' value='{{follow_time}}' disabled='true'></input>
<!-- <input placeholder='请选择' value='{{follow_time}}' disabled='true'></input> -->
<!-- </picker> -->
</view>
<!-- </view>
<view class='list_info_item'>
<view class='item_title'>提醒内容:</view>
<block wx:if='{{time_state}}'>
<block wx:if='{{time_state}}'> -->
<!-- <view class='list_textarea'> -->
<textarea class='' placeholder='请输入' maxlength='50' value='{{place}}' bindinput='place' disabled='{{!edit_state|| !vip_state}}'></textarea>
<!-- <textarea class='' placeholder='请输入' maxlength='50' value='{{place}}' bindinput='place' disabled='{{!edit_state|| !vip_state}}'></textarea> -->
<!-- {{interval}} -->
<!-- </view> -->
</block>
<!-- </block>
</view>
</view>
</view> -->
<!-- </block> -->
<view class='list_bottom'>
<!-- <view class='list_bottom'>
<view class='list_btn' bindtap="{{edit_state&&vip_state?'nullValue':'showInfo'}}">清空</view>
<view class='list_btn list_active' bindtap="{{!vip_state?'showInfo':'finish'}}" data-family_id='{{def.family_id}}'>完成</view>
</view>
</view>
</view>
</block>
<block wx:elif='{{currentTab==1}}'>
</block> -->
<block wx:if='{{currentTab==1}}'>
<view class='log_box'>
<view class='log_line'></view>
<view class="log_item_box" wx:for='{{log}}' wx:key=''>
... ... @@ -101,7 +101,8 @@
<view class='log_time'>{{item.create_time}}</view>
</view>
</view>
<view class='add_btn_box' bindtap="{{!vip_state?'showInfo':'addLogs'}}" data-DefId='{{def.id}}'>
<!-- bindtap="{{!vip_state?'showInfo':'addLogs'}}" -->
<view class='add_btn_box' bindtap="addLogs" data-DefId='{{def.id}}'>
<view class='iconfont icon-tianjia'></view>
<view>添加日志</view>
</view>
... ...
... ... @@ -188,7 +188,7 @@
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
justify-content: center;
font-size: 30rpx;
color: #000;
border-bottom: 1rpx solid #ebebeb;
... ...
... ... @@ -12,6 +12,7 @@ Page({
cid: '',
medicalreportlist: [], //数据列表
vip_state:false,
type:false
},
showInfo() {
... ... @@ -75,6 +76,50 @@ Page({
})
},
gettype(){
let that = this;
var url = 'pubilc/UserType';
var params = {
UserId: app.globalData.UserId
}
app.post(url, params).then((res) => {
console.log(res);
if(res.data.data.type==5){
that.setData({
type:true
})
}
}).catch((err) => {
})
},
xiugai(){
// wx.showToast({
// title: '会员到期,请充值',
// icon: 'none'
// }, 2000)
wx.showModal({
title: '提示',
content: '请充值会员',
cancelText: '暂不充值',
confirmText: '立即充值',
success(res) {
console.log(res)
if (res.confirm) {
wx.navigateTo({
url: '/pages/index/VipRecharge/VipRecharge',
})
}
},
})
},
// 跳转查看家庭汇总表页
editInfo(e) {
var PublishId = e.currentTarget.dataset.id
... ... @@ -94,6 +139,7 @@ Page({
vip_state: options.vip_state ? options.vip_state:false
})
this.medicalReportList()
this.gettype()
},
/**
... ...
... ... @@ -11,7 +11,9 @@
<view class='list_content'>被保险人:{{item.users}}</view>
</view>
<view class='list_btn_box'>
<view class='list_btn' bindtap="{{!vip_state?'showInfo':'editInfo'}}" data-id='{{item.id}}'>修改</view>
<view class='list_btn' bindtap="{{!vip_state?'showInfo':'editInfo'}}" data-id='{{item.id}}' wx:if="{{type==false}}">修改</view>
<view class='list_btn ccc' data-id='{{item.id}}' bindtap="xiugai" wx:else>修改</view>
<view class='list_btn add_btn' bindtap='summaryList' data-id='{{item.id}}'>查看</view>
</view>
</view>
... ...
... ... @@ -108,9 +108,9 @@ Page({
// 设置菜单中的转发按钮触发转发事件时的转发内容
var shareObj = {
title: "保单体验专家", // 默认是小程序的名称(可以写slogan等)
title: "保险顾问专用客户和保单管理工具,诚邀使用!", // 默认是小程序的名称(可以写slogan等)
path: '/pages/start/start?status =' + options.target.dataset.status, // 默认是当前页面,必须是以‘/’开头的完整路径
imgUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
imageUrl: '/images/bg.jpg', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
success: function(res) {
// 转发成功之后的回调
if (res.errMsg == 'shareAppMessage:ok') {}
... ...
... ... @@ -5,7 +5,7 @@
</view>
<view class='content'>
<!-- {{data.sharetext}} -->
<textarea value='{{data.sharetext}}' bindinput='settextdata'></textarea>
<textarea value='{{data.sharetext}}' bindinput='settextdata' maxlength='500'/>
</view>
<button open-type="share" class='bottom_btn' data-status='{{data.status}}'>立即分享</button>
</view>
\ No newline at end of file
... ...
... ... @@ -25,15 +25,16 @@
font-size: 28rpx;
color: #fefefe;
margin: 0 auto;
height:auto;
}
.content textarea {
width: 474rpx;
height: 100rpx !important;
display: -webkit-box;
/* height: 150rpx !important; */
/* display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
overflow: hidden; */
}
.bottom_btn {
... ...
<!--pages/remind/remind.wxml-->
<view class='content_box'>
<!-- <view class='content_box'>
<view class='item_list'>
<view class='list_title'>保单客户生日提醒</view>
<view class='list_content' bindtap='setdateopentime'>
... ... @@ -34,8 +34,8 @@
</view>
</view>
</picker>
</view>
<view class='list_info_box'>注:提醒时间为具体时间的上午8:00</view>
</view> -->
<!-- <view class='list_info_box'>注:提醒时间为具体时间的上午8:00</view> -->
<view class='content_box'>
<view class='list_tab_box'>
<view class="list_tab_item {{tabstate?'tab_active':''}}" bindtap='settabstate_true'>近7天生日客户</view>
... ...
... ... @@ -10,6 +10,7 @@
.list_tab_box {
padding: 30rpx 70rpx !important;
justify-content: space-between
}
.circle {
... ... @@ -25,3 +26,4 @@
margin-left: 12rpx;
color: #acacac;
}
... ...
... ... @@ -27,7 +27,10 @@ Page({
information_user: [],
save_state: true,
total_num: 0,
plan_id: ''
plan_id: '',
savedis:false,
show:true
},
//保单详情
... ... @@ -357,9 +360,9 @@ Page({
this.tempRecomment()
this.tempCollects()
if (this.data.edit_state) {
this.saveReport()
}
// if (this.data.edit_state) {
// this.saveReport()
// }
if (this.data.edit_state2) {
this.editPlan()
}
... ... @@ -405,6 +408,7 @@ Page({
status: res.data.data.status,
shareState: true,
save_state: false,
savedis:true,
plan_id: res.data.data.publish_id,
PublishId: res.data.data.publish_id
})
... ... @@ -427,7 +431,8 @@ Page({
DefIds: this.data.DefIds,
}
app.post(url, params).then((res) => {
console.log(res)
console.log('123',res)
if (res.data.code == 200) {
//保单详情
var listdetail = res.data.data.list.information
... ... @@ -483,6 +488,12 @@ Page({
collect: collect,
touser: res.data.data.list.touser, //发送人
})
console.log(this.data.report)
if (this.data.report==null){
this.setData({
show:false
})
}
}
})
},
... ... @@ -547,7 +558,9 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
console.log(options)
var allinfo = JSON.parse(options.allinfo)
console.log(allinfo)
this.setData({
allinfo: allinfo
})
... ... @@ -627,6 +640,7 @@ Page({
onShareAppMessage: function() {
var that = this
var status = that.data.status;
that.saveState()
var shareObj = {
title: "转发的标题",
... ...
... ... @@ -69,7 +69,7 @@
</view>
</view>
<view>
<view class="viewbox">
<!-- 保单选项 -->
<view class='tab_box'>
<view class="tab_item {{tab_state==0?'tab_active':''}}" data-index='0' bindtap='tabCharge'>报告与建议</view>
... ... @@ -87,8 +87,11 @@
</view>
</view>
<view class='report_content'>
<textarea value='{{report}}' bindinput='report' focus=''></textarea>
<textarea value='{{report}}' bindinput='report' wx:if="{{show}}"></textarea>
<text wx:else>{{report}}</text>
</view>
</view>
<view class='medical_report_box'>
<view class='banner_box'>
... ... @@ -97,7 +100,7 @@
</view>
</view>
<view class='report_content'>
<textarea value='{{advise}}' bindinput='suggest' focus=''></textarea>
<textarea value='{{advise}}' bindinput='suggest'></textarea>
</view>
</view>
<!-- 缺口保障推荐方案 -->
... ... @@ -122,7 +125,7 @@
<view class='plan_list'>
<view class='plan_name'>保障内容</view>
<view class='plan_input'>
<textarea placeholder='请输入保障内容' value='{{item.text}}' class='area_box' bindinput='planText' data-index='{{index}}' data-id='{{item.id}}' focus='' disabled='{{selected}}'>
<textarea placeholder='请输入保障内容' value='{{item.text}}' class='area_box' bindinput='planText' data-index='{{index}}' data-id='{{item.id}}' disabled='{{selected}}'>
</textarea>
</view>
</view>
... ... @@ -191,7 +194,7 @@
<view class='list_title'>{{sit.name}}</view>
</view>
</view>
<scroll-view scroll-x>
<scroll-view scroll-x style="flex:0 0 auto">
<view class='scroll_content_box'>
<view class='list_content_box' wx:for='{{information}}' wx:key='' wx:if='{{item.information_state}}'>
<view class='item_list'>
... ... @@ -226,7 +229,7 @@
<view class='null_box'></view>
<cover-view class='bottom_box'>
<cover-view class='plan_btn'>
<button class='plan_btn' style='width:100%;border:0' data-status='{{status}}' bindtap="{{save_state?'saveInfo':''}}">
<button class='plan_btn' style='width:100%;border:0' data-status='{{status}}' bindtap="{{save_state?'saveInfo':''}}" disabled="{{savedis}}">
<text style='color:#fff'>测试测试 </text>
<text style='color:#0286ff;'>保存 </text>
保存
... ...
... ... @@ -194,7 +194,7 @@ page {
}
.scroll_content_box {
width: 150%;
width: 180%;
display: flex;
flex-wrap: nowrap;
}
... ...
... ... @@ -496,7 +496,7 @@ Page({
var sharetext = options.target.dataset.sharetext
// 设置菜单中的转发按钮触发转发事件时的转发内容
var shareObj = {
title: "保险顾问专用客户和保单管理工具,诚邀使用",
title: "保险顾问专用客户和保单管理工具,诚邀使用!",
// 默认是小程序的名称(可以写slogan等)
path: '/pages/start/start?status =' + options.target.dataset.status + '&sharetext=' + sharetext,
// 默认是当前页面,必须是以‘/’开头的完整路径
... ...
... ... @@ -14,7 +14,8 @@ Page({
PublishId: '',
imgUrl: '',
GoId: '',
show_state: true
show_state: true,
allinfo:''
},
//登录
... ... @@ -31,6 +32,8 @@ Page({
status: that.data.status //分享进入的需要此参数
}
app.post(url, params).then((res) => {
// console.log('start', res.data.data.UserType, res.data.data.checkstatus, res.data.data.PublishId)
if (res.data.code == '200') {
app.globalData.OpenId = res.data.data.OpenId;
... ... @@ -64,6 +67,8 @@ Page({
url: '/pages/index/register/register?sharetext=' + that.data.sharetext,
})
} else if (res.data.data.checkstatus == '3') { //3为文章分享
console.log(8080)
wx.navigateTo({
url: '/pages/index/ArticleDetails/ArticleDetails?NewsId=' + res.data.data.NewsId + '&GoId=' + res.data.data.GoId + '&show_state=' + this.data.show_state
})
... ... @@ -323,41 +328,70 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
if (options.status) {
let allinfo = wx.getStorageSync('allinfo');
console.log('111', allinfo)
this.setData({
status: options.status,
sharetext: options.sharetext ? options.sharetext : '',
show_state: options.show_state ? options.show_state : true
show_state: options.show_state ? options.show_state : true,
allinfo:allinfo
})
}
console.log('onload', options, options.status)
var that = this
// if (options.status != undefined) {
// wx.login({
// success: (res) => {
// let url = 'pubilc/sign';
// let params = {
// code: res.code,
// status: this.data.status
// }
// app.post(url, params).then((res) => {
// app.globalData.UserType = res.data.data.UserType
// app.globalData.UserId = res.data.data.UserId
// if (res.data.data.UserType == 3) {
// wx.switchTab({
// url: '/pages/index/index',
// })
// } else if (res.data.data.UserType == 4) {
// wx.switchTab({
// url: '../personalCenter/personalCenter'
// })
// }
// }).catch((errMsg) => {
// console.log(errMsg)
// })
// }
// });
// }
if (options.status != undefined) {
wx.login({
success: (res) => {
let url = 'pubilc/sign';
let params = {
code: res.code,
status: this.data.status
}
app.post(url, params).then((res) => {
console.log('打印', options)
app.globalData.UserType = res.data.data.UserType
app.globalData.UserId = res.data.data.UserId
// if (res.data.data.UserType == 3) {
// wx.switchTab({
// url: '/pages/index/index',
// })
// } else if (res.data.data.UserType == 4) {
// wx.switchTab({
// url: '../personalCenter/personalCenter'
// })
// }
if (res.data.data.checkstatus == '3') { //3为文章分享
console.log(8080)
wx.navigateTo({
url: '/pages/index/ArticleDetails/ArticleDetails?NewsId=' + res.data.data.NewsId + '&GoId=' + res.data.data.GoId + '&show_state=' + this.data.show_state
})
this.setData({
GoId: res.data.data.GoId
})
} else if (res.data.data.checkstatus == '1') { //1为保单分享
console.log('9090',that.data.allinfo)
wx.navigateTo({
url: '/pages/index/verigyCode/verigyCode?PublishId=' + res.data.data.PublishId,
// url: '/pages/index/summaryList2/summaryList2?allinfo='+that.data.allinfo,
})
this.setData({
share_state: true
})
}
}).catch((errMsg) => {
console.log(errMsg)
})
}
});
}
},
/**
... ...
... ... @@ -14,11 +14,13 @@
"compileType": "miniprogram",
"libVersion": "2.4.0",
"appid": "wxac365079a43a66bb",
"projectname": "%E5%AE%B6%E5%BA%AD%E4%BF%9D%E9%99%A91",
"projectname": "%E5%AE%B6%E5%BA%AD%E4%BF%9D%E9%99%A9_new",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
... ... @@ -37,7 +39,7 @@
"list": []
},
"miniprogram": {
"current": 1,
"current": 2,
"list": [
{
"id": 0,
... ... @@ -50,6 +52,13 @@
"id": -1,
"name": "aa",
"pathName": "pages/index/editProfile2/editProfile2",
"query": "",
"scene": null
},
{
"id": -1,
"name": "输入",
"pathName": "pages/text/text",
"scene": null
}
]
... ...