Browse Source

add write off events

organize
刘嘉炜 3 years ago
parent
commit
f31523089e
  1. 6
      src/pages.json
  2. 1
      src/pages/write_off/confirm_order/confirm_order.vue
  3. 138
      src/pages/write_off/events_order/events_order.vue
  4. 6
      src/pages/write_off/operate/operate.vue

6
src/pages.json

@ -134,6 +134,12 @@
} }
}, },
{ {
"path": "pages/write_off/events_order/events_order",
"style": {
"navigationBarTitleText": "核销订单"
}
},
{
"path": "pages/write_off/mall/success/success", "path": "pages/write_off/mall/success/success",
"style": { "style": {
"navigationBarTitleText": "核销订单" "navigationBarTitleText": "核销订单"

1
src/pages/write_off/confirm_order/confirm_order.vue

@ -1,4 +1,5 @@
<template> <template>
<!-- 场地/次卡订单 -->
<view class="confirm-order"> <view class="confirm-order">
<view class="co-container"> <view class="co-container">
<view class="c-store-name">{{orderInfo.stadium_name || '-'}}</view> <view class="c-store-name">{{orderInfo.stadium_name || '-'}}</view>

138
src/pages/write_off/events_order/events_order.vue

@ -0,0 +1,138 @@
<template>
<view class="events-order">
<view class="eo-main">
<view class="em-info">
<view class="ei-title">欧轩智能羽毛球馆(永泰店)</view>
<view class="ei-line-box">
<view class="elb-line">
<view class="el-name">订单编号</view>
<view class="el-txt">20195175645666</view>
<view class="el-tag">(赛事)</view>
</view>
<view class="elb-line">
<view class="el-name">用户昵称</view>
<view class="el-txt">周大强</view>
</view>
<view class="elb-line">
<view class="el-name">验证码</view>
<view class="el-txt">200525458978</view>
</view>
<view class="elb-line">
<view class="el-name">赛事名称</view>
<view class="el-txt">篮球比赛</view>
</view>
<view class="elb-line">
<view class="el-name">赛事类型</view>
<view class="el-txt">个人赛</view>
</view>
<view class="elb-line">
<view class="el-name">进场时间</view>
<view class="el-txt">2019-05-18 11:00-12:00</view>
</view>
</view>
</view>
<view class="em-border"></view>
<view class="em-btn">
<view hover-class="hover-active">确认核销</view>
</view>
</view>
</view>
</template>
<script>
export default {
}
</script>
<style lang="scss">
@import '~style/public.scss';
page{
background-color: $themeColor;
}
.events-order{
padding: 46upx 24upx;
.eo-main{
border-radius: 10upx;
background-color: #fff;
.em-info{
padding: 0 40upx 46upx;
.ei-title{
padding: 30upx 0;
text-align: center;
font-size: 32upx;
font-weight: 500;
line-height: 44upx;
color: #1a1a1a;
border-bottom: 2upx solid #D8D8D8;
}
.ei-line-box{
padding-top: 20upx;
.elb-line{
@include centerFlex(flex-start);
>view{
font-size: 28upx;
line-height: 60upx;
}
.el-name{
flex-shrink: 0;
color: #9c9c9f;
}
.el-txt{
color: #1a1a1a;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.el-tag{
margin-left: 10upx;
color: $themeColor;
flex-shrink: 0;
}
}
}
}
.em-border{
position: relative;
border-bottom: 2upx dashed #d8d8d8;
&::after{
content: '';
position: absolute;
left: -10upx;
top: -10upx;
display: block;
width: 20upx;
height: 20upx;
border-radius: 10upx;
background-color: $themeColor;
}
&::before{
content: '';
position: absolute;
right: -10upx;
top: -10upx;
display: block;
width: 20upx;
height: 20upx;
border-radius: 10upx;
background-color: $themeColor;
}
}
.em-btn{
padding: 60upx 40upx;
>view{
height: 112upx;
line-height: 112upx;
text-align: center;
font-size: 32upx;
border-radius: 10upx;
color: #fff;
background-color: $themeColor;
}
}
}
}
</style>

6
src/pages/write_off/operate/operate.vue

@ -111,11 +111,6 @@ export default {
let { iptCode } = this; let { iptCode } = this;
if(!iptCode)return util.showNone('请输入核销码!'); if(!iptCode)return util.showNone('请输入核销码!');
this.analysisOrder({ verify_code: this.iptCode }); this.analysisOrder({ verify_code: this.iptCode });
return
let _timeSta = new Date().getTime();
if(_timeSta%3 == 0)return util.routeTo(`/pages/write_off/confirm_order/confirm_order`, 'nT');
if(_timeSta%2 < 1)return util.routeTo(`/pages/write_off/null/null`, 'nT');
return util.routeTo(`/pages/write_off/confirm_order/confirm_order`, 'nT');
}, 300, true), }, 300, true),
@ -186,6 +181,7 @@ export default {
util.routeTo(`/pages/write_off/ym_confirm/ym_confirm?type=${vType}`, 'nT'); util.routeTo(`/pages/write_off/ym_confirm/ym_confirm?type=${vType}`, 'nT');
return return
} }
util.$_emit(WRITE_OFF_ORDER_INFO, {..._data}); util.$_emit(WRITE_OFF_ORDER_INFO, {..._data});
util.routeTo(`/pages/write_off/confirm_order/confirm_order?type=${vType}`, 'nT'); util.routeTo(`/pages/write_off/confirm_order/confirm_order?type=${vType}`, 'nT');
}else{ }else{

Loading…
Cancel
Save