diff --git a/pages/information/information.vue b/pages/information/information.vue index e2e9d12..df3320a 100644 --- a/pages/information/information.vue +++ b/pages/information/information.vue @@ -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 diff --git a/pages/materialbenefits/materialbenefits.vue b/pages/materialbenefits/materialbenefits.vue index 3eca50c..78c93e6 100644 --- a/pages/materialbenefits/materialbenefits.vue +++ b/pages/materialbenefits/materialbenefits.vue @@ -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() {