This commit is contained in:
2023-09-22 15:07:32 +08:00
parent d0e68cabb2
commit 4873fd6192

View File

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