修改
This commit is contained in:
parent
d0f74e28e6
commit
a5ef4e8e7f
@ -67,13 +67,11 @@
|
|||||||
this.goodsOrderId = options.goodsOrderId
|
this.goodsOrderId = options.goodsOrderId
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
let that = this
|
let that = this
|
||||||
try {
|
const value = uni.getStorageSync('patientId');
|
||||||
const value = uni.getStorageSync('patientId');
|
if (value) {
|
||||||
if (value) {
|
that.patientId = value
|
||||||
that.patientId = value
|
that.goodsOrderinfo();
|
||||||
that.goodsOrderinfo();
|
}
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -277,7 +277,6 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timer: null,
|
|
||||||
goodsInfoId: null, //商品id
|
goodsInfoId: null, //商品id
|
||||||
baseurl: '', //url
|
baseurl: '', //url
|
||||||
image: null, //总图片
|
image: null, //总图片
|
||||||
@ -406,166 +405,150 @@
|
|||||||
//立即购买跳转确认订单页面
|
//立即购买跳转确认订单页面
|
||||||
tapbuy() {
|
tapbuy() {
|
||||||
var that = this
|
var that = this
|
||||||
try {
|
const value = uni.getStorageSync('openid');
|
||||||
const value = uni.getStorageSync('openid');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
if (value && value2) {
|
||||||
if (value && value2) {
|
that.updata.patientId = value2
|
||||||
that.updata.patientId = value2
|
AppIdentification(value2).then(res => {
|
||||||
AppIdentification(value2).then(res => {
|
if (res.code == 200) {
|
||||||
if (res.code == 200) {
|
if (res.data.loginFlag) {
|
||||||
if (res.data.loginFlag) {
|
if (this.goodshow == true) {
|
||||||
if (this.goodshow == true) {
|
if (this.updata.goodsAttributeName == '') {
|
||||||
if (this.updata.goodsAttributeName == '') {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: '未选择商品',
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
} else if (this.updata.goodsStock == 0) {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: '库存数量不足,无法购买',
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.updata.goodsPrice = Number(this.updata.goodsPrice)
|
|
||||||
this.buyshow = false
|
|
||||||
this.updata.totalPrice = Number((this.updata.goodsPrice *
|
|
||||||
this.updata.goodsCount).toFixed(
|
|
||||||
2))
|
|
||||||
this.updata.originalTotalPrice = this.updata.totalPrice
|
|
||||||
if (this.couponId) {
|
|
||||||
this.updata.couponId = this.couponId
|
|
||||||
this.updata.couponTitle = this.coupon.couponTitle
|
|
||||||
this.updata.discountPrice = Number(this.coupon.couponPrice)
|
|
||||||
this.updata.couponConsumePrice = Number(this.coupon
|
|
||||||
.couponConsumePrice)
|
|
||||||
this.updata.totalPrice = Number((this.updata.originalTotalPrice -
|
|
||||||
this.updata.discountPrice).toFixed(2))
|
|
||||||
}
|
|
||||||
if (this.updata.totalPrice > 0) {
|
|
||||||
addStationGoodsOrder(this.updata).then(res => {
|
|
||||||
if (res.code == 500) {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: res.msg,
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
let id = res.data.id
|
|
||||||
let paydata = res.data
|
|
||||||
paydata.openid = value
|
|
||||||
paydata.payType = "WECHAT_PAY"
|
|
||||||
paydata.paymentPrice = res.data.totalPrice
|
|
||||||
appletGoodsOrderPay(paydata).then(response => {
|
|
||||||
if (response.code == 200) {
|
|
||||||
uni.requestPayment({
|
|
||||||
timeStamp: response
|
|
||||||
.data.timeStamp,
|
|
||||||
nonceStr: response.data
|
|
||||||
.nonceStr,
|
|
||||||
package: response.data
|
|
||||||
.prepayId,
|
|
||||||
signType: response.data
|
|
||||||
.signType,
|
|
||||||
paySign: response.data
|
|
||||||
.paySign,
|
|
||||||
success: function(
|
|
||||||
res) {
|
|
||||||
that.goodsDetailsinfo(
|
|
||||||
that
|
|
||||||
.goodsInfoId,
|
|
||||||
that
|
|
||||||
.updata
|
|
||||||
.patientId
|
|
||||||
)
|
|
||||||
that.$refs
|
|
||||||
.uToast
|
|
||||||
.show({
|
|
||||||
title: '支付成功',
|
|
||||||
type: 'success',
|
|
||||||
duration: 1000,
|
|
||||||
url: '/pages/paysuccess/paysuccess'
|
|
||||||
})
|
|
||||||
},
|
|
||||||
fail: function(err) {
|
|
||||||
that.goodsDetailsinfo(
|
|
||||||
that
|
|
||||||
.goodsInfoId,
|
|
||||||
that
|
|
||||||
.updata
|
|
||||||
.patientId
|
|
||||||
)
|
|
||||||
that.$refs
|
|
||||||
.uToast
|
|
||||||
.show({
|
|
||||||
title: '取消支付',
|
|
||||||
type: 'error',
|
|
||||||
duration: 1000,
|
|
||||||
url: `/pages/payorderDetails/payorderDetails?goodsOrderId=${id}`
|
|
||||||
})
|
|
||||||
// uni.navigateTo({
|
|
||||||
// url: `/pages/payorderDetails/payorderDetails?goodsOrderId=${id}`
|
|
||||||
// })
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: response.msg,
|
|
||||||
type: 'error',
|
|
||||||
duration: 1000
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: '订单金额为0,无法下单',
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: '未选择商品',
|
title: '未选择商品',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
// that.buyshow = false
|
} else if (this.updata.goodsStock == 0) {
|
||||||
// uni.navigateTo({
|
that.$refs.uToast.show({
|
||||||
// url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(that.updata)}`
|
title: '库存数量不足,无法购买',
|
||||||
// })
|
type: 'error'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.updata.goodsPrice = Number(this.updata.goodsPrice)
|
||||||
|
this.buyshow = false
|
||||||
|
this.updata.totalPrice = Number((this.updata.goodsPrice *
|
||||||
|
this.updata.goodsCount).toFixed(
|
||||||
|
2))
|
||||||
|
this.updata.originalTotalPrice = this.updata.totalPrice
|
||||||
|
if (this.couponId) {
|
||||||
|
this.updata.couponId = this.couponId
|
||||||
|
this.updata.couponTitle = this.coupon.couponTitle
|
||||||
|
this.updata.discountPrice = Number(this.coupon.couponPrice)
|
||||||
|
this.updata.couponConsumePrice = Number(this.coupon
|
||||||
|
.couponConsumePrice)
|
||||||
|
this.updata.totalPrice = Number((this.updata.originalTotalPrice -
|
||||||
|
this.updata.discountPrice).toFixed(2))
|
||||||
|
}
|
||||||
|
if (this.updata.totalPrice > 0) {
|
||||||
|
addStationGoodsOrder(this.updata).then(res => {
|
||||||
|
if (res.code == 500) {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: res.msg,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
let id = res.data.id
|
||||||
|
let paydata = res.data
|
||||||
|
paydata.openid = value
|
||||||
|
paydata.payType = "WECHAT_PAY"
|
||||||
|
paydata.paymentPrice = res.data.totalPrice
|
||||||
|
appletGoodsOrderPay(paydata).then(response => {
|
||||||
|
if (response.code == 200) {
|
||||||
|
uni.requestPayment({
|
||||||
|
timeStamp: response
|
||||||
|
.data.timeStamp,
|
||||||
|
nonceStr: response.data
|
||||||
|
.nonceStr,
|
||||||
|
package: response.data
|
||||||
|
.prepayId,
|
||||||
|
signType: response.data
|
||||||
|
.signType,
|
||||||
|
paySign: response.data
|
||||||
|
.paySign,
|
||||||
|
success: function(
|
||||||
|
res) {
|
||||||
|
that.goodsDetailsinfo(
|
||||||
|
that
|
||||||
|
.goodsInfoId,
|
||||||
|
that
|
||||||
|
.updata
|
||||||
|
.patientId
|
||||||
|
)
|
||||||
|
that.$refs
|
||||||
|
.uToast
|
||||||
|
.show({
|
||||||
|
title: '支付成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1000,
|
||||||
|
url: '/pages/paysuccess/paysuccess'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
fail: function(err) {
|
||||||
|
that.goodsDetailsinfo(
|
||||||
|
that
|
||||||
|
.goodsInfoId,
|
||||||
|
that
|
||||||
|
.updata
|
||||||
|
.patientId
|
||||||
|
)
|
||||||
|
that.$refs
|
||||||
|
.uToast
|
||||||
|
.show({
|
||||||
|
title: '取消支付',
|
||||||
|
type: 'error',
|
||||||
|
duration: 1000,
|
||||||
|
url: `/pages/payorderDetails/payorderDetails?goodsOrderId=${id}`
|
||||||
|
})
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: `/pages/payorderDetails/payorderDetails?goodsOrderId=${id}`
|
||||||
|
// })
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: response.msg,
|
||||||
|
type: 'error',
|
||||||
|
duration: 1000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: '订单金额为0,无法下单',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.usershow = true
|
that.$refs.uToast.show({
|
||||||
}
|
title: '未选择商品',
|
||||||
} else if (res.code == 9999) {} else {
|
type: 'error'
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: res.msg,
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
if (that.timer) {
|
|
||||||
clearTimeout(that.timer)
|
|
||||||
}
|
|
||||||
that.timer = setTimeout(e => {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/login/login'
|
|
||||||
})
|
})
|
||||||
}, 1500)
|
// that.buyshow = false
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(that.updata)}`
|
||||||
|
// })
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.usershow = true
|
||||||
}
|
}
|
||||||
})
|
} else if (res.code == 9999) {} else {
|
||||||
} else {
|
that.$refs.uToast.show({
|
||||||
that.$refs.uToast.show({
|
title: res.msg,
|
||||||
title: '未登录,请先登录',
|
type: 'error',
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
if (that.timer) {
|
|
||||||
clearTimeout(that.timer)
|
|
||||||
}
|
|
||||||
that.timer = setTimeout(e => {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
}, 1500)
|
}
|
||||||
}
|
})
|
||||||
} catch (e) {}
|
} else {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: '未登录,请先登录',
|
||||||
|
type: 'error',
|
||||||
|
url: '/pages/login/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//选择商品
|
//选择商品
|
||||||
isActivegoods(item) {
|
isActivegoods(item) {
|
||||||
@ -736,16 +719,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未登录,请先登录',
|
title: '未登录,请先登录',
|
||||||
type: 'error'
|
type: 'error',
|
||||||
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
if (this.timer) {
|
|
||||||
clearTimeout(this.timer)
|
|
||||||
}
|
|
||||||
this.timer = setTimeout(e => {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/login/login'
|
|
||||||
})
|
|
||||||
}, 1500)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -272,32 +272,30 @@
|
|||||||
},
|
},
|
||||||
onLoad(options) { //开局调用
|
onLoad(options) { //开局调用
|
||||||
let that = this
|
let that = this
|
||||||
try {
|
const value = uni.getStorageSync('patientId');
|
||||||
const value = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('openid');
|
||||||
const value2 = uni.getStorageSync('openid');
|
if (value && value2) {
|
||||||
if (value && value2) {
|
that.patientId = value
|
||||||
that.patientId = value
|
that.openid = value2
|
||||||
that.openid = value2
|
if (options.orderStatus) {
|
||||||
if (options.orderStatus) {
|
that.orderStatus = options.orderStatus
|
||||||
that.orderStatus = options.orderStatus
|
if (options.orderStatus == 'WAIT_PAY') {
|
||||||
if (options.orderStatus == 'WAIT_PAY') {
|
that.title = '待付款'
|
||||||
that.title = '待付款'
|
that.goodsOrderinfo();
|
||||||
that.goodsOrderinfo();
|
} else if (options.orderStatus == 'WAIT_RECEIVED_GOODS') {
|
||||||
} else if (options.orderStatus == 'WAIT_RECEIVED_GOODS') {
|
that.title = '待收货'
|
||||||
that.title = '待收货'
|
that.goodsOrderinfo();
|
||||||
that.goodsOrderinfo();
|
} else if (options.orderStatus == 'RECEIVED_GOODS') {
|
||||||
} else if (options.orderStatus == 'RECEIVED_GOODS') {
|
that.title = '待评价'
|
||||||
that.title = '待评价'
|
that.goodsOrderinfo();
|
||||||
that.goodsOrderinfo();
|
} else if (options.orderStatus == 'EVALUATED') {
|
||||||
} else if (options.orderStatus == 'EVALUATED') {
|
that.title = '已完成'
|
||||||
that.title = '已完成'
|
|
||||||
that.goodsOrderinfo();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
that.goodsOrderinfo();
|
that.goodsOrderinfo();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
that.goodsOrderinfo();
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() { //下滑加载
|
onReachBottom() { //下滑加载
|
||||||
if (this.orderlist.length >= this.total) {} else {
|
if (this.orderlist.length >= this.total) {} else {
|
||||||
|
|||||||
@ -79,10 +79,11 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onShow() {},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
var that = this
|
||||||
this.updata.totalPrice = Number(options.price)
|
this.updata.totalPrice = Number(options.price)
|
||||||
this.updata.hospitalPersonId = Number(options.hospitalPersonId)
|
this.updata.hospitalPersonId = Number(options.hospitalPersonId)
|
||||||
var that = this
|
|
||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
if (value) {
|
if (value) {
|
||||||
that.updata.patientId = value
|
that.updata.patientId = value
|
||||||
|
|||||||
@ -109,40 +109,33 @@
|
|||||||
pageSize: 15,
|
pageSize: 15,
|
||||||
list: [],
|
list: [],
|
||||||
orderNo: null,
|
orderNo: null,
|
||||||
timer: null,
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
let that = this
|
let that = this
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.pageNum = 1;
|
this.pageNum = 1;
|
||||||
try {
|
const value3 = uni.getStorageSync('Refresh');
|
||||||
const value3 = uni.getStorageSync('Refresh');
|
if (value3) {
|
||||||
if (value3) {
|
that.getinfo();
|
||||||
that.getinfo();
|
}
|
||||||
}
|
const value = uni.getStorageSync('openid');
|
||||||
} catch (e) {}
|
if (value) {} else {
|
||||||
try {
|
uni.navigateTo({
|
||||||
const value = uni.getStorageSync('openid');
|
url: '/pages/login/login'
|
||||||
if (value) {} else {
|
})
|
||||||
uni.navigateTo({
|
}
|
||||||
url: '/pages/login/login'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
let that = this
|
let that = this
|
||||||
this.pageNum = 1
|
this.pageNum = 1
|
||||||
try {
|
const value = uni.getStorageSync('patientId');
|
||||||
const value = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('openid');
|
||||||
const value2 = uni.getStorageSync('openid');
|
if (value && value2) {
|
||||||
if (value && value2) {
|
that.patientId = value
|
||||||
that.patientId = value
|
that.openid = value2
|
||||||
that.openid = value2
|
that.getinfo()
|
||||||
that.getinfo()
|
}
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//查看评价
|
//查看评价
|
||||||
@ -175,16 +168,9 @@
|
|||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '评价成功',
|
title: '评价成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: '1500'
|
duration: '1500',
|
||||||
|
url: '/pages/ratesuccess/ratesuccess'
|
||||||
})
|
})
|
||||||
if (this.timer) {
|
|
||||||
clearTimeout(this.timer)
|
|
||||||
}
|
|
||||||
this.timer = setTimeout(e => {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: `/pages/ratesuccess/ratesuccess`
|
|
||||||
})
|
|
||||||
}, 1500)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -135,53 +135,31 @@
|
|||||||
//预约
|
//预约
|
||||||
goappointments() {
|
goappointments() {
|
||||||
let that = this
|
let that = this
|
||||||
try {
|
const value = uni.getStorageSync('openid');
|
||||||
const value = uni.getStorageSync('openid');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
if (value && value2) {
|
||||||
if (value && value2) {
|
AppIdentification(value2).then(res => {
|
||||||
AppIdentification(value2).then(res => {
|
if (res.code == 200) {
|
||||||
if (res.code == 200) {
|
if (res.data.loginFlag) {
|
||||||
if (res.data.loginFlag) {
|
that.usershow = false
|
||||||
that.usershow = false
|
uni.navigateTo({
|
||||||
uni.navigateTo({
|
url: `/pages/appointmenttime/appointmenttime?stationId=${this.stationId}&stationItemId=${this.stationItemId}&stationItemPriceId=${this.stationItemPriceId}`,
|
||||||
url: `/pages/appointmenttime/appointmenttime?stationId=${this.stationId}&stationItemId=${this.stationItemId}&stationItemPriceId=${this.stationItemPriceId}`,
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
that.usershow = true
|
|
||||||
}
|
|
||||||
} else if (res.code == 9999) {
|
|
||||||
|
|
||||||
} else {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: res.msg,
|
|
||||||
type: 'error'
|
|
||||||
})
|
})
|
||||||
if (that.timer) {
|
} else {
|
||||||
clearTimeout(that.timer)
|
that.usershow = true
|
||||||
}
|
|
||||||
that.timer = setTimeout(e => {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/login/login'
|
|
||||||
})
|
|
||||||
}, 1500)
|
|
||||||
}
|
}
|
||||||
})
|
} else if (res.code == 9999) {} else {
|
||||||
} else {
|
that.$refs.uToast.show({
|
||||||
that.$refs.uToast.show({
|
title: res.msg,
|
||||||
title: '未登录,请先登录',
|
type: 'error',
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
if (that.timer) {
|
|
||||||
clearTimeout(that.timer)
|
|
||||||
}
|
|
||||||
that.timer = setTimeout(e => {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
}, 1500)
|
}
|
||||||
}
|
})
|
||||||
} catch (e) {
|
} else {
|
||||||
uni.navigateTo({
|
that.$refs.uToast.show({
|
||||||
|
title: '未登录,请先登录',
|
||||||
|
type: 'error',
|
||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -151,14 +151,12 @@
|
|||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.orderNo = options.orderNo
|
this.orderNo = options.orderNo
|
||||||
var that = this
|
var that = this
|
||||||
try {
|
const value = uni.getStorageSync('patientId');
|
||||||
const value = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('openid');
|
||||||
const value2 = uni.getStorageSync('openid');
|
if (value && value2) {
|
||||||
if (value && value2) {
|
that.patientId = value
|
||||||
that.patientId = value
|
that.openid = value2
|
||||||
that.openid = value2
|
}
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
this.getlist()
|
this.getlist()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -176,12 +176,10 @@
|
|||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
var that = this
|
var that = this
|
||||||
try {
|
const value = uni.getStorageSync('openid');
|
||||||
const value = uni.getStorageSync('openid');
|
if (value) {
|
||||||
if (value) {
|
that.openid = value
|
||||||
that.openid = value
|
}
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
//耗材包详情方法调用
|
//耗材包详情方法调用
|
||||||
this.getPatientInfo(options.stationId, options.stationItemId, options.stationItemPriceId)
|
this.getPatientInfo(options.stationId, options.stationItemId, options.stationItemPriceId)
|
||||||
this.userinfo();
|
this.userinfo();
|
||||||
@ -205,17 +203,15 @@
|
|||||||
userinfo() {
|
userinfo() {
|
||||||
//取出patientId
|
//取出patientId
|
||||||
var that = this
|
var that = this
|
||||||
try {
|
const value = uni.getStorageSync('patientId');
|
||||||
const value = uni.getStorageSync('patientId');
|
if (value) {
|
||||||
if (value) {
|
that.patientId = value
|
||||||
that.patientId = value
|
//被护理人信息
|
||||||
//被护理人信息
|
getAppPatientList(that.patientId).then(response => {
|
||||||
getAppPatientList(that.patientId).then(response => {
|
that.personInfo = response.data
|
||||||
that.personInfo = response.data
|
that.personInfo.address = response.data.areaName + response.data.address
|
||||||
that.personInfo.address = response.data.areaName + response.data.address
|
})
|
||||||
})
|
}
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
},
|
},
|
||||||
timechange(index) {
|
timechange(index) {
|
||||||
this.orderlist.serviceDate = this.orderlist.appointmentTimeList[index].date
|
this.orderlist.serviceDate = this.orderlist.appointmentTimeList[index].date
|
||||||
|
|||||||
@ -103,18 +103,16 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
var that = this
|
var that = this
|
||||||
try {
|
const value = uni.getStorageSync('openid');
|
||||||
const value = uni.getStorageSync('openid');
|
const value3 = uni.getStorageSync('Refresh');
|
||||||
const value3 = uni.getStorageSync('Refresh');
|
if (value) {} else {
|
||||||
if (value) {} else {
|
uni.navigateTo({
|
||||||
uni.navigateTo({
|
url: '/pages/login/login'
|
||||||
url: '/pages/login/login'
|
})
|
||||||
})
|
}
|
||||||
}
|
if (value3) {
|
||||||
if (value3) {
|
that.goodsListinfo();
|
||||||
that.goodsListinfo();
|
}
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
},
|
},
|
||||||
onLoad(options) { //获取传值
|
onLoad(options) { //获取传值
|
||||||
this.goodsCategoryId = options.goodsCategoryId //请求id
|
this.goodsCategoryId = options.goodsCategoryId //请求id
|
||||||
|
|||||||
@ -189,12 +189,10 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
var that = this
|
var that = this
|
||||||
try {
|
const value = uni.getStorageSync('openid');
|
||||||
const value = uni.getStorageSync('openid');
|
if (value) {
|
||||||
if (value) {
|
that.openid = value
|
||||||
that.openid = value
|
} else {}
|
||||||
} else {}
|
|
||||||
} catch (e) {}
|
|
||||||
let useritem = null
|
let useritem = null
|
||||||
uni.$on('updata', function(data) {
|
uni.$on('updata', function(data) {
|
||||||
that.updata = JSON.parse(data.updata)
|
that.updata = JSON.parse(data.updata)
|
||||||
|
|||||||
@ -45,14 +45,12 @@
|
|||||||
},
|
},
|
||||||
//获取疾病列表
|
//获取疾病列表
|
||||||
diseaseinfo() {
|
diseaseinfo() {
|
||||||
try {
|
const value = uni.getStorageSync('patientId');
|
||||||
const value = uni.getStorageSync('patientId');
|
if (value) {
|
||||||
if (value) {
|
getDiseaseInfo(value).then(res => {
|
||||||
getDiseaseInfo(value).then(res => {
|
this.diseaselist = res.data;
|
||||||
this.diseaselist = res.data;
|
})
|
||||||
})
|
}
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
},
|
},
|
||||||
//跳转回信息完善页面
|
//跳转回信息完善页面
|
||||||
goinformation() {
|
goinformation() {
|
||||||
|
|||||||
@ -142,18 +142,14 @@
|
|||||||
onShow() {
|
onShow() {
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
var that = this
|
var that = this
|
||||||
try {
|
const value = uni.getStorageSync('openid');
|
||||||
const value = uni.getStorageSync('openid');
|
if (value) {
|
||||||
if (value) {
|
that.openid = value
|
||||||
that.openid = value
|
} else {}
|
||||||
} else {}
|
const value2 = uni.getStorageSync('patientId');
|
||||||
} catch (e) {}
|
if (value2) {
|
||||||
try {
|
that.patientId = value2
|
||||||
const value = uni.getStorageSync('patientId');
|
} else {}
|
||||||
if (value) {
|
|
||||||
that.patientId = value
|
|
||||||
} else {}
|
|
||||||
} catch (e) {}
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -192,42 +192,40 @@
|
|||||||
}
|
}
|
||||||
if (this.addresslength) {
|
if (this.addresslength) {
|
||||||
if (this.addresslength.length > 2) {
|
if (this.addresslength.length > 2) {
|
||||||
try {
|
const value = uni.getStorageSync('phone');
|
||||||
const value = uni.getStorageSync('phone');
|
if (value) {
|
||||||
if (value) {
|
that.query.phone = value
|
||||||
that.query.phone = value
|
if (that.radio == 1) {
|
||||||
if (that.radio == 1) {
|
that.$refs.uToast.show({
|
||||||
that.$refs.uToast.show({
|
title: '请审核并同意用户协议',
|
||||||
title: '请审核并同意用户协议',
|
type: 'error'
|
||||||
type: 'error'
|
})
|
||||||
})
|
} else {
|
||||||
} else {
|
information(that.query).then(res => {
|
||||||
information(that.query).then(res => {
|
if (res.code == 200) {
|
||||||
if (res.code == 200) {
|
uni.removeStorageSync('invitationPatientId');
|
||||||
uni.removeStorageSync('invitationPatientId');
|
that.$refs.uToast.show({
|
||||||
that.$refs.uToast.show({
|
title: '完善信息成功',
|
||||||
title: '完善信息成功',
|
type: 'success',
|
||||||
type: 'success',
|
duration: '1500'
|
||||||
duration: '1500'
|
})
|
||||||
})
|
if (that.timer) {
|
||||||
if (that.timer) {
|
clearTimeout(that.timer)
|
||||||
clearTimeout(that.timer)
|
|
||||||
}
|
|
||||||
that.timer = setTimeout(e => {
|
|
||||||
uni.navigateBack({
|
|
||||||
delta: 1
|
|
||||||
})
|
|
||||||
}, 1500)
|
|
||||||
} else if (res.code == 500) {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: res.msg,
|
|
||||||
type: 'error',
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
that.timer = setTimeout(e => {
|
||||||
}
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
})
|
||||||
|
}, 1500)
|
||||||
|
} else if (res.code == 500) {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: res.msg,
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
}
|
||||||
} else {
|
} else {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: '所属区域应选择所在的区或街道,请重新选择!',
|
title: '所属区域应选择所在的区或街道,请重新选择!',
|
||||||
|
|||||||
@ -204,6 +204,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
timer: null,
|
||||||
baseurl: '',
|
baseurl: '',
|
||||||
patientId: null,
|
patientId: null,
|
||||||
integral: 0,
|
integral: 0,
|
||||||
@ -508,16 +509,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '未登录,请先登录',
|
title: '未登录,请先登录',
|
||||||
type: 'error'
|
type: 'error',
|
||||||
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
if (this.timer) {
|
|
||||||
clearTimeout(this.timer)
|
|
||||||
}
|
|
||||||
this.timer = setTimeout(e => {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/login/login'
|
|
||||||
})
|
|
||||||
}, 1500)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,6 +1,51 @@
|
|||||||
.app{
|
.app{
|
||||||
padding: 0%;
|
padding: 0%;
|
||||||
margin-top: 381rpx;
|
margin-top: 381rpx;
|
||||||
|
.mask {
|
||||||
|
.information {
|
||||||
|
width: 70%;
|
||||||
|
height: 400rpx;
|
||||||
|
margin: 50% auto;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
text-align: center;
|
||||||
|
color: #FFFFFF;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.determine,
|
||||||
|
.cancel {
|
||||||
|
width: 200rpx;
|
||||||
|
height: 70rpx;
|
||||||
|
border-radius: 26rpx;
|
||||||
|
font-size: 34rpx;
|
||||||
|
line-height: 70rpx;
|
||||||
|
position: absolute;
|
||||||
|
top: 74%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.determine {
|
||||||
|
background: #4C7BC9;
|
||||||
|
right: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cancel {
|
||||||
|
background: #C5BFBF;
|
||||||
|
left: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 42rpx;
|
||||||
|
margin-top: 40rpx;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 100rpx;
|
||||||
|
height: 100rpx;
|
||||||
|
margin: 10% 0 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.swiper {
|
.swiper {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|||||||
@ -49,10 +49,29 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<u-mask :show="usershow" class='mask'>
|
||||||
|
<view class="information">
|
||||||
|
<image src="../../static/information.png" mode=""></image>
|
||||||
|
<view class="title">
|
||||||
|
请完善个人信息
|
||||||
|
</view>
|
||||||
|
<view class="cancel" @tap='usershow=false'>
|
||||||
|
取消
|
||||||
|
</view>
|
||||||
|
<view class="determine" @tap='goinformation'>
|
||||||
|
去完善
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-mask>
|
||||||
|
<u-toast ref="uToast" />
|
||||||
|
<u-back-top :scroll-top="scrollTop"></u-back-top>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
|
AppIdentification
|
||||||
|
} from '@/api/AppIdentification/index.js'
|
||||||
import {
|
import {
|
||||||
selectDepartment,
|
selectDepartment,
|
||||||
selectHospitalPerson
|
selectHospitalPerson
|
||||||
@ -61,6 +80,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
usershow: false, //完善信息开关
|
||||||
baseurl: '',
|
baseurl: '',
|
||||||
swiperImgUrls: [],
|
swiperImgUrls: [],
|
||||||
autoplay: true, //自动切换轮播图
|
autoplay: true, //自动切换轮播图
|
||||||
@ -79,6 +99,7 @@
|
|||||||
clientY: '',
|
clientY: '',
|
||||||
},
|
},
|
||||||
touch: {},
|
touch: {},
|
||||||
|
scrollTop: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -180,8 +201,41 @@
|
|||||||
},
|
},
|
||||||
// 跳转预约医生界面
|
// 跳转预约医生界面
|
||||||
goappointment(item) {
|
goappointment(item) {
|
||||||
|
let that = this
|
||||||
|
const value = uni.getStorageSync('openid');
|
||||||
|
const value2 = uni.getStorageSync('patientId');
|
||||||
|
if (value && value2) {
|
||||||
|
AppIdentification(value2).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
if (res.data.loginFlag) {
|
||||||
|
that.usershow = false
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/Informationconfirmation/Informationconfirmation?price=${item.consultingFee}&&hospitalPersonId=${item.id}`
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
that.usershow = true
|
||||||
|
}
|
||||||
|
} else if (res.code == 9999) {} else {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: res.msg,
|
||||||
|
type: 'error',
|
||||||
|
url: '/pages/login/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: '未登录,请先登录',
|
||||||
|
type: 'error',
|
||||||
|
url: '/pages/login/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//跳转完善页面
|
||||||
|
goinformation() {
|
||||||
|
this.usershow = false
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/Informationconfirmation/Informationconfirmation?price=${item.consultingFee}&hospitalPersonId=${item.id}`
|
url: '/pages/information/information'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -190,6 +244,9 @@
|
|||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.selectDepartmentinfo()
|
this.selectDepartmentinfo()
|
||||||
},
|
},
|
||||||
|
onShow() {
|
||||||
|
this.usershow = false
|
||||||
|
},
|
||||||
//1.分享给朋友
|
//1.分享给朋友
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
let pages = getCurrentPages();
|
let pages = getCurrentPages();
|
||||||
|
|||||||
@ -102,18 +102,14 @@
|
|||||||
var that = this
|
var that = this
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.orderNo = JSON.parse(options.list).orderNo
|
this.orderNo = JSON.parse(options.list).orderNo
|
||||||
try {
|
const value = uni.getStorageSync('patientId');
|
||||||
const value = uni.getStorageSync('patientId');
|
if (value) {
|
||||||
if (value) {
|
that.patientId = value
|
||||||
that.patientId = value
|
}
|
||||||
}
|
const value2 = uni.getStorageSync('openid');
|
||||||
} catch (e) {}
|
if (value2) {
|
||||||
try {
|
that.openid = value2
|
||||||
const value = uni.getStorageSync('openid');
|
}
|
||||||
if (value) {
|
|
||||||
that.openid = value
|
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//支付
|
//支付
|
||||||
|
|||||||
@ -319,7 +319,6 @@
|
|||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
url: ''
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -213,36 +213,34 @@
|
|||||||
// 查询地址信息
|
// 查询地址信息
|
||||||
goodsList() {
|
goodsList() {
|
||||||
let that = this
|
let that = this
|
||||||
try {
|
const value = uni.getStorageSync('patientId');
|
||||||
const value = uni.getStorageSync('patientId');
|
if (value) {
|
||||||
if (value) {
|
that.patientId = value
|
||||||
that.patientId = value
|
goodPatientInfo(that.patientId).then(res => {
|
||||||
goodPatientInfo(that.patientId).then(res => {
|
res.data.forEach(e => {
|
||||||
res.data.forEach(e => {
|
e.address = e.areaName + e.receiveAddress
|
||||||
e.address = e.areaName + e.receiveAddress
|
if (e.defaultAddressFlag == 1) {
|
||||||
if (e.defaultAddressFlag == 1) {
|
e.defaultAddressFlag = true
|
||||||
e.defaultAddressFlag = true
|
} else {
|
||||||
} else {
|
e.defaultAddressFlag = false
|
||||||
e.defaultAddressFlag = false
|
}
|
||||||
}
|
|
||||||
})
|
|
||||||
that.goodPatient = res.data
|
|
||||||
})
|
})
|
||||||
} else {
|
that.goodPatient = res.data
|
||||||
that.$refs.uToast.show({
|
})
|
||||||
title: '登录状态异常',
|
} else {
|
||||||
type: 'error'
|
that.$refs.uToast.show({
|
||||||
})
|
title: '登录状态异常',
|
||||||
if (that.timer) {
|
type: 'error'
|
||||||
clearTimeout(that.timer)
|
})
|
||||||
}
|
if (that.timer) {
|
||||||
that.timer = setTimeout(e => {
|
clearTimeout(that.timer)
|
||||||
uni.navigateBack({
|
|
||||||
delta: 2
|
|
||||||
})
|
|
||||||
}, 1500)
|
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
that.timer = setTimeout(e => {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 2
|
||||||
|
})
|
||||||
|
}, 1500)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 保存按钮
|
// 保存按钮
|
||||||
submit() {
|
submit() {
|
||||||
|
|||||||
@ -189,7 +189,6 @@
|
|||||||
nurseStationId: '',
|
nurseStationId: '',
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
timer: null,
|
|
||||||
tabList: [{
|
tabList: [{
|
||||||
name: '全部',
|
name: '全部',
|
||||||
id: ''
|
id: ''
|
||||||
@ -280,51 +279,31 @@
|
|||||||
//预约
|
//预约
|
||||||
goappointments(item) {
|
goappointments(item) {
|
||||||
let that = this
|
let that = this
|
||||||
try {
|
const value = uni.getStorageSync('openid');
|
||||||
const value = uni.getStorageSync('openid');
|
const value2 = uni.getStorageSync('patientId');
|
||||||
const value2 = uni.getStorageSync('patientId');
|
if (value && value2) {
|
||||||
if (value && value2) {
|
AppIdentification(value2).then(res => {
|
||||||
AppIdentification(value2).then(res => {
|
if (res.code == 200) {
|
||||||
if (res.code == 200) {
|
if (res.data.loginFlag) {
|
||||||
if (res.data.loginFlag) {
|
that.usershow = false
|
||||||
that.usershow = false
|
uni.navigateTo({
|
||||||
uni.navigateTo({
|
url: `/pages/appointmenttime/appointmenttime?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`,
|
||||||
url: `/pages/appointmenttime/appointmenttime?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`,
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
that.usershow = true
|
|
||||||
}
|
|
||||||
} else if (res.code == 9999) {} else {
|
|
||||||
that.$refs.uToast.show({
|
|
||||||
title: res.msg,
|
|
||||||
type: 'error'
|
|
||||||
})
|
})
|
||||||
if (that.timer) {
|
} else {
|
||||||
clearTimeout(that.timer)
|
that.usershow = true
|
||||||
}
|
|
||||||
that.timer = setTimeout(e => {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/login/login'
|
|
||||||
})
|
|
||||||
}, 1500)
|
|
||||||
}
|
}
|
||||||
})
|
} else if (res.code == 9999) {} else {
|
||||||
} else {
|
that.$refs.uToast.show({
|
||||||
that.$refs.uToast.show({
|
title: res.msg,
|
||||||
title: '未登录,请先登录',
|
type: 'error',
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
if (that.timer) {
|
|
||||||
clearTimeout(that.timer)
|
|
||||||
}
|
|
||||||
that.timer = setTimeout(e => {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
}, 1000)
|
}
|
||||||
}
|
})
|
||||||
} catch (e) {
|
} else {
|
||||||
uni.navigateTo({
|
that.$refs.uToast.show({
|
||||||
|
title: '未登录,请先登录',
|
||||||
|
type: 'error',
|
||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -269,14 +269,12 @@
|
|||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.goodsOrderId = options.goodsOrderId
|
this.goodsOrderId = options.goodsOrderId
|
||||||
let that = this
|
let that = this
|
||||||
try {
|
const value = uni.getStorageSync('patientId');
|
||||||
const value = uni.getStorageSync('patientId');
|
const value2 = uni.getStorageSync('openid');
|
||||||
const value2 = uni.getStorageSync('openid');
|
if (value && value2) {
|
||||||
if (value && value2) {
|
that.patientId = value
|
||||||
that.patientId = value
|
that.openid = value2
|
||||||
that.openid = value2
|
}
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -167,18 +167,14 @@
|
|||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.goodsOrderId = options.goodsOrderId
|
this.goodsOrderId = options.goodsOrderId
|
||||||
let that = this
|
let that = this
|
||||||
try {
|
const value = uni.getStorageSync('patientId');
|
||||||
const value = uni.getStorageSync('patientId');
|
if (value) {
|
||||||
if (value) {
|
that.patientId = value
|
||||||
that.patientId = value
|
}
|
||||||
}
|
const value2 = uni.getStorageSync('openid');
|
||||||
} catch (e) {}
|
if (value2) {
|
||||||
try {
|
that.openid = value2
|
||||||
const value = uni.getStorageSync('openid');
|
} else {}
|
||||||
if (value) {
|
|
||||||
that.openid = value
|
|
||||||
} else {}
|
|
||||||
} catch (e) {}
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.goodsOrderinfo(this.goodsOrderId)
|
this.goodsOrderinfo(this.goodsOrderId)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user