This commit is contained in:
2023-11-08 14:10:01 +08:00
parent 8605ab9910
commit 83318455ca
6 changed files with 742 additions and 643 deletions

View File

@ -10,22 +10,6 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{
"path": "pages/medicalservice/medicalservice",
"style": {
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},
{
"path": "pages/register/register",
"style": {
"navigationBarTitleText": "注册",
"enablePullDownRefresh": false
}
},
{ {
"path": "pages/homepage/homepage", "path": "pages/homepage/homepage",
"style": { "style": {
@ -33,10 +17,6 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/myinformation/myinformation", "path": "pages/myinformation/myinformation",
"style": { "style": {
@ -44,8 +24,20 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/register/register",
"style": {
"navigationBarTitleText": "注册",
"enablePullDownRefresh": false
}
},
{
"path": "pages/medicalservice/medicalservice",
"style": {
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, {
"path": "pages/login/login", "path": "pages/login/login",
"style": { "style": {
"navigationBarTitleText": "登录", "navigationBarTitleText": "登录",
@ -82,6 +74,13 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{
"path": "solution/solution",
"style": {
"navigationBarTitleText": "视频通话",
"enablePullDownRefresh": false
}
},
{ {
"path": "orderlist/orderlist", "path": "orderlist/orderlist",
"style": { "style": {
@ -223,7 +222,7 @@
}, { }, {
"path": "shopping/shopping", // "path": "shopping/shopping", //
"style": { "style": {
"navigationBarTitleText": "健康商城", "navigationBarTitleText": "医路优品",
"onReachBottomDistance": 40, // px "onReachBottomDistance": 40, // px
"enablePullDownRefresh": true //true "enablePullDownRefresh": true //true
} }
@ -458,13 +457,13 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
// { {
// "path": "Filinginformation/Filinginformation", "path": "Filinginformation/Filinginformation",
// "style": { "style": {
// "navigationBarTitleText": "查看建档信息", "navigationBarTitleText": "查看建档信息",
// "enablePullDownRefresh": false "enablePullDownRefresh": false
// } }
// }, },
{ {
"path": "Onlinesigning/Onlinesigning", "path": "Onlinesigning/Onlinesigning",
"style": { "style": {
@ -693,9 +692,25 @@
"navigationBarTitleText": "历史记录评估问卷", "navigationBarTitleText": "历史记录评估问卷",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}] }]
}], },
{
"root": "pagesmeeting",
"pages": [{
"path": "room/room",
"style": {
"navigationBarTitleText": "视频通话",
"enablePullDownRefresh": false
}
}, {
"path": "calling",
"style": {
"navigationBarTitleText": "视频通话",
"enablePullDownRefresh": false
}
}]
}
],
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "", "navigationBarTitleText": "",

View File

@ -106,7 +106,6 @@
this.userinfo = uni.getStorageSync('userinfo') this.userinfo = uni.getStorageSync('userinfo')
this.openid = uni.getStorageSync('openid'); this.openid = uni.getStorageSync('openid');
this.cityCode = this.userinfo.cityCode; this.cityCode = this.userinfo.cityCode;
if (this.address == '德州市') { if (this.address == '德州市') {
uni.setStorageSync("region", 1) uni.setStorageSync("region", 1)
} else if (this.address == '东营市') { } else if (this.address == '东营市') {
@ -115,7 +114,6 @@
uni.setStorageSync("region", 3) uni.setStorageSync("region", 3)
} }
this.region = uni.getStorageSync('region') this.region = uni.getStorageSync('region')
if (this.userinfo && this.region!="3") { if (this.userinfo && this.region!="3") {
this.patientName = this.userinfo.patientName this.patientName = this.userinfo.patientName
checkSignApply(this.userinfo.cardNo).then(res => { checkSignApply(this.userinfo.cardNo).then(res => {

View File

@ -15,9 +15,8 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.body{ .body {
margin-top: 50%; margin-top: 50%;
} }
</style> </style>

View File

@ -253,7 +253,7 @@
this.getpersnoal() this.getpersnoal()
}, },
methods: { methods: {
gomyappiont(){ gomyappiont() {
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/Myappointment/Myappointment' url: '/pagesC/Myappointment/Myappointment'
}) })
@ -266,7 +266,7 @@
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: '确认要退出此账号吗', content: '确认要退出此账号吗',
succ ess: function(res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
// uni.clearStorageSync(); // uni.clearStorageSync();
that.removes() that.removes()
@ -281,7 +281,7 @@
if (that.timer) { if (that.timer) {
clearTimeout(that.timer) clearTimeout(that.timer)
} }
that.timer=setTimeout(e => { that.timer = setTimeout(e => {
uni.switchTab({ uni.switchTab({
url: '/pages/homepage/homepage' url: '/pages/homepage/homepage'
}) })
@ -395,9 +395,9 @@
}, },
// //
Signing(){ Signing() {
uni.navigateTo({ uni.navigateTo({
url:'/pagesB/mysigning/mysigning' url: '/pagesB/mysigning/mysigning'
}) })
}, },
// //
@ -529,8 +529,11 @@
}, },
// //
expertOrder() { expertOrder() {
// uni.navigateTo({
// url: "/pagesB/ExpertlookOrder/ExpertlookOrder"
// })
uni.navigateTo({ uni.navigateTo({
url: "/pagesB/ExpertlookOrder/ExpertlookOrder" url: "/pagesmeeting/calling"
}) })
}, },
} }

View File

@ -215,7 +215,7 @@
getCodeText: null, getCodeText: null,
userId: '', userId: '',
userSig: '', userSig: '',
roomId:'', roomId: '',
} }
}, },
watch: { // watch: { //
@ -406,14 +406,12 @@
serve(item) { serve(item) {
// this.info() // this.info()
getRoomId(item.goodsOrderId).then(res => { getRoomId(item.goodsOrderId).then(res => {
console.log(res, '787') if (res.msg) {
if(res.msg){ this.roomId = res.msg
this.roomId=res.msg
uni.navigateTo({ uni.navigateTo({
url: `/pagesB/solution/solution?item=${JSON.stringify(item)}&&roomId=${this.roomId}` url: `/pagesB/solution/solution?item=${JSON.stringify(item)}&&roomId=${this.roomId}`
}) })
} } else {
else{
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '暂无视频通话', title: '暂无视频通话',
type: 'error' type: 'error'
@ -423,7 +421,6 @@
// }) // })
} }
}) })
}, },
// //
goorderdetails(item) { goorderdetails(item) {

View File

@ -1,6 +1,8 @@
<template> <template>
<view> <view>
<web-view :src="src" @message="handlePostMessage"></web-view> <view class="" @tap='goroom'>
跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转跳转
</view>
</view> </view>
</template> </template>
@ -14,28 +16,113 @@
src: '', src: '',
userSig: '', userSig: '',
item: {}, item: {},
roomId: '',
authorizeMic: '',
authorizeCamera: '',
hasOpenDeviceAuthorizeModal: '',
}; };
}, },
methods: { 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() { info() {
// console.log(this.item.patientId, '88585')
getUserSig(this.item.patientId).then(res => { getUserSig(this.item.patientId).then(res => {
this.userSig = res.data 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) { onLoad(options) {
this.item = JSON.parse(options.item) this.item = JSON.parse(options.item)
this.roomId = options.roomId this.roomId = options.roomId
// console.log(this.roomId, '88888')
this.info() this.info()
} }
} }
</script> </script>