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

View File

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