This commit is contained in:
2024-07-08 09:23:34 +08:00
parent 749e245824
commit 30f9144865
8 changed files with 87 additions and 123 deletions

View File

@ -48,7 +48,8 @@ var request = function(config) {
success(res) { success(res) {
uni.hideLoading(); uni.hideLoading();
if (witch == '1') { if (witch == '1') {
if (config.url != '/applet/score/prizeExchange/approvalList') { if (config.url != '/applet/score/prizeExchange/approvalList' && urls !=
'/nurseApplet/nearbyNursingStation/getHeathHousingList') {
res.data = decrypt(res.data) res.data = decrypt(res.data)
res.data = JSON.parse(res.data) res.data = JSON.parse(res.data)
} }

View File

@ -173,14 +173,14 @@
<image src="@/static/huijiantou.png" mode=""></image> <image src="@/static/huijiantou.png" mode=""></image>
</view> </view>
</view> </view>
<!-- <view class="myorder titles" @tap="remove()"> <view class="myorder titles" @tap="remove()">
<view class="title"> <view class="title">
退出登录 退出登录
</view> </view>
<view class="righttitle"> <view class="righttitle">
<image src="@/static/huijiantou.png" mode=""></image> <image src="@/static/huijiantou.png" mode=""></image>
</view> </view>
</view> --> </view>
<view class="mask" @click.stop='showhome = false' v-if="showhome"> <view class="mask" @click.stop='showhome = false' v-if="showhome">
<view class="masktext" @click.stop=''> <view class="masktext" @click.stop=''>
<view class="maskcontent" v-if="familyList"> <view class="maskcontent" v-if="familyList">
@ -310,7 +310,8 @@
// //
changeFamilyInfo(e) { changeFamilyInfo(e) {
const value = uni.getStorageSync('openid'); const value = uni.getStorageSync('openid');
if (value) { const value2 = uni.getStorageSync('patientId');
if (value && value2) {
switchResident(value, e.patientCode).then(res => { switchResident(value, e.patientCode).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.appPersonallist = res.data this.appPersonallist = res.data
@ -339,7 +340,7 @@
removes() { removes() {
this.appPersonallist = null this.appPersonallist = null
uni.removeStorageSync('patientId'); uni.removeStorageSync('patientId');
uni.removeStorageSync('openid'); // uni.removeStorageSync('openid');
uni.removeStorageSync('phone'); uni.removeStorageSync('phone');
uni.removeStorageSync('userinfo'); uni.removeStorageSync('userinfo');
}, },
@ -363,8 +364,6 @@
that.removes(); that.removes();
} }
}) })
} else {
that.removes();
} }
// }) // })
// } else { // } else {
@ -432,77 +431,85 @@
url: `/pagesB/modify/modify` url: `/pagesB/modify/modify`
}) })
} else { } else {
if (!uni.getStorageSync('location') || !uni.getStorageSync('region')) { if (!uni.getStorageSync('openid') && !value2) {
that.getAddress() if (!uni.getStorageSync('location') || !uni.getStorageSync('region')) {
} that.getAddress()
that.sportinfo();
wx.login({
provider: 'weixin',
success: function(loginRes) {
login(loginRes.code).then(resp => {
if (!resp.data) {
that.$refs.uToast.show({
title: '登录失败',
type: 'error',
})
return
}
if (resp.data.openid) {
uni.setStorageSync("openid", resp.data.openid)
}
if (resp.data.code == '0') {
that.$refs.uToast.show({
title: '未注册,请先注册',
type: 'error',
duration: '1500',
})
if (that.timer) {
clearTimeout(that.timer)
}
that.timer = setTimeout(() => {
uni.navigateTo({
url: '/pagesB/register/register',
})
}, 1500)
} else if (resp.data.code == '2') {
that.$refs.uToast.show({
title: '已被其他人注册',
type: 'error',
duration: '1500',
})
} else if (resp.data.code == '1') {
logingetCurrentUser(resp.data.openid).then(res => {
if (res.code == 200) {
if (res.data) {
that.appPersonallist = res.data
uni.setStorageSync('patientId', res.data.id);
uni.setStorageSync('userinfo', res.data);
uni.setStorageSync('phone', res.data.phone);
that.scoket();
}
that.$refs.uToast.show({
title: '登录成功',
type: 'success',
back: 1
})
} else {
that.$refs.uToast.show({
title: '登录失败',
type: 'error',
})
}
})
} else {
that.$refs.uToast.show({
title: '登录失败',
type: 'error',
})
}
})
} }
}); that.sportinfo();
wx.login({
provider: 'weixin',
success: function(loginRes) {
login(loginRes.code).then(resp => {
if (!resp.data) {
that.$refs.uToast.show({
title: '登录失败',
type: 'error',
})
return
}
if (resp.data.openid) {
uni.setStorageSync("openid", resp.data.openid)
}
if (resp.data.code == '0') {
that.$refs.uToast.show({
title: '未注册,请先注册',
type: 'error',
duration: '1500',
})
if (that.timer) {
clearTimeout(that.timer)
}
that.timer = setTimeout(() => {
uni.navigateTo({
url: '/pagesB/register/register',
})
}, 1500)
} else if (resp.data.code == '2') {
that.$refs.uToast.show({
title: '已被其他人注册',
type: 'error',
duration: '1500',
})
} else if (resp.data.code == '1') {
that.outlogin(that, resp.data.openid)
} else {
that.$refs.uToast.show({
title: '登录失败',
type: 'error',
})
}
})
}
});
} else {
that.outlogin(that, uni.getStorageSync('openid'))
}
} }
}, },
outlogin(that, openid) {
logingetCurrentUser(openid).then(res => {
if (res.code == 200) {
if (res.data) {
that.appPersonallist = res.data
uni.setStorageSync('patientId', res.data.id);
uni.setStorageSync('userinfo', res.data);
uni.setStorageSync('phone', res.data
.phone);
that.scoket();
}
that.$refs.uToast.show({
title: '登录成功',
type: 'success',
back: 1
})
} else {
that.$refs.uToast.show({
title: '登录失败',
type: 'error',
})
}
})
},
// //
gonursestation() { gonursestation() {
const value = uni.getStorageSync('userinfo'); const value = uni.getStorageSync('userinfo');

View File

@ -693,7 +693,6 @@
that.userinfo = uni.getStorageSync('userinfo'); that.userinfo = uni.getStorageSync('userinfo');
that.form.openid = uni.getStorageSync('openid'); that.form.openid = uni.getStorageSync('openid');
that.form.cityCode = uni.getStorageSync('region'); that.form.cityCode = uni.getStorageSync('region');
console.log(that.form.cityCode, 'that.form.cityCode')
if (that.form.cityCode == "") { if (that.form.cityCode == "") {
that.form.cityCode = 2 that.form.cityCode = 2
} }
@ -702,7 +701,6 @@
} else if (that.form.sexname == '女') { } else if (that.form.sexname == '女') {
that.form.sex = 'FEMALE'; that.form.sex = 'FEMALE';
} }
console.log(that.form)
if (that.form.sex == "") { if (that.form.sex == "") {
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '请选择性别', title: '请选择性别',

View File

@ -8,9 +8,7 @@
<view class="righttitle"> <view class="righttitle">
<image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image> <image :src="require('@/pagesC/images/huijiantou.png')" mode=""></image>
</view> </view>
</view> </view>
<view class="" v-if="total >0"> <view class="" v-if="total >0">
<view class="orderitem" v-for="(item,index) in evaluatedata"> <view class="orderitem" v-for="(item,index) in evaluatedata">
<view class="tiemitem"> <view class="tiemitem">
@ -96,7 +94,6 @@
insertGoodsEvaluate, insertGoodsEvaluate,
} from '@/api/pagesB/Serviceevaluation/Serviceevaluation.js' } from '@/api/pagesB/Serviceevaluation/Serviceevaluation.js'
import { import {
add add
} from '@/api/pagesC/servicerecord/servicerecord.js' } from '@/api/pagesC/servicerecord/servicerecord.js'
import baseurl from '@/api/baseurl.js' import baseurl from '@/api/baseurl.js'
@ -122,14 +119,11 @@
patientId: '', patientId: '',
openId: '', openId: '',
orderNo: '', orderNo: '',
evaluateChannel: 'WE_CHAT_APPLET', evaluateChannel: 'WE_CHAT_APPLET',
}, },
openId: '', openId: '',
orderType: '', orderType: '',
orderSource: '', orderSource: '',
} }
}, },
onShow() { onShow() {
@ -138,26 +132,17 @@
this.parentId = this.userinfo.id; this.parentId = this.userinfo.id;
this.region = uni.getStorageSync('region'); this.region = uni.getStorageSync('region');
this.openId = uni.getStorageSync('openid'); this.openId = uni.getStorageSync('openid');
// console.log(this.openId, '999')
// this.cardNo = '371402199404167019'; // this.cardNo = '371402199404167019';
// this.cardNo = '372926199812187720'; // this.cardNo = '372926199812187720';
// this.parentId = '83'; // this.parentId = '83';
this.getlist(); this.getlist();
}, },
onLoad(options) { onLoad(options) {
// this.list.patientId = uni.getStorageSync('patientId'); // this.list.patientId = uni.getStorageSync('patientId');
this.baseurl = baseurl; this.baseurl = baseurl;
}, },
onReachBottom() { // onReachBottom() { //
if (this.evaluatedata.length >= this.total) { if (this.evaluatedata.length >= this.total) {
} else { } else {
this.pageNum++ this.pageNum++
getAppletOrderList(this.parentId, this.orderStatus, this.cardNo, this.region, this.pageNum, this getAppletOrderList(this.parentId, this.orderStatus, this.cardNo, this.region, this.pageNum, this
@ -167,12 +152,8 @@
this.evaluatedata.push(e) this.evaluatedata.push(e)
this.total = res.total this.total = res.total
}) })
} }
}) })
} }
}, },
watch: { // watch: { //
@ -200,8 +181,6 @@
// //
ratenurse() { ratenurse() {
this.evaluatenurse = true; this.evaluatenurse = true;
}, },
// //
healthratenurse(item) { healthratenurse(item) {
@ -214,12 +193,10 @@
// //
if (item.orderType == "FAMILY_DOCTOR") { if (item.orderType == "FAMILY_DOCTOR") {
this.evaluateshow = true; this.evaluateshow = true;
} }
// //
if (item.orderType == "HEALTH_CONSULTATION" || item.orderType == "APPOINTMENT_ORDER") { if (item.orderType == "HEALTH_CONSULTATION" || item.orderType == "APPOINTMENT_ORDER") {
this.evaluatenurse = true; this.evaluatenurse = true;
} }
// //
if (item.orderType == "INTEGRAL_EXCHANGE" || item.orderType == "DIRECT_BUY") { if (item.orderType == "INTEGRAL_EXCHANGE" || item.orderType == "DIRECT_BUY") {
@ -227,20 +204,15 @@
url: `/pagesB/evaluate/evaluate?item=${JSON.stringify(item)}&delta=${1}` url: `/pagesB/evaluate/evaluate?item=${JSON.stringify(item)}&delta=${1}`
// url: `/pagesB/goodsorderRate/goodsorderRate?item=${JSON.stringify(item)}&delta=${1}` // url: `/pagesB/goodsorderRate/goodsorderRate?item=${JSON.stringify(item)}&delta=${1}`
}) })
} }
this.orderType = item.orderType this.orderType = item.orderType
this.list.orderNo = item.orderNo this.list.orderNo = item.orderNo
// this.list.evaluateChanne = 'WE_CHAT_APPLET' // this.list.evaluateChanne = 'WE_CHAT_APPLET'
}, },
// //
submit() { submit() {
this.list.patientId = this.parentId this.list.patientId = this.parentId
this.list.openId = uni.getStorageSync('openid') this.list.openId = uni.getStorageSync('openid')
console.log(this.list, '45')
if (this.orderType == "HEALTH_CONSULTATION" || this.orderType == "INTEGRAL_EXCHANGE" || this.orderType == if (this.orderType == "HEALTH_CONSULTATION" || this.orderType == "INTEGRAL_EXCHANGE" || this.orderType ==
"DIRECT_BUY" || this.orderType == "FAMILY_DOCTOR") { "DIRECT_BUY" || this.orderType == "FAMILY_DOCTOR") {
// this.list.evaluateSatisfaction=this.evaluateSatisfaction // this.list.evaluateSatisfaction=this.evaluateSatisfaction
@ -292,15 +264,12 @@
}) })
} }
}) })
} }
}, },
// //
cancel() { cancel() {
this.evaluateshow = false; this.evaluateshow = false;
this.evaluatenurse = false; this.evaluatenurse = false;
}, },
// //
getlist() { getlist() {
@ -308,22 +277,15 @@
.pageSize).then(res => { .pageSize).then(res => {
this.evaluatedata = res.rows this.evaluatedata = res.rows
this.total = res.total this.total = res.total
}) })
}, },
// //
expertOrder() { expertOrder() {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/myevaluation/myevaluation' url: '/pagesB/myevaluation/myevaluation'
}) })
}, },
}, },
} }
</script> </script>

