修复分享中心、商城医生筛选

master
chen 2022-03-24 16:32:33 +08:00
parent 60d9b48016
commit cf7e0295fc
30 changed files with 53 additions and 38 deletions

View File

@ -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);

View File

@ -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=>{})

View File

@ -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)//是否第一次授权

View File

@ -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)//

View File

@ -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({

View File

@ -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>

View File

@ -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 {

View File

@ -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