2.23 更新
This commit is contained in:
@@ -12,6 +12,7 @@ Page({
|
||||
result: [],
|
||||
order_list:[],
|
||||
current_page: 0,
|
||||
amount_total:0,
|
||||
total: 0,
|
||||
per_page: 10,
|
||||
last_page: 0,
|
||||
@@ -82,6 +83,7 @@ Page({
|
||||
order_list: list.concat(response.data.data),
|
||||
current_page: response.data.current_page,
|
||||
per_page: response.data.per_page,
|
||||
total: response.data.total,
|
||||
last_page: response.data.last_page
|
||||
})
|
||||
}
|
||||
@@ -102,5 +104,15 @@ Page({
|
||||
console.log(select_order_inquiry_id);
|
||||
let order_inquiry_ids = select_order_inquiry_id.join(",");
|
||||
app.go("/user/pages/yishi/cash/index?order_inquiry_ids="+order_inquiry_ids);
|
||||
},
|
||||
goback(){
|
||||
wx.navigateBack()
|
||||
},
|
||||
onLoad(options){
|
||||
this.setData({
|
||||
amount_total:options.amount_total
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
@@ -5,14 +5,14 @@
|
||||
<view class="order_item" wx:for="{{order_list}}">
|
||||
<view class="order_item_content" data-index="{{index}}" bindtap="selectOrder">
|
||||
<!-- (1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药) -->
|
||||
<view class="order_item_content_top">{{item.inquiry_type==1?'专家问诊':item.inquiry_type==2?'快速问诊':item.inquiry_type==3?'公益问诊':item.inquiry_type==4?'问诊购药':item.inquiry_type==5?'糖组检测':'未知'}}</view>
|
||||
<view class="order_item_content_top">{{item.inquiry_type==1 && item.inquiry_mode==1?'在线问诊-图文':item.inquiry_type==1 && item.inquiry_mode==2?'在线问诊-视频':item.inquiry_type==1 && item.inquiry_mode==6?'疑难会诊':item.inquiry_type==2?'快速问诊':item.inquiry_type==3?'公益问诊':item.inquiry_type==4?'问诊购药':item.inquiry_type==5?'糖组检测':'未知'}}</view>
|
||||
<view class="order_item_content_data">
|
||||
<view class="order_id">订单编号:<text style="font-size: 30rpx;color: #666666;">{{item.inquiry_no }}</text></view>
|
||||
<view class="order_id">就诊患者:<text style="font-size: 30rpx;color: #666666;">{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁)</text></view>
|
||||
<view class="order_id">接诊时间:<text style="font-size: 30rpx;color: #666666;">{{item.reception_time}}</text></view>
|
||||
<view class="order_id">结束时间:<text style="font-size: 30rpx;color: #666666;">{{item.finish_time}}</text></view>
|
||||
<view class="order_id">订单金额:<text style="font-size: 30rpx;color: #666666;">¥{{item.amount_total}}</text></view>
|
||||
<view class="order_id">预计收入:<text style="font-size: 30rpx;color: #666666;">¥{{item.expected_amount_total}}</text></view>
|
||||
<view class="order_id">订单编号:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.inquiry_no }}</text></view>
|
||||
<view class="order_id">就诊患者:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.patient_name}}({{item.patient_sex==1?'男':'女'}},{{item.patient_age}}岁)</text></view>
|
||||
<view class="order_id">接诊时间:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.reception_time}}</text></view>
|
||||
<view class="order_id">结束时间:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">{{item.finish_time}}</text></view>
|
||||
<view class="order_id">订单金额:<text style="font-size: 30rpx;color: rgba(0,0,0,0.85);">¥{{item.amount_total}}</text></view>
|
||||
<view class="order_id"><text decode>入账<text style="opacity: 0;">入账</text>:</text><text style="font-size: 30rpx;color: #FF5D2E;">{{item.amount_total}}*0.75元</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -20,4 +20,8 @@
|
||||
<van-empty description="暂无数据" wx:if="{{order_list.length == 0}}" />
|
||||
<van-divider contentPosition="center" wx:if="{{order_list.length > 0 && current_page == last_page}}">到底了~</van-divider>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom">
|
||||
<view class="left">共{{total}}个订单,金额:<text class="money">¥{{amount_total}}元</text></view>
|
||||
<view class="right" bind:tap="goback">确定</view>
|
||||
</view>
|
||||
@@ -3,7 +3,8 @@ page{
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
padding-bottom: 50rpx;
|
||||
padding-bottom: 100rpx;
|
||||
|
||||
}
|
||||
.order_list{
|
||||
display: flex;
|
||||
@@ -27,24 +28,34 @@ page{
|
||||
border-radius: 20rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 20rpx;
|
||||
height: 400rpx;
|
||||
|
||||
|
||||
}
|
||||
.order_item_content_top{
|
||||
flex: 1;
|
||||
font-size: 32rpx;
|
||||
padding:20rpx;
|
||||
|
||||
font-weight: 500;
|
||||
color: rgba(0,0,0,0.85);
|
||||
border-bottom: 1px solid #E5E5E5;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 36rpx;
|
||||
|
||||
}
|
||||
.order_item_content_data{
|
||||
padding:20rpx;
|
||||
margin-top: 10rpx;
|
||||
flex: 3;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.order_id{
|
||||
margin-top: 10rpx;
|
||||
flex: 1;
|
||||
color: rgba(0,0,0,0.45);
|
||||
display: flex;
|
||||
line-height: 48rpx;
|
||||
align-items: center;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
@@ -79,3 +90,34 @@ page{
|
||||
}
|
||||
|
||||
|
||||
.bottom{
|
||||
width:100%;
|
||||
height: 102rpx;
|
||||
background: #FFFFFF;
|
||||
box-shadow: inset 0rpx 1rpx 0rpx 0rpx rgba(0,0,0,0.08);
|
||||
position: fixed;
|
||||
bottom:-50rpx;
|
||||
display: flex;
|
||||
}
|
||||
.bottom .left{
|
||||
padding:0 32rpx;
|
||||
flex:1;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
.bottom .money{
|
||||
color: #FF0000;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.bottom .right{
|
||||
width: 208rpx;
|
||||
height: 102rpx;
|
||||
font-size: 34rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
background: linear-gradient(310deg, #FF931A 0%, #FF931A 0%, #FCB75D 100%);
|
||||
}
|
||||
Reference in New Issue
Block a user