-
14src/pages.json
-
1src/subpackage/device/pages/coffee_test/coffee_test.vue
-
16src/subpackage/device/pages/device_manage/device_manage.vue
-
41src/subpackage/device/pages/index/index.vue
-
104src/subpackage/device/pages/pad_manage/pad_manage.vue
-
271src/subpackage/device/pages/sell_box_manage/sell_box_manage.vue
-
99src/subpackage/device/pages/switch_manage/switch_manage.vue
-
BINsrc/subpackage/device/static/images/close.png
-
BINsrc/subpackage/device/static/images/devices/1.png
-
BINsrc/subpackage/device/static/images/devices/10.png
-
BINsrc/subpackage/device/static/images/devices/11.png
-
BINsrc/subpackage/device/static/images/devices/12.png
-
BINsrc/subpackage/device/static/images/devices/13.png
-
BINsrc/subpackage/device/static/images/devices/14.png
-
BINsrc/subpackage/device/static/images/devices/15.png
-
BINsrc/subpackage/device/static/images/devices/2.png
-
BINsrc/subpackage/device/static/images/devices/3.png
-
BINsrc/subpackage/device/static/images/devices/4.png
-
BINsrc/subpackage/device/static/images/devices/5.png
-
BINsrc/subpackage/device/static/images/devices/6.png
-
BINsrc/subpackage/device/static/images/devices/7.png
-
BINsrc/subpackage/device/static/images/devices/8.png
-
BINsrc/subpackage/device/static/images/devices/9.png
-
BINsrc/subpackage/device/static/images/in.png
-
BINsrc/subpackage/device/static/images/open.png
-
BINsrc/subpackage/device/static/images/out.png
-
BINsrc/subpackage/device/static/images/refresh.png
@ -0,0 +1,104 @@ |
|||
<template> |
|||
<view class="pad-manage"> |
|||
<store-name></store-name> |
|||
<view class="pm-tit">平板管理</view> |
|||
<view class="pm-list"> |
|||
<view class="cl-item" v-for="i in 5" :key="i"> |
|||
<image></image> |
|||
<view> |
|||
<view class="ci-title">前门平板</view> |
|||
<view class="ci-bot"> |
|||
<view>设备在线</view> |
|||
<image></image> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
import store_name from '../../components/store_name/store_name'; |
|||
export default { |
|||
components: { |
|||
'store-name': store_name |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss"> |
|||
@import '~style/public.scss'; |
|||
.pm-tit{ |
|||
padding: 50upx 40upx 30upx; |
|||
line-height: 60upx; |
|||
font-size: 44upx; |
|||
font-weight: 500; |
|||
color: #333; |
|||
} |
|||
.pm-list{ |
|||
padding: 0 32upx; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
flex-wrap: wrap; |
|||
.cl-item{ |
|||
flex-shrink: 0; |
|||
flex-grow: 0; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
margin-bottom: 24upx; |
|||
padding: 20upx 20upx 30upx; |
|||
width: 328upx; |
|||
height: 132upx; |
|||
border-radius: 10upx; |
|||
background-color: #fff; |
|||
>image{ |
|||
flex-shrink: 0; |
|||
flex-grow: 0; |
|||
margin-right: 20upx; |
|||
width: 80upx; |
|||
height: 80upx; |
|||
background-color: skyblue; |
|||
} |
|||
>view{ |
|||
flex-grow: 1; |
|||
.ci-title{ |
|||
font-size: 32upx; |
|||
line-height: 44upx; |
|||
color: #333; |
|||
@include textHide(1); |
|||
} |
|||
.ci-bot{ |
|||
@include centerFlex(flex-start); |
|||
>view{ |
|||
padding: 0 12upx; |
|||
font-size: 20upx; |
|||
line-height: 28upx; |
|||
text-align: center; |
|||
border-radius: 20upx; |
|||
border: 2upx solid #9A9A9D; |
|||
color: #333; |
|||
&::before{ |
|||
content: ''; |
|||
margin-top: -2upx; |
|||
margin-right: 12upx; |
|||
vertical-align: middle; |
|||
display: inline-block; |
|||
width: 8upx; |
|||
height: 8upx; |
|||
border-radius: 50%; |
|||
background-color: $themeColor; |
|||
} |
|||
} |
|||
>image{ |
|||
flex-shrink: 0; |
|||
flex-grow: 0; |
|||
margin-left: 8upx; |
|||
width: 32upx; |
|||
height: 32upx; |
|||
background-color: skyblue; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,271 @@ |
|||
<template> |
|||
<view class="sell-box-manage"> |
|||
<device-name id="devicename"></device-name> |
|||
<view class="sbm-section" :style="'height:'+ sectionHeight +'px;'"> |
|||
<scroll-view class="ss-tabs" scroll-y> |
|||
<view :class="['st-item', i == 2?'active':'']" v-for="(e,i) in 20" :key="i">第一层</view> |
|||
</scroll-view> |
|||
<scroll-view class="ss-list" scroll-y> |
|||
<view class="sl-section" v-for="k in 5" :key="k"> |
|||
<view class="ss-tit">第一层<text>售货机第一行的商品</text></view> |
|||
<view class="ss-goods-list"> |
|||
<view class="sgl-item" v-for="i in 5" :key="i"> |
|||
<view class="si-img"> |
|||
<image></image> |
|||
<view class="si-tag"><view>101</view></view> |
|||
</view> |
|||
<view class="si-name"> |
|||
<view>维他奶原味豆奶</view> |
|||
</view> |
|||
<view class="si-price">¥3.5</view> |
|||
<view class="si-contral"> |
|||
<view hover-class="hover-active">-</view> |
|||
<input disabled value="200"/> |
|||
<view hover-class="hover-active">+</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
</view> |
|||
<view class="sl-tip">客官,到底啦~</view> |
|||
</scroll-view> |
|||
</view> |
|||
<view class="sbm-fixed-bar"> |
|||
<view> |
|||
<image class="active" mode="aspectFit" src="/subpackage/device/static/images/selected_987.png"></image> |
|||
<text>确认补货</text> |
|||
</view> |
|||
<view>确认补货</view> |
|||
</view> |
|||
</view> |
|||
</template> |
|||
<script> |
|||
import util from '../../../../utils/util'; |
|||
import device_name from '../../components/device_name/device_name'; |
|||
export default { |
|||
components: { |
|||
'device-name': device_name |
|||
}, |
|||
data(){ |
|||
return { |
|||
sectionHeight: 0 |
|||
} |
|||
}, |
|||
async onLoad(){ |
|||
|
|||
}, |
|||
async onReady(){ |
|||
let _topBar = await util.getNodeMes(`#devicename`); |
|||
let _botBar = await util.getNodeMes(`.sbm-fixed-bar`); |
|||
let _sysMes = uni.getSystemInfoSync(); |
|||
|
|||
this.sectionHeight = _sysMes.windowHeight - (_botBar.height + _topBar.height); |
|||
console.log(_topBar, _botBar, _sysMes, this.sectionHeight) |
|||
}, |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss"> |
|||
@import '~style/public.scss'; |
|||
.sbm-section{ |
|||
display: flex; |
|||
.ss-tabs{ |
|||
flex-shrink: 0; |
|||
flex-grow: 0; |
|||
width: 180upx; |
|||
height: 100%; |
|||
background-color: #fff; |
|||
.st-item{ |
|||
padding: 0 10upx; |
|||
height: 92upx; |
|||
line-height: 92upx; |
|||
text-align: center; |
|||
font-size: 28upx; |
|||
color: #9a9a9d; |
|||
overflow: hidden; |
|||
text-overflow: ellipsis; |
|||
white-space: nowrap; |
|||
&.active{ |
|||
font-weight: 500; |
|||
color: $themeColor; |
|||
background-color: #EDEDF5; |
|||
} |
|||
} |
|||
} |
|||
.ss-list{ |
|||
padding-top: 10upx; |
|||
flex-grow: 1; |
|||
min-width: 0; |
|||
.sl-section{ |
|||
padding-bottom: 30upx; |
|||
margin: 0 auto 10upx; |
|||
width: 97%; |
|||
border-radius: 10upx; |
|||
background-color: #fff; |
|||
.ss-tit{ |
|||
padding: 20upx; |
|||
font-size: 28upx; |
|||
font-weight: 500; |
|||
line-height: 40upx; |
|||
color: #333; |
|||
@include textHide(1); |
|||
>text{ |
|||
margin-left: 14upx; |
|||
line-height: 34upx; |
|||
font-size: 24upx; |
|||
color: #9a9a9d; |
|||
} |
|||
} |
|||
.ss-goods-list{ |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
.sgl-item{ |
|||
flex-shrink: 0; |
|||
margin-top: 68upx; |
|||
width: 33.33%; |
|||
&:nth-child(-n+3){ |
|||
margin-top: 0; |
|||
} |
|||
>view{ |
|||
margin-left: auto; |
|||
margin-right: auto; |
|||
} |
|||
.si-img{ |
|||
position: relative; |
|||
margin-bottom: 10upx; |
|||
width: 148upx; |
|||
height: 148upx; |
|||
background-color: skyblue; |
|||
>image{ |
|||
width: 100%; |
|||
height: 100%; |
|||
background-color: turquoise; |
|||
} |
|||
.si-tag{ |
|||
position: absolute; |
|||
left: 0; |
|||
top: -6upx; |
|||
padding-bottom: 2upx; |
|||
width: 50upx; |
|||
background-image: linear-gradient(to bottom right, #00C9AC, #009874); |
|||
border-bottom-right-radius: 40%; |
|||
border-bottom-left-radius: 40%; |
|||
border-top-left-radius: 8upx; |
|||
>view{ |
|||
line-height: 28upx; |
|||
width: 100%; |
|||
text-align: center; |
|||
font-size: 20upx; |
|||
color: #fff; |
|||
overflow: hidden; |
|||
text-overflow: ellipsis; |
|||
white-space: nowrap; |
|||
} |
|||
&::after{ |
|||
content: ''; |
|||
position: absolute; |
|||
right: -6upx; |
|||
top: 0; |
|||
width: 0; |
|||
height: 0; |
|||
border-left: 6upx solid #1C725F; |
|||
border-top: 6upx solid transparent; |
|||
} |
|||
} |
|||
} |
|||
.si-name{ |
|||
width: 148upx; |
|||
min-height: 70upx; |
|||
>view{ |
|||
font-size: 24upx; |
|||
line-height: 34upx; |
|||
@include textHide(2); |
|||
} |
|||
} |
|||
.si-price{ |
|||
margin-bottom: 20upx; |
|||
width: 148upx; |
|||
font-size: 24upx; |
|||
line-height: 34upx; |
|||
color: #ff873d; |
|||
} |
|||
.si-contral{ |
|||
width: 148upx; |
|||
@include centerFlex(space-between); |
|||
>view{ |
|||
flex-shrink: 0; |
|||
flex-grow: 0; |
|||
width: 36upx; |
|||
height: 36upx; |
|||
line-height: 24upx; |
|||
text-align: center; |
|||
font-size: 28upx; |
|||
font-weight: bold; |
|||
border: 4upx solid $themeColor; |
|||
border-radius: 50%; |
|||
color: $themeColor; |
|||
background-color: #fff; |
|||
|
|||
} |
|||
>input{ |
|||
flex-grow: 1; |
|||
margin: 0 10upx; |
|||
line-height: 40upx; |
|||
text-align: center; |
|||
font-size: 28upx; |
|||
color: #333; |
|||
+view{ |
|||
color: #fff; |
|||
background-color: $themeColor; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
.sl-tip{ |
|||
padding-top: 10upx; |
|||
padding-bottom: 92upx; |
|||
line-height: 40upx; |
|||
text-align: center; |
|||
font-size: 28upx; |
|||
color: #9a9a9d; |
|||
} |
|||
} |
|||
} |
|||
.sbm-fixed-bar{ |
|||
padding: 10upx 24upx; |
|||
padding-bottom: calc( 10upx + constant(safe-area-inset-bottom)); /* 兼容 iOS < 11.2 */ |
|||
padding-bottom: calc( 10upx + env(safe-area-inset-bottom)); /* 兼容 iOS >= 11.2 */ |
|||
background-color: #fff; |
|||
@include centerFlex(space-between); |
|||
>view{ |
|||
&:first-child{ |
|||
font-size: 28upx; |
|||
line-height: 40upx; |
|||
color: #494949; |
|||
>image{ |
|||
margin-right: 12upx; |
|||
vertical-align: middle; |
|||
width: 32upx; |
|||
height: 32upx; |
|||
border-radius: 50%; |
|||
border: 2upx solid #DDD; |
|||
&.active{ |
|||
border-width: 0; |
|||
border-color: transparent; |
|||
} |
|||
} |
|||
} |
|||
&:nth-child(2){ |
|||
flex-shrink: 0; |
|||
padding: 0 56upx; |
|||
line-height: 86upx; |
|||
text-align: center; |
|||
font-size: 32upx; |
|||
border-radius: 45upx; |
|||
color: #fff; |
|||
background-color: $themeColor; |
|||
} |
|||
} |
|||
} |
|||
</style> |
After Width: 100 | Height: 100 | Size: 816 B |
After Width: 80 | Height: 80 | Size: 730 B |
After Width: 80 | Height: 82 | Size: 826 B |
After Width: 80 | Height: 80 | Size: 818 B |
After Width: 80 | Height: 80 | Size: 1.6 KiB |
After Width: 80 | Height: 80 | Size: 658 B |
After Width: 80 | Height: 80 | Size: 1.2 KiB |
After Width: 80 | Height: 80 | Size: 782 B |
After Width: 80 | Height: 80 | Size: 741 B |
After Width: 80 | Height: 80 | Size: 845 B |
After Width: 80 | Height: 80 | Size: 687 B |
After Width: 80 | Height: 80 | Size: 809 B |
After Width: 80 | Height: 80 | Size: 634 B |
After Width: 80 | Height: 80 | Size: 574 B |
After Width: 80 | Height: 80 | Size: 1.1 KiB |
After Width: 80 | Height: 80 | Size: 820 B |
After Width: 100 | Height: 100 | Size: 959 B |
After Width: 100 | Height: 100 | Size: 924 B |
After Width: 100 | Height: 100 | Size: 1.0 KiB |
After Width: 32 | Height: 32 | Size: 403 B |