View File

@ -76,7 +76,7 @@
duration: 1000 duration: 1000
}); });
uni.removeStorageSync('patientId'); uni.removeStorageSync('patientId');
uni.removeStorageSync('openid'); // uni.removeStorageSync('openid');
uni.removeStorageSync('phone'); uni.removeStorageSync('phone');
uni.removeStorageSync('userinfo'); uni.removeStorageSync('userinfo');
setTimeout(function() { setTimeout(function() {

View File

@ -242,7 +242,6 @@
} }
}, },
onLoad(options) { onLoad(options) {
console.log(options)
let that = this let that = this
this.nurseStationId = options.nurseStationId this.nurseStationId = options.nurseStationId
// scene 使 decodeURIComponent scene // scene 使 decodeURIComponent scene
@ -332,7 +331,6 @@
let that = this let that = this
const value = uni.getStorageSync('openid'); const value = uni.getStorageSync('openid');
const userinfo = uni.getStorageSync('userinfo'); const userinfo = uni.getStorageSync('userinfo');
const patientId = userinfo.id const patientId = userinfo.id
if (value && userinfo) { if (value && userinfo) {
// const scenenurseStationId = uni.getStorageSync('scenenurseStationId'); // const scenenurseStationId = uni.getStorageSync('scenenurseStationId');
@ -341,7 +339,6 @@
// url: `/pagesB/hospitalcare/hospitalcare?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`, // url: `/pagesB/hospitalcare/hospitalcare?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`,
// }) // })
// } else { // } else {
console.log(item, '5656')
AppIdentification(patientId).then(res => { AppIdentification(patientId).then(res => {
if (res.code == 200) { if (res.code == 200) {
if (res.data.loginFlag) { if (res.data.loginFlag) {

View File

@ -17,7 +17,7 @@
</u-form-item> </u-form-item>
<span>手机号</span> <span>手机号</span>
<u-form-item prop="phone" :border-bottom="false"> <u-form-item prop="phone" :border-bottom="false">
<u-input v-model="query.phone" placeholder="请输入手机号" :disabled="true" /> <u-input v-model="query.phone" placeholder="请输入手机号" />
</u-form-item> </u-form-item>
<view class="name"> <view class="name">
性别 性别
@ -490,7 +490,7 @@
uni.setStorageSync('patientId', res.data.id); uni.setStorageSync('patientId', res.data.id);
uni.setStorageSync('phone', res.data.phone); uni.setStorageSync('phone', res.data.phone);
uni.setStorageSync('patientName', res.data uni.setStorageSync('patientName', res.data
.patientName); .patientName);
uni.setStorageSync("userinfo", res.data) uni.setStorageSync("userinfo", res.data)
that.scoket(); that.scoket();
that.$refs.uToast.show({ that.$refs.uToast.show({

View File

@ -247,7 +247,6 @@
}, },
// //
evaluatetime(item) { evaluatetime(item) {
console.log(item, '58')
this.evaluateshow = true; this.evaluateshow = true;
this.list = item this.list = item
this.list.orderNo = item.performanceNo this.list.orderNo = item.performanceNo