修改
This commit is contained in:
parent
aa21421d58
commit
4f7b0f41bc
@ -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
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user