修改
This commit is contained in:
parent
8605ab9910
commit
83318455ca
1223
pages.json
1223
pages.json
File diff suppressed because it is too large
Load Diff
@ -106,7 +106,6 @@
|
||||
this.userinfo = uni.getStorageSync('userinfo')
|
||||
this.openid = uni.getStorageSync('openid');
|
||||
this.cityCode = this.userinfo.cityCode;
|
||||
|
||||
if (this.address == '德州市') {
|
||||
uni.setStorageSync("region", 1)
|
||||
} else if (this.address == '东营市') {
|
||||
@ -115,7 +114,6 @@
|
||||
uni.setStorageSync("region", 3)
|
||||
}
|
||||
this.region = uni.getStorageSync('region')
|
||||
|
||||
if (this.userinfo && this.region!="3") {
|
||||
this.patientName = this.userinfo.patientName
|
||||
checkSignApply(this.userinfo.cardNo).then(res => {
|
||||
|
||||
@ -8,16 +8,15 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.body{
|
||||
.body {
|
||||
margin-top: 50%;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -90,14 +90,14 @@
|
||||
<view class="text">
|
||||
待收货
|
||||
</view>
|
||||
<view class="orderCount"
|
||||
v-if="appPersonallist.waitReceivedGoodsCount>0&&appPersonallist.waitReceivedGoodsCount<100">
|
||||
{{appPersonallist.waitReceivedGoodsCount}}
|
||||
</view>
|
||||
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
|
||||
v-if="appPersonallist.waitReceivedGoodsCount>=100">
|
||||
99+
|
||||
</view>
|
||||
<view class="orderCount"
|
||||
v-if="appPersonallist.waitReceivedGoodsCount>0&&appPersonallist.waitReceivedGoodsCount<100">
|
||||
{{appPersonallist.waitReceivedGoodsCount}}
|
||||
</view>
|
||||
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
|
||||
v-if="appPersonallist.waitReceivedGoodsCount>=100">
|
||||
99+
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" @tap="goorder(3,'RECEIVED_GOODS')">
|
||||
<image src="../../static/pages/daipingjia.png" mode=""></image>
|
||||
@ -253,7 +253,7 @@
|
||||
this.getpersnoal()
|
||||
},
|
||||
methods: {
|
||||
gomyappiont(){
|
||||
gomyappiont() {
|
||||
uni.navigateTo({
|
||||
url: '/pagesC/Myappointment/Myappointment'
|
||||
})
|
||||
@ -266,7 +266,7 @@
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确认要退出此账号吗',
|
||||
succ ess: function(res) {
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
// uni.clearStorageSync();、
|
||||
that.removes()
|
||||
@ -281,7 +281,7 @@
|
||||
if (that.timer) {
|
||||
clearTimeout(that.timer)
|
||||
}
|
||||
that.timer=setTimeout(e => {
|
||||
that.timer = setTimeout(e => {
|
||||
uni.switchTab({
|
||||
url: '/pages/homepage/homepage'
|
||||
})
|
||||
@ -342,7 +342,7 @@
|
||||
existPatientInfo(value).then(res => {
|
||||
if (res.code == 200 && res.msg == 'LOGIN') {
|
||||
appPersonal(value2).then(Response => {
|
||||
uni.setStorageSync('userinfo', Response.data);
|
||||
uni.setStorageSync('userinfo', Response.data);
|
||||
if (Response.code == 200) {
|
||||
that.appPersonallist = Response.data
|
||||
if (!that.appPersonallist.integral) {
|
||||
@ -395,9 +395,9 @@
|
||||
|
||||
},
|
||||
// 签约信息
|
||||
Signing(){
|
||||
Signing() {
|
||||
uni.navigateTo({
|
||||
url:'/pagesB/mysigning/mysigning'
|
||||
url: '/pagesB/mysigning/mysigning'
|
||||
})
|
||||
},
|
||||
//去登陆
|
||||
@ -529,8 +529,11 @@
|
||||
},
|
||||
// 专家咨询订单
|
||||
expertOrder() {
|
||||
// uni.navigateTo({
|
||||
// url: "/pagesB/ExpertlookOrder/ExpertlookOrder"
|
||||
// })
|
||||
uni.navigateTo({
|
||||
url: "/pagesB/ExpertlookOrder/ExpertlookOrder"
|
||||
url: "/pagesmeeting/calling"
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
@ -215,7 +215,7 @@
|
||||
getCodeText: null,
|
||||
userId: '',
|
||||
userSig: '',
|
||||
roomId:'',
|
||||
roomId: '',
|
||||
}
|
||||
},
|
||||
watch: { //监听
|
||||
@ -406,14 +406,12 @@
|
||||
serve(item) {
|
||||
// this.info()
|
||||
getRoomId(item.goodsOrderId).then(res => {
|
||||
console.log(res, '787')
|
||||
if(res.msg){
|
||||
this.roomId=res.msg
|
||||
if (res.msg) {
|
||||
this.roomId = res.msg
|
||||
uni.navigateTo({
|
||||
url: `/pagesB/solution/solution?item=${JSON.stringify(item)}&&roomId=${this.roomId}`
|
||||
})
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '暂无视频通话',
|
||||
type: 'error'
|
||||
@ -423,7 +421,6 @@
|
||||
// })
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
//订单详情页面
|
||||
goorderdetails(item) {
|
||||
@ -859,4 +856,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<view>
|
||||
<web-view :src="src" @message="handlePostMessage"></web-view>
|
||||
<view class="" @tap='goroom'>
|
||||
跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -14,31 +16,116 @@
|
||||
src: '',
|
||||
userSig: '',
|
||||
item: {},
|
||||
roomId: '',
|
||||
authorizeMic: '',
|
||||
authorizeCamera: '',
|
||||
hasOpenDeviceAuthorizeModal: '',
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
goroom() {
|
||||
uni.navigateTo({
|
||||
url: `/pagesmeeting/calling?userID=${this.item.patientId}&userName=${this.item.patientName}&userSig=${this.userSig}&roomID=${this.roomId}`
|
||||
})
|
||||
// this.checkDeviceAuthorize().then((result) => {
|
||||
// console.log('授权成功', result)
|
||||
|
||||
// })
|
||||
// .catch((error) => {
|
||||
// console.log('没有授权', error)
|
||||
// })
|
||||
},
|
||||
checkDeviceAuthorize() {
|
||||
this.hasOpenDeviceAuthorizeModal = false
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!wx.getSetting || !wx.getSetting()) {
|
||||
// 微信测试版 获取授权API异常,目前只能即使没授权也可以通过
|
||||
resolve()
|
||||
}
|
||||
wx.getSetting().then((result) => {
|
||||
console.log('getSetting', result)
|
||||
this.authorizeMic = result.authSetting['scope.record']
|
||||
this.authorizeCamera = result.authSetting['scope.camera']
|
||||
if (result.authSetting['scope.camera'] && result.authSetting['scope.record']) {
|
||||
// 授权成功
|
||||
resolve()
|
||||
} else {
|
||||
// 没有授权,弹出授权窗口
|
||||
// 注意: wx.authorize 只有首次调用会弹框,之后调用只返回结果,如果没有授权需要自行弹框提示处理
|
||||
console.log('getSetting 没有授权,弹出授权窗口', result)
|
||||
wx.authorize({
|
||||
scope: 'scope.record',
|
||||
}).then((res) => {
|
||||
console.log('authorize mic', res)
|
||||
this.authorizeMic = true
|
||||
if (this.authorizeCamera) {
|
||||
resolve()
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log('authorize mic error', error)
|
||||
this.authorizeMic = false
|
||||
})
|
||||
wx.authorize({
|
||||
scope: 'scope.camera',
|
||||
}).then((res) => {
|
||||
console.log('authorize camera', res)
|
||||
this.authorizeCamera = true
|
||||
if (this.authorizeMic) {
|
||||
resolve()
|
||||
} else {
|
||||
this.openConfirm()
|
||||
reject(new Error('authorize fail'))
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log('authorize camera error', error)
|
||||
this.authorizeCamera = false
|
||||
this.openConfirm()
|
||||
reject(new Error('authorize fail'))
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
openConfirm() {
|
||||
if (this.hasOpenDeviceAuthorizeModal) {
|
||||
return
|
||||
}
|
||||
this.hasOpenDeviceAuthorizeModal = true
|
||||
return uni.showModal({
|
||||
content: '您没有打开麦克风和摄像头的权限,是否去设置打开?',
|
||||
confirmText: '确认',
|
||||
cancelText: '取消',
|
||||
success: (res) => {
|
||||
this.hasOpenDeviceAuthorizeModal = false
|
||||
console.log(res)
|
||||
// 点击“确认”时打开设置页面
|
||||
if (res.confirm) {
|
||||
console.log('用户点击确认')
|
||||
wx.openSetting({
|
||||
success: (res) => {},
|
||||
})
|
||||
} else {
|
||||
console.log('用户点击取消')
|
||||
}
|
||||
},
|
||||
})
|
||||
},
|
||||
info() {
|
||||
// console.log(this.item.patientId, '88585')
|
||||
getUserSig(this.item.patientId).then(res => {
|
||||
this.userSig = res.data
|
||||
this.src =
|
||||
`https://msg.xinyilu.cn?userId=5&userName=王晓燕&userSig=eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwqZQweKU7MSCgswUJStDMwMgMLM0MYHIpFYUZBalAsVNTU2NgDIQ0ZLMXJCYmaWlsZGRoYUh1JTMdKCZFgGhHiGlhkWBZR6mKanpAVW*bpVuMfpGeY5epUZVad6G5qZBjgGZzk6GvqG2SrUAMZovIA__&roomId=456789`
|
||||
|
||||
console.log(this.src, '555')
|
||||
})
|
||||
},
|
||||
},
|
||||
onLoad(options) {
|
||||
this.item = JSON.parse(options.item)
|
||||
this.roomId = options.roomId
|
||||
// console.log(this.roomId, '88888')
|
||||
this.info()
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user