修改
This commit is contained in:
parent
e550435756
commit
22eae82d6f
@ -4,7 +4,9 @@ export function getAppletOrderList(parentId,orderStatus,cardNo,region,pageNum,pa
|
|||||||
url: `/nurseApplet/nursingOrder/getAppletOrderList?parentId=${parentId}&orderStatus=${orderStatus}&cardNo=${cardNo}®ion=${region}&pageNum=${pageNum}&pageSize=${pageSize}`,
|
url: `/nurseApplet/nursingOrder/getAppletOrderList?parentId=${parentId}&orderStatus=${orderStatus}&cardNo=${cardNo}®ion=${region}&pageNum=${pageNum}&pageSize=${pageSize}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
header: {
|
header: {
|
||||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
|
||||||
|
region: uni.getStorageSync('region'),
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -8,6 +8,8 @@ export function surveylist(data) {
|
|||||||
data,
|
data,
|
||||||
header: {
|
header: {
|
||||||
region: uni.getStorageSync('region'),
|
region: uni.getStorageSync('region'),
|
||||||
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||||
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,10 +88,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
patientName: '',
|
patientName: '',
|
||||||
userinfo: {
|
userinfo: null,
|
||||||
cityCode: "",
|
|
||||||
},
|
|
||||||
|
|
||||||
region: '',
|
region: '',
|
||||||
checkSign: null,
|
checkSign: null,
|
||||||
address: '',
|
address: '',
|
||||||
@ -103,9 +100,11 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.address = uni.getStorageSync('location')
|
this.address = uni.getStorageSync('location')
|
||||||
this.userinfo = uni.getStorageSync('userinfo')
|
|
||||||
this.openid = uni.getStorageSync('openid');
|
this.openid = uni.getStorageSync('openid');
|
||||||
this.cityCode = this.userinfo.cityCode;
|
if (uni.getStorageSync('userinfo')) {
|
||||||
|
this.userinfo = uni.getStorageSync('userinfo')
|
||||||
|
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 == '东营市') {
|
||||||
@ -114,12 +113,12 @@
|
|||||||
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 => {
|
||||||
if(res.data){
|
if (res.data) {
|
||||||
this.checkSign=res.data.code
|
this.checkSign = res.data.code
|
||||||
this.info=res.data.info
|
this.info = res.data.info
|
||||||
|
|
||||||
}
|
}
|
||||||
// if (res.data.code == 0) {
|
// if (res.data.code == 0) {
|
||||||
@ -174,14 +173,14 @@
|
|||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == "1" || this.cityCode == "2") {
|
||||||
if (this.checkSign=="0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
} else if(this.checkSign=="01"){
|
} else if (this.checkSign == "01") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.info,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@ -189,8 +188,7 @@
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesB/mysigning/mysigning"
|
url: "/pagesB/mysigning/mysigning"
|
||||||
})
|
})
|
||||||
@ -214,15 +212,14 @@
|
|||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == "1" || this.cityCode == "2") {
|
||||||
if (this.checkSign=="0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.info,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
}
|
} else if (this.checkSign == "01") {
|
||||||
else if(this.checkSign=="01"){
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.info,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@ -230,8 +227,7 @@
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
} else if (this.checkSign == "01") {
|
||||||
else if(this.checkSign=="01"){
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.info,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@ -239,8 +235,7 @@
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
url: '/pagesB/Behaviorpoints/Behaviorpoints'
|
||||||
})
|
})
|
||||||
@ -314,34 +309,32 @@
|
|||||||
// if (this.region == "3") {
|
// if (this.region == "3") {
|
||||||
// this.family()
|
// this.family()
|
||||||
// } else {
|
// } else {
|
||||||
// if (this.cityCode == "1" || this.cityCode == "2") {
|
// if (this.cityCode == "1" || this.cityCode == "2") {
|
||||||
if (this.checkSign=="0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
}
|
} else if (this.checkSign == "01") {
|
||||||
else if(this.checkSign=="01"){
|
this.$refs.uToast.show({
|
||||||
this.$refs.uToast.show({
|
title: this.info,
|
||||||
title: this.info,
|
type: 'error',
|
||||||
type: 'error',
|
duration: '2000',
|
||||||
duration: '2000',
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
} else {
|
||||||
else {
|
uni.navigateTo({
|
||||||
uni.navigateTo({
|
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
||||||
url: "/pagesC/ServiceAppointment/ServiceAppointment"
|
})
|
||||||
})
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// } else {
|
// } else {
|
||||||
// this.family()
|
// this.family()
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
@ -362,15 +355,14 @@
|
|||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == "1" || this.cityCode == "2") {
|
||||||
if (this.checkSign=="0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
}
|
} else if (this.checkSign == "01") {
|
||||||
else if(this.checkSign=="01"){
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.info,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@ -378,7 +370,7 @@
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}else{
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/servicerecord/servicerecord"
|
url: "/pagesC/servicerecord/servicerecord"
|
||||||
})
|
})
|
||||||
@ -404,15 +396,14 @@
|
|||||||
this.family()
|
this.family()
|
||||||
} else {
|
} else {
|
||||||
if (this.cityCode == "1" || this.cityCode == "2") {
|
if (this.cityCode == "1" || this.cityCode == "2") {
|
||||||
if (this.checkSign=="0") {
|
if (this.checkSign == "0") {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未签约,请先签约',
|
title: '未签约,请先签约',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: "/pagesC/Onlinesigning/Onlinesigning"
|
url: "/pagesC/Onlinesigning/Onlinesigning"
|
||||||
})
|
})
|
||||||
}
|
} else if (this.checkSign == "01") {
|
||||||
else if(this.checkSign=="01"){
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: this.info,
|
title: this.info,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@ -420,8 +411,7 @@
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesC/Myappointment/Myappointment"
|
url: "/pagesC/Myappointment/Myappointment"
|
||||||
})
|
})
|
||||||
|
|||||||
@ -11,13 +11,10 @@
|
|||||||
<image :src="baseurl+appPersonallist.headPictureUrl" mode="" class="headsculpture" @tap='updatainfo' v-else>
|
<image :src="baseurl+appPersonallist.headPictureUrl" mode="" class="headsculpture" @tap='updatainfo' v-else>
|
||||||
</image>
|
</image>
|
||||||
<view class="namesigning">
|
<view class="namesigning">
|
||||||
<span class="name" v-if="appPersonallist.patientName">
|
<span class="name">
|
||||||
{{appPersonallist.patientName}}
|
{{appPersonallist.patientName?appPersonallist.patientName:'请先登录!'}}
|
||||||
</span>
|
</span>
|
||||||
<span class="name" v-else>
|
<span class="" v-show="appPersonallist.patientName">
|
||||||
请先登录!
|
|
||||||
</span>
|
|
||||||
<span class="" v-if="appPersonallist.patientName">
|
|
||||||
<span class="signing" v-if="appPersonallist.signNo">
|
<span class="signing" v-if="appPersonallist.signNo">
|
||||||
已签约
|
已签约
|
||||||
</span>
|
</span>
|
||||||
@ -56,7 +53,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @tap='gocoupon'>
|
<view class="item" @tap='gocoupon'>
|
||||||
<view class="number" v-if="appPersonallist.patientCouponCount==0 ||appPersonallist.patientCouponCount==undefined">
|
<view class="number"
|
||||||
|
v-if="appPersonallist.patientCouponCount==0 ||appPersonallist.patientCouponCount==undefined">
|
||||||
0
|
0
|
||||||
</view>
|
</view>
|
||||||
<view class="number" v-else>
|
<view class="number" v-else>
|
||||||
@ -240,22 +238,15 @@
|
|||||||
showhome: false, //切换
|
showhome: false, //切换
|
||||||
familyList: null, //切换列表
|
familyList: null, //切换列表
|
||||||
userinfo: {}, //用户信息
|
userinfo: {}, //用户信息
|
||||||
valueopenid: '',
|
|
||||||
cityCode: '',
|
cityCode: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
// this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
|
// this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
|
||||||
let that = this
|
|
||||||
this.userinfo = uni.getStorageSync('userinfo')
|
this.userinfo = uni.getStorageSync('userinfo')
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.valueopenid = uni.getStorageSync('openid');
|
|
||||||
this.cityCode = uni.getStorageSync('region');
|
this.cityCode = uni.getStorageSync('region');
|
||||||
if (that.userinfo) {
|
this.myInfo()
|
||||||
that.myInfo()
|
|
||||||
} else {
|
|
||||||
that.appPersonallist = null
|
|
||||||
}
|
|
||||||
this.getpersnoal()
|
this.getpersnoal()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -281,9 +272,6 @@
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
duration: '1000'
|
duration: '1000'
|
||||||
})
|
})
|
||||||
createMobileToken().then(res => {
|
|
||||||
uni.setStorageSync("token", res.data.token)
|
|
||||||
})
|
|
||||||
if (that.timer) {
|
if (that.timer) {
|
||||||
clearTimeout(that.timer)
|
clearTimeout(that.timer)
|
||||||
}
|
}
|
||||||
@ -305,31 +293,39 @@
|
|||||||
},
|
},
|
||||||
// 获取成员
|
// 获取成员
|
||||||
getpersnoal() {
|
getpersnoal() {
|
||||||
getCurrentUser(this.valueopenid).then(res => {
|
const value = uni.getStorageSync('openid');
|
||||||
this.familyList = res.data
|
if (value) {
|
||||||
})
|
getCurrentUser(value).then(res => {
|
||||||
|
this.familyList = res.data
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 切换成员
|
// 切换成员
|
||||||
changeFamilyInfo(e) {
|
changeFamilyInfo(e) {
|
||||||
switchResident(this.valueopenid, e.patientCode).then(res => {
|
const value = uni.getStorageSync('openid');
|
||||||
if (res.code == 200) {
|
if (value) {
|
||||||
this.$refs.uToast.show({
|
switchResident(value, e.patientCode).then(res => {
|
||||||
title: '切换成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: '1000',
|
|
||||||
})
|
|
||||||
uni.setStorageSync('userinfo', res.data);
|
uni.setStorageSync('userinfo', res.data);
|
||||||
uni.setStorageSync('patientId', res.data.id);
|
uni.setStorageSync('patientId', res.data.id);
|
||||||
this.myInfo()
|
this.userinfo =res.data
|
||||||
} else {
|
if (res.code == 200) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.msg,
|
title: '切换成功',
|
||||||
type: 'error',
|
type: 'success',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
})
|
})
|
||||||
}
|
|
||||||
})
|
this.myInfo()
|
||||||
this.showhome = false
|
} else {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: res.msg,
|
||||||
|
type: 'error',
|
||||||
|
duration: '1000',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.showhome = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
removes() {
|
removes() {
|
||||||
this.appPersonallist = null
|
this.appPersonallist = null
|
||||||
@ -337,7 +333,6 @@
|
|||||||
uni.removeStorageSync('openid');
|
uni.removeStorageSync('openid');
|
||||||
uni.removeStorageSync('phone');
|
uni.removeStorageSync('phone');
|
||||||
uni.removeStorageSync('userinfo');
|
uni.removeStorageSync('userinfo');
|
||||||
uni.removeStorageSync('token');
|
|
||||||
},
|
},
|
||||||
//获取个人信息
|
//获取个人信息
|
||||||
myInfo() {
|
myInfo() {
|
||||||
@ -358,7 +353,7 @@
|
|||||||
.homeLatitude)
|
.homeLatitude)
|
||||||
that.appPersonallist.homeLongitude = Number(that.appPersonallist
|
that.appPersonallist.homeLongitude = Number(that.appPersonallist
|
||||||
.homeLongitude)
|
.homeLongitude)
|
||||||
} else if (Response.code == 9999) {} else {
|
} else {
|
||||||
that.removes();
|
that.removes();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -371,7 +366,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
updatainfo() {
|
updatainfo() {
|
||||||
const value = uni.getStorageSync('openid');
|
const value = uni.getStorageSync('userinfo');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
if (value && value2) {
|
if (value && value2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -383,7 +378,7 @@
|
|||||||
},
|
},
|
||||||
//护理站服务订单
|
//护理站服务订单
|
||||||
gonursestation() {
|
gonursestation() {
|
||||||
const value = uni.getStorageSync('openid');
|
const value = uni.getStorageSync('userinfo');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
if (value && value2) {
|
if (value && value2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -417,7 +412,7 @@
|
|||||||
},
|
},
|
||||||
//优惠券
|
//优惠券
|
||||||
gocoupon() {
|
gocoupon() {
|
||||||
const value = uni.getStorageSync('openid');
|
const value = uni.getStorageSync('userinfo');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
if (value && value2) {
|
if (value && value2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -435,7 +430,7 @@
|
|||||||
},
|
},
|
||||||
//全部订单
|
//全部订单
|
||||||
goorder(index, item) {
|
goorder(index, item) {
|
||||||
const value = uni.getStorageSync('openid');
|
const value = uni.getStorageSync('userinfo');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
if (value && value2) {
|
if (value && value2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -455,7 +450,7 @@
|
|||||||
},
|
},
|
||||||
//护理站服务订单
|
//护理站服务订单
|
||||||
gonursestation() {
|
gonursestation() {
|
||||||
const value = uni.getStorageSync('openid');
|
const value = uni.getStorageSync('userinfo');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
if (value && value2) {
|
if (value && value2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -473,15 +468,12 @@
|
|||||||
},
|
},
|
||||||
// 切换家庭成员
|
// 切换家庭成员
|
||||||
homeshow() {
|
homeshow() {
|
||||||
// this.getSetting()
|
|
||||||
// this.listquery.bindingCity = uni.getStorageSync('userinfo').bindingCity
|
|
||||||
var patientCode = this.userinfo.patientCode
|
|
||||||
var openid = uni.getStorageSync('openid')
|
|
||||||
// getFamilyList(openid, patientCode).then(res => {
|
|
||||||
// this.familyList = res.data
|
|
||||||
// console.log(this.familyList, '000')
|
|
||||||
// })
|
|
||||||
this.showhome = true
|
this.showhome = true
|
||||||
|
this.getpersnoal()
|
||||||
|
// this.myInfo()
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//管理家庭成员
|
//管理家庭成员
|
||||||
gomanagefamily() {
|
gomanagefamily() {
|
||||||
@ -520,7 +512,7 @@
|
|||||||
//积分页面
|
//积分页面
|
||||||
...mapActions(["integralopenPopup"]),
|
...mapActions(["integralopenPopup"]),
|
||||||
gointegral() {
|
gointegral() {
|
||||||
const value = uni.getStorageSync('openid');
|
const value = uni.getStorageSync('userinfo');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
if (value && value2) {
|
if (value && value2) {
|
||||||
this.integralopenPopup();
|
this.integralopenPopup();
|
||||||
@ -545,4 +537,4 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import './myinformation.scss'
|
@import './myinformation.scss'
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user