Commit b9225eee by zhangzhen

优化首页内容

parent 3420da62
...@@ -179,10 +179,10 @@ export default { ...@@ -179,10 +179,10 @@ export default {
immediate: true, immediate: true,
handler (val) { handler (val) {
if(val == 5){ if(val == 5){
if (this.scrollTop > 180) { if (this.scrollTop > 160) {
this.transparentValue = 1; this.transparentValue = 1;
} else { } else {
this.transparentValue = this.scrollTop / 180; this.transparentValue = this.scrollTop / 160;
} }
} }
} }
...@@ -248,10 +248,10 @@ export default { ...@@ -248,10 +248,10 @@ export default {
pageScroll(e) { pageScroll(e) {
if (this.navbarType == 5) { if (this.navbarType == 5) {
if (e.scrollTop && e.scrollTop > 0) { if (e.scrollTop && e.scrollTop > 0) {
if (e.scrollTop > 180) { if (e.scrollTop > 160) {
this.transparentValue = 1; this.transparentValue = 1;
} else { } else {
this.transparentValue = e.scrollTop / 180; this.transparentValue = e.scrollTop / 160;
} }
} else { } else {
this.transparentValue = 0; this.transparentValue = 0;
......
...@@ -156,27 +156,9 @@ ...@@ -156,27 +156,9 @@
display: block; display: block;
width: 30px; width: 30px;
height: 30px; height: 30px;
margin-top: 24rpx;
} }
} }
.icon-large {}
.scan-code-icon {
display: flex;
justify-content: center;
align-items: center;
width: 20px;
height: 20px;
transform: scale(2) translateY(-6px);
background: #007AFF;
border-radius: 50%;
box-shadow: 0 0 4px rgba($color: #007AFF, $alpha: 0.3);
image {
display: block;
width: 60%;
height: auto;
}
}
</style> </style>
\ No newline at end of file
<template> <template>
<view class="tool-box"> <view class="tool-box" >
<view v-for="(item, index) in toolList" :key="index" class="tool-item" :class="{active:!show}" :style="{transitionDuration: dNum+'s' }" @tap.stop="onHandle(item,index)"> <view v-for="(item, index) in toolList" :key="index" class="tool-item" :class="{active:!show}" :style="{transitionDuration: dNum+'s' }" @tap.stop="onHandle(item,index)">
<text class="text-white text-bold text-xl">{{show ? item.name:item.sortName}}</text> <image class="image" :src="item.imgUrl" mode="heightFix"></image>
<text v-if="show" class="text-white text-bold text-xl">{{item.name}}</text>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import config from "@/config/index.config"
import {getOrderByAvailable, openDoor} from "@/api/order.js" import {getOrderByAvailable, openDoor} from "@/api/order.js"
export default { export default {
...@@ -24,19 +26,23 @@ ...@@ -24,19 +26,23 @@
toolList:[ toolList:[
{ {
name:"开门", name:"开门",
imgUrl: config.assetsPath+'/open_door_icon.png',
sortName:"开" sortName:"开"
}, },
{ {
name:"续单", name:"续单",
imgUrl: config.assetsPath+'/order_2_icon.png',
sortName:"续" sortName:"续"
}, },
{ {
name:"验券", name:"验券",
imgUrl: config.assetsPath+'/scan_code_icon.png',
sortName:"验", sortName:"验",
routePath:"/pages/useCouponIllustrate/useCouponIllustrate" routePath:"/pages/useCouponIllustrate/useCouponIllustrate"
}, },
{ {
name:"客服", name:"客服",
imgUrl: config.assetsPath+'/zcpt.png',
sortName:"客" sortName:"客"
} }
], ],
...@@ -149,11 +155,12 @@ ...@@ -149,11 +155,12 @@
z-index: 99; z-index: 99;
.tool-item{ .tool-item{
display: flex; display: flex;
flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 12vw; width: 42px;
height: 12vw; height: 36px;
border-radius: 50%; border-radius: 20upx 0 0 20upx;
background: rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.72);
// border-top: 1px solid #E40583; // border-top: 1px solid #E40583;
// border-left: 1px solid #E40583; // border-left: 1px solid #E40583;
...@@ -162,17 +169,21 @@ ...@@ -162,17 +169,21 @@
transition-property: all; transition-property: all;
transition-timing-function:ease; transition-timing-function:ease;
box-shadow: -4rpx 4rpx 13rpx 0rpx rgba(74, 11, 47, 0.4); box-shadow: -4rpx 4rpx 13rpx 0rpx rgba(74, 11, 47, 0.4);
.image{
max-width: 50upx;
height: 40upx;
}
text{ text{
white-space: nowrap; white-space: nowrap;
font-style: italic;
font-size: 28rpx; font-size: 28rpx;
color: #3D3D3D; color: #3D3D3D;
} }
} }
.active{ .active{
width: 6vw; width: 24px;
height: 6vw; height:50upx;
opacity: 0.6; // border-radius: 12upx 0 0 12upx;
opacity: 0.8;
} }
} }
</style> </style>
\ No newline at end of file
const CONFIG = { const CONFIG = {
// 开发环境配置 // 开发环境配置
development: { development: {
assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径 assetsPath: 'http://10.24.5.140:8211/static', // 静态资源路径
baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址 baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址) hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址)
// baseUrl: 'http://192.168.1.189:8883/front', // 后台接口请求地址 // baseUrl: 'http://192.168.1.189:8883/front', // 后台接口请求地址
......
static/tab-bar-img/home.png

3.21 KB | W: | H:

static/tab-bar-img/home.png

1.05 KB | W: | H:

static/tab-bar-img/home.png
static/tab-bar-img/home.png
static/tab-bar-img/home.png
static/tab-bar-img/home.png
  • 2-up
  • Swipe
  • Onion skin
static/tab-bar-img/home_selected.png

1.33 KB | W: | H:

static/tab-bar-img/home_selected.png

6.09 KB | W: | H:

static/tab-bar-img/home_selected.png
static/tab-bar-img/home_selected.png
static/tab-bar-img/home_selected.png
static/tab-bar-img/home_selected.png
  • 2-up
  • Swipe
  • Onion skin
static/tab-bar-img/order.png

3.19 KB | W: | H:

static/tab-bar-img/order.png

988 Bytes | W: | H:

static/tab-bar-img/order.png
static/tab-bar-img/order.png
static/tab-bar-img/order.png
static/tab-bar-img/order.png
  • 2-up
  • Swipe
  • Onion skin
static/tab-bar-img/order_selected.png

1.55 KB | W: | H:

static/tab-bar-img/order_selected.png

1.21 KB | W: | H:

static/tab-bar-img/order_selected.png
static/tab-bar-img/order_selected.png
static/tab-bar-img/order_selected.png
static/tab-bar-img/order_selected.png
  • 2-up
  • Swipe
  • Onion skin
static/tab-bar-img/user.png

3.39 KB | W: | H:

static/tab-bar-img/user.png

1.22 KB | W: | H:

static/tab-bar-img/user.png
static/tab-bar-img/user.png
static/tab-bar-img/user.png
static/tab-bar-img/user.png
  • 2-up
  • Swipe
  • Onion skin
static/tab-bar-img/user_selected.png

1.37 KB | W: | H:

static/tab-bar-img/user_selected.png

1.41 KB | W: | H:

static/tab-bar-img/user_selected.png
static/tab-bar-img/user_selected.png
static/tab-bar-img/user_selected.png
static/tab-bar-img/user_selected.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -97,7 +97,7 @@ export const getTabbarHeight = function() { ...@@ -97,7 +97,7 @@ export const getTabbarHeight = function() {
var systemInfo = uni.getSystemInfoSync() var systemInfo = uni.getSystemInfoSync()
var data = { var data = {
...systemInfo, ...systemInfo,
tabbarH: 72, //tabbar高度--单位px tabbarH: 50, //tabbar高度--单位px
tabbarPaddingB: 0, //tabbar底部安全距离高度--单位px tabbarPaddingB: 0, //tabbar底部安全距离高度--单位px
device: systemInfo.system.indexOf('iOS') != -1 ? 'iOS' : 'Android', //苹果或者安卓设备 device: systemInfo.system.indexOf('iOS') != -1 ? 'iOS' : 'Android', //苹果或者安卓设备
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment