This commit is contained in:
曹辉 2023-03-10 11:14:58 +08:00
parent 91e186940f
commit 4da1250c93
26 changed files with 100 additions and 242 deletions

View File

@ -8,3 +8,11 @@ export function couponByUseStatus(pageNum, pageSize, patientId) {
method: 'get' method: 'get'
}) })
} }
//领取
export function insertCouponReceive(patientId, couponId) {
return request({
url: `/nurseApplet/patientInfo/insertCouponReceive?patientId=${patientId}&couponId=${couponId}`,
method: 'post'
})
}

View File

@ -25,7 +25,7 @@
"navigationBarBackgroundColor": "#ffffff" "navigationBarBackgroundColor": "#ffffff"
} }
},{ },{
"path" : "pages/Informationconfirmation/Informationconfirmation", "path" : "pages/confirmation/confirmation",
"style" : "style" :
{ {
"navigationBarTitleText": "", "navigationBarTitleText": "",

View File

@ -2,14 +2,6 @@
padding: 3%; padding: 3%;
.frame { .frame {
.image {
position: absolute;
right: 30rpx;
top: 40rpx;
width: 31rpx;
height: 31rpx;
}
.payment { .payment {
width: 95%; width: 95%;
font-size: 42rpx; font-size: 42rpx;

View File

@ -31,8 +31,7 @@
<view class="Submit" @tap='refundinfo'>提交</view> <view class="Submit" @tap='refundinfo'>提交</view>
<!-- 弹框 --> <!-- 弹框 -->
<view class="frame"> <view class="frame">
<u-popup v-model="show" mode="bottom" length="48%" border-radius="20"> <u-popup v-model="show" mode="bottom" length="48%" border-radius="20" :closeable='true'>
<image class="image" @tap="show = false" src="../../static/gb.png" mode=""></image>
<view class="payment"> <view class="payment">
请选择退款原因 请选择退款原因
</view> </view>

View File

@ -4,18 +4,6 @@
padding: 3%; padding: 3%;
.noorder{ .noorder{
margin-top: 20%; 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;
}
} }
.submits { .submits {
width: 501rpx; width: 501rpx;

View File

@ -64,10 +64,7 @@
</view> </view>
</view> </view>
<view class="noorder" v-else> <view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image> <u-empty mode="order" icon-size='220'></u-empty>
<view class="">
暂无商品订单
</view>
</view> </view>
<!-- 弹框 --> <!-- 弹框 -->
<view class="frame"> <view class="frame">

View File

@ -3,15 +3,14 @@
<view class="title"> <view class="title">
{{item.informationTitle}} {{item.informationTitle}}
</view> </view>
<view class="text" v-html="item.informationContent"> <u-parse :html="item.informationContent"></u-parse>
</view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
item: null, item: '',
}; };
}, },
onLoad(options) { // onLoad(options) { //

View File

@ -17,10 +17,7 @@
</view> </view>
</view> </view>
<view class="noorder" v-else> <view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image> <u-empty mode="data" icon-size='220' text='暂无内容'></u-empty>
<view class="">
暂无内容
</view>
</view> </view>
<u-back-top :scroll-top="scrollTop"></u-back-top> <u-back-top :scroll-top="scrollTop"></u-back-top>
</view> </view>
@ -118,20 +115,6 @@
.noorder { .noorder {
margin-top: 20%; 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;
}
} }
.Healthknowledge { .Healthknowledge {

View File

@ -56,18 +56,6 @@
.noorder{ .noorder{
margin-top: 20%; 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;
}
} }
.item { .item {
width: 99%; width: 99%;

View File

@ -38,10 +38,7 @@
</view> </view>
</view> </view>
<view class="noorder" v-else> <view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image> <u-empty mode="list" icon-size='220' text='暂无服务订单'></u-empty>
<view class="">
暂无服务订单
</view>
</view> </view>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<u-mask :show="rateshow" @tap="rateshow = false" class='masks'> <u-mask :show="rateshow" @tap="rateshow = false" class='masks'>

View File

@ -28,11 +28,8 @@
<view style="width: 45%;" v-if="goodsList.length%2!=0"> <view style="width: 45%;" v-if="goodsList.length%2!=0">
</view> </view>
</view> </view>
<view class="noorder" v-if='goodsList.length==0'> <view style='margin-top:90rpx' v-else>
<image src="../../static/noorder.png" mode=""></image> <u-empty mode="list" icon-size='220' text='暂无商品'></u-empty>
<view class="">
暂无商品
</view>
</view> </view>
<u-back-top :scroll-top="scrollTop"></u-back-top> <u-back-top :scroll-top="scrollTop"></u-back-top>
</view> </view>
@ -245,21 +242,6 @@
} }
} }
.noorder {
view {
text-align: center;
font-size: 40rpx;
color: #BFBFBF;
}
image {
display: block;
margin: 20% auto 50rpx;
width: 160rpx;
height: 200rpx;
}
}
.inputs { .inputs {
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03); box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border: 1px solid #f0f0f0; border: 1px solid #f0f0f0;

View File

@ -38,11 +38,8 @@
用力上滑加载更多 用力上滑加载更多
</view> </view>
</view> </view>
<view class="noorder" v-if='goodsList.length==0'> <view v-if='goodsList.length==0' style='margin-top: 100rpx;'>
<image src="../../static/noorder.png" mode=""></image> <u-empty text="暂无商品" mode="data" icon-size='220'></u-empty>
<view class="">
暂无商品
</view>
</view> </view>
</view> </view>
</view> </view>
@ -416,23 +413,6 @@
width: 100%; width: 100%;
} }
} }
}
.noorder {
view {
text-align: center;
font-size: 40rpx;
color: #BFBFBF;
}
image {
display: block;
margin: 20% auto 50rpx;
width: 160rpx;
height: 200rpx;
}
} }
} }
</style> </style>

