Commit 033ec3e0 authored by zhengzy's avatar zhengzy
parents b6ff0e55 18d0e480
This diff is collapsed.
<template>
<u-input v-model="value" :type="type" :border="border" />
</template>
<script>
export default {
data() {
return {
value: '',
type: 'text',
border: true
}
}
}
</script>
<style>
</style>
// export { default as XhInput } from './XhInput'
// export { default as XhTextarea } from './XhTextarea'
// export { default as XhSelect } from './XhSelect'
// export { default as XhMultipleSelect } from './XhMultipleSelect'
// export { default as XhFiles } from './XhFiles'
// export { default as XhSwitch } from './XhSwitch'
// export { default as XhServiceMore } from './XhServiceMore'
// export { default as XhDate } from './XhDate'
...@@ -4,11 +4,10 @@ ...@@ -4,11 +4,10 @@
back-icon-color="#ffffff" title-color="#ffffff"></u-navbar> back-icon-color="#ffffff" title-color="#ffffff"></u-navbar>
<image :src="url" style="width: 100%;" mode="widthFix"></image> <image :src="url" style="width: 100%;" mode="widthFix"></image>
<view class="introduction"> <view class="introduction">
<slot></slot> <slot></slot>
<view class="settle-bottom"> </view>
<slot name="bottom"></slot> <view class="settle-bottom">
</view> <slot name="bottom"></slot>
</view> </view>
</view> </view>
</template> </template>
...@@ -19,7 +18,7 @@ ...@@ -19,7 +18,7 @@
index: { index: {
type: Number, type: Number,
default: 1 default: 1
} }
}, },
data() { data() {
return {} return {}
...@@ -32,23 +31,20 @@ ...@@ -32,23 +31,20 @@
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.settle-view {
background-color: #F4F5F7;
}
.introduction { .introduction {
border-radius: 12rpx; border-radius: 12rpx;
margin-left: 30rpx;
margin-right: 30rpx;
margin-top: -112rpx;
background-color: #F4F5F7;
overflow: auto; overflow: auto;
height: calc(100vh - 312rpx); position: fixed;
} top: 320rpx;
.settle-bottom { bottom: 0rpx;
position: fixed; left: 30rpx;
width: calc(100vw - 60rpx); right: 30rpx;
bottom: 44rpx; }
.settle-bottom {
position: fixed;
bottom: 44rpx;
width: 100%;
} }
</style> </style>
...@@ -14,6 +14,11 @@ ...@@ -14,6 +14,11 @@
"style": { "style": {
"navigationBarTitleText": "订单" "navigationBarTitleText": "订单"
} }
},{
"path": "pages/order/complete",
"style": {
"navigationBarTitleText": "订单-完工配置"
}
}, },
{ {
"path": "pages/study/index", "path": "pages/study/index",
......
<template>
<view class="u-wrap">
<view class="u-search-box">
<view class="u-search-inner">
<u-icon name="search" color="#909399" :size="28"></u-icon>
<text class="u-search-text">搜索uView</text>
</view>
</view>
<view class="u-menu-wrap">
<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop">
<view v-for="(item,index) in tabbar" :key="index" class="u-tab-item" :class="[current==index ? 'u-tab-item-active' : '']"
:data-current="index" @tap.stop="swichMenu(index)">
<text class="u-line-1">{{item.name}}</text>
</view>
</scroll-view>
<block v-for="(item,index) in tabbar" :key="index">
<scroll-view scroll-y class="right-box" v-if="current==index">
<view class="page-view">
<view class="class-item">
<view class="item-title">
<text>{{item.name}}</text>
</view>
<view class="item-container">
<view class="thumb-box" v-for="(item1, index1) in item.foods" :key="index1">
<image class="item-menu-image" :src="item1.icon" mode=""></image>
<view class="item-menu-name">{{item1.name}}</view>
</view>
</view>
</view>
</view>
</scroll-view>
</block>
</view>
</view>
</template>
<script>
import classifyData from "@/common/classify.data.js";
export default {
data() {
return {
tabbar: classifyData,
scrollTop: 0, //tab标题的滚动条位置
current: 0, // 预设当前项的值
menuHeight: 0, // 左边菜单的高度
menuItemHeight: 0, // 左边菜单item的高度
}
},
computed: {
},
methods: {
getImg() {
return Math.floor(Math.random() * 35);
},
// 点击左边的栏目切换
async swichMenu(index) {
if(index == this.current) return ;
this.current = index;
// 如果为0,意味着尚未初始化
if(this.menuHeight == 0 || this.menuItemHeight == 0) {
await this.getElRect('menu-scroll-view', 'menuHeight');
await this.getElRect('u-tab-item', 'menuItemHeight');
}
// 将菜单菜单活动item垂直居中
this.scrollTop = index * this.menuItemHeight + this.menuItemHeight / 2 - this.menuHeight / 2;
},
// 获取一个目标元素的高度
getElRect(elClass, dataVal) {
new Promise((resolve, reject) => {
const query = uni.createSelectorQuery().in(this);
query.select('.' + elClass).fields({size: true},res => {
// 如果节点尚未生成,res值为null,循环调用执行
if(!res) {
setTimeout(() => {
this.getElRect(elClass);
}, 10);
return ;
}
this[dataVal] = res.height;
}).exec();
})
}
}
}
</script>
<style lang="scss" scoped>
.u-wrap {
height: calc(100vh);
/* #ifdef H5 */
height: calc(100vh - var(--window-top));
/* #endif */
display: flex;
flex-direction: column;
}
.u-search-box {
padding: 18rpx 30rpx;
}
.u-menu-wrap {
flex: 1;
display: flex;
overflow: hidden;
}
.u-search-inner {
background-color: rgb(234, 234, 234);
border-radius: 100rpx;
display: flex;
align-items: center;
padding: 10rpx 16rpx;
}
.u-search-text {
font-size: 26rpx;
color: $u-tips-color;
margin-left: 10rpx;
}
.u-tab-view {
width: 200rpx;
height: 100%;
}
.u-tab-item {
height: 110rpx;
background: #f6f6f6;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #444;
font-weight: 400;
line-height: 1;
}
.u-tab-item-active {
position: relative;
color: #000;
font-size: 30rpx;
font-weight: 600;
background: #fff;
}
.u-tab-item-active::before {
content: "";
position: absolute;
border-left: 4px solid $u-type-primary;
height: 32rpx;
left: 0;
top: 39rpx;
}
.u-tab-view {
height: 100%;
}
.right-box {
background-color: rgb(250, 250, 250);
}
.page-view {
padding: 16rpx;
}
.class-item {
margin-bottom: 30rpx;
background-color: #fff;
padding: 16rpx;
border-radius: 8rpx;
}
.item-title {
font-size: 26rpx;
color: $u-main-color;
font-weight: bold;
}
.item-menu-name {
font-weight: normal;
font-size: 24rpx;
color: $u-main-color;
}
.item-container {
display: flex;
flex-wrap: wrap;
}
.thumb-box {
width: 33.333333%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin-top: 20rpx;
}
.item-menu-image {
width: 120rpx;
height: 120rpx;
}
</style>
This diff is collapsed.
<template> <template>
<view class="back_view"> <view class="back_view">
<Settle :index="1"> <Settle :index="1">
<view class="content-view"> <view class="content-view">
<view style="padding: 30rpx;"> <view style="padding: 30rpx;">
<view class="item"> <view class="item">
<view class="item-label"> <view class="item-label">
<text>招募要求</text> <text>招募要求</text>
</view>
<view class="item-content">
<text>
1.必须具备相关的从业证书——电工证;
2.有汽车:皮卡、小面包、小轿车等;
3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等;
4.有充电桩安装经验优先;
</text>
</view>
</view> </view>
<view class="item-content"> <view class="line-view"></view>
<text> <view class="item">
1.必须具备相关的从业证书——电工证; <view class="item-label">
2.有汽车:皮卡、小面包、小轿车等; <text>结算价格</text>
3.需具备一定的作业工具:如液压压线钳、冲击钻、电锤、登高安全带、电锤、绝缘电阻仪(摇表)、交流充电模拟器等; </view>
4.有充电桩安装经验优先; <view class="item-content">
</text> <text>
1.不同车企品牌结算价格不一,675元-1890元不等;
2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保);
3.结算账期:周结50%,剩余50%次月20号结算;
</text>
</view>
</view> </view>
</view> <view class="line-view"></view>
<view class="line-view"></view> <view class="item">
<view class="item"> <view class="item-label">
<view class="item-label"> <text>入驻资料</text>
<text>结算价格</text> </view>
<view class="item-content">
<text>
1.身份证正反面照片
2.高/低压电工证正反面照片
3.车辆照片
</text>
</view>
</view> </view>
<view class="item-content"> <view class="line-view"></view>
<text> <view class="item">
1.不同车企品牌结算价格不一,675元-1890元不等; <view class="item-label">
2.结算价格为包工包料价,安装材料根据车企品牌规格自行采购(电缆、空开、漏保); <text>注意事项:</text>
3.结算账期:周结50%,剩余50%次月20号结算; </view>
</text> <view class="item-content">
<text>
1.身份证,银行卡,签约人共有同一人,否则无法入驻。
2.充电桩材料按要求自行准备。
</text>
</view>
</view> </view>
</view> </view>
<view class="line-view"></view> </view>
<view class="item"> <template v-slot:bottom>
<view class="item-label"> <button :class="['bottom_btn', {'active': isStop}]" @click="$u.debounce(applyClick, 500)">
<text>入驻资料</text> <text class="bottom_title" v-if="!isStop">浏览 {{count}} 秒后可申请入驻</text>
</view> <text class="bottom_title" v-if="isStop">申请入驻</text>
<view class="item-content"> </button>
<text>
1.身份证正反面照片
2.高/低压电工证正反面照片
3.车辆照片
</text>
</view>
</view>
<view class="line-view"></view>
<view class="item">
<view class="item-label">
<text>注意事项:</text>
</view>
<view class="item-content">
<text>
1.身份证,银行卡,签约人共有同一人,否则无法入驻。
2.充电桩材料按要求自行准备。
</text>
</view>
</view>
</view>
</view>
<template v-slot:bottom>
<button :class="['bottom_btn', {'active': isStop}]" @click="$u.debounce(applyClick, 500)">
<text class="bottom_title" v-if="!isStop">浏览 {{count}} 秒后可申请入驻</text>
<text class="bottom_title" v-if="isStop">申请入驻</text>
</button>
</template> </template>
</Settle> </Settle>
</view> </view>
...@@ -184,42 +184,43 @@ ...@@ -184,42 +184,43 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.back_view { .back_view {
background-color: #F4F5F7; background-color: #F4F5F7;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.content-view { .content-view {
background-color: #FFFFFF; background-color: #FFFFFF;
margin-bottom: 188rpx; margin-bottom: 188rpx;
border-radius: 12rpx; border-radius: 12rpx;
} }
.line-view { .line-view {
background-color: #F4F5F7; background-color: #F4F5F7;
height: 1rpx; height: 2rpx;
width: 100%; width: 100%;
margin-bottom: 30rpx; margin-bottom: 30rpx;
margin-top: 30rpx; margin-top: 30rpx;
} }
.item-label { .item-label {
color: #333333; color: #333333;
font-weight: bold; font-weight: bold;
font-size: 32rpx; font-size: 32rpx;
margin-top: 6rpx; margin-top: 8rpx;
} }
.item-content { .item-content {
color: #333333; color: #333333;
font-size: 26rpx; font-size: 26rpx;
line-height: 50rpx; line-height: 50rpx;
margin-top: 30rpx; margin-top: 30rpx;
} }
.bottom_btn { .bottom_btn {
...@@ -232,10 +233,12 @@ ...@@ -232,10 +233,12 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: #D1D4D4; background-color: #D1D4D4;
&.active { &.active {
background-color: #2272FF; background-color: #2272FF;
} }
.bottom_title { .bottom_title {
color: #fff; color: #fff;
} }
......
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