Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
71cc172a
Commit
71cc172a
authored
Apr 25, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页高保真
parent
ea7284f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
604 additions
and
625 deletions
+604
-625
index.vue
src/components/order/index.vue
+133
-139
index.vue
src/pages/index/index.vue
+471
-486
No files found.
src/components/order/index.vue
View file @
71cc172a
<
template
>
<
template
>
<view
class=
"order-cell"
>
<view
class=
"order-view"
@
click=
"handleClickCell"
>
<view
class=
"order-view"
@
click=
"handleClickCell"
>
<view
class=
"order-top-view"
>
<view
class=
"order-top-view"
>
<view
class=
"left-view"
>
<view
class=
"left-view"
>
...
@@ -34,8 +33,8 @@
...
@@ -34,8 +33,8 @@
<view>
<view>
<view
v-if=
"showCountTime"
class=
"bottom-left-view"
>
<view
v-if=
"showCountTime"
class=
"bottom-left-view"
>
<view
:class=
"['bottom-tag-view',
{'will': orderData.currentWillOverTime}]">
{{
tagText
}}
</view>
<view
:class=
"['bottom-tag-view',
{'will': orderData.currentWillOverTime}]">
{{
tagText
}}
</view>
<u-count-down
:timestamp=
"orderData.currentWillOverTime || orderData.currentOverTime
"
<u-count-down
:timestamp=
"orderData.currentWillOverTime || orderData.currentOverTime"
font-size=
"44
"
font-size=
"44"
color=
"#FF930D"
@
change=
"handleChange"
ref=
"order-count-down"
></u-count-down>
color=
"#FF930D"
@
change=
"handleChange"
ref=
"order-count-down"
></u-count-down>
</view>
</view>
<view
v-else-if=
"showTime"
>
<view
v-else-if=
"showTime"
>
<text>
{{
timeTitle
}}
</text>
<text>
{{
timeTitle
}}
</text>
...
@@ -49,7 +48,6 @@
...
@@ -49,7 +48,6 @@
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -251,9 +249,6 @@
...
@@ -251,9 +249,6 @@
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.order-cell
{
padding-bottom
:
20rpx
;
.order-view
{
.order-view
{
width
:
100%
;
width
:
100%
;
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
...
@@ -384,5 +379,4 @@
...
@@ -384,5 +379,4 @@
.right-btn
{}
.right-btn
{}
}
}
}
}
}
</
style
>
</
style
>
src/pages/index/index.vue
View file @
71cc172a
...
@@ -2,15 +2,10 @@
...
@@ -2,15 +2,10 @@
<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-fixed=
"false"
:background=
"
{ background: 'transparent' }" :border-bottom="false">
:is-back=
"false"
:is-fixed=
"false"
:background=
"
{ background: 'transparent' }"
:border-bottom="false"
>
<text
class=
"title-view"
>
充电桩自营平台
</text>
<text
class=
"title-view"
>
充电桩自营平台
</text>
</u-navbar>
</u-navbar>
<!--
<u-swiper
<!--
<u-swiper
:height=
"240"
:height=
"240"
:list=
"list"
:list=
"list"
:indicator-pos=
"indicatorPos"
:indicator-pos=
"indicatorPos"
...
@@ -24,11 +19,7 @@
...
@@ -24,11 +19,7 @@
<view
class=
"msg-view"
>
<view
class=
"msg-view"
>
<view
class=
"msg-title"
>
最新消息
</view>
<view
class=
"msg-title"
>
最新消息
</view>
<view
class=
"msg-list-view"
>
<view
class=
"msg-list-view"
>
<view
<view
class=
"msg-content"
v-for=
"(item, index) in messageList"
:key=
"index"
>
class=
"msg-content"
v-for=
"(item, index) in messageList"
:key=
"index"
>
<view
class=
"msg-content-view"
>
<view
class=
"msg-content-view"
>
<view
class=
"left-view"
>
<view
class=
"left-view"
>
<image
class=
"msg-icon"
:src=
"msgStyleImage[item.content_type]"
></image>
<image
class=
"msg-icon"
:src=
"msgStyleImage[item.content_type]"
></image>
...
@@ -36,10 +27,7 @@
...
@@ -36,10 +27,7 @@
</view>
</view>
<image
class=
"right-icon"
:src=
"shouyeyouImage"
></image>
<image
class=
"right-icon"
:src=
"shouyeyouImage"
></image>
</view>
</view>
<view
<view
class=
"line-view"
v-if=
"index != 2"
></view>
class=
"line-view"
v-if=
"index != 2"
></view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -57,33 +45,20 @@
...
@@ -57,33 +45,20 @@
<view
class=
"tip-title"
>
当前订单(笔)
</view>
<view
class=
"tip-title"
>
当前订单(笔)
</view>
<view
class=
"tip-count"
>
{{
count
}}
</view>
<view
class=
"tip-count"
>
{{
count
}}
</view>
<view
class=
"tip-other"
>
入驻通过后平台将向您推荐订单
</view>
<view
class=
"tip-other"
>
入驻通过后平台将向您推荐订单
</view>
<u-button
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
class=
"settle-button"
:custom-style=
"buttonStyle"
>
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
:custom-style=
"buttonStyle"
>
立即入驻
立即入驻
</u-button>
</u-button>
</view>
</view>
<view
<view
v-else-if=
"!needSettled && orderList.length > 0"
class=
"order-item-view"
>
v-else-if=
"!needSettled && orderList.length > 0"
class=
"order-item-view"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<view
v-for=
"(item, index) in orderList"
:key=
"index"
>
<OrderCell
:orderData=
"item"
:orderType=
"0"
:location=
"location"
@
click=
"handleClick"
@
action=
"handleAction"
>
</OrderCell>
<OrderCell
:orderData=
"item"
:orderType=
"0"
:location=
"location"
@
click=
"handleClick"
@
action=
"handleAction"
>
</OrderCell>
</view>
</view>
<u-loadmore
<u-loadmore
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
:status=
"currentLoadStatus"
bgColor=
"#f2f2f2"
></u-loadmore>
</view>
</view>
<!-- 入驻成功之后无推荐订单 -->
<!-- 入驻成功之后无推荐订单 -->
<view
<view
v-else-if=
"!needSettled && orderList.length
<
=
0
"
class=
"no-order-view"
>
v-else-if=
"!needSettled && orderList.length
<
=
0
"
class=
"no-order-view"
>
<image
class=
"no-order-image"
:src=
"wudingdanImage"
></image>
<image
class=
"no-order-image"
:src=
"wudingdanImage"
></image>
<text>
当前暂无订单
</text>
<text>
当前暂无订单
</text>
</view>
</view>
...
@@ -100,12 +75,12 @@
...
@@ -100,12 +75,12 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
util
from
"@/utils/util.js"
;
import
util
from
"@/utils/util.js"
;
const
app
=
getApp
();
const
app
=
getApp
();
import
OrderCell
from
"@/components/order/index.vue"
;
import
OrderCell
from
"@/components/order/index.vue"
;
export
default
{
export
default
{
components
:
{
components
:
{
OrderCell
,
OrderCell
,
},
},
...
@@ -131,7 +106,7 @@ export default {
...
@@ -131,7 +106,7 @@ export default {
};
};
},
},
watch
:
{
watch
:
{
vuex_token
(
val
)
{
vuex_token
(
val
)
{
// 监听token变化,如果更新则重新加载页面数据
// 监听token变化,如果更新则重新加载页面数据
val
&&
this
.
initSettleInfo
()
val
&&
this
.
initSettleInfo
()
}
}
...
@@ -162,8 +137,7 @@ export default {
...
@@ -162,8 +137,7 @@ export default {
return
process
.
uniEnv
.
qn_base_url
+
'wudingdan.png'
return
process
.
uniEnv
.
qn_base_url
+
'wudingdan.png'
}
}
},
},
onLoad
()
{
onLoad
()
{},
},
onShow
()
{
onShow
()
{
// 每次进入页面都刷新入驻状态
// 每次进入页面都刷新入驻状态
if
(
this
.
vuex_token
)
{
if
(
this
.
vuex_token
)
{
...
@@ -267,10 +241,10 @@ export default {
...
@@ -267,10 +241,10 @@ export default {
this
.
orderList
.
push
(...[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}]);
this
.
orderList
.
push
(...[{},
{},
{},
{},
{},
{},
{},
{},
{},
{}]);
// 加载完成
// 加载完成
this
.
currentLoadStatus
=
false
/*是否还有*/
this
.
currentLoadStatus
=
false
/*是否还有*/
?
?
this
.
loadStatus
[
1
]
this
.
loadStatus
[
1
]
:
:
this
.
loadStatus
[
2
];
this
.
loadStatus
[
2
];
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
this
.
bottomLoading
=
false
;
this
.
bottomLoading
=
false
;
});
});
},
1000
);
},
1000
);
...
@@ -306,10 +280,8 @@ export default {
...
@@ -306,10 +280,8 @@ export default {
}
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
url
:
this
.
status
>
0
?
this
.
status
>
0
"/pages/settle/prompt?pageIndex="
+
pageIndex
:
"/pages/settle/index"
,
?
"/pages/settle/prompt?pageIndex="
+
pageIndex
:
"/pages/settle/index"
,
});
});
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
@@ -318,16 +290,16 @@ export default {
...
@@ -318,16 +290,16 @@ 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
;
overflow-y
:
auto
;
.title-view
{
.title-view
{
color
:
#333333
;
color
:
#333333
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -369,11 +341,13 @@ export default {
...
@@ -369,11 +341,13 @@ export default {
.left-view
{
.left-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.msg-icon
{
.msg-icon
{
width
:
80rpx
;
width
:
80rpx
;
height
:
36rpx
;
height
:
36rpx
;
margin-right
:
20rpx
;
margin-right
:
20rpx
;
}
}
.msg-text
{
.msg-text
{
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -394,34 +368,34 @@ export default {
...
@@ -394,34 +368,34 @@ export default {
}
}
}
}
}
}
}
}
.logo
{
.logo
{
height
:
200
rpx
;
height
:
200
rpx
;
width
:
100%
;
width
:
100%
;
margin
:
0
rpx
auto
50
rpx
auto
;
margin
:
0
rpx
auto
50
rpx
auto
;
}
}
.text-area
{
.text-area
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.title
{
.title
{
font-size
:
36
rpx
;
font-size
:
36
rpx
;
color
:
#8f8f94
;
color
:
#8f8f94
;
}
}
// .sticky-view {
// .sticky-view {
// position: sticky;
// position: sticky;
// position: -webkit-sticky;
// position: -webkit-sticky;
// top: 0rpx;
// top: 0rpx;
// width: 100%;
// width: 100%;
// height: 200rpx;
// height: 200rpx;
// background-color: black;
// background-color: black;
// }
// }
.sticky
{
.sticky
{
background-color
:
#f4f5f7
;
background-color
:
#f4f5f7
;
color
:
#fff
;
color
:
#fff
;
padding
:
24
rpx
;
padding
:
24
rpx
;
...
@@ -430,37 +404,18 @@ export default {
...
@@ -430,37 +404,18 @@ export default {
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333333
;
color
:
#333333
;
padding
:
46rpx
0
28rpx
0
;
padding
:
46rpx
0
28rpx
0
;
}
}
.order-view
{
.order-view
{
text-align
:
center
;
text-align
:
center
;
min-height
:
460rpx
;
.order-list-view
{
.order-list-view
{
.tip-view
{
padding
:
30rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
min-height
:
460rpx
;
padding
:
30rpx
;
margin-bottom
:
30rpx
;
.order-item-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-title
{
.tip-title
{
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -482,18 +437,48 @@ export default {
...
@@ -482,18 +437,48 @@ export default {
margin-bottom
:
56rpx
;
margin-bottom
:
56rpx
;
}
}
}
}
.order-item-view
{
background-color
:
#F4F5F7
;
border-radius
:
12rpx
;
}
.no-order-view
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
color
:
#666666
;
font-size
:
28rpx
;
padding
:
30rpx
;
background-color
:
#ffffff
;
border-radius
:
12rpx
;
min-height
:
460rpx
;
.no-order-image
{
width
:
374rpx
;
height
:
218rpx
;
margin-top
:
70rpx
;
margin-bottom
:
20rpx
;
}
}
}
}
}
}
.bottom-view
{
.bottom-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
20rpx
40rpx
50rpx
40rpx
;
padding
:
50rpx
40rpx
50rpx
40rpx
;
.bottom-line-view
{
.bottom-line-view
{
background-color
:
#D5D5D5
;
background-color
:
#D5D5D5
;
height
:
2rpx
;
height
:
2rpx
;
width
:
30%
;
width
:
30%
;
}
}
.bottom-text
{
.bottom-text
{
color
:
#999999
;
color
:
#999999
;
font-size
:
24rpx
;
font-size
:
24rpx
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment