修复分享中心、商城医生筛选
parent
60d9b48016
commit
cf7e0295fc
|
@ -159,6 +159,7 @@
|
|||
uni.setStorageSync('params',params);
|
||||
uni.setStorageSync('userId',res.data.account_id); // 缓存用户id
|
||||
uni.setStorageSync('token',res.data.token); // 缓存token
|
||||
uni.setStorageSync('openid',res.data.openid)//缓存openid
|
||||
uni.setStorageSync('expire',res.data.expire); // 缓存失效时间(时间戳格式)
|
||||
uni.setStorageSync('invite_code',res.data.invite_code); // 缓存用户邀请码
|
||||
uni.setStorageSync('is_active',res.data.is_active);
|
||||
|
|
|
@ -102,6 +102,11 @@
|
|||
break;
|
||||
case 2:
|
||||
if(existMobile!=''){
|
||||
// wx.openCustomerServiceChat({
|
||||
// extInfo: {url: `https://work.weixin.qq.com/kfid/kfcb3bba5b57d9a42ba?enc_scene=ENC616HXDjLYNcmsR49PBE75UERg8Ncv3dygpYjfnh3XVvA&scene_param=${uni.getStorageSync('openid')}`},
|
||||
// corpId: 'ww1f86f258d4ff5817',
|
||||
// success(res) {}
|
||||
// })
|
||||
this.$requst.post('user/rand-bind-service').then(res=>{})
|
||||
this.$toolAll.tools.closeTimer()//清空埋点倒计时
|
||||
this.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})
|
||||
|
|
|
@ -366,6 +366,7 @@ const tools = {
|
|||
success: res => {
|
||||
if(res.data.data.token!=''){
|
||||
uni.setStorageSync('token',res.data.data.token); // 缓存token
|
||||
uni.setStorageSync('openid',res.data.data.openid)//缓存openid
|
||||
uni.setStorageSync('expire',res.data.data.expire); // 缓存失效时间(时间戳格式)
|
||||
uni.setStorageSync('phone_active',res.data.data.phone_active); // 是否绑定手机号
|
||||
uni.setStorageSync('is_active',res.data.data.is_active)//是否第一次授权
|
||||
|
|
|
@ -178,6 +178,7 @@
|
|||
uni.setStorageSync('params',params)
|
||||
uni.setStorageSync('userId',res.data.account_id)
|
||||
uni.setStorageSync('token',res.data.token)//缓存token
|
||||
uni.setStorageSync('openid',res.data.openid)//缓存openid
|
||||
uni.setStorageSync('expire',res.data.expire)//缓存失效时间(时间戳格式)
|
||||
uni.setStorageSync('phone_active',res.data.phone_active)//是否第一次授权
|
||||
uni.setStorageSync('is_active',res.data.is_active)//是否第一次授权
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
<view class="linev"></view>
|
||||
<!-- 搜索 -->
|
||||
<view @tap="searchEv" class="searchT flexs fon34" :style="{color:publicColor}">搜索</view>
|
||||
<!-- <view @tap="enterprise" class="searchT flexs fon34" :style="{color:publicColor}">搜索</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="pad-x180">
|
||||
|
@ -201,6 +200,7 @@
|
|||
uni.setStorageSync('invite_code',res.data.invite_code);
|
||||
uni.setStorageSync('is_active',res.data.is_active)//是否第一次授权
|
||||
uni.setStorageSync('token',res.data.token);
|
||||
uni.setStorageSync('openid',res.data.openid)//缓存openid
|
||||
},error => {})
|
||||
},
|
||||
});
|
||||
|
@ -240,6 +240,7 @@
|
|||
uni.setStorageSync('invite_code',res.data.invite_code);
|
||||
uni.setStorageSync('is_active',res.data.is_active)//是否第一次授权
|
||||
uni.setStorageSync('token',res.data.token);
|
||||
uni.setStorageSync('openid',res.data.openid)//缓存openid
|
||||
},error => {})
|
||||
},
|
||||
});
|
||||
|
@ -539,14 +540,6 @@
|
|||
})
|
||||
}
|
||||
},
|
||||
// 打开企业客服
|
||||
enterprise(){
|
||||
wx.openCustomerServiceChat({
|
||||
extInfo: {url: 'https://work.weixin.qq.com/kfid/kfcde3c314a587e1a94?enc_scene=ENCFUmhyT3hWCYZXnXNQUVycNKrv8wSPZ5nGDjvuLUmPeUZ'},
|
||||
corpId: 'ww1f86f258d4ff5817',
|
||||
success(res) {}
|
||||
})
|
||||
},
|
||||
chooseReEv(index){
|
||||
if(this.$toolAll.tools.judgeAuth()){
|
||||
uni.navigateTo({
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<view v-if="activeIndex==1">
|
||||
<view class="fon28 bold mar-sx40">医生选择</view>
|
||||
<view class="posir">
|
||||
<input @tap.stop="chooseEv" type="text" class="mar-x40" v-model="doctor_name" placeholder="请输入医生姓名并选择" />
|
||||
<input @tap.stop="chooseEv" type="text" disabled class="mar-x40" v-model="doctor_name" placeholder="请点击选择医生" />
|
||||
<view v-if="showDoctor" class="posia" style="top: 52px;left: 0;right: 0;border: 1rpx solid #E6E6E6;padding: 20rpx;background: #FFFFFF;max-height: 400rpx;overflow: hidden;overflow-y: scroll;">
|
||||
<view @tap.stop="chooseDoctor(index)" class="disjbac fon28 col9" v-for="(item,index) in doctorList" :key="index">
|
||||
<span>姓名:{{item.doctor_extra.name}}</span>
|
||||
|
|
|
@ -124,6 +124,7 @@
|
|||
if(res.code==0){
|
||||
base64ToPath(res.data.poster).then(path => {
|
||||
this.imgSrc = path;
|
||||
uni.setStorageSync('imgSrcP',path);
|
||||
}).catch(error => {})
|
||||
this.$toolAll.tools.showToast('海报生成成功','none',1500);
|
||||
} else {
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
imgSrcP:uni.getStorageSync('imgSrcP'),
|
||||
titleList:[],//tab标题
|
||||
imgList:[],//tab图标
|
||||
shareFlag:true
|
||||
}
|
||||
},
|
||||
onShareAppMessage(options) {
|
||||
|
@ -126,12 +127,24 @@
|
|||
if(this.imgSrcP==''){
|
||||
this.$toolAll.tools.showToast('请先前往个人海报申请海报')
|
||||
} else {
|
||||
wx.showShareImageMenu({
|
||||
path: this.imgSrcP
|
||||
})
|
||||
this.$requst.post('user/record',{type:'other',action:'share',id:''}).then(res=>{console.log('分享成功:',res);},error=>{})
|
||||
// 调用tools.js中的种植埋点事件
|
||||
this.$toolAll.tools.plantPoint(4);
|
||||
this.$toolAll.tools.showToast('正在调起分享...','none',200000);
|
||||
if(this.shareFlag){
|
||||
this.shareFlag = false;
|
||||
wx.showShareImageMenu({
|
||||
path: this.imgSrcP,
|
||||
success:(res=>{
|
||||
uni.hideToast();
|
||||
this.shareFlag = true;
|
||||
this.$requst.post('user/record',{type:'other',action:'share',id:''}).then(res=>{console.log('分享成功:',res);},error=>{})
|
||||
// 调用tools.js中的种植埋点事件
|
||||
this.$toolAll.tools.plantPoint(4);
|
||||
}),
|
||||
fail:(err=>{
|
||||
uni.hideToast();
|
||||
this.shareFlag = true;
|
||||
})
|
||||
})
|
||||
} else {this.$toolAll.tools.showToast('请勿重复点击');}
|
||||
}
|
||||
},
|
||||
goPage(index){
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue