11 changed files with 582 additions and 6 deletions
-
12src/subpackage/verification/js/api.js
-
10src/subpackage/verification/js/server.js
-
178src/subpackage/verification/pages/site_people/index.vue
-
73src/subpackage/verification/pages/site_people/modules/classify_tab.vue
-
3src/subpackage/verification/pages/site_people/modules/methods_bar.vue
-
97src/subpackage/verification/pages/site_people/modules/modify_number.vue
-
88src/subpackage/verification/pages/site_people/modules/not_leave_modal.vue
-
67src/subpackage/verification/pages/site_people/modules/number_show.vue
-
60src/subpackage/verification/pages/site_people/modules/stadium_select.vue
-
BINsrc/subpackage/verification/static/images/countdown_bg.png
-
BINsrc/subpackage/verification/static/images/x_close.png
@ -0,0 +1,12 @@ |
|||
import { ORIGIN } from '@/js/api'; |
|||
|
|||
export const SUB_API = { |
|||
stadiumList: `${ORIGIN}/admin/stadium/list`, // 店铺列表
|
|||
skNumber: `${ORIGIN}/stadium/sk/number`, // 散客人数 - 进场人数
|
|||
skNotLeavingNums: `${ORIGIN}/stadium/sk/notLeavingNums`, // 【1001536】散客人数 - 未离场订单数量
|
|||
setStadiumPresentNumber: `${ORIGIN}/admin/stadium/setStadiumPresentNumber`, // 商家助手散客人数校正
|
|||
timingOpen: `${ORIGIN}/stadium/person/timing/open`, // 【20220208】凌晨自动清零【开/关】
|
|||
|
|||
} |
|||
|
|||
export default SUB_API; |
@ -0,0 +1,10 @@ |
|||
import { Server } from '../../../js/server'; |
|||
|
|||
class SubServer extends Server { |
|||
constructor(props){ |
|||
super(props) |
|||
} |
|||
} |
|||
|
|||
|
|||
export default new SubServer(); |
@ -0,0 +1,73 @@ |
|||
<template> |
|||
<scroll-view class="classify-tab" scroll-x> |
|||
<view class="ct-list"> |
|||
<view |
|||
v-for="(e, i) in tabs" |
|||
:key='i' |
|||
class="cl-item" |
|||
:class="{ 'cl-active': e.selected }" |
|||
@click="tabChange(i)" |
|||
> |
|||
<view class="ci-box">{{ e.label }}</view> |
|||
</view> |
|||
</view> |
|||
</scroll-view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
props: { |
|||
tabs: { |
|||
type: Array, |
|||
default: () => [] |
|||
} |
|||
}, |
|||
methods: { |
|||
tabChange(index){ |
|||
let { tabs } = this; |
|||
this.$emit('click:tab', tabs.map(e=>{ |
|||
let _obj = { ...e }; |
|||
if(tabs[index].key === e.key){ |
|||
_obj.selected = true; |
|||
}else{ |
|||
_obj.selected = false; |
|||
} |
|||
return _obj; |
|||
})); |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" > |
|||
.classify-tab{ |
|||
height: 94upx; |
|||
border-bottom: 1px solid #D8D8D8; |
|||
.ct-list{ |
|||
padding: 0 40upx; |
|||
width: fit-content; |
|||
white-space: nowrap; |
|||
font-size: 0; |
|||
.cl-item{ |
|||
display: inline-block; |
|||
flex-shrink: 0; |
|||
flex-grow: 0; |
|||
border-bottom: 8upx solid transparent; |
|||
.ci-box{ |
|||
padding: 0 40upx; |
|||
text-align: center; |
|||
@include flcw(28upx, 80upx, #2D2D2D); |
|||
} |
|||
&+.cl-item{ |
|||
margin-left: 70upx; |
|||
} |
|||
&.cl-active{ |
|||
border-bottom-color: $mColor; |
|||
.ci-box{ |
|||
color: $mColor; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,97 @@ |
|||
<template> |
|||
<view class="ox-dark-mask" v-show="visible"> |
|||
<view class="nop-modifies-modal"> |
|||
<image class="nmm-close" src="../../../static/images/x_close.png" @click="hide"></image> |
|||
<view class="nmm-tit">修改现场散客人数</view> |
|||
<view class="nmm-info"> |
|||
<view class="ni-num">当前现场散客人数为:012</view> |
|||
<input class="ni-ipt" placeholder="请输入散客人数" v-model="changeNum" type="number" /> |
|||
<view class="ni-tip">修改现场人数可能会影响现场灯光开关,请谨慎操作!</view> |
|||
</view> |
|||
<view class="nmm-btns"> |
|||
<view @click="hide">取消</view> |
|||
<view>确认</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data(){ |
|||
return { |
|||
visible: false |
|||
} |
|||
}, |
|||
methods: { |
|||
show(){ |
|||
this.visible = true |
|||
}, |
|||
hide(){ |
|||
this.visible = false |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss"> |
|||
.ox-dark-mask{ |
|||
z-index: 10; |
|||
} |
|||
.nop-modifies-modal{ |
|||
position: absolute; |
|||
left: 50%; |
|||
top: 50%; |
|||
transform: translate(-50%, -50%); |
|||
padding-top: 78upx; |
|||
width: 620upx; |
|||
height: 706upx; |
|||
background-color: #fff; |
|||
border-radius: 10upx; |
|||
.nmm-close{ |
|||
position: absolute; |
|||
right: 30upx; |
|||
top: 30upx; |
|||
width: 34upx; |
|||
height: 34upx; |
|||
} |
|||
.nmm-tit{ |
|||
text-align: center; |
|||
@include flcw(32upx, 44upx, #1A1A1A, 500) |
|||
} |
|||
.nmm-info{ |
|||
padding: 54upx 80upx 80upx; |
|||
.ni-num{ |
|||
@include tHide; |
|||
@include flcw(28upx, 48upx, #1A1A1A); |
|||
} |
|||
.ni-ipt{ |
|||
margin-top: 30upx; |
|||
padding: 0 20upx; |
|||
height: 88upx; |
|||
border-radius: 10upx; |
|||
border: 2upx solid #D8D8D8; |
|||
@include flcw(28upx, 40upx, #1A1A1A); |
|||
} |
|||
.ni-tip{ |
|||
margin-top: 26upx; |
|||
@include flcw(24upx, 34upx, #EA5061); |
|||
} |
|||
} |
|||
.nmm-btns{ |
|||
@include ctf(center); |
|||
>view{ |
|||
margin: 0 10upx; |
|||
width: 240upx; |
|||
text-align: center; |
|||
border-radius: 10upx; |
|||
border: 2upx solid $mColor; |
|||
@include flcw(32upx, 84upx, $mColor); |
|||
&+view{ |
|||
color: #fff; |
|||
background-color: $mColor; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,88 @@ |
|||
<template> |
|||
<view class="not-leave-modal ox-dark-mask" v-show="visible"> |
|||
<view class="nop-modifies-modal"> |
|||
<image class="nmm-close" @click="hide" src="../../../static/images/x_close.png"></image> |
|||
<view class="nmm-tit">未离场订单</view> |
|||
<view class="nmm-line"> |
|||
<view class="ml-view">次卡未离场:3</view> |
|||
<view class="ml-view">查看</view> |
|||
</view> |
|||
<view class="nmm-line"> |
|||
<view class="ml-view">计时未离场:3</view> |
|||
<view class="ml-view">查看</view> |
|||
</view> |
|||
<view class="nmm-line"> |
|||
<view class="ml-view">年月卡未离场:1</view> |
|||
<view class="ml-view">查看</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data(){ |
|||
return { |
|||
visible: false |
|||
} |
|||
}, |
|||
methods: { |
|||
show(){ |
|||
this.visible = true; |
|||
}, |
|||
hide(){ |
|||
this.visible = false; |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss"> |
|||
.not-leave-modal{ |
|||
z-index: 10; |
|||
.nop-modifies-modal{ |
|||
position: absolute; |
|||
left: 50%; |
|||
top: 50%; |
|||
transform: translate(-50%, -50%); |
|||
padding: 80upx 80upx 0upx; |
|||
width: 620upx; |
|||
height: 542upx; |
|||
background-color: #fff; |
|||
border-radius: 10upx; |
|||
} |
|||
.nmm-close{ |
|||
position: absolute; |
|||
right: 30upx; |
|||
top: 30upx; |
|||
width: 34upx; |
|||
height: 34upx; |
|||
} |
|||
.nmm-tit{ |
|||
text-align: center; |
|||
@include flcw(32upx, 44upx, #1A1A1A, 500) |
|||
} |
|||
.nmm-line{ |
|||
margin-top: 40upx; |
|||
@include ctf(space-between); |
|||
.ml-view{ |
|||
&:first-child{ |
|||
@include flcw(28rpx, 48rpx, #1A1A1A); |
|||
@include tHide; |
|||
} |
|||
&:nth-child(2){ |
|||
margin-left: 10upx; |
|||
flex-shrink: 0; |
|||
width: 156rpx; |
|||
height: 68rpx; |
|||
text-align: center; |
|||
border-radius: 10rpx; |
|||
border: 2rpx solid $mColor; |
|||
@include flcw(32rpx, 64rpx, $mColor); |
|||
|
|||
} |
|||
} |
|||
} |
|||
|
|||
} |
|||
</style> |
@ -0,0 +1,67 @@ |
|||
<template> |
|||
<view class="number-show"> |
|||
<view class="ns-title">现场散客人数</view> |
|||
<view class="ns-frame"> |
|||
<image class="nf-bg" mode="aspectFit" src="../../../static/images/countdown_bg.png"></image> |
|||
<view class="nf-txt"> |
|||
<view class="nt-num">{{ num || 0 }}</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
props: { |
|||
num: { |
|||
type: Number, |
|||
default: 0 |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss"> |
|||
.number-show{ |
|||
padding-top: 40upx; |
|||
.ns-title{ |
|||
text-align: center; |
|||
@include flcw(32upx, 44upx, #1A1A1A, 500); |
|||
} |
|||
.ns-frame{ |
|||
position: relative; |
|||
margin: 40upx auto; |
|||
width: 272upx; |
|||
height: 272upx; |
|||
.nf-bg{ |
|||
position: absolute; |
|||
left: 50%; |
|||
top: 50%; |
|||
margin-left: -75%; |
|||
margin-top: -75%; |
|||
width: 150%; |
|||
height: 150%; |
|||
animation: Rotate 6s linear infinite; |
|||
} |
|||
@keyframes Rotate{ |
|||
0% {transform: rotate(360deg);} |
|||
50% {transform: rotate(180deg);} |
|||
100% {transform: rotate(0deg);} |
|||
} |
|||
.nf-txt{ |
|||
position: absolute; |
|||
left: 50%; |
|||
top: 50%; |
|||
transform: translate(-50%, -50%); |
|||
width: 100%; |
|||
height: 100%; |
|||
z-index: 2; |
|||
@include ctf(center); |
|||
.nt-num{ |
|||
@include flcw(70upx, 100upx, $mColor, 500); |
|||
@include tHide; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
After Width: 700 | Height: 700 | Size: 33 KiB |
After Width: 34 | Height: 34 | Size: 233 B |
Write
Preview
Loading…
Cancel
Save
Reference in new issue