作者 刘晓艳

保险二开反馈问题修改

... ... @@ -73,6 +73,28 @@ App({
let str = 'bronet' + strtime + 'beijing'
return md5(md5(str))
},
onLaunch() {
var that=this
wx.login({
success: (res) => {
let url = 'pubilc/sign';
let params = {
code: res.code,
// status: this.data.status //分享进入的需要此参数
}
that.post(url, params).then((res) => {
console.log(res)
// console.log('start', res.data.data.UserType, res.data.data.checkstatus, res.data.data.PublishId)
}).catch((errMsg) => {
console.log(errMsg)
})
}
});
},
globalData: {
userInfo: null,
OpenId: '', //用户openid
... ... @@ -82,7 +104,7 @@ App({
UserStatus: '', //用户状态(1初次登录需要授权操作,2多次登录不需要授权)
PublishId: '', //如果是保单分享返回保单id
NewsId: '', //如果是文章分享返回文章id
temp_UserType:'',
user_index:''
temp_UserType: '',
user_index: '',
}
})
\ No newline at end of file
... ...
/* pages/about/about.wxss */
.topimg{
height:420rpx;
height:376rpx;
width:100%;
box-sizing: border-box;
overflow: hidden;
}
.topimg image{
width:100%;
height: 100%;
}
.content{
padding:32rpx 32rpx 0 32rpx;
... ...
... ... @@ -10,8 +10,14 @@ Page({
GoId: '', //分享人id
articleDetail: [], //文章详情内容
share_num: '',
UserId:'',
UserType:''
UserId: '',
UserType: '',
show_state: true
},
goIndex() {
wx.switchTab({
url: '/pages/index/index',
})
},
//文章详情
listDetail() {
... ... @@ -35,15 +41,15 @@ Page({
})
},
//注册顾问
goRegister(){
//注册顾问
goRegister() {
wx.navigateTo({
url: '/pages/index/register/register',
})
},
//查看顾问详情
goDetail(e){
goDetail(e) {
var CounselorId = this.data.GoId
console.log(222, CounselorId)
wx.navigateTo({
... ... @@ -87,13 +93,14 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
console.log(options.GoId)
console.log('aa', options.show_state)
let that = this;
that.setData({
NewsId: options.NewsId,
UserId:app.globalData.UserId,
UserId: app.globalData.UserId,
GoId: options.GoId,
UserType:app.globalData.UserType
UserType: app.globalData.UserType,
show_state: options.show_state
})
that.listDetail();
... ... @@ -144,21 +151,26 @@ Page({
/**
* 用户点击右上角分享
*/
onShareAppMessage: function (options) {
onShareAppMessage: function(options) {
// console.log(options)
if (app.globalData.UserType == 2) {
this.setData({
show_state: false
})
}
this.prizeshare()
var shareObj = {
title: options.target.dataset.title, // 默认是小程序的名称(可以写slogan等)
path: '/pages/start/start?status=' + options.target.dataset.status + '&GoId=' + app.globalData.UserId,
imgUrl: '',
path: '/pages/start/start?status=' + options.target.dataset.status + '&GoId=' + app.globalData.UserId + '' + '&show_state=' + this.data.show_state,
imgUrl: '',
}  
if (options.from == 'button') {
// 此处可以修改 shareObj 中的内容
shareObj.path = '/pages/start/start?status=' + options.target.dataset.status
}  
// if (options.from == 'button') {
// // 此处可以修改 shareObj 中的内容
// shareObj.path = '/pages/start/start?status=' + options.target.dataset.status
// }  
return shareObj;
}
})
\ No newline at end of file
... ...
<!--pages/personalCenter/personalCenter.wxml-->
<import src="../../../wxParse/wxParse.wxml" />
<view class='go_index' bindtap="goIndex" wx:if="{{GoId!=''}}">回到首页</view>
<view class='content_box'>
<view class='list_title'>{{articleDetail.title}}</view>
<view class='list_info_box'>
... ... @@ -9,7 +10,8 @@
<text class='line'></text>
<text> {{articleDetail.create_time}}</text>
</view>
<view class='banner_box' wx:if="{{GoId!=''&&UserType!=3&&GoId!=UserId}}">
<!-- &&UserType!=3&&GoId!=UserId&&UserType!=4 -->
<view class='banner_box' wx:if="{{GoId!=''&&show_state==true}}">
<view class='head_img'>
<image src='{{articleDetail.user.picurl}}'></image>
</view>
... ...
/* pages/ArticleDetails/ArticleDetails.wxss */
.go_index {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
position: fixed;
right: 30rpx;
top: 60rpx;
background: #0286ff;
font-size: 30rpx;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 20rpx;
box-sizing: border-box;
}
.banner_box {
background: #0286ff;
display: flex;
... ... @@ -138,9 +154,13 @@
word-spacing: normal;
word-wrap: normal;
display: block !important;
margin: 0!important;
}
.wxParse-img {
width: 100% !important;
height: 100%;
}
.wxParse-span{
width: 100%;
}
\ No newline at end of file
... ...
... ... @@ -12,6 +12,23 @@ Page({
mainid: '',
vip_state: false
},
showInfo() {
wx.showModal({
title: '提示',
content: '请充值会员',
cancelText: '暂不充值',
confirmText: '立即充值',
success(res) {
console.log(res)
if (res.confirm) {
wx.navigateTo({
url: '/pages/index/VipRecharge/VipRecharge',
})
}
},
})
},
goIndex() {
wx.switchTab({
url: '/pages/index/index',
... ... @@ -118,7 +135,7 @@ Page({
}
}
wx.navigateTo({
url: '../remind/remind?cid=' + this.data.cid + '&mainid=' + this.data.mainid,
url: '../remind/remind?cid=' + this.data.cid + '&mainid=' + this.data.mainid + '&vip_state=' + this.data.vip_state,
})
},
... ...
... ... @@ -48,7 +48,7 @@
</view>
<view class='null_box'></view>
<view class='bottom'>
<view class='bottom_box' style='100%;' bindtap="{{vip_state?'addFamily':''}}">创建新家庭</view>
<view class='bottom_box' style='100%;' bindtap="{{vip_state?'addFamily':'showInfo'}}">创建新家庭</view>
<view class='bottom_box' bindtap="goIndex">回到首页</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -97,13 +97,9 @@
<view class='box'>
<!-- 上传图片 -->
<view class='upload_box' wx:if='{{list.picurl}}'>
<view class='popup_img'>
<image src='{{list.picurl}}'></image>
<view class='popup_img' >
<image src='{{list.picurl}}' mode="widthFix"></image>
</view>
<!-- <view wx:else>
<view class='iconfont icon-add'></view>
<view>上传客户照片</view>
</view> -->
</view>
</view>
<view class='content_item'>
... ...
... ... @@ -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>
... ...
... ... @@ -66,14 +66,18 @@ Page({
focus: false,
focus2: false,
sub_index: '',
birthday: ''
birthday: '',
height: '',
scroll: 0
},
//回到顶部
goTop: function(e) { // 一键回到顶部
goTop() { // 一键回到顶部
console.log( wx.getStorageSync('scroll'), 'scroll')
if (wx.pageScrollTo) {
wx.pageScrollTo({
scrollTop: 0
scrollTop: wx.getStorageSync('scroll')
})
} else {
wx.showModal({
... ... @@ -348,7 +352,7 @@ Page({
if (type == 'fujiaxian') {
this.setData({
focus: true,
focus2:false
focus2: false
})
} else {
this.setData({
... ... @@ -356,6 +360,7 @@ Page({
focus: false
})
}
this.goTop()
console.log(this.data.focus2, this.data.focus)
let index = this.data.xulie;
var that = this
... ... @@ -1311,7 +1316,9 @@ Page({
icon: 'none',
duration: 2000,
})
wx.setStorageSync('scroll', 0)
this.setData({
scroll: 0,
inforid: 0,
in_num: '',
firm: '',
... ... @@ -1413,7 +1420,6 @@ Page({
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
... ... @@ -1473,7 +1479,16 @@ Page({
if (wx.getStorageSync('storge_state') && options.inforid == undefined) {
this.getStorage()
}
},
onPageScroll: function(e) {
console.log(e.scrollTop)
if (!this.data.popup_state) {
wx.setStorageSync('scroll', e.scrollTop)
this.setData({
scroll: e.scrollTop
})
}
},
/**
... ...
... ... @@ -38,13 +38,13 @@
<text>保单号</text>
</view>
<view class='list_input'>
<input type='text' placeholder='请输入' name='policy_num' value="{{in_num!='undefined'?in_num:''}}" bindinput='policyNum'></input>
<input type='text' placeholder='请输入' name='policy_num' value="{{in_num!='undefined'?in_num:''}}" bindinput='policyNum'></input>
</view>
</view>
<view class='item_list'>
<view class='list_title'>所属公司</view>
<view class='list_input'>
<input type='text' placeholder='请输入' name='company' value="{{firm!='undefined'?firm:''}}" bindinput='setFirm'></input>
<input type='text' placeholder='请输入' name='company' value="{{firm!='undefined'?firm:''}}" bindinput='setFirm'></input>
</view>
</view>
<view class='item_list'>
... ... @@ -54,7 +54,7 @@
<input type='text' placeholder='请选择' name='policy_holder' value='{{applicant_name}}' disabled='true'></input>
</picker>
</view>
</view>
</view>
<view class='item_list'>
<view class='list_title'>被保险人</view>
<view class='list_input'>
... ... @@ -136,7 +136,7 @@
<view class='protec_item' wx:for='{{main_array}}' wx:key=''>
<view>{{item.name}}</view>
<view class='protec_num'>{{item.num}}
<text >{{item.title}}</text>
<text>{{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>
... ... @@ -194,7 +194,7 @@
<view class='list_title'>缴费时长</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder="{{unit2=='终身'?'':'请输入'}}" value='{{long_money.num}}' bindinput='burningTime' disabled='{{unit2=="终身"}}'></input>
<input type='text' placeholder="{{unit2=='终身'?'':'请输入'}}" value='{{long_money.num}}' bindinput='burningTime' disabled='{{unit2=="终身"}}'></input>
</view>
<view class='list_label_box'>
<view class="list_label_item {{unit2=='年'?'list_label_active':''}}" bindtap='selectUnit2' data-unit='年'>年</view>
... ... @@ -270,11 +270,14 @@
</view>
</view>
</view>
<!-- style='margin-bottom:{{height}}rpx;' -->
<view class='item_list'>
<view class='list_title'>保障期</view>
<view class='list_input_box'>
<view class='list_input'>
<input type='text' placeholder="{{item.title=='终身'?'':'请输入'}}" confirm-type="{{focus?false:''}}" value='{{item.num}}' data-index='{{index}}' bindinput='addRiskUnit' disabled='{{item.title=="终身"}}' focus='{{focus}}' cursor-spacing='200rpx'></input>
<view class='list_input' >
<input type='text' placeholder="{{item.title=='终身'?'':'请输入'}}" confirm-type="{{focus?false:''}}"
value='{{item.num}}' data-index='{{index}}' disabled='{{item.title=="终身"}}' cursor-spacing='2000px' bindinput='addRiskUnit'></input>
<!-- focus='{{focus}}' -->
</view>
<view class='list_label_box'>
<view class="list_label_item {{item.title=='年'?'list_label_active':''}}" bindtap='selectUnit4' data-index="{{index}}" data-unit='年'>年</view>
... ... @@ -322,8 +325,7 @@
</view>
</view>
</view>
<!--
<view class='add_btn' bindtap='goTop'>aaaa</view> -->
<!-- 继续添加保单按钮 -->
<button class='add_btn' data-type='continue1' formType='submit'>继续添加保单</button>
<!--底部按钮 -->
... ...
... ... @@ -95,18 +95,19 @@ Page({
var data = JSON.parse(res.data);
var picurl = data.data.picurl;
picurl = picurl.indexOf('http') != '-1' ? picurl : "http://" + picurl
var imgs = that.data.imgs
var imgs = []
imgs.push(picurl)
that.setData({
hasimg: picurl,
imgs: imgs
})
}
})
}
})
},
// 选择上传的图片
chooseimg2() { //这里是选取图片的方法
var that = this;
... ...
<!--pages/my/editProfile/editProfile.wxml-->
<view class='banner_box' catchtap='chooseimg'>
<view class='header_portrait' wx:if='{{!hasimg}}'>
<!-- <image src="{{userinfo.avatar}}"></image> -->
<view class='iconfont icon-bi'></view>
<block wx:for='{{imgs}}' wx:key>
<image src="{{item}}" catchtap='viewImg'></image>
</block>
</view>
<view class='header_portrait'>
<!-- <view class='iconfont icon-zhaoxiangji1'></view> -->
<view class='iconfont icon-bi'></view>
<block wx:for='{{imgs}}' wx:key>
<image src="{{item}}" catchtap='viewImg'></image>
</block>
<view class='iconfont icon-bi'></view>
</view>
</view>
<view class="content_item">
<view class="item_list">
<view class="list_title">姓名</view>
... ... @@ -58,23 +49,25 @@
</view>
</view>
<view class="content_item">
<view class="item_list">
<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="{{honor}}" class="input_item" bindinput='honor'></input>
<!-- <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>
</view>
</view>
<view class="item_list">
<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>
<!-- <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>
</view>
</view>
<view class="item_list">
<view class="list_title">从业时间</view>
<view class="list_content">
<!-- 默认单位年 -->
<input type="text" placeholder='请输入' placeholder-class='pl_style' value='{{worktime}}' class="input_item" bindinput='workTime'></input>
<input type="number" placeholder='默认单位年' placeholder-class='pl_style' value='{{worktime}}' class="input_item" bindinput='workTime'></input>
</view>
</view>
<view class='box'>
... ...
... ... @@ -16,8 +16,8 @@ page {
}
.header_portrait {
width: 130rpx;
height: 130rpx;
width: 170rpx;
height: 170rpx;
position: absolute;
top: 50%;
left: 50%;
... ... @@ -135,8 +135,12 @@ page {
.input_item {
border: 0;
outline: none;
}
.area_item{
width: 80%;
height: 120rpx;
}
.save_btn {
width: 100%;
height: 80rpx;
... ...
... ... @@ -9,6 +9,23 @@ Page({
KeyWord: '',
vip_state: false
},
showInfo() {
wx.showModal({
title: '提示',
content: '请充值会员',
cancelText: '暂不充值',
confirmText: '立即充值',
success(res) {
console.log(res)
if (res.confirm) {
wx.navigateTo({
url: '/pages/index/VipRecharge/VipRecharge',
})
}
},
})
},
goIndex() {
wx.switchTab({
... ... @@ -74,7 +91,7 @@ Page({
reportList(e) {
var allinfo = JSON.stringify(e.currentTarget.dataset.allinfo)
wx.navigateTo({
url: '../reportList/reportList?FamilyId=' + e.currentTarget.dataset.familyid + '&allinfo=' + allinfo,
url: '../reportList/reportList?FamilyId=' + e.currentTarget.dataset.familyid + '&allinfo=' + allinfo + '&vip_state=' + this.data.vip_state,
})
},
... ...
... ... @@ -12,7 +12,7 @@
<view class='content_box'>
<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="{{vip_state?'summaryList':''}}" data-num='{{items.infor}}' data-family_id='{{items.family_id}}' data-allinfo='{{items}}'>
<view class='list_label_box' bindtap="{{vip_state?'summaryList':'showInfo'}}" 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>
... ... @@ -36,7 +36,7 @@
</view>
<view class='list_right_box'>
<view class='list_btn_box'>
<view class='list_btn' bindtap="{{vip_state?'PolicyManage':''}}" data-familyid='{{items.family_id}}'>
<view class='list_btn' bindtap="{{vip_state?'PolicyManage':'showInfo'}}" data-familyid='{{items.family_id}}'>
<view>保单管理</view>
</view>
<view class='list_btn' bindtap='reportList' data-familyid='{{items.family_id}}' data-allinfo='{{items}}'>
... ...
... ... @@ -64,7 +64,7 @@ Page({
mainid: '',
def: [],
warn: [],
remind_times: ['提前一天 08:00', '提前两天 08:00', '提前三天 08:00', '提前四天 08:00', '提前五天 08:00'],
remind_times: ['当天 08:00','提前一天 08:00', '提前两天 08:00', '提前三天 08:00', '提前四天 08:00', '提前五天 08:00'],
remind_time: '',
index: -1,
years: years,
... ... @@ -79,6 +79,23 @@ Page({
interval: false,
},
showInfo() {
wx.showModal({
title: '提示',
content: '请充值会员',
cancelText: '暂不充值',
confirmText: '立即充值',
success(res) {
console.log(res)
if (res.confirm) {
wx.navigateTo({
url: '/pages/index/VipRecharge/VipRecharge',
})
}
},
})
},
// 打电话
makePhoneCall() {
let that = this;
... ... @@ -193,7 +210,7 @@ Page({
var params = {
UserId: app.globalData.UserId,
family_id: family_id,
warn_time: parseInt(this.data.index) + 1,
warn_time: parseInt(this.data.index) ,
text_time: this.data.follow_time,
text: this.data.place,
}
... ... @@ -279,7 +296,7 @@ Page({
console.log(res)
if (res.data.code == 200) {
var time = res.data.data.warn.warn_time
var index = parseInt(time) - 1
var index = parseInt(time)
that.setData({
def: res.data.data.def,
label: res.data.data.label,
... ... @@ -361,6 +378,9 @@ Page({
options.mainid ? this.setData({
mainid: options.mainid
}) : ''
this.setData({
vip_state: options.vip_state ? options.vip_state:false
})
this.getData()
cellId = options.cellId;
var that = this;
... ...
... ... @@ -59,12 +59,12 @@
<view class='list_info_box'>
<view class='list_info_item'>
<view class='item_title'>提醒时间:</view>
<picker value='{{index}}' range='{{remind_times}}' bindchange="{{edit_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>
</picker>
</view>
<view class='list_info_item' bindtap="{{edit_state?'translate':''}}">
<view class='list_info_item' bindtap="{{edit_state&&!vip_state?'translate':''}}">
<view class='item_title'>跟踪时间:</view>
<!-- <picker mode='date' value='{{follow_time}}' bindchange='followTime'> -->
<input placeholder='请选择' value='{{follow_time}}' disabled='true'></input>
... ... @@ -74,7 +74,7 @@
<view class='item_title'>提醒内容:</view>
<block wx:if='{{time_state}}'>
<!-- <view class='list_textarea'> -->
<textarea class='' placeholder='请输入' maxlength='50' value='{{place}}' bindinput='place' disabled='{{!edit_state}}'></textarea>
<textarea class='' placeholder='请输入' maxlength='50' value='{{place}}' bindinput='place' disabled='{{!edit_state||vip_state}}'></textarea>
<!-- {{interval}} -->
<!-- </view> -->
</block>
... ... @@ -83,8 +83,8 @@
</view>
<!-- </block> -->
<view class='list_bottom'>
<view class='list_btn' bindtap="{{edit_state?'nullValue':''}}">清空</view>
<view class='list_btn list_active' bindtap='finish' data-family_id='{{def.family_id}}'>完成</view>
<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>
... ... @@ -101,7 +101,7 @@
<view class='log_time'>{{item.create_time}}</view>
</view>
</view>
<view class='add_btn_box' bindtap='addLogs' data-DefId='{{def.id}}'>
<view class='add_btn_box' bindtap="{{vip_state?'showInfo':'addLogs'}}" data-DefId='{{def.id}}'>
<view class='iconfont icon-tianjia'></view>
<view>添加日志</view>
</view>
... ...
... ... @@ -11,8 +11,25 @@ Page({
mid: '',
cid: '',
medicalreportlist: [], //数据列表
vip_state:false,
},
showInfo() {
wx.showModal({
title: '提示',
content: '请充值会员',
cancelText: '暂不充值',
confirmText: '立即充值',
success(res) {
console.log(res)
if (res.confirm) {
wx.navigateTo({
url: '/pages/index/VipRecharge/VipRecharge',
})
}
},
})
},
// 体检报告列表接口调取
medicalReportList() {
let url = 'counselor/publishlist';
... ... @@ -72,7 +89,8 @@ Page({
onLoad: function(options) {
this.setData({
FamilyId: options.FamilyId,
allinfo: options.allinfo
allinfo: options.allinfo,
vip_state: options.vip_state ? options.vip_state:false
})
this.medicalReportList()
},
... ...
... ... @@ -11,7 +11,7 @@
<view class='list_content'>被保险人:{{item.users}}</view>
</view>
<view class='list_btn_box'>
<view class='list_btn' bindtap='editInfo' data-id='{{item.id}}'>修改</view>
<view class='list_btn' bindtap="{{vip_state?'showInfo':'editInfo'}}" data-id='{{item.id}}'>修改</view>
<view class='list_btn add_btn' bindtap='summaryList' data-id='{{item.id}}'>查看</view>
</view>
</view>
... ...
... ... @@ -472,8 +472,8 @@ Page({
familymember: familymember, //家庭成员
userinfo: res.data.data.list.counselor, //顾问信息
information: information,
advise: res.data.data.list.advise,
report: res.data.data.list.report,
advise: res.data.data.list.report,
report: res.data.data.list.advise,
guarantee: res.data.data.list.guarantee,
information_user: res.data.data.list.information_user,
collect: collect,
... ...
... ... @@ -25,7 +25,11 @@ Page({
recommend:[],
status:''
},
goIndex() {
wx.switchTab({
url: '/pages/index/index',
})
},
//保单详情
summaryDetail(e) {
... ... @@ -112,7 +116,7 @@ Page({
onLoad: function (options) {
this.setData({
PublishId: options.PublishId,
reportid: options.reportid
reportid: options.reportid,
})
if (options.PublishId) {
this.listDetail()
... ...
... ... @@ -181,4 +181,5 @@
</view>
</view>
</block>
</view>
\ No newline at end of file
</view>
<view class='go_index' bindtap="goIndex" wx:if="{{reportid!=''}}">回到首页</view>
\ No newline at end of file
... ...
@import '/pages/index/summaryList/summaryList.wxss';
.go_index {
width: 100rpx;
height: 100rpx;
border-radius: 50%;
position: fixed;
right: 30rpx;
bottom: 60rpx;
background: #0286ff;
font-size: 30rpx;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 20rpx;
box-sizing: border-box;
}
.content_item_box {
background: #fff;
padding: 0 62rpx;
... ...
... ... @@ -37,7 +37,7 @@ Page({
})
} else {
wx.navigateTo({
url: '/pages/index/summaryList2/summaryList2?PublishId=' + this.data.PublishId,
url: '/pages/index/summaryList2/summaryList2?reportid=' + this.data.PublishId,
})
}
}
... ... @@ -66,7 +66,7 @@ Page({
if (res.data.code == 200) {
if (res.data.data.type == 1) {
wx.navigateTo({
url: '/pages/index/summaryList2/summaryList2?PublishId=' + that.data.PublishId,
url: '/pages/index/summaryList2/summaryList2?reportid=' + that.data.PublishId,
})
} else {
wx.showToast({
... ...
... ... @@ -82,7 +82,8 @@ Page({
var num = parseInt(popularize.tb) //1000
var balance = parseInt(popularize.balance) //我的TB
var TbNum = parseInt(that.data.TbNum) //输入TB
if (TbNum == '') {
console.log('TbNum', TbNum)
if (TbNum == '' || TbNum == 'Nan') {
wx.showToast({
title: '请输入提现金额',
icon: 'none',
... ... @@ -103,6 +104,7 @@ Page({
duration: 2000,
mask: true,
})
} else if (res.data.data.type == -1) {
wx.showToast({
title: 'T币数值错误',
... ... @@ -140,9 +142,13 @@ Page({
duration: 2000,
})
}
this.setData({
setTimeout(function() {
that.getPersonanCenter()
}, 2000)
that.setData({
withdraw_state: false
})
})
}
... ... @@ -181,16 +187,16 @@ Page({
//会员充值
vipCharge() {
// if (app.globalData.UserType == 4) {
// wx.showToast({
// title: '暂无权限',
// icon: 'none'
// })
// } else {
if (app.globalData.UserType == 4) {
wx.showToast({
title: '暂无权限',
icon: 'none'
})
} else {
wx.navigateTo({
url: '../index/VipRecharge/VipRecharge',
})
// }
}
},
//报告浏览记录
... ... @@ -240,7 +246,7 @@ Page({
twoCode(e) {
let imgurl = e.currentTarget.dataset.imgurl
console.log(e)
if (app.globalData.UserType == 4 && app.globalData.user_index!=4) {
if (app.globalData.UserType == 4 && app.globalData.user_index != 4) {
wx.showToast({
title: '暂无权限',
icon: 'none'
... ... @@ -487,13 +493,15 @@ Page({
* 用户点击右上角分享
*/
onShareAppMessage: function(options) {
console.log(options)
console.log(options.target.dataset.status)
var sharetext = options.target.dataset.sharetext
// 设置菜单中的转发按钮触发转发事件时的转发内容
var shareObj = {
title: "保单体验专家", // 默认是小程序的名称(可以写slogan等)
path: '/pages/start/start?status =' + options.target.dataset.status, // 默认是当前页面,必须是以‘/’开头的完整路径
imgUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
title: "保险顾问专用客户和保单管理工具,诚邀使用",
// 默认是小程序的名称(可以写slogan等)
path: '/pages/start/start?status =' + options.target.dataset.status + '&sharetext=' + sharetext,
// 默认是当前页面,必须是以‘/’开头的完整路径
imageUrl: '/images/bg.jpg',
//自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
success: function(res) {
// 转发成功之后的回调
if (res.errMsg == 'shareAppMessage:ok') {}
... ... @@ -511,11 +519,12 @@ Page({
}
}   // 来自页面内的按钮的转发
if (options.from == 'button') {
var sharetext = options.target.dataset.sharetext
// 此处可以修改 shareObj 中的内容
shareObj.path = '/pages/start/start?status=' + options.target.dataset.status + '&sharetext=' + sharetext;
}   // 返回shareObj
// if (options.from == 'button') {
// var sharetext = options.target.dataset.sharetext
// // 此处可以修改 shareObj 中的内容
// shareObj.path = '/pages/start/start?status=' + options.target.dataset.status + '&sharetext=' + sharetext
// shareObj.imgUrl= '/images/bg.jpg'
// }   // 返回shareObj
return shareObj;
}
... ...
<!--pages/personalCenter/personalCenter.wxml-->
<!-- <image src='/images/bg.jpg'></image> -->
<view class='banner_box'>
<view class='head_img'>
<image src='{{user_info.avatar}}'></image>
... ... @@ -77,7 +78,7 @@
<view>方案预设</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
</view>
<view class='item_list' bindtap='share'>
<view class='list_icon'>
<text class='iconfont icon-fenxiang1'></text>
... ... @@ -187,7 +188,7 @@
<view class="envoy_info_box {{!item.tab_state?'expand':''}}">
<view class='envoy_content' wx:for='{{item.pg}}' wx:key=''>
<view>{{item.time}}</view>
<view class='envoy_title'>{{item.parent_change}}元</view>
<view class='envoy_title'>{{item.parent_change==null?'0':item.parent_change}}元</view>
</view>
</view>
</view>
... ...
... ... @@ -12,8 +12,9 @@ Page({
report_state: false,
share_state: false,
PublishId: '',
img: '',
imgUrl: '',
GoId: '',
show_state: true
},
//登录
... ... @@ -21,7 +22,6 @@ Page({
app.globalData.userInfo = e.detail.userInfo
var user_index = parseInt(e.target.dataset.user)
app.globalData.user_index = user_index
var that = this
wx.login({
success: (res) => {
... ... @@ -41,11 +41,9 @@ Page({
res.data.data.PublishId ? that.setData({
PublishId: res.data.data.PublishId
}) : ''
if (res.data.data.UserType == 4) {
app.globalData.temp_UserType = 3
}
if (res.data.data.type == '-3') { //-3已经注册过了
wx.switchTab({
url: '../index/index'
... ... @@ -67,7 +65,7 @@ Page({
})
} else if (res.data.data.checkstatus == '3') { //3为文章分享
wx.navigateTo({
url: '/pages/index/ArticleDetails/ArticleDetails?NewsId=' + res.data.data.NewsId + '&GoId=' + res.data.data.GoId
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
... ... @@ -267,7 +265,7 @@ Page({
//体检报告详情检测
reportInfo2() {
console.log(that.data.PubilshId,'aa')
console.log(that.data.PubilshId, 'aa')
let that = this;
that.setData({
report_state: false
... ... @@ -305,9 +303,9 @@ Page({
app.post(url, params).then((res) => {
if (res.data.code == 200) {
that.setData({
img: res.data.data.piclur
imgUrl: res.data.data.picurl
})
console.log(that.data.img)
console.log(res.data.data.picurl)
}
}).catch((errMsg) => {
console.log(errMsg)
... ... @@ -325,10 +323,12 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
console.log('start', options)
if (options.status) {
this.setData({
status: options.status,
sharetext: options.sharetext
sharetext: options.sharetext,
show_state: options.show_state ? options.show_state:true
})
}
},
... ...
... ... @@ -48,7 +48,7 @@
</view>
<view class='code_img'>
<!-- <image src='/images/img2.png'></image> -->
<image src='{{img}}'></image>
<image src='{{imgUrl}}'></image>
</view>
</view>
</view>
... ...
... ... @@ -37,65 +37,19 @@
"list": []
},
"miniprogram": {
"current": 8,
"current": 1,
"list": [
{
"id": -1,
"name": "个人信息录入",
"pathName": "pages/index/EntryInformation/EntryInformation",
"query": ""
},
{
"id": 4,
"id": 0,
"name": "编辑保单",
"pathName": "pages/index/addListDetail/addListDetail",
"query": "def_id=105&inforid=68&FamilyId=53",
"scene": null
},
{
"id": -1,
"name": "方案预设",
"pathName": "pages/index/Program/Program",
"query": ""
},
{
"id": -1,
"name": "center",
"pathName": "pages/personalCenter/personalCenter",
"query": ""
},
{
"id": -1,
"name": "保单汇总表",
"pathName": "pages/index/summaryList/summaryList",
"query": "allinfo={\"family_id\":130,\"warn_time\":0,\"warn_status\":0,\"infor\":1,\"users\":[{\"family_id\":130,\"id\":245,\"name\":\"ceshi\",\"family_role\":\"dsfs\",\"user_family\":1,\"cid\":413,\"key_status\":0}]}"
},
{
"id": -1,
"name": "提醒和跟踪",
"pathName": "pages/index/remind/remind",
"query": "cid=5&mainid=127",
"scene": null
},
{
"id": -1,
"name": "保单编辑",
"pathName": "pages/index/addListDetail/addListDetail",
"query": "def_id=53&inforid=26&FamilyId=19",
"scene": null
},
{
"id": -1,
"name": "保单添加",
"pathName": "pages/index/addListDetail/addListDetail",
"query": "def_id=135&FamilyId=70&name=333",
"query": "def_id=1&FamilyId=1&name=测试",
"scene": null
},
{
"id": -1,
"name": "aa",
"pathName": "pages/index/summaryList/summaryList",
"query": "allinfo={\"family_id\":78,\"warn_time\":9000000000,\"warn_status\":0,\"infor\":2,\"users\":[{\"family_id\":78,\"id\":153,\"name\":\"刘晓艳\",\"family_role\":\"11\",\"user_family\":1,\"cid\":5,\"key_status\":0},{\"family_id\":78,\"id\":154,\"name\":\"秘密\",\"family_role\":\"你们\",\"user_family\":0,\"cid\":5,\"key_status\":0}]}",
"pathName": "pages/index/editProfile/editProfile",
"scene": null
}
]
... ...