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
2a01407a
Commit
2a01407a
authored
Apr 26, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无订单组件
parent
91ac0bb6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
49 deletions
+58
-49
noOrder.vue
src/components/order/noOrder.vue
+38
-0
index.vue
src/pages/index/index.vue
+17
-46
index.vue
src/pages/order/index.vue
+2
-2
search.vue
src/pages/order/search.vue
+1
-1
No files found.
src/components/order/noOrder.vue
0 → 100644
View file @
2a01407a
<
template
>
<view
class=
"no-order-view"
>
<image
class=
"no-order-image"
:src=
"wudingdanImage"
></image>
<text>
当前暂无订单
</text>
</view>
</
template
>
<
script
>
export
default
{
computed
:
{
wudingdanImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'wudingdan.png'
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.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
:
60rpx
;
margin-bottom
:
20rpx
;
}
}
</
style
>
src/pages/index/index.vue
View file @
2a01407a
...
@@ -28,8 +28,7 @@
...
@@ -28,8 +28,7 @@
<view
class=
"order-list-view"
v-if=
"loaded"
>
<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>
<image
:src=
"weiruzhuImage"
class=
"tip-view-image"
></image>
<view
class=
"tip-count"
>
{{
count
}}
</view>
<view
class=
"tip-other"
>
入驻通过后平台将向您推荐订单
</view>
<view
class=
"tip-other"
>
入驻通过后平台将向您推荐订单
</view>
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
<u-button
class=
"settle-button"
type=
"primary"
shape=
"circle"
@
click=
"immediatelyIn"
:custom-style=
"buttonStyle"
>
:custom-style=
"buttonStyle"
>
...
@@ -45,8 +44,7 @@
...
@@ -45,8 +44,7 @@
</view>
</view>
<!-- 入驻成功之后无推荐订单 -->
<!-- 入驻成功之后无推荐订单 -->
<view
v-else-if=
"!needSettled && orderList.length
<
=
0
"
class=
"no-order-view"
>
<view
v-else-if=
"!needSettled && orderList.length
<
=
0
"
class=
"no-order-view"
>
<image
class=
"no-order-image"
:src=
"wudingdanImage"
></image>
<NoOrder/>
<text>
当前暂无订单
</text>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -62,14 +60,16 @@
...
@@ -62,14 +60,16 @@
<
script
>
<
script
>
import
util
from
"@/utils/util.js"
;
import
util
from
"@/utils/util.js"
;
import
TabBarPage
from
"@/components/tabBarList/index.vue"
import
TabBarPage
from
"@/components/tabBarList/index.vue"
import
NoOrder
from
"@/components/order/noOrder.vue"
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
,
TabBarPage
TabBarPage
,
NoOrder
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -120,10 +120,10 @@
...
@@ -120,10 +120,10 @@
},
},
shouyeyouImage
()
{
shouyeyouImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'shouyeyou.png'
return
process
.
uniEnv
.
qn_base_url
+
'shouyeyou.png'
},
weiruzhuImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'weiruzhu.png'
},
},
wudingdanImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'wudingdan.png'
}
},
},
onLoad
()
{},
onLoad
()
{},
onShow
()
{
onShow
()
{
...
@@ -380,26 +380,19 @@
...
@@ -380,26 +380,19 @@
padding
:
30rpx
;
padding
:
30rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
min-height
:
460rpx
;
.tip-title
{
.tip-view-image
{
font-size
:
32rpx
;
width
:
328rpx
;
font-weight
:
bold
;
height
:
200rpx
;
color
:
#333333
;
margin-top
:
30rpx
;
margin-top
:
30rpx
;
}
.tip-count
{
color
:
#2272ff
;
font-size
:
70rpx
;
font-weight
:
bold
;
margin-top
:
50rpx
;
margin-bottom
:
20rpx
;
}
}
.tip-other
{
.tip-other
{
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#333333
;
color
:
#333333
;
margin-bottom
:
56rpx
;
margin-bottom
:
20rpx
;
}
.settle-button
{
}
}
}
}
...
@@ -407,28 +400,6 @@
...
@@ -407,28 +400,6 @@
background-color
:
#F4F5F7
;
background-color
:
#F4F5F7
;
border-radius
:
12rpx
;
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
;
}
}
}
}
}
}
...
...
src/pages/order/index.vue
View file @
2a01407a
...
@@ -465,7 +465,7 @@
...
@@ -465,7 +465,7 @@
width
:
220rpx
;
width
:
220rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
border-radius
:
36rpx
;
border-radius
:
36rpx
;
color
:
#
666666
;
color
:
#
999999
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
...
@@ -473,7 +473,7 @@
...
@@ -473,7 +473,7 @@
width
:
36rpx
;
width
:
36rpx
;
height
:
32rpx
;
height
:
32rpx
;
flex-shrink
:
0
;
flex-shrink
:
0
;
margin-right
:
2
0
rpx
;
margin-right
:
2
4
rpx
;
}
}
.search-btn-text
{
.search-btn-text
{
line-height
:
36rpx
;
line-height
:
36rpx
;
...
...
src/pages/order/search.vue
View file @
2a01407a
<
template
>
<
template
>
<view>
<view>
<u-search
placeholder=
"搜订单"
v-model=
"keyword"
></u-search>
</view>
</view>
</
template
>
</
template
>
...
...
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