This commit is contained in:
曹辉 2023-03-03 15:18:55 +08:00
parent ebf8adf248
commit 09c40ae9cb
9 changed files with 136 additions and 31 deletions

View File

@ -4,7 +4,7 @@
<image v-if="appPersonallist.headPictureUrl" class="img" :src="baseurl+appPersonallist.headPictureUrl" <image v-if="appPersonallist.headPictureUrl" class="img" :src="baseurl+appPersonallist.headPictureUrl"
mode=""></image> mode=""></image>
<image class="img" v-else src="../../static/user.png" 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"> <view class="phone" v-if="appPersonallist.patientName">
{{appPersonallist.patientName}} {{appPersonallist.patientName}}
</view> </view>
@ -147,9 +147,11 @@
appPersonallist: null, // appPersonallist: null, //
timer: null, timer: null,
list: {}, list: {},
bjimg: '',
} }
}, },
onShow() { onShow() {
this.bjimg = baseurl + '/profile/appletPicture/inviteFriendsOne.png'
let that = this let that = this
this.baseurl = baseurl this.baseurl = baseurl
this.myInfo() this.myInfo()

View File

@ -3,24 +3,26 @@
<view class="title"> <view class="title">
长按识别二维码 长按识别二维码
</view> </view>
<image src="../../static/kefuzx.jpg" mode="" :show-menu-by-longpress="true"></image> <image :src="img" mode="" :show-menu-by-longpress="true"></image>
</view> </view>
</template> </template>
<script> <script>
import baseurl from '@/api/baseurl.js'
export default { export default {
data() { data() {
return { return {
imageUrl: [ img: '',
'../../static/kefuzx.jpg'
]
}; };
}, },
onShow() {
this.img = baseurl + '/profile/appletPicture/customer.jpg'
},
methods: { methods: {
previewImage(e) { previewImage(e) {
uni.previewImage({ uni.previewImage({
// urls // urls
urls: this.imageUrl, urls: this.img,
// / // /
current: 0, current: 0,
// //

View File

@ -248,9 +248,5 @@
transform: translateY(-50%); transform: translateY(-50%);
} }
} }
.item:nth-child(6) {
border: 0;
}
} }
} }

View File

@ -153,6 +153,20 @@
分享给好友 分享给好友
</view> </view>
</u-popup> </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" /> <u-toast ref="uToast" />
</view> </view>
</template> </template>
@ -169,6 +183,9 @@
import { import {
goodPatientInfo goodPatientInfo
} from '@/api/modifyAddress/modifyAddress.js'; } from '@/api/modifyAddress/modifyAddress.js';
import {
AppIdentification
} from '@/api/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 {
@ -180,10 +197,12 @@
baseurl: '', baseurl: '',
patientId: null, patientId: null,
integral: 0, integral: 0,
usershow: false, //go
gainshow: false, // gainshow: false, //
buyshow: false, // buyshow: false, //
yaoqingshow: false, yaoqingshow: false,
yaoqingimg: null, yaoqingimg: null,
yapqingbeijingimg: null,
list: { list: {
integral: 0 integral: 0
}, },
@ -235,8 +254,9 @@
} }
}, },
onShow() { onShow() {
var that = this
this.baseurl = baseurl this.baseurl = baseurl
this.yapqingbeijingimg = baseurl + '/profile/appletPicture/inviteFriendsTwo.png'
var that = this
const value = uni.getStorageSync('patientId'); const value = uni.getStorageSync('patientId');
if (value) { if (value) {
that.updata.patientId = value that.updata.patientId = value
@ -284,7 +304,7 @@
}) })
// //
await this.$refs.rCanvas.drawImage({ await this.$refs.rCanvas.drawImage({
url: "/static/yaoqinghaoyou.png", url: this.yapqingbeijingimg,
x: 0, x: 0,
y: 0, y: 0,
w: 330, w: 330,
@ -406,22 +426,50 @@
}, },
// //
upbuy() { upbuy() {
integralGoodsOrder(this.updata).then(res => { var that = this
if (res.code == 200) { const value = uni.getStorageSync('patientId');
this.selectPatientSignInifo(); const value2 = uni.getStorageSync('openid');
this.$refs.uToast.show({ if (value && value2) {
title: '兑换商品成功', AppIdentification(value).then(res => {
type: 'success' if (res.code == 200) {
}) if (res.data.loginFlag) {
this.buyshow = false integralGoodsOrder(this.updata).then(res => {
} else { if (res.code == 200) {
this.$refs.uToast.show({ this.selectPatientSignInifo();
title: '兑换商品失败', this.$refs.uToast.show({
type: 'error' title: '兑换商品成功',
}) type: 'success'
} })
}) this.buyshow = false
} else {
this.$refs.uToast.show({
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() { upaddress() {
if (this.updata.receiver) { if (this.updata.receiver) {
@ -512,6 +560,13 @@
} }
}) })
}, },
//
goinformation() {
this.usershow = false
uni.navigateTo({
url: '/pages/information/information'
})
},
}, },
onReachBottom() { // onReachBottom() { //
if (this.goodslist.length >= this.goodstotal) {} else { if (this.goodslist.length >= this.goodstotal) {} else {
@ -536,6 +591,54 @@
<style lang="scss"> <style lang="scss">
.app { .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 { ::v-deep .r-canvas {
width: 660rpx !important; width: 660rpx !important;
height: 1100rpx !important; height: 1100rpx !important;
@ -785,6 +888,7 @@
height: 600rpx; height: 600rpx;
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
z-index: 10;
.maskitems { .maskitems {
color: #fff; color: #fff;

View File

@ -66,7 +66,7 @@
{{item.useStatus=='NOT_USED'?'使用':''}} {{item.useStatus=='NOT_USED'?'使用':''}}
</view> </view>
</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 =='NEW_PEOPLE_WELFARE'?'新人福利':''}}
{{item.receiveSource =='EVENT_GIFT'?'活动赠送':''}} {{item.receiveSource =='EVENT_GIFT'?'活动赠送':''}}
{{item.receiveSource =='CONSUME_REBATE'?'消费返券':''}} {{item.receiveSource =='CONSUME_REBATE'?'消费返券':''}}

View File

@ -8,12 +8,13 @@
<view class="item"> <view class="item">
<span>姓名</span> <span>姓名</span>
<u-input :clearable='false' v-model="appPersonallist.patientName" placeholder="请输入" type="text" <u-input :clearable='false' v-model="appPersonallist.patientName" placeholder="请输入" type="text"
maxlength='15' /> maxlength='5' />
</view> </view>
<view class="item"> <view class="item">
<span>性别</span> <span>性别</span>
<u-radio-group v-model="appPersonallist.sex" size='44' > <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}} {{item.name}}
</u-radio> </u-radio>
</u-radio-group> </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