修改
This commit is contained in:
parent
d0e68cabb2
commit
4873fd6192
@ -183,22 +183,22 @@
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
// import {
|
||||
// signIn,
|
||||
// selectPatientSignIn,
|
||||
// selectExchangeGoods,
|
||||
// integralGoodsOrder
|
||||
// } from '@/api/integral/index.js'
|
||||
// import {
|
||||
// inviteFriends
|
||||
// } from '@/api/Personal/Personal.js';
|
||||
// import {
|
||||
// goodPatientInfo
|
||||
// } from '@/api/modifyAddress/modifyAddress.js';
|
||||
// import {
|
||||
// AppIdentification
|
||||
// } from '@/api/AppIdentification/index.js'
|
||||
import baseurl from '../../api/baseurl';
|
||||
import {
|
||||
signIn,
|
||||
selectPatientSignIn,
|
||||
selectExchangeGoods,
|
||||
integralGoodsOrder
|
||||
} from '@/api/pagesB/integral/index.js'
|
||||
import {
|
||||
inviteFriends
|
||||
} from '@/api/pages/myinformation/myinformation.js';
|
||||
import {
|
||||
goodPatientInfo
|
||||
} from '@/api/pagesB/modifyAddress/modifyAddress.js';
|
||||
import {
|
||||
AppIdentification
|
||||
} from '@/api/pagesB/AppIdentification/index.js'
|
||||
import baseurl from '@/api/baseurl';
|
||||
import rCanvas from "@/components/r-canvas/r-canvas.vue"
|
||||
export default {
|
||||
components: {
|
||||
@ -255,63 +255,63 @@
|
||||
};
|
||||
},
|
||||
onLoad(options) {},
|
||||
// onShow() {
|
||||
// this.baseurl = baseurl
|
||||
// this.pageNum = 1
|
||||
// this.selectExchangeGoodsinfo();
|
||||
// this.baseurl = baseurl
|
||||
// this.yapqingbeijingimg = baseurl + '/profile/appletPicture/inviteFriendsTwo.png'
|
||||
// var that = this
|
||||
// const value = uni.getStorageSync('patientId');
|
||||
// if (value) {
|
||||
// that.patientId = value
|
||||
// that.updata.patientId = value
|
||||
// that.selectPatientSignInifo();
|
||||
// that.user();
|
||||
// AppIdentification(value).then(res => {
|
||||
// if (res.code == 200) {
|
||||
// if (res.data.loginFlag) {
|
||||
// that.loginFlag = true
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// goodPatientInfo(value).then(res => {
|
||||
// if (res.code == 200) {
|
||||
// if (res.data.length > 0) {
|
||||
// var user = res.data.filter(e => e.id == that.userid)
|
||||
// if (user.length >= 1) {
|
||||
// that.updata.receiver = user[0].receiveName
|
||||
// that.updata.receiveAddress = user[0].areaName + user[0].receiveAddress
|
||||
// that.updata.phone = user[0].receivePhone
|
||||
// that.userid = user[0].id
|
||||
// } else {
|
||||
// that.updata.receiver = res.data[0].receiveName
|
||||
// that.updata.receiveAddress = res.data[0].areaName + res.data[0].receiveAddress
|
||||
// that.updata.phone = res.data[0].receivePhone
|
||||
// that.userid = res.data[0].id
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// } else {
|
||||
// that.$refs.uToast.show({
|
||||
// title: '未登录,请先登录',
|
||||
// type: 'error',
|
||||
// duration: '2000',
|
||||
// })
|
||||
// }
|
||||
// let useritem = null
|
||||
// uni.$on('updata', function(data) {
|
||||
// if (data.useritem) {
|
||||
// useritem = JSON.parse(data.useritem)
|
||||
// that.updata.receiver = useritem.receiveName
|
||||
// that.updata.phone = useritem.receivePhone
|
||||
// that.updata.receiveAddress = useritem.areaName + useritem.receiveAddress
|
||||
// that.userid = useritem.id
|
||||
// }
|
||||
// uni.$off('updata')
|
||||
// })
|
||||
// },
|
||||
onShow() {
|
||||
this.baseurl = baseurl
|
||||
this.pageNum = 1
|
||||
this.selectExchangeGoodsinfo();
|
||||
this.baseurl = baseurl
|
||||
this.yapqingbeijingimg = baseurl + '/profile/appletPicture/inviteFriendsTwo.png'
|
||||
var that = this
|
||||
const value = uni.getStorageSync('patientId');
|
||||
if (value) {
|
||||
that.patientId = value
|
||||
that.updata.patientId = value
|
||||
that.selectPatientSignInifo();
|
||||
that.user();
|
||||
AppIdentification(value).then(res => {
|
||||
if (res.code == 200) {
|
||||
if (res.data.loginFlag) {
|
||||
that.loginFlag = true
|
||||
}
|
||||
}
|
||||
})
|
||||
goodPatientInfo(value).then(res => {
|
||||
if (res.code == 200) {
|
||||
if (res.data.length > 0) {
|
||||
var user = res.data.filter(e => e.id == that.userid)
|
||||
if (user.length >= 1) {
|
||||
that.updata.receiver = user[0].receiveName
|
||||
that.updata.receiveAddress = user[0].areaName + user[0].receiveAddress
|
||||
that.updata.phone = user[0].receivePhone
|
||||
that.userid = user[0].id
|
||||
} else {
|
||||
that.updata.receiver = res.data[0].receiveName
|
||||
that.updata.receiveAddress = res.data[0].areaName + res.data[0].receiveAddress
|
||||
that.updata.phone = res.data[0].receivePhone
|
||||
that.userid = res.data[0].id
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
that.$refs.uToast.show({
|
||||
title: '未登录,请先登录',
|
||||
type: 'error',
|
||||
duration: '2000',
|
||||
})
|
||||
}
|
||||
let useritem = null
|
||||
uni.$on('updata', function(data) {
|
||||
if (data.useritem) {
|
||||
useritem = JSON.parse(data.useritem)
|
||||
that.updata.receiver = useritem.receiveName
|
||||
that.updata.phone = useritem.receivePhone
|
||||
that.updata.receiveAddress = useritem.areaName + useritem.receiveAddress
|
||||
that.userid = useritem.id
|
||||
}
|
||||
uni.$off('updata')
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
yaoqingshowtrue() {
|
||||
this.yaoqingshow = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user