|
|
|
@ -55,6 +55,12 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="margin-top: 60rpx;display: flex;justify-content: center;" v-if="$isRight(order_details) && order_details.status == 2"> |
|
|
|
<view class="lf-flex-column"> |
|
|
|
<lf-qrcode :options="config.qrc"></lf-qrcode> |
|
|
|
<view class="lf-font-28 lf-row-center" style="color: #15716E;">{{order_details.status_text}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="card" v-if="type == 'point'"> |
|
|
|
<view class="lf-row-between lf-font-28"> |
|
|
|
<text class="lf-color-777">积分数量</text> |
|
|
|
@ -185,6 +191,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import lfQrcode from '@/components/lf-code/lf-qrcode.vue'; |
|
|
|
import countdownTimer from '@/components/countdown-timer/countdown-timer'; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
@ -195,15 +202,41 @@ |
|
|
|
order_details: '', |
|
|
|
countdown_minute: '', |
|
|
|
time: '', |
|
|
|
show: false |
|
|
|
show: false, |
|
|
|
pick_type: 0, |
|
|
|
config: { |
|
|
|
bar: { |
|
|
|
code: 'E01181016286106', |
|
|
|
color: '#000', // 条形码的颜色 |
|
|
|
bgColor: '#FFFFFF', // 背景色 |
|
|
|
width: 586, // 宽度 |
|
|
|
height: 210 // 高度 |
|
|
|
}, |
|
|
|
qrc: { |
|
|
|
code: "", |
|
|
|
size: 352, // 二维码大小 |
|
|
|
level: 4, //等级 0~4 |
|
|
|
bgColor: '#FFFFFF', //二维码背景色 默认白色 |
|
|
|
// border: { |
|
|
|
// color: ['#8A2387', '#F27121'], //边框颜色支持渐变色 |
|
|
|
// lineWidth: 3, //边框宽度 |
|
|
|
// }, |
|
|
|
// img: '/static/logo.png', //图片 |
|
|
|
// iconSize: 40, //二维码图标的大小 |
|
|
|
color: '#000000', //边框颜色支持渐变色 |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { |
|
|
|
countdownTimer |
|
|
|
countdownTimer, |
|
|
|
lfQrcode |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
this.type = options.type || this.type; |
|
|
|
this.order_no = options.order_id; |
|
|
|
this.pick_type = options.pick_type; |
|
|
|
console.log('字体',this.pick_type) |
|
|
|
if (this.order_no) { |
|
|
|
this.getOrderDetails(); |
|
|
|
} |
|
|
|
@ -280,6 +313,10 @@ |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
this.order_details = res.data.data |
|
|
|
this.config.qrc.code = JSON.stringify({ |
|
|
|
u_id: this.order_details.user_id, |
|
|
|
no: this.order_details.order_no |
|
|
|
}) |
|
|
|
var date = this.getTime() |
|
|
|
this.time = new Date(this.order_details.will_closed_at).getTime() - new Date(date).getTime() |
|
|
|
if(this.time > 0) { |
|
|
|
|