名医精彩

This commit is contained in:
liuyuan
2025-06-20 17:40:41 +08:00
parent a26581fd81
commit 6dd6e9d213
59 changed files with 12940 additions and 86 deletions

View File

@@ -27,21 +27,94 @@
<text v-else>{{item.aiBuyConfig.fee}}</text>
</view>
</view>
<view class="order_infor" v-if="item.orderType=='point'">
<view class="left">
<image class="feng fengPoint" src="/static/icon/pay_3.png" mode="aspectFill"></image>
<text>充值 {{item.bookBuyConfigEntity.money}}天医币</text>
</view>
</view>
<view class="order_infor" v-if="item.orderType=='relearn'">
<view class="left">
<image class="feng fengPoint" src="/static/icon/fugou.png" mode="aspectFill"></image>
<view class="btns flexbox">
<view class="booknameleft" style=" padding-left: 20rpx;">
{{ item.remark }}
</view>
</view>
</view>
</view>
<view class="order_infor" v-if="item.orderType=='order'">
<view v-for="(item2, index2) in item.productList"
:key="item.orderId" class="bookinfolist">
<view class="left">
<view class="feng" v-if="item2.product && item2.product.productImages">
<image style="width: 100%; height: 100%"
mode="aspectFit" :src="item2.product.productImages"></image>
</view>
<view v-else class="feng" style="
color: #c0c4cc;
font-size: 22rpx;
line-height: 140rpx;
text-align: center;
">暂无封面图</view>
<view class="btns flexbox" style=" width: calc(100% - 150rpx);">
<view class="booknameleft">
{{ item2.product && item2.product.productName ? item2.product.productName : "" }}</view>
<view style="
line-height: 58rpx;
color: #333;
font-size: 26rpx;
font-weight: 700;
">
<text style="font-size: 20rpx"></text>
<text v-if="item2.product.price>=0">{{item2.product.price}}</text>
</view>
</view>
</view>
<view class="btns flexbox">
<view class="left" style="color: #c0c4cc"></view>
<view class="right flexbox opbtns" style="color: #c0c4cc">
×{{ item2.quantity ? item2.quantity : "" }}
</view>
</view>
</view>
</view>
<view class="order_price">实付款
<view class="left">
<text v-if="item.realMoney && item.realMoney > 0">
{{ item.realMoney }}
</text>
<text v-if="item.realMoney==0&&item.jfDeduction==0">
0
<view
style="
line-height: 46rpx;
color: #333;
font-size: 30rpx;
font-weight: 700;
"
>
<text v-if="item.orderType == 'point'">
{{ item.bookBuyConfigEntity.realMoney }}
</text>
<text v-if="item.orderType != 'point'">
<text v-if="item.realMoney && item.realMoney > 0">
{{ item.realMoney }}
</text>
<text v-if="item.realMoney==0&&item.jfDeduction==0">
0
</text>
<text
style="margin: 0 4rpx"
v-if="
item.realMoney > 0 &&
item.jfDeduction > 0
"
>
+
</text>
</text>
<text v-if="item.realMoney > 0 && item.jfDeduction > 0">
+
</text>
<text v-if="item.jfDeduction > 0">{{ item.jfDeduction }} 积分</text>
<text v-if="item.jfDeduction > 0">{{ item.jfDeduction }} 积分</text>
</view>
</view>
<text class="order_time">下单时间:{{item.createTime}}</text>
@@ -73,10 +146,10 @@ export default {
}
},
onLoad() {
this.getData();
},
onShow() {
this.getData();
},
computed: {
...mapState(["userInfo"]),
@@ -90,7 +163,7 @@ export default {
var params = {
userId: this.userInfo.id,
come: '4',
orderStatus: 3,
orderStatus: '',
...this.pagination
}
this.$http.request({
@@ -246,7 +319,7 @@ export default {
.item_top{
position: absolute;
top: 75rpx;
top: 70rpx;
right: 30rpx;
font-size: 24rpx;
font-weight: normal;
@@ -309,8 +382,8 @@ export default {
padding: 0 15rpx;
line-height: 45rpx;
font-size: 24rpx;
color: #999;
border: 1px solid #999;
color: red;
border: 1px solid red;
border-radius: 30rpx;
}
@@ -321,4 +394,43 @@ export default {
color: #999;
padding-top: 150rpx;
}
.feng {
background-color: #fafafa;
margin: 0rpx 22rpx 0 0;
height: 140rpx;
width: 140rpx;
float: left;
border-radius: 14rpx;
flex-shrink: 0;
}
.btns{
font-size: 30rpx;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
}
.opbtns{
font-weight: normal;
font-size: 28rpx;
}
.order_infor {
.bookinfolist {
width: 100%;
margin-bottom: 20rpx;
overflow: hidden;
}
.bookinfolist:nth-last-child(1) {
margin-bottom: 0 !important;
}
.operation_box {
position: absolute;
bottom: 20rpx;
left: 40rpx;
}
}
</style>