Commit d57dac6a authored by Facius's avatar Facius

去滚动条

parent 5b812f62
page { page {
background-color: #fafafa; background-color: #fafafa;
} }
::-webkit-scrollbar {
width:0;
height:0;
color:transparent;
display:none;
}
.btn-share { .btn-share {
background-color: transparent; background-color: transparent;
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"navigationStyle": "custom" "navigationStyle": "custom",
"enablePullDownRefresh": true
} }
}, },
{ {
...@@ -203,8 +204,8 @@ ...@@ -203,8 +204,8 @@
"tabBar": { "tabBar": {
"color": "#7A7E83", "color": "#7A7E83",
"selectedColor": "#007AFF", "selectedColor": "#007AFF",
"borderStyle": "black", "borderStyle": "white",
"backgroundColor": "#F8F8F8", "backgroundColor": "#FFFFFF",
"list": [ "list": [
{ {
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
......
...@@ -583,7 +583,8 @@ ...@@ -583,7 +583,8 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y:auto;
} }
.noticeView { .noticeView {
......
<template> <template>
<view class="content"> <view class="content">
<view style="width: 700rpx; height: 800rpx"> <!-- <view style="width: 700rpx; height: 800rpx"> -->
<!-- <view class="title-view">充电桩自营平台</view> --> <!-- <view class="title-view">充电桩自营平台</view> -->
<u-navbar <u-navbar
:is-back="false" :is-back="false"
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</u-sticky> </u-sticky>
<view class="order-view"> <view class="order-view">
<!-- 入驻成功之后显示推荐订单列表 --> <!-- 入驻成功之后显示推荐订单列表 -->
<view class="order-list-view"> <view class="order-list-view" v-if="loaded">
<!-- 入驻前--> <!-- 入驻前-->
<view v-if="needSettled" class="tip-view"> <view v-if="needSettled" class="tip-view">
<view class="tip-title">当前订单(笔)</view> <view class="tip-title">当前订单(笔)</view>
...@@ -83,13 +83,19 @@ ...@@ -83,13 +83,19 @@
<view <view
v-else-if="!needSettled && orderList.length <= 0" v-else-if="!needSettled && orderList.length <= 0"
class="no-order-view" class="no-order-view"
> >
暂无订单 <image class="no-order-image" :src="wudingdanImage"></image>
<text>当前暂无订单</text>
</view> </view>
</view> </view>
</view> </view>
</view> <!-- </view> -->
<!-- </scroll-view> --> <!-- </scroll-view> -->
<view class="bottom-view">
<view class="bottom-line-view"></view>
<view class="bottom-text">我也是有底线哒</view>
<view class="bottom-line-view"></view>
</view>
</view> </view>
</template> </template>
...@@ -106,22 +112,8 @@ export default { ...@@ -106,22 +112,8 @@ export default {
data() { data() {
return { return {
status: 0, // 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交' status: 0, // 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
triggered: false,
location: [116.3896, 39.91917], // 经纬度 location: [116.3896, 39.91917], // 经纬度
// list: [ title: false,
// {
// image: "https://cdn.uviewui.com/uview/swiper/1.jpg",
// },
// {
// image: "https://cdn.uviewui.com/uview/swiper/2.jpg",
// },
// {
// image: "https://cdn.uviewui.com/uview/swiper/3.jpg",
// },
// ],
title: false,
// mode: "round",
// indicatorPos: "bottomCenter",
title: "Hello", title: "Hello",
loaded: false, loaded: false,
needSettled: true, needSettled: true,
...@@ -129,7 +121,7 @@ export default { ...@@ -129,7 +121,7 @@ export default {
messageList: [], messageList: [],
loadStatus: ["more", "loading", "noMore"], loadStatus: ["more", "loading", "noMore"],
currentLoadStatus: "loading", currentLoadStatus: "loading",
orderList: [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}], orderList: [],
search: { search: {
token: "", token: "",
pageNumber: 0, pageNumber: 0,
...@@ -165,11 +157,12 @@ export default { ...@@ -165,11 +157,12 @@ export default {
}, },
shouyeyouImage() { shouyeyouImage() {
return process.uniEnv.qn_base_url + 'shouyeyou.png' return process.uniEnv.qn_base_url + 'shouyeyou.png'
},
wudingdanImage() {
return process.uniEnv.qn_base_url + 'wudingdan.png'
} }
}, },
onLoad() { onLoad() {
this._freshing = false;
this.triggered = false;
}, },
onShow() { onShow() {
// 每次进入页面都刷新入驻状态 // 每次进入页面都刷新入驻状态
...@@ -179,7 +172,13 @@ export default { ...@@ -179,7 +172,13 @@ export default {
// 初始化订单数据 // 初始化订单数据
this.loadOrderList(); this.loadOrderList();
} }
}, },
onPullDownRefresh() {
// 下拉刷洗
uni.stopPullDownRefresh() // 结束下拉刷新
},
methods: { methods: {
handleClick() { // 点击了cell handleClick() { // 点击了cell
console.log('点击了cell') console.log('点击了cell')
...@@ -321,19 +320,13 @@ export default { ...@@ -321,19 +320,13 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.content { .content {
height: 100vh; height: 100vh;
background-color: #f4f5f7; background-color: #f4f5f7;
padding: 0rpx 30rpx 0 30rpx; padding: 0rpx 30rpx 0 30rpx;
overflow-y:auto;
.scroll-view {
::-webkit-scrollbar {
/*隐藏滚轮*/
display: none;
}
}
.title-view { .title-view {
color: #333333; color: #333333;
font-weight: bold; font-weight: bold;
...@@ -434,8 +427,8 @@ export default { ...@@ -434,8 +427,8 @@ export default {
} }
.order-view { .order-view {
text-align: center; text-align: center;
min-height: 460rpx;
.order-list-view { .order-list-view {
background-color: #ffffff; background-color: #ffffff;
border-radius: 12rpx; border-radius: 12rpx;
...@@ -446,7 +439,19 @@ export default { ...@@ -446,7 +439,19 @@ export default {
.order-item-view { .order-item-view {
} }
.no-order-view { .no-order-view {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #666666;
font-size: 28rpx;
.no-order-image {
width: 374rpx;
height: 218rpx;
margin-top: 100rpx;
margin-bottom: 20rpx;
}
} }
.tip-view { .tip-view {
...@@ -472,5 +477,20 @@ export default { ...@@ -472,5 +477,20 @@ export default {
} }
} }
} }
} }
.bottom-view {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 40rpx 50rpx 40rpx;
.bottom-line-view {
background-color: #D5D5D5;
height: 2rpx;
width: 30%;
}
.bottom-text {
color: #999999;
font-size: 24rpx;
}
}
</style> </style>
...@@ -163,7 +163,8 @@ export default { ...@@ -163,7 +163,8 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y:auto;
} }
.course-video { .course-video {
......
...@@ -226,7 +226,8 @@ ...@@ -226,7 +226,8 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y:auto;
} }
.exam-head { .exam-head {
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<image class="item-image" :src="mixingImage"></image> <image class="item-image" :src="mixingImage"></image>
<text class="label">电工工龄(年)</text> <text class="label">电工工龄(年)</text>
</view> </view>
<p :class="['u-flex-1 u-text-right area', {before: !baseInfo.working_age}]"> <p :class="['u-flex-1 u-text-right area', {before: baseInfo.working_age === ''}]">
{{ baseInfo.working_age !== '' ? workingAgeTxt : '去选择'}} {{ baseInfo.working_age !== '' ? workingAgeTxt : '去选择'}}
</p> </p>
<u-icon name="arrow-right" color="#2272FF" size="28"></u-icon> <u-icon name="arrow-right" color="#2272FF" size="28"></u-icon>
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
submitStatus() { submitStatus() {
const baseInfo = this.baseInfo const baseInfo = this.baseInfo
//baseInfo.name && baseInfo.mobile && //baseInfo.name && baseInfo.mobile &&
const flag = baseInfo.service_area && baseInfo.working_age !== '' && baseInfo.address const flag = baseInfo.service_area.length > 0 && baseInfo.working_age !== '' && baseInfo.address !== ''
return flag && !this.saving return flag && !this.saving
}, },
cityText() { cityText() {
...@@ -386,7 +386,8 @@ ...@@ -386,7 +386,8 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y:auto;
} }
.base-list { .base-list {
......
...@@ -528,7 +528,8 @@ export default { ...@@ -528,7 +528,8 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y:auto;
} }
.base-list { .base-list {
......
...@@ -230,7 +230,8 @@ ...@@ -230,7 +230,8 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y:auto;
} }
.base-list { .base-list {
......
...@@ -412,7 +412,15 @@ ...@@ -412,7 +412,15 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.content { .content {
background-color: #F3F3F3; background-color: #F4F5F7;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
overflow-y:auto;
} }
.nav-item, .nav-item,
.age-item { .age-item {
...@@ -447,7 +455,7 @@ ...@@ -447,7 +455,7 @@
} }
.nav-item.active { .nav-item.active {
background-color: #ededed; background-color: #F4F5F7;
} }
} }
......
...@@ -424,7 +424,8 @@ ...@@ -424,7 +424,8 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y:auto;
} }
.content-txt { .content-txt {
......
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