|
|
|
|
@ -7,14 +7,18 @@
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="orderBoxInfo flex-col">
|
|
|
|
|
<view class="orderBoxInfoRow flex-row">
|
|
|
|
|
<view class="orderBoxInfoRow flex-row" >
|
|
|
|
|
<text class="iconfont icon-youkexuzhi"></text>
|
|
|
|
|
<text class="orderBoxInfoRowTxt">活动名称:{{info.activity.name||"加载中..."}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="orderBoxInfoRow flex-row" style="margin-top: 20rpx;">
|
|
|
|
|
<text class="iconfont icon-shijian"></text>
|
|
|
|
|
<text
|
|
|
|
|
class="orderBoxInfoRowTxt">活动时间:{{timeFormat(info.activity.start_time, 'MM月DD日')}}{{getHm(info.activity.start_time)}}-{{getHm(info.activity.end_time)}}</text>
|
|
|
|
|
class="orderBoxInfoRowTxt">活动时间:{{timeFormat(tstart_time, 'MM月DD日')}}{{timeFormat(tstart_time,"HH:mm")}}-{{timeFormat(tend_time,"HH:mm")}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="orderBoxInfoRow flex-row" style="margin-top: 20rpx;">
|
|
|
|
|
<text class="iconfont icon-renshu"></text>
|
|
|
|
|
<text class="orderBoxInfoRowTxt">活动人数:{{info.total}}</text>
|
|
|
|
|
<text class="orderBoxInfoRowTxt">活动人数:{{info.total||""}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
@ -30,7 +34,7 @@
|
|
|
|
|
<view v-if="info.type==1" class="orderBoxInfo flex-col ewmcode">
|
|
|
|
|
<text>入场码:{{info.code}}-0</text>
|
|
|
|
|
<view>
|
|
|
|
|
<view class="imgs" >
|
|
|
|
|
<view class="imgs">
|
|
|
|
|
<view :class="info.status!=1?'isuse':''">
|
|
|
|
|
<cover-image v-if="info.status==2" src="../../static/img/used.png" alt=""></cover-image>
|
|
|
|
|
<!-- <img v-if="info.status!=1" src="../../static/img/used.png" alt=""> -->
|
|
|
|
|
@ -43,10 +47,11 @@
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <text class="ewminfo">{{isuse?'已使用':'请前往现场核销订单二维码'}}</text> -->
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="info.type==2" class="orderBoxInfo flex-col ewmcode" :key='index' v-for="(item,index) in detailsinfo">
|
|
|
|
|
<view v-if="info.type==2" class="orderBoxInfo flex-col ewmcode" :key='index'
|
|
|
|
|
v-for="(item,index) in detailsinfo">
|
|
|
|
|
<text>入场码:{{info.code}}-{{item.code}}</text>
|
|
|
|
|
<view>
|
|
|
|
|
<view class="imgs" >
|
|
|
|
|
<view class="imgs">
|
|
|
|
|
<view :class="item.status!=1?'isuse':''">
|
|
|
|
|
<cover-image v-if="info.status==2" src="../../static/img/used.png" alt=""></cover-image>
|
|
|
|
|
|
|
|
|
|
@ -119,11 +124,13 @@
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
info: {},
|
|
|
|
|
detailsinfo:[],
|
|
|
|
|
showview:false,
|
|
|
|
|
optionid:"",
|
|
|
|
|
timers:"",
|
|
|
|
|
isused:false,
|
|
|
|
|
detailsinfo: [],
|
|
|
|
|
showview: false,
|
|
|
|
|
optionid: "",
|
|
|
|
|
timers: "",
|
|
|
|
|
isused: false,
|
|
|
|
|
tstart_time:"",
|
|
|
|
|
tend_time:""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
@ -134,9 +141,9 @@
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
var that = this
|
|
|
|
|
this.timers = setInterval(function(){
|
|
|
|
|
this.timers = setInterval(function() {
|
|
|
|
|
that.loadInfo(that.optionid);
|
|
|
|
|
},4000)
|
|
|
|
|
}, 4000)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onHide() {
|
|
|
|
|
@ -147,9 +154,9 @@
|
|
|
|
|
clearInterval(this.timers)
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
qrFun: function(text,qrcode) {
|
|
|
|
|
qrFun: function(text, qrcode) {
|
|
|
|
|
var id = "qrcode";
|
|
|
|
|
if(qrcode){
|
|
|
|
|
if (qrcode) {
|
|
|
|
|
id = qrcode
|
|
|
|
|
}
|
|
|
|
|
uQRCode.make({
|
|
|
|
|
@ -174,27 +181,30 @@
|
|
|
|
|
data: {
|
|
|
|
|
id: id
|
|
|
|
|
},
|
|
|
|
|
customLoading: true,
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
that.info = res;
|
|
|
|
|
that.detailsinfo = res.details;
|
|
|
|
|
if(res.status!=1){
|
|
|
|
|
that.tstart_time=that.info.activity.start_time;
|
|
|
|
|
that.tend_time=that.info.activity.end_time;
|
|
|
|
|
if (res.status != 1) {
|
|
|
|
|
clearInterval(that.timers)
|
|
|
|
|
}
|
|
|
|
|
if(res.type==1){
|
|
|
|
|
that.qrFun(res.code+"-"+"0");
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
if (res.type == 1) {
|
|
|
|
|
that.qrFun(res.code + "-" + "0");
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
that.showview = true
|
|
|
|
|
},500)
|
|
|
|
|
}, 500)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if(res.type==2){
|
|
|
|
|
for(var i=0;i<res.details.length;i++){
|
|
|
|
|
that.qrFun(res.code+"-"+res.details[i].code,'qrcode'+i);
|
|
|
|
|
if (res.type == 2) {
|
|
|
|
|
for (var i = 0; i < res.details.length; i++) {
|
|
|
|
|
that.qrFun(res.code + "-" + res.details[i].code, 'qrcode' + i);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
that.showview = true
|
|
|
|
|
},500)
|
|
|
|
|
}, 500)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -208,13 +218,10 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getHm(val) {
|
|
|
|
|
if (val) {
|
|
|
|
|
return this.$moment(val).format("hh:MM")
|
|
|
|
|
} else return "";
|
|
|
|
|
},
|
|
|
|
|
timeFormat(time, format) {
|
|
|
|
|
if (time) {
|
|
|
|
|
return this.$moment(time).format(format)
|
|
|
|
|
} else return "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -306,7 +313,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.orderBoxInfoRowTxt {
|
|
|
|
|
font-size: 30rpx!important;
|
|
|
|
|
font-size: 30rpx !important;
|
|
|
|
|
font-family: PingFang SC;
|
|
|
|
|
color: #828282;
|
|
|
|
|
}
|
|
|
|
|
@ -320,7 +327,7 @@
|
|
|
|
|
|
|
|
|
|
.p0 {
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
border-left:32rpx solid #ef9525
|
|
|
|
|
border-left: 32rpx solid #ef9525
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ewmcode {
|
|
|
|
|
@ -329,7 +336,7 @@
|
|
|
|
|
text-align: left;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
margin-left: 18rpx;
|
|
|
|
|
padding-bottom:0;
|
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.imgs {
|
|
|
|
|
@ -339,11 +346,12 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.imgs view{
|
|
|
|
|
.imgs view {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.imgs cover-image {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 200rpx;
|
|
|
|
|
@ -353,24 +361,28 @@
|
|
|
|
|
right: 0rpx;
|
|
|
|
|
bottom: 0rpx;
|
|
|
|
|
}
|
|
|
|
|
.imgs canvas{
|
|
|
|
|
|
|
|
|
|
.imgs canvas {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
.imgsname{
|
|
|
|
|
|
|
|
|
|
.imgsname {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-left: 15rpx;
|
|
|
|
|
}
|
|
|
|
|
.imgs text{
|
|
|
|
|
|
|
|
|
|
.imgs text {
|
|
|
|
|
display: block;
|
|
|
|
|
/* margin-left: 40rpx; */
|
|
|
|
|
}
|
|
|
|
|
.imgs .isuse cover-view{
|
|
|
|
|
|
|
|
|
|
.imgs .isuse cover-view {
|
|
|
|
|
/* opacity: .4; */
|
|
|
|
|
background-color: rgba(255,255,255,0.6);
|
|
|
|
|
background-color: rgba(255, 255, 255, 0.6);
|
|
|
|
|
width: 170px;
|
|
|
|
|
height:170px;
|
|
|
|
|
height: 170px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ewminfo {
|
|
|
|
|
|