This commit is contained in:
曹辉 2023-03-07 17:19:34 +08:00
parent 5ed7a523b4
commit c623d41da7
9 changed files with 135 additions and 260 deletions

View File

@ -1,202 +0,0 @@
<template>
<view class="app">
<view class="record">
<view class="time">
<text>2022-10-11 15:44</text>
<text class="service">服务中</text>
</view>
<view class="recordinfo">
<view class="img">
</view>
<view class="texts">
<text class="name">某某某</text>
<view class="doctor">
<text>内科门诊-主任医师</text>
</view>
</view>
</view>
<view class="Apayment">
<view class="pay">
<text class="money">实付款:</text>
<text class="price">28.0</text>
</view>
<view class="result">
查看结果
</view>
</view>
</view>
<view class="record">
<view class="time">
<text>2022-10-11 15:44</text>
<text class="service">服务中</text>
</view>
<view class="recordinfo">
<view class="img">
</view>
<view class="texts">
<text class="name">某某某</text>
<view class="doctor">
<text>内科门诊-主任医师</text>
</view>
</view>
</view>
<view class="Apayment">
<view class="pay">
<text class="money">实付款:</text>
<text class="price">28.0</text>
</view>
<view class="result">
查看结果
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
onShareAppMessage(res) {
let pages = getCurrentPages();
let url = pages[pages.length - 1].$page.fullPath
return {
title: '泉医到家',
path: url,
}
},
//2.
onShareTimeline(res) {
let pages = getCurrentPages();
let url = pages[pages.length - 1].$page.fullPath
return {
title: '泉医到家',
path: url,
}
},
}
}
</script>
<style lang="scss">
.app {
background-color: #F4F5F7;
width: 100%;
position: relative;
padding: 4%;
.record {
width: 99%;
height: 427rpx;
background: #FFFFFF;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 20rpx;
margin-bottom: 10rpx;
.time {
width: 90%;
height: 80rpx;
font-size: 30rpx;
margin: 0 auto;
color: #969394;
line-height: 80rpx;
border-bottom: 1rpx solid #D8D4D4;
.service {
height: 67rpx;
color: #4C7BC9;
line-height: 67rpx;
margin-left: 45%;
// float: left;
}
}
}
.recordinfo {
width: 90%;
height: 230rpx;
// background-color: red;
margin: 0 auto;
display: flex;
.img {
width: 169rpx;
height: 171rpx;
background: #BFBFBF;
margin-top: 3%;
border-radius: 25rpx;
}
.texts {
margin-top: 7%;
// width: 169rpx;
height: 171rpx;
margin-left: 6%;
// background: #BFBFBF;
.name {
height: 70rpx;
font-size: 38rpx;
color: #000000;
line-height: 70rpx;
}
.doctor {
height: 60rpx;
font-size: 35rpx;
color: #969394;
line-height: 60rpx;
}
}
}
.Apayment {
width: 90%;
margin: 0 auto;
// background-color: red;
display: flex;
.money {
height: 29rpx;
font-size: 30rpx;
color: #969394;
line-height: 29rpx;
// margin-top: -40px;
}
.price {
font-family: Adobe Heiti Std;
font-weight: normal;
line-height: 29rpx;
height: 29rpx;
font-size: 41rpx;
color: #000000;
line-height: 77rpx;
}
.result {
width: 217rpx;
height: 68rpx;
line-height: 68rpx;
background: #4C7BC9;
font-size: 32rpx;
border-radius: 26rpx;
color: #FFFFFF;
text-align: center;
margin-left: 30%;
}
}
}
</style>

View File

