修改
This commit is contained in:
parent
4ca1365325
commit
6490547078
@ -5,10 +5,3 @@ export function appPersonal(patientId) {
|
|||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function orderCount(patientId) {
|
|
||||||
return request({
|
|
||||||
url: `/nurseApp/login/orderCount?patientId=${patientId}`,
|
|
||||||
method: 'GET'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|||||||
@ -34,12 +34,14 @@
|
|||||||
<image src="../../static/jifen.png" mode=""></image>
|
<image src="../../static/jifen.png" mode=""></image>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
积分
|
积分
|
||||||
|
<span style='padding:0 5rpx'> {{appPersonallist.integral}}</span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item" @tap="gocoupon">
|
<view class="item" @tap="gocoupon">
|
||||||
<image src="../../static/yhj.png" mode=""></image>
|
<image src="../../static/yhj.png" mode=""></image>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
优惠卷
|
优惠卷
|
||||||
|
<span style='padding:0 5rpx'> {{appPersonallist.patientCouponCount}}</span>张
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -57,30 +59,32 @@
|
|||||||
<view class="OrderStatus" @tap="gopaid('WAIT_PAY')">
|
<view class="OrderStatus" @tap="gopaid('WAIT_PAY')">
|
||||||
<image src="/static/Tobepaid.png" mode=""></image>
|
<image src="/static/Tobepaid.png" mode=""></image>
|
||||||
<view class="title">待付款</view>
|
<view class="title">待付款</view>
|
||||||
<view class="orderCount" v-if="list.waitPayCount>0&&list.waitPayCount<100">
|
<view class="orderCount" v-if="appPersonallist.waitPayCount>0&&appPersonallist.waitPayCount<100">
|
||||||
{{list.waitPayCount}}
|
{{appPersonallist.waitPayCount}}
|
||||||
</view>
|
</view>
|
||||||
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
|
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
|
||||||
v-if="list.waitPayCount>=100">
|
v-if="appPersonallist.waitPayCount>=100">
|
||||||
99+
|
99+
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="OrderStatus" @tap="goreceive('WAIT_RECEIVED_GOODS')">
|
<view class="OrderStatus" @tap="goreceive('WAIT_RECEIVED_GOODS')">
|
||||||
<image src="/static/received.png" mode=""></image>
|
<image src="/static/received.png" mode=""></image>
|
||||||
<view class="title">待收货</view>
|
<view class="title">待收货</view>
|
||||||
<view class="orderCount" v-if="list.waitReceivedGoodsCount>0&&list.waitReceivedGoodsCount<100">
|
<view class="orderCount"
|
||||||
{{list.waitReceivedGoodsCount}}
|
v-if="appPersonallist.waitReceivedGoodsCount>0&&appPersonallist.waitReceivedGoodsCount<100">
|
||||||
|
{{appPersonallist.waitReceivedGoodsCount}}
|
||||||
</view>
|
</view>
|
||||||
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
|
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
|
||||||
v-if="list.waitReceivedGoodsCount>=100">
|
v-if="appPersonallist.waitReceivedGoodsCount>=100">
|
||||||
99+
|
99+
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="OrderStatus" @tap="gocompleted('RECEIVED_GOODS')">
|
<view class="OrderStatus" @tap="gocompleted('RECEIVED_GOODS')">
|
||||||
<image src="/static/evaluated.png" mode=""></image>
|
<image src="/static/evaluated.png" mode=""></image>
|
||||||
<view class="title">待评价</view>
|
<view class="title">待评价</view>
|
||||||
<view class="orderCount" v-if="list.receivedGoodsCount>0&&list.receivedGoodsCount<100">
|
<view class="orderCount"
|
||||||
{{list.receivedGoodsCount}}
|
v-if="appPersonallist.receivedGoodsCount>0&&appPersonallist.receivedGoodsCount<100">
|
||||||
|
{{appPersonallist.receivedGoodsCount}}
|
||||||
</view>
|
</view>
|
||||||
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
|
<view class="orderCount" style="width: 57rpx;border-radius: 17rpx;right:25rpx"
|
||||||
v-if="list.receivedGoodsCount>=100">
|
v-if="list.receivedGoodsCount>=100">
|
||||||
@ -112,8 +116,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
appPersonal,
|
appPersonal
|
||||||
orderCount
|
|
||||||
} from '@/api/Personal/Personal.js';
|
} from '@/api/Personal/Personal.js';
|
||||||
import {
|
import {
|
||||||
existPatientInfo
|
existPatientInfo
|
||||||
@ -133,11 +136,7 @@
|
|||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.myInfo()
|
this.myInfo()
|
||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
if (value) {
|
if (value) {} else {
|
||||||
orderCount(value).then(res => {
|
|
||||||
that.list = res.data
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
that.appPersonallist = null
|
that.appPersonallist = null
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: '请先登录',
|
title: '请先登录',
|
||||||
@ -176,6 +175,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
removes() {
|
removes() {
|
||||||
|
this.appPersonallist = null
|
||||||
uni.removeStorageSync('patientId');
|
uni.removeStorageSync('patientId');
|
||||||
uni.removeStorageSync('openid');
|
uni.removeStorageSync('openid');
|
||||||
uni.removeStorageSync('phone');
|
uni.removeStorageSync('phone');
|
||||||
@ -195,6 +195,9 @@
|
|||||||
appPersonal(value2).then(Response => {
|
appPersonal(value2).then(Response => {
|
||||||
if (Response.code == 200) {
|
if (Response.code == 200) {
|
||||||
that.appPersonallist = Response.data
|
that.appPersonallist = Response.data
|
||||||
|
if (!that.appPersonallist.integral) {
|
||||||
|
that.appPersonallist.integral = 0
|
||||||
|
}
|
||||||
that.appPersonallist.homeLatitude = Number(that.appPersonallist
|
that.appPersonallist.homeLatitude = Number(that.appPersonallist
|
||||||
.homeLatitude)
|
.homeLatitude)
|
||||||
that.appPersonallist.homeLongitude = Number(that.appPersonallist
|
that.appPersonallist.homeLongitude = Number(that.appPersonallist
|
||||||
|
|||||||
@ -123,6 +123,14 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
params: {
|
||||||
|
year: true,
|
||||||
|
month: true,
|
||||||
|
day: true,
|
||||||
|
hour: false,
|
||||||
|
minute: false,
|
||||||
|
second: false
|
||||||
|
},
|
||||||
timeshow: false, //出生日期
|
timeshow: false, //出生日期
|
||||||
sexlist: [{
|
sexlist: [{
|
||||||
name: '男',
|
name: '男',
|
||||||
@ -187,10 +195,16 @@
|
|||||||
that.address = that.appPersonallist.areaName
|
that.address = that.appPersonallist.areaName
|
||||||
}
|
}
|
||||||
that.patientDiseaseInfoList = that.appPersonallist.patientDiseaseInfoList
|
that.patientDiseaseInfoList = that.appPersonallist.patientDiseaseInfoList
|
||||||
|
if (that.patientDiseaseInfoList.length > 0) {
|
||||||
that.patientDiseaseInfoList.forEach(e => {
|
that.patientDiseaseInfoList.forEach(e => {
|
||||||
e.id = e.diseaseId
|
e.id = e.diseaseId
|
||||||
})
|
})
|
||||||
} else if (Response.code == 9999) {} else {}
|
}
|
||||||
|
} else if (Response.code == 9999) {} else {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else {}
|
} else {}
|
||||||
},
|
},
|
||||||
@ -205,7 +219,7 @@
|
|||||||
},
|
},
|
||||||
//选择出生日期
|
//选择出生日期
|
||||||
timechange(e) {
|
timechange(e) {
|
||||||
this.query.birthDate = e.year + '-' + e.month + '-' + e.day
|
this.appPersonallist.birthDate = e.year + '-' + e.month + '-' + e.day
|
||||||
},
|
},
|
||||||
// 三级地址联动回调
|
// 三级地址联动回调
|
||||||
getpickerParentValue(e) {
|
getpickerParentValue(e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user