修改
This commit is contained in:
parent
ebf8adf248
commit
09c40ae9cb
@ -4,7 +4,7 @@
|
||||
<image v-if="appPersonallist.headPictureUrl" class="img" :src="baseurl+appPersonallist.headPictureUrl"
|
||||
mode=""></image>
|
||||
<image class="img" v-else src="../../static/user.png" mode=""></image>
|
||||
<image class="bjimg" src="../../static/userbeijing.png" mode=""></image>
|
||||
<image class="bjimg" :src="bjimg" mode=""></image>
|
||||
<view class="phone" v-if="appPersonallist.patientName">
|
||||
{{appPersonallist.patientName}}
|
||||
</view>
|
||||
@ -147,9 +147,11 @@
|
||||
appPersonallist: null, //获取个人信息
|
||||
timer: null,
|
||||
list: {},
|
||||
bjimg: '',
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
|
||||
let that = this
|
||||
this.baseurl = baseurl
|
||||
this.myInfo()
|
||||
|
||||
@ -3,24 +3,26 @@
|
||||
<view class="title">
|
||||
长按识别二维码
|
||||
</view>
|
||||
<image src="../../static/kefuzx.jpg" mode="" :show-menu-by-longpress="true"></image>
|
||||
<image :src="img" mode="" :show-menu-by-longpress="true"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
imageUrl: [
|
||||
'../../static/kefuzx.jpg'
|
||||
]
|
||||
img: '',
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.img = baseurl + '/profile/appletPicture/customer.jpg'
|
||||
},
|
||||
methods: {
|
||||
previewImage(e) {
|
||||
uni.previewImage({
|
||||
// 需要预览的图片链接列表。若无需预览,可以注释urls
|
||||
urls: this.imageUrl,
|
||||
urls: this.img,
|
||||
// 为当前显示图片的链接/索引值
|
||||
current: 0,
|
||||
// 图片指示器样式
|
||||
|
||||
@ -248,9 +248,5 @@
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
}
|
||||
|
||||
.item:nth-child(6) {
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -153,6 +153,20 @@
|
||||
分享给好友
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-mask :show="usershow" class='masks'>
|
||||
<view class="information">
|
||||
<image src="../../static/information.png" mode=""></image>
|
||||
<view class="title">
|
||||
请完善个人信息
|
||||
</view>
|
||||
<view class="cancel" @tap='usershow=false'>
|
||||
取消
|
||||
</view>
|
||||
<view class="determine" @tap='goinformation'>
|
||||
去完善
|
||||
</view>
|
||||
</view>
|
||||
</u-mask>
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
</template>
|
||||
@ -169,6 +183,9 @@
|
||||
import {
|
||||
goodPatientInfo
|
||||
} from '@/api/modifyAddress/modifyAddress.js';
|
||||
import {
|
||||
AppIdentification
|
||||
} from '@/api/AppIdentification/index.js'
|
||||
import baseurl from '../../api/baseurl';
|
||||
import rCanvas from "@/components/r-canvas/r-canvas.vue"
|
||||
export default {
|
||||
@ -180,10 +197,12 @@
|
||||
baseurl: '',
|
||||
patientId: null,
|
||||
integral: 0,
|
||||
usershow: false, //go完善
|
||||
gainshow: false, //积分邀请
|
||||
buyshow: false, //兑换购买
|
||||
yaoqingshow: false,
|
||||
yaoqingimg: null,
|
||||
yapqingbeijingimg: null,
|
||||
list: {
|
||||
integral: 0
|
||||
},
|
||||
@ -235,8 +254,9 @@
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
var that = this
|
||||
this.baseurl = baseurl
|
||||
this.yapqingbeijingimg = baseurl + '/profile/appletPicture/inviteFriendsTwo.png'
|
||||
var that = this
|
||||
const value = uni.getStorageSync('patientId');
|
||||
if (value) {
|
||||
that.updata.patientId = value
|
||||
@ -284,7 +304,7 @@
|
||||
})
|
||||
// 画图
|
||||
await this.$refs.rCanvas.drawImage({
|
||||
url: "/static/yaoqinghaoyou.png",
|
||||
url: this.yapqingbeijingimg,
|
||||
x: 0,
|
||||
y: 0,
|
||||
w: 330,
|
||||
@ -406,6 +426,13 @@
|
||||
},
|
||||
//兑换
|
||||
upbuy() {
|
||||
var that = this
|
||||
const value = uni.getStorageSync('patientId');
|
||||
const value2 = uni.getStorageSync('openid');
|
||||
if (value && value2) {
|
||||
AppIdentification(value).then(res => {
|
||||
if (res.code == 200) {
|
||||
if (res.data.loginFlag) {
|
||||
integralGoodsOrder(this.updata).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.selectPatientSignInifo();
|
||||
@ -416,12 +443,33 @@
|
||||
this.buyshow = false
|
||||
} else {
|
||||
this.$refs.uToast.show({
|
||||
title: '兑换商品失败',
|
||||
title: res.msg,
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.usershow = true
|
||||
}
|
||||
} else {
|
||||
that.$refs.uToast.show({
|
||||
title: '请先登录',
|
||||
type: 'error',
|
||||
duration: '2000',
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
that.$refs.uToast.show({
|
||||
title: '请先登录',
|
||||
type: 'error',
|
||||
duration: '2000',
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
//跳转到全部收货地址
|
||||
upaddress() {
|
||||
if (this.updata.receiver) {
|
||||
@ -512,6 +560,13 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
//跳转完善页面
|
||||
goinformation() {
|
||||
this.usershow = false
|
||||
uni.navigateTo({
|
||||
url: '/pages/information/information'
|
||||
})
|
||||
},
|
||||
},
|
||||
onReachBottom() { //下滑加载
|
||||
if (this.goodslist.length >= this.goodstotal) {} else {
|
||||
@ -536,6 +591,54 @@
|
||||
|
||||
<style lang="scss">
|
||||
.app {
|
||||
.masks {
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.information {
|
||||
width: 70%;
|
||||
height: 400rpx;
|
||||
margin: 50% auto;
|
||||
background: #FFFFFF;
|
||||
border-radius: 30rpx;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
position: relative;
|
||||
|
||||
.determine,
|
||||
.cancel {
|
||||
width: 200rpx;
|
||||
height: 70rpx;
|
||||
border-radius: 26rpx;
|
||||
font-size: 34rpx;
|
||||
line-height: 70rpx;
|
||||
position: absolute;
|
||||
top: 74%;
|
||||
}
|
||||
|
||||
.determine {
|
||||
background: #4C7BC9;
|
||||
right: 36rpx;
|
||||
}
|
||||
|
||||
.cancel {
|
||||
background: #C5BFBF;
|
||||
left: 36rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 42rpx;
|
||||
margin-top: 40rpx;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
image {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
margin: 10% 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .r-canvas {
|
||||
width: 660rpx !important;
|
||||
height: 1100rpx !important;
|
||||
@ -785,6 +888,7 @@
|
||||
height: 600rpx;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
z-index: 10;
|
||||
|
||||
.maskitems {
|
||||
color: #fff;
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
{{item.useStatus=='NOT_USED'?'使用':''}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom" v-if="item.useStatus=='NOT_USED'||item.useStatus=='RECEIVE'">
|
||||
<view class="bottom" v-if="item.useStatus=='NOT_USED'">
|
||||
领取来源:{{item.receiveSource =='NEW_PEOPLE_WELFARE'?'新人福利':''}}
|
||||
{{item.receiveSource =='EVENT_GIFT'?'活动赠送':''}}
|
||||
{{item.receiveSource =='CONSUME_REBATE'?'消费返券':''}}
|
||||
|
||||
@ -8,12 +8,13 @@
|
||||
<view class="item">
|
||||
<span>姓名:</span>
|
||||
<u-input :clearable='false' v-model="appPersonallist.patientName" placeholder="请输入" type="text"
|
||||
maxlength='15' />
|
||||
maxlength='5' />
|
||||
</view>
|
||||
<view class="item">
|
||||
<span>性别:</span>
|
||||
<u-radio-group v-model="appPersonallist.sex" size='44'>
|
||||
<u-radio @change='sexchange' v-for="(item, index) in sexlist" :key="index" :name="item.name" :disabled="item.disabled">
|
||||
<u-radio @change='sexchange' v-for="(item, index) in sexlist" :key="index" :name="item.name"
|
||||
:disabled="item.disabled">
|
||||
{{item.name}}
|
||||
</u-radio>
|
||||
</u-radio-group>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 82 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 82 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 93 KiB |
Loading…
Reference in New Issue
Block a user