View File

@ -14,7 +14,7 @@
<span class='addition'>请选择</span> <span class='addition'>请选择</span>
</view> </view>
<view class="worditem"> <view class="worditem">
<view class="today" @tap='todayindex=index' <view class="today" @tap='taptoday(item,index)'
:style="todayindex==index?'background: #FEF9F8;border: 1px solid #F44B2F;color: #F44B2F;':''" :style="todayindex==index?'background: #FEF9F8;border: 1px solid #F44B2F;color: #F44B2F;':''"
v-for="(item,index) in userlist.appointmentTimeList" :key="index"> v-for="(item,index) in userlist.appointmentTimeList" :key="index">
<span class="todaytime"> <span class="todaytime">
@ -77,55 +77,57 @@
} }
}, },
methods: { methods: {
taptoday(item, index) {
this.todayindex = index
this.updata.healthAppointDate = item.date
},
buy() { buy() {
var that = this
addHealthConsultationOrder(this.updata).then(res => { addHealthConsultationOrder(this.updata).then(res => {
res.data.payType = "WECHAT_PAY" res.data.payType = "WECHAT_PAY"
res.data.paymentPrice = res.data.totalPrice res.data.paymentPrice = res.data.totalPrice
res.data.openid = this.openid res.data.openid = this.openid
appletGoodsOrderPay(res.data).then(Response => { appletGoodsOrderPay(res.data).then(response => {
// if (response.code == 200) { if (response.code == 200) {
// uni.requestPayment({ uni.requestPayment({
// timeStamp: response.data.timeStamp, timeStamp: response.data.timeStamp,
// nonceStr: response.data.nonceStr, nonceStr: response.data.nonceStr,
// package: response.data.prepayId, package: response.data.prepayId,
// signType: response.data.signType, signType: response.data.signType,
// paySign: response.data.paySign, paySign: response.data.paySign,
// success: function(res) { success: function(res) {
// that.$refs.uToast.show({ that.$refs.uToast.show({
// title: '', title: '支付成功',
// type: 'success', type: 'success',
// duration: 1500, duration: 1500,
// url: `/pages/paysuccess/paysuccess` url: `/pages/paysuccess/paysuccess`
// }) })
// }, },
// fail: function(err) { fail: function(err) {
// that.$refs.uToast.show({ that.$refs.uToast.show({
// title: '', title: '取消支付',
// type: 'error', type: 'error',
// duration: 1500, duration: 1500,
// }) })
// } }
// }); });
// } else { } else {
// that.$refs.uToast.show({ that.$refs.uToast.show({
// title: response.msg, title: response.msg,
// type: 'error', type: 'error',
// duration: 2000 duration: 2000
// }) })
// } }
}) })
}) })
}, },
}, },
onShow() {}, onShow() {
onLoad(options) {
var that = this var that = this
this.updata.totalPrice = Number(options.price)
this.updata.hospitalPersonId = Number(options.hospitalPersonId)
const value = uni.getStorageSync('patientId'); const value = uni.getStorageSync('patientId');
const value2 = uni.getStorageSync('openid'); const value2 = uni.getStorageSync('openid');
if (value2) { if (value2) {
this.openid = value2 that.openid = value2
} }
if (value) { if (value) {
that.updata.patientId = value that.updata.patientId = value
@ -136,6 +138,11 @@
that.updata.healthAppointDate = res.data.appointmentTimeList[0].date that.updata.healthAppointDate = res.data.appointmentTimeList[0].date
}) })
} }
},
onLoad(options) {
var that = this
this.updata.totalPrice = Number(options.price)
this.updata.hospitalPersonId = Number(options.hospitalPersonId)
} }
} }
</script> </script>

