shop_uniapp/bundle_b/pages/local_verify/index.vue

108 lines
2.3 KiB
Vue
Raw Normal View History

2024-10-02 20:20:51 +08:00
<template>
<view class="content">
<u-navbar id="navbar" :border-bottom="false" :background="{ background: 'rgba(256,256,256, 0)'}"
:back-bg="'rgba(0, 0, 0, 0.2)'" back-icon-color="rgba(256, 256, 256, 1)" :immersive="true">
</u-navbar>
<view class="scan">
2024-10-03 19:40:57 +08:00
<view class="scan-block" @click="scanCode">
2024-10-02 20:20:51 +08:00
<view class="scan-item">
<u-icon name="scan" size="128"></u-icon>
2024-10-03 19:40:57 +08:00
<view class="m-t-10">扫一扫核销</view>
2024-10-02 20:20:51 +08:00
</view>
</view>
2024-10-03 19:40:57 +08:00
2024-10-02 20:20:51 +08:00
<view class="item flex row-between">
<view class="ele">
<router-link to="/bundle_b/pages/local_verify/order">
2024-11-15 16:09:39 +08:00
<u-image class="image m-t-10" :src="aliOSS + 'uniapp/bundle_b/hxdd.png'" width="60rpx"
2024-10-03 19:40:57 +08:00
height="60rpx"></u-image>
2024-10-02 20:20:51 +08:00
<view class="lg bold m-t-20">核销订单</view>
</router-link>
</view>
2024-10-03 19:40:57 +08:00
2024-10-02 20:20:51 +08:00
<view class="ele">
2024-10-03 19:40:57 +08:00
<router-link to="/bundle_b/pages/local_verify/shop">
2024-11-15 16:09:39 +08:00
<u-image class="image m-t-10" :src="aliOSS + 'uniapp/bundle_b/bdsj.png'" width="60rpx"
2024-10-03 19:40:57 +08:00
height="60rpx"></u-image>
<view class="lg bold m-t-20">已绑商家</view>
</router-link>
2024-10-02 20:20:51 +08:00
</view>
</view>
</view>
</view>
</template>
<script>
2024-10-03 19:40:57 +08:00
import {dispose} from '@/api/local_store.js'
2024-10-02 20:20:51 +08:00
export default {
data() {
return {
2024-10-03 19:40:57 +08:00
2024-10-02 20:20:51 +08:00
}
},
methods: {
scanCode() {
uni.scanCode({
2024-10-03 19:40:57 +08:00
success: (res) => {
const json = JSON.parse(res.result)
dispose({lsg_order_id: json.lsg_order_id}).then((res) => {
if (res.code == 1) {
uni.showModal({
title: '核销成功',
content: '订单已成功核销!'
})
}
})
2024-10-02 20:20:51 +08:00
}
2024-10-03 19:40:57 +08:00
});
2024-10-02 20:20:51 +08:00
}
}
}
</script>
<style lang="scss" scoped>
.scan {
margin-top: 200rpx;
width: 100%;
text-align: center;
2024-10-03 19:40:57 +08:00
2024-10-02 20:20:51 +08:00
.scan-block {
width: 400rpx;
height: 400rpx;
background-color: #FF2C3C;
border-radius: 50%;
margin: 0 auto;
position: relative;
box-shadow: 0rpx 8rpx 92rpx 0rpx #FF969D;
2024-10-03 19:40:57 +08:00
2024-10-02 20:20:51 +08:00
.scan-item {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
}
}
2024-10-03 19:40:57 +08:00
2024-10-02 20:20:51 +08:00
.item {
background-color: #fff;
margin: 100rpx 20rpx 0 20rpx;
border-radius: 20rpx;
justify-content: space-between;
2024-10-03 19:40:57 +08:00
box-shadow: 0px 8rpx 36rpx -6rpx #dbdbdb;
;
2024-10-02 20:20:51 +08:00
.ele {
width: 50%;
padding: 20rpx 0;
2024-10-03 19:40:57 +08:00
2024-10-02 20:20:51 +08:00
.image {
margin: 0 auto;
display: flex;
justify-content: center;
}
}
}
}
</style>