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'
})
}
//领取
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"
}
},{
"path" : "pages/Informationconfirmation/Informationconfirmation",
"path" : "pages/confirmation/confirmation",
"style" :
{
"navigationBarTitleText": "",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -38,10 +38,7 @@
</view>
</view>
<view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image>
<view class="">
暂无服务订单
</view>
<u-empty mode="list" icon-size='220' text='暂无服务订单'></u-empty>
</view>
<u-toast ref="uToast" />
<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>
</view>
<view class="noorder" v-if='goodsList.length==0'>
<image src="../../static/noorder.png" mode=""></image>
<view class="">
暂无商品
</view>
<view style='margin-top:90rpx' v-else>
<u-empty mode="list" icon-size='220' text='暂无商品'></u-empty>
</view>
<u-back-top :scroll-top="scrollTop"></u-back-top>
</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 {
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border: 1px solid #f0f0f0;

View File

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

View File

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

View File

@ -3,20 +3,6 @@
.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%;

View File

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

View File

@ -5,20 +5,6 @@
}
.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%;

View File

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

View File

@ -55,7 +55,7 @@
<view class="time" v-if="item.useStatus!='RECEIVE'">
有效期至{{item.expirationEndTime}}
</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'?'领取':''}}
</view>
<view class="btngq" v-if="item.useStatus!='NOT_USED'&&item.useStatus!='RECEIVE'">
@ -74,10 +74,7 @@
</view>
</view>
<view class="noorder" v-else>
<image src="../../static/noorder.png" mode=""></image>
<view class="">
暂无
</view>
<u-empty mode="coupon" icon-size='220'></u-empty>
</view>
</view>
<u-mask :show="usershow" class='mask'>
@ -99,7 +96,8 @@
</template>
<script>
import {
couponByUseStatus
couponByUseStatus,
insertCouponReceive
} from '@/api/materialbenefits/index.js'
import {
AppIdentification
@ -129,14 +127,20 @@
}
},
methods: {
logininfo() {
logininfo(item) {
console.log(item)
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) {} else {
if (res.data.loginFlag) {
insertCouponReceive(value, item.id).then(res => {
that.getlist();
console.log(res)
})
} else {
this.usershow = true
}
} else {
@ -158,6 +162,7 @@
}
},
getlist() {
this.pageNum = 1
couponByUseStatus(this.pageNum, this.pageSize, this.patientId).then(res => {
this.couponlist = res.rows
this.total = res.total
@ -209,21 +214,7 @@
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;
}
margin-top: 100rpx;
}
.mask {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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