View File

@ -3,20 +3,6 @@
.noorder { .noorder {
margin-top: 20%; 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 { .content {
width: 96%; width: 96%;

View File

@ -68,10 +68,7 @@
</view> </view>
</view> </view>
<view class="noorder" v-else> <view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image> <u-empty mode="coupon" icon-size='220'></u-empty>
<view class="">
暂无优惠券
</view>
</view> </view>
</view> </view>
<u-toast ref="uToast" /> <u-toast ref="uToast" />

View File

@ -5,20 +5,6 @@
} }
.noorder { .noorder {
margin-top: 20%; 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 { .information {
width: 70%; width: 70%;

View File

@ -44,10 +44,7 @@
</view> </view>
</view> </view>
<view class="noorder" v-else> <view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image> <u-empty mode="list" icon-size='220' text='暂无可兑换商品'></u-empty>
<view class="">
暂无可兑换商品
</view>
</view> </view>
<u-mask :show="gainshow" @click="gainshow = false"> <u-mask :show="gainshow" @click="gainshow = false">
<view class="mask" @click.stop=""> <view class="mask" @click.stop="">

View File

@ -55,7 +55,7 @@
<view class="time" v-if="item.useStatus!='RECEIVE'"> <view class="time" v-if="item.useStatus!='RECEIVE'">
有效期至{{item.expirationEndTime}} 有效期至{{item.expirationEndTime}}
</view> </view>
<view class="btn" v-if="item.useStatus=='RECEIVE'" @tap='logininfo'> <view class="btn" v-if="item.useStatus=='RECEIVE'" @tap='logininfo(item)'>
{{item.useStatus=='RECEIVE'?'领取':''}} {{item.useStatus=='RECEIVE'?'领取':''}}
</view> </view>
<view class="btngq" v-if="item.useStatus!='NOT_USED'&&item.useStatus!='RECEIVE'"> <view class="btngq" v-if="item.useStatus!='NOT_USED'&&item.useStatus!='RECEIVE'">
@ -74,10 +74,7 @@
</view> </view>
</view> </view>
<view class="noorder" v-else> <view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image> <u-empty mode="coupon" icon-size='220'></u-empty>
<view class="">
暂无
</view>
</view> </view>
</view> </view>
<u-mask :show="usershow" class='mask'> <u-mask :show="usershow" class='mask'>
@ -99,7 +96,8 @@
</template> </template>
<script> <script>
import { import {
couponByUseStatus couponByUseStatus,
insertCouponReceive
} from '@/api/materialbenefits/index.js' } from '@/api/materialbenefits/index.js'
import { import {
AppIdentification AppIdentification
@ -129,14 +127,20 @@
} }
}, },
methods: { methods: {
logininfo() { logininfo(item) {
console.log(item)
var that = this var that = this
const value = uni.getStorageSync('patientId'); const value = uni.getStorageSync('patientId');
const value2 = uni.getStorageSync('openid'); const value2 = uni.getStorageSync('openid');
if (value && value2) { if (value && value2) {
AppIdentification(value).then(res => { AppIdentification(value).then(res => {
if (res.code == 200) { if (res.code == 200) {
if (res.data.loginFlag) {} else { if (res.data.loginFlag) {
insertCouponReceive(value, item.id).then(res => {
that.getlist();
console.log(res)
})
} else {
this.usershow = true this.usershow = true
} }
} else { } else {
@ -158,6 +162,7 @@
} }
}, },
getlist() { getlist() {
this.pageNum = 1
couponByUseStatus(this.pageNum, this.pageSize, this.patientId).then(res => { couponByUseStatus(this.pageNum, this.pageSize, this.patientId).then(res => {
this.couponlist = res.rows this.couponlist = res.rows
this.total = res.total this.total = res.total
@ -209,21 +214,7 @@
padding: 0; padding: 0;
.noorder { .noorder {
margin-top: 20%; margin-top: 100rpx;
image {
display: block;
margin: 0 auto;
width: 200rpx;
height: 240rpx;
}
view {
margin-top: 100rpx;
text-align: center;
font-size: 36rpx;
color: #BFBFBF;
}
} }
.mask { .mask {

View File

@ -155,9 +155,9 @@
background-color: #ffffff; background-color: #ffffff;
.content { .content {
height: 500rpx;
position: relative; position: relative;
width: 100%; width: 100%;
height: 450rpx;
border-bottom: 1rpx solid #D8D4D4; border-bottom: 1rpx solid #D8D4D4;
.hospitalimage { .hospitalimage {
@ -185,13 +185,19 @@
} }
.words { .words {
position: absolute; white-space: normal;
left: 41rpx; word-break: break-all;
margin-left: 41rpx;
width: 85%; width: 85%;
top: 190rpx; margin-top: 190rpx;
text-indent: 2em; text-indent: 2em;
font-size: 30rpx; font-size: 30rpx;
line-height: 55rpx; line-height: 55rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
} }
.appointment { .appointment {

View File

@ -30,7 +30,9 @@
<view class="righttabbar"> <view class="righttabbar">
<view class="productlist" @touchstart="start" @touchend="end" @touchmove="move"> <view class="productlist" @touchstart="start" @touchend="end" @touchmove="move">
<view class="content" v-for="(item,index) in HospitalPersonlist" :key="item.id"> <view class="content" v-for="(item,index) in HospitalPersonlist" :key="item.id">
<image class="hospitalimage" :src="baseurl+personPictureUrl" mode=""></image> <image class="hospitalimage" v-if="item.personPictureUrl"
:src="baseurl+item.personPictureUrl" mode=""></image>
<image class="hospitalimage" v-else src="@/static/yis.png" mode=""></image>
<view class="hospitalteacher">{{item.personName}}</view> <view class="hospitalteacher">{{item.personName}}</view>
<view class="physician"> <view class="physician">
{{ item.academicTitle=='CHIEF_PHYSICIAN'?'主任医师':''}} {{ item.academicTitle=='CHIEF_PHYSICIAN'?'主任医师':''}}
@ -162,6 +164,10 @@
}) })
this.departmentId = this.hospitalDepartmentList[0].departmentId this.departmentId = this.hospitalDepartmentList[0].departmentId
this.selectHospitalPersonInfo(); this.selectHospitalPersonInfo();
if (this.swiperImgUrls.length == 0) {
var img = baseurl + '/profile/appletPicture/healthy.png'
this.swiperImgUrls.push(img)
}
}) })
}, },
swiperChange(e) { swiperChange(e) {
@ -210,7 +216,7 @@
if (res.data.loginFlag) { if (res.data.loginFlag) {
that.usershow = false that.usershow = false
uni.navigateTo({ uni.navigateTo({
url: `/pages/Informationconfirmation/Informationconfirmation?price=${item.consultingFee}&&hospitalPersonId=${item.id}` url: `/pages/confirmation/confirmation?price=${item.consultingFee}&hospitalPersonId=${item.id}`
}) })
} else { } else {
that.usershow = true that.usershow = true

View File

@ -82,17 +82,6 @@
padding-bottom: 60rpx; padding-bottom: 60rpx;
.noorder{ .noorder{
margin-top: 90rpx; margin-top: 90rpx;
image{
display: block;
margin: 0 auto;
width: 100rpx;
height: 120rpx;
}
view{
text-align: center;
font-size: 36rpx;
color: #BFBFBF;
}
} }
.item { .item {
width: 100%; width: 100%;

View File

@ -116,10 +116,7 @@
</view> </view>
</view> </view>
<view class="noorder" v-if='servelist.length==0&&choicetab==false'> <view class="noorder" v-if='servelist.length==0&&choicetab==false'>
<image src="../../static/noorder.png" mode=""></image> <u-empty mode="list" icon-size='220' text='暂无服务项目'></u-empty>
<view class="">
暂无服务项目
</view>
</view> </view>
<view class="" v-if="productlist.length>0&&choicetab"> <view class="" v-if="productlist.length>0&&choicetab">
<view class="item" v-show='choicetab' v-for="(item,index) in productlist" :key="index"> <view class="item" v-show='choicetab' v-for="(item,index) in productlist" :key="index">
@ -133,10 +130,7 @@
</view> </view>
</view> </view>
<view class="noorder" v-if="productlist.length==0&&choicetab"> <view class="noorder" v-if="productlist.length==0&&choicetab">
<image src="../../static/noorder.png" mode=""></image> <u-empty mode="list" icon-size='220' text='暂无产品'></u-empty>
<view class="">
暂无产品
</view>
</view> </view>
</view> </view>
</view> </view>

View File

@ -99,17 +99,6 @@
height: 100%; height: 100%;
.noorder{ .noorder{
margin-top: 90rpx; margin-top: 90rpx;
image{
display: block;
margin: 0 auto;
width: 100rpx;
height: 120rpx;
}
view{
text-align: center;
font-size: 36rpx;
color: #BFBFBF;
}
} }
.title{ .title{
font-size: 32rpx; font-size: 32rpx;

View File

@ -48,10 +48,7 @@
</view> </view>
</view> </view>
<view class="noorder" v-else> <view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image> <u-empty mode="list" icon-size='220' text='暂无护理站'></u-empty>
<view class="">
暂无护理站
</view>
</view> </view>
</view> </view>
<view class="masks" style="" v-if="mask"> <view class="masks" style="" v-if="mask">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

BIN
static/yis.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB