This commit is contained in:
曹辉 2023-03-10 16:53:51 +08:00
parent ed76bd08bd
commit a5067906b2
2 changed files with 7 additions and 5 deletions

View File

@ -162,6 +162,7 @@
medicalcarelist: [], //
address: '', //
query: { //
couponId: null,
patientName: "",
cardNo: "",
phone: "",
@ -343,8 +344,9 @@
},
},
//
onLoad() {
onLoad(options) {
let that = this
this.query.couponId = Number(options.couponId)
const value = uni.getStorageSync('patientId');
if (value) {
that.query.patientId = value

View File

@ -105,6 +105,7 @@
export default {
data() {
return {
item: null,
usershow: false,
pageNum: 1,
pageSize: 10,
@ -128,8 +129,8 @@
},
methods: {
logininfo(item) {
console.log(item)
var that = this
this.item = item
const value = uni.getStorageSync('patientId');
const value2 = uni.getStorageSync('openid');
if (value && value2) {
@ -138,7 +139,6 @@
if (res.data.loginFlag) {
insertCouponReceive(value, item.id).then(res => {
that.getlist();
console.log(res)
})
} else {
this.usershow = true
@ -177,10 +177,10 @@
this.getlist();
},
//
goinformation() {
goinformation(item) {
this.usershow = false
uni.navigateTo({
url: '/pages/information/information'
url: `/pages/information/information?couponId=${this.item.couponId}`
})
},
goshoping() {