@ -754,17 +754,19 @@
// e.address = e.provinceName + e.cityName + e.regionName + e.streetName + e
// .receiveAddress
// })
var list = res.data.filter(e => e.defaultAddressFlag == 1)
if (list.length >= 1) {
this.updata.receiver = list[0].receiveName
this.updata.receiveAddress = list[0].areaName + list[0].receiveAddress
this.updata.phone = list[0].receivePhone
this.userid = list[0].id
} else {
this.updata.receiver = res.data[0].receiveName
this.updata.receiveAddress = res.data[0].areaName + res.data[0].receiveAddress
this.updata.phone = res.data[0].receivePhone
this.userid = res.data[0].id
if (res.data.length > 0) {
var list = res.data.filter(e => e.defaultAddressFlag == 1)
if (list.length >= 1) {
this.updata.receiver = list[0].receiveName
this.updata.receiveAddress = list[0].areaName + list[0].receiveAddress
this.updata.phone = list[0].receivePhone
this.userid = list[0].id
} else {
this.updata.receiver = res.data[0].receiveName
this.updata.receiveAddress = res.data[0].areaName + res.data[0].receiveAddress
this.updata.phone = res.data[0].receivePhone
this.userid = res.data[0].id
}
}
})
},
@ -792,24 +794,26 @@
that.goodsDetailsinfo(that.goodsInfoId, value)
goodPatientInfo(value).then(res => {
if (res.code == 200) {
var user = res.data.filter(e => e.id == that.userid)
if (user.length >= 1) {
// user[0].address = user[0].provinceName + user[0].cityName + user[0].regionName + user[0]
// .streetName + user[0].receiveAddress
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 {
// res.data.forEach(e => {
// e.address = e.provinceName + e.cityName + e.regionName + e.streetName + e
// .receiveAddress
// })
that.updata.receiver = res.data[0].receiveName
// this.updata.receiveAddress = res.data[0].address
that.updata.receiveAddress = res.data[0].areaName + res.data[0].receiveAddress
that.updata.phone = res.data[0].receivePhone
that.userid = res.data[0].id
if (res.data.length > 0) {
var user = res.data.filter(e => e.id == that.userid)
if (user.length >= 1) {
// user[0].address = user[0].provinceName + user[0].cityName + user[0].regionName + user[0]
// .streetName + user[0].receiveAddress
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 {
// res.data.forEach(e => {
// e.address = e.provinceName + e.cityName + e.regionName + e.streetName + e
// .receiveAddress
// })
that.updata.receiver = res.data[0].receiveName
// this.updata.receiveAddress = res.data[0].address
that.updata.receiveAddress = res.data[0].areaName + res.data[0].receiveAddress
that.updata.phone = res.data[0].receivePhone
that.userid = res.data[0].id
}
}
}
})

View File

@ -1,6 +1,23 @@
.app {
padding: 0;
.noorder {
margin-top: 20%;
image {
display: block;
margin: 0 auto;
width: 200rpx;
height: 240rpx;
}
view {
margin-top: 100rpx;
text-align: center;
font-size: 36rpx;
color: #BFBFBF;
}
}
.content {
width: 96%;
margin: 20rpx auto 0;

View File

@ -31,7 +31,7 @@
已过期
</view>
</view>
<view class="rollup">
<view class="rollup" v-if="couponlist.length>0">
<view class="item" v-for="(item,index) in couponlist" :key="index"
:style="item.useStatus!='NOT_USED'?'height:180rpx':''">
<view class="top" :style="item.useStatus!='NOT_USED'?'background: #EFECEC;color: #4B4B4B;':''">
@ -67,6 +67,12 @@
</view>
</view>
</view>
<view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image>
<view class="">
暂无可兑换商品
</view>
</view>
</view>
<u-toast ref="uToast" />
</view>
@ -80,7 +86,7 @@
return {
pageNum: 1,
pageSize: 10,
couponlist: null,
couponlist: [],
total: 0,
couponstatus: '', //
patientId: null,

View File

@ -3,7 +3,23 @@
.masks {
z-index: 999;
}
.noorder {
margin-top: 20%;
image {
display: block;
margin: 0 auto;
width: 200rpx;
height: 240rpx;
}
view {
margin-top: 100rpx;
text-align: center;
font-size: 36rpx;
color: #BFBFBF;
}
}
.information {
width: 70%;
height: 400rpx;

View File

@ -24,7 +24,7 @@
<view class="titles">
积分兑换
</view>
<view class="items">
<view class="items" v-if="goodslist.length>0">
<view class="item" v-for="(item,index) in goodslist" :key="index">
<image :src="item.attributePitureUrl" mode=""></image>
<view class="title">
@ -43,6 +43,12 @@
</view>
</view>
</view>
<view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image>
<view class="">
暂无优惠券
</view>
</view>
<u-mask :show="gainshow" @click="gainshow = false">
<view class="mask" @click.stop="">
<image class="close" src="../../static/gb.png" mode="" @tap='gainshow=false'></image>
@ -212,7 +218,7 @@
pageNum: 1,
pageSize: 10,
goodstotal: 0,
goodslist: null,
goodslist: [],
goodsitem: null,
userid: null,
updata: {
@ -267,17 +273,19 @@
that.updata.patientId = value
goodPatientInfo(value).then(res => {
if (res.code == 200) {
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
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
}
}
}
})
@ -586,17 +594,19 @@
//
goodsList() {
goodPatientInfo(this.patientId).then(res => {
var list = res.data.filter(e => e.defaultAddressFlag == 1)
if (list.length >= 1) {
this.updata.receiver = list[0].receiveName
this.updata.receiveAddress = list[0].areaName + list[0].receiveAddress
this.updata.phone = list[0].receivePhone
this.userid = list[0].id
} else {
this.updata.receiver = res.data[0].receiveName
this.updata.receiveAddress = res.data[0].areaName + res.data[0].receiveAddress
this.updata.phone = res.data[0].receivePhone
this.userid = res.data[0].id
if (res.data.length > 0) {
var list = res.data.filter(e => e.defaultAddressFlag == 1)
if (list.length >= 1) {
this.updata.receiver = list[0].receiveName
this.updata.receiveAddress = list[0].areaName + list[0].receiveAddress
this.updata.phone = list[0].receivePhone
this.userid = list[0].id
} else {
this.updata.receiver = res.data[0].receiveName
this.updata.receiveAddress = res.data[0].areaName + res.data[0].receiveAddress
this.updata.phone = res.data[0].receivePhone
this.userid = res.data[0].id
}
}
})
},

View File

@ -32,7 +32,7 @@
已过期
</view> -->
</view>
<view class="rollup">
<view class="rollup" v-if="couponlist.length > 0">
<view class="item" v-for="(item,index) in couponlist" :key="index"
:style="item.useStatus!='NOT_USED'?'height:180rpx':''">
<view class="top"
@ -73,6 +73,12 @@
</view>
</view>
</view>
<view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image>
<view class="">
暂无
</view>
</view>
</view>
<u-mask :show="usershow" class='mask'>
<view class="information">
@ -104,7 +110,7 @@
usershow: false,
pageNum: 1,
pageSize: 10,
couponlist: null,
couponlist: [],
total: 0,
couponstatus: '', //
patientId: null,
@ -202,6 +208,24 @@
.app {
padding: 0;
.noorder {
margin-top: 20%;
image {
display: block;
margin: 0 auto;
width: 200rpx;
height: 240rpx;
}
view {
margin-top: 100rpx;
text-align: center;
font-size: 36rpx;
color: #BFBFBF;
}
}
.mask {
.information {
width: 70%;

View File

@ -110,7 +110,7 @@
<style lang="scss">
.app {
padding: 165rpx 0 0;
padding: 110rpx 0 0;
background-color: #fff;
.card {

View File