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