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
45ff8ad0
Commit
45ff8ad0
authored
Aug 18, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 前台-订单管理
parent
2ecfd683
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
216 additions
and
200 deletions
+216
-200
mine.vue
src/pages/index/mine.vue
+216
-200
index.vue
src/pages/mine/order/index.vue
+0
-0
list.vue
src/pages/mine/order/list.vue
+0
-0
No files found.
src/pages/index/mine.vue
View file @
45ff8ad0
...
...
@@ -4,8 +4,7 @@
<u-navbar
:is-back=
"false"
:background=
"
{ background: 'transparent' }" :border-bottom="false">
<text
class=
"title-view"
>
我的
</text>
</u-navbar>
<view
class=
"mine-content"
>
<view
class=
"header-view"
>
<view
class=
"header-view"
>
<view
class=
"header-left-view"
>
<view
class=
"head-image"
>
<image
:style=
"headImageStyle"
:src=
"headImageUrl"
></image>
...
...
@@ -17,28 +16,30 @@
<u-icon
class=
"tel-arrow-icon"
name=
"arrow-up-fill"
></u-icon>
</view>
</view>
</view>
<view
class=
"header-right-view"
@
click=
"$u.throttle(handleClickSetting, 500)"
>
<view
class=
"setting-view"
>
<image
:src=
"shezhiImage"
class=
"right-image-view"
></image>
<text>
设置
</text>
</view>
<view
v-if=
"isSuperuser"
class=
"super-button"
><u-button
@
click=
"handleSuperButton"
>
切换用户
</u-button></view>
</view>
</view>
<view
class=
"ware-house-view"
>
<view
class=
"ware-house-title"
>
仓配功能
</view>
<view
class=
"ware-house-content"
>
<view
v-for=
"(item, index) in warehouseItems"
:key=
"index"
class=
"ware-house-content-item"
@
click=
"handleClick(item.pathName)"
>
<view
class=
"ware-house-image"
>
<image
:src=
"item.icon"
:style=
"item.imageStyle"
></image>
</view>
<view>
{{
item
.
title
}}
</view>
</view>
</view>
</view>
<view
class=
"header-right-view"
@
click=
"$u.throttle(handleClickSetting, 500)"
>
<view
class=
"setting-view"
>
<image
:src=
"shezhiImage"
class=
"right-image-view"
></image>
<text>
设置
</text>
</view>
<view
v-if=
"isSuperuser"
class=
"super-button"
><u-button
@
click=
"handleSuperButton"
>
切换用户
</u-button></view>
</view>
</view>
<view
class=
"mine-content"
>
<view
class=
"ware-house-view"
>
<view
class=
"ware-house-title"
>
仓配功能
</view>
<view
class=
"ware-house-content"
>
<view
v-for=
"(item, index) in warehouseItems"
:key=
"index"
class=
"ware-house-content-item"
@
click=
"handleClick(item.pathName)"
>
<view
class=
"ware-house-image"
>
<image
:src=
"item.icon"
:style=
"item.imageStyle"
></image>
</view>
<view>
{{
item
.
title
}}
</view>
</view>
</view>
</view>
<view
class=
"list-view"
>
<view
class=
"list-view"
>
<view
v-for=
"(group, ind) in items"
:key=
"ind"
class=
"group-view"
>
<u-cell-group
:border=
"false"
>
<view
v-for=
"(item, index) in group"
:key=
"index"
>
...
...
@@ -48,7 +49,7 @@
<view
slot=
"value"
class=
"item-value"
>
{{
value
}}
</view>
</u-cell-item>
</view>
</u-cell-group>
</u-cell-group>
</view>
</view>
</view>
...
...
@@ -87,6 +88,12 @@
items
()
{
return
[
[{
pathName
:
'order/index'
,
title
:
'订单管理'
,
value
:
''
,
icon
:
'qianbao.png'
,
imageStyle
:
'width:34rpx;height:32rpx'
},{
pathName
:
'wallet/index'
,
title
:
'我的钱包'
,
value
:
''
,
...
...
@@ -136,38 +143,38 @@
imageStyle
:
'width:32rpx;height:32rpx'
}]
]
},
warehouseItems
()
{
},
warehouseItems
()
{
return
[
{
pathName
:
'warehouse/index'
,
title
:
'备件订单'
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'wodepeijian.png'
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'wodepeijian.png'
,
imageStyle
:
'width:60rpx;height:54rpx'
},
{
pathName
:
'warehouse/spare'
,
title
:
'备件库'
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'wodebeijian.png'
,
imageStyle
:
'width:60rpx;height:54rpx'
},
{
pathName
:
'warehouse/spare'
,
title
:
'备件库'
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'wodebeijian.png'
,
imageStyle
:
'width:60rpx;height:54rpx'
},
{
pathName
:
'warehouse/return'
,
title
:
'返件信息'
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'fanjianxinxi.png'
,
imageStyle
:
'width:56rpx;height:54rpx'
},
{
pathName
:
'warehouse/records'
,
title
:
'出库记录'
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'churuku.png'
,
imageStyle
:
'width:50rpx;height:54rpx'
},
]
},
{
pathName
:
'warehouse/return'
,
title
:
'返件信息'
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'fanjianxinxi.png'
,
imageStyle
:
'width:56rpx;height:54rpx'
},
{
pathName
:
'warehouse/records'
,
title
:
'出库记录'
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'churuku.png'
,
imageStyle
:
'width:50rpx;height:54rpx'
},
]
},
telTip
()
{
return
this
.
mobile
||
'绑定手机号'
...
...
@@ -180,20 +187,20 @@
},
headSize
()
{
return
this
.
avatar
?
112
:
120
},
shezhiImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'shezhi.png'
},
isSuperuser
()
{
return
this
.
vuex_superuser
},
shezhiImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'shezhi.png'
},
isSuperuser
()
{
return
this
.
vuex_superuser
}
},
watch
:
{
vuex_token
(
val
,
oldVal
)
{
if
(
val
&&
!
this
.
isSuperuser
)
{
this
.
allowLogin
()
}
},
},
watch
:
{
vuex_token
(
val
,
oldVal
)
{
if
(
val
&&
!
this
.
isSuperuser
)
{
this
.
allowLogin
()
}
},
},
onLoad
()
{
app
.
trackPage
(
'我的首页'
)
...
...
@@ -225,9 +232,9 @@
}
else
{
this
.
$u
.
route
({
url
:
"pages/login/index"
})
}
},
handleClickSetting
()
{
this
.
$u
.
route
({
url
:
'pages/mine/setting/index'
})
},
handleClickSetting
()
{
this
.
$u
.
route
({
url
:
'pages/mine/setting/index'
})
},
handleClickName
()
{
if
(
this
.
vuex_token
&&
this
.
settled
)
{
...
...
@@ -248,8 +255,8 @@
},
async
allowLogin
()
{
// 超级用户,显示登录按钮
let
res
=
await
this
.
$u
.
api
.
allowLogin
()
if
(
res
&&
res
.
code
==
200
)
{
this
.
$u
.
vuex
(
'vuex_superuser'
,
res
.
data
);
if
(
res
&&
res
.
code
==
200
)
{
this
.
$u
.
vuex
(
'vuex_superuser'
,
res
.
data
);
}
},
...
...
@@ -264,9 +271,9 @@
.mine-view
{
position
:
relative
;
height
:
100vh
;
overflow
:
auto
;
display
:
flex
;
background-color
:
#F4F5F7
;
flex-direction
:
column
;
.header-image
{
position
:
absolute
;
width
:
100%
;
...
...
@@ -279,148 +286,157 @@
font-size
:
40rpx
;
padding-left
:
30rpx
;
}
.mine-content
{
position
:
relative
;
padding
:
26rpx
30rpx
30rpx
20rpx
;
.header-view
{
display
:
flex
;
align-items
:
flex-start
;
justify-content
:
space-between
;
margin-bottom
:
60rpx
;
.header-left-view
{
display
:
flex
;
align-items
:
center
;
.head-image
{
width
:
120rpx
;
height
:
120rpx
;
background-color
:
#FFFFFF
;
border-radius
:
60rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.header-content
{
color
:
#FFFFFF
;
z-index
:
1
;
margin-left
:
24rpx
;
.name-view
{
font-size
:
40rpx
;
font-weight
:
bold
;
margin-bottom
:
6rpx
;
margin-top
:
-4rpx
;
}
.tel-view
{
background-color
:
#FFFFFF
;
border-radius
:
26rpx
;
color
:
#2272FF
;
width
:
180rpx
;
height
:
52rpx
;
font-size
:
20rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
&
.active
{
color
:
#FFFFFF
;
border
:
2rpx
solid
#FFFFFF
;
background-color
:
#2272FF
;
}
.tel-arrow-icon
{
transform
:
rotate
(
90deg
);
margin-left
:
6rpx
;
}
}
}
align-items
:
flex-start
;
justify-content
:
space-between
;
// margin-bottom: 60rpx;
padding
:
26rpx
30rpx
60rpx
30rpx
;
.header-left-view
{
display
:
flex
;
align-items
:
center
;
.head-image
{
z-index
:
1
;
width
:
120rpx
;
height
:
120rpx
;
background-color
:
#FFFFFF
;
border-radius
:
60rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.header-content
{
color
:
#FFFFFF
;
z-index
:
1
;
margin-left
:
24rpx
;
.name-view
{
font-size
:
40rpx
;
font-weight
:
bold
;
margin-bottom
:
6rpx
;
margin-top
:
-4rpx
;
}
.tel-view
{
background-color
:
#FFFFFF
;
border-radius
:
26rpx
;
color
:
#2272FF
;
width
:
180rpx
;
height
:
52rpx
;
font-size
:
20rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
&
.active
{
color
:
#FFFFFF
;
border
:
2rpx
solid
#FFFFFF
;
background-color
:
#2272FF
;
}
.tel-arrow-icon
{
transform
:
rotate
(
90deg
);
margin-left
:
6rpx
;
}
}
}
}
.header-right-view
{
z-index
:
1
;
.setting-view
{
display
:
flex
;
justify-content
:
flex-end
;
align-items
:
center
;
color
:
#FFFFFF
;
margin-right
:
4rpx
;
font-size
:
26rpx
;
margin-top
:
-24rpx
;
.right-image-view
{
width
:
34rpx
;
height
:
32rpx
;
margin-right
:
10rpx
;
}
}
.super-button
{
margin-top
:
20rpx
;
}
}
.header-right-view
{
.setting-view
{
display
:
flex
;
justify-content
:
flex-end
;
align-items
:
center
;
color
:
#FFFFFF
;
margin-right
:
4rpx
;
font-size
:
26rpx
;
margin-top
:
-24rpx
;
.right-image-view
{
width
:
34rpx
;
height
:
32rpx
;
margin-right
:
10rpx
;
}
}
.super-button
{
margin-top
:
20rpx
;
}
}
.mine-content
{
height
:
100%
;
overflow
:
auto
;
position
:
relative
;
padding-bottom
:
30rpx
;
margin
:
0rpx
30rpx
;
border-radius
:
12rpx
;
.ware-house-view
{
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
padding
:
30rpx
30rpx
40rpx
30rpx
;
height
:
240rpx
;
.ware-house-title
{
color
:
#333333
;
font-weight
:
bold
;
font-size
:
32rpx
;
margin-bottom
:
30rpx
;
}
}
.ware-house-view
{
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
padding
:
30rpx
30rpx
40rpx
30rpx
;
height
:
240rpx
;
.ware-house-title
{
color
:
#333333
;
font-weight
:
bold
;
font-size
:
32rpx
;
margin-bottom
:
30rpx
;
}
.ware-house-content
{
display
:
flex
;
justify-content
:
space-around
;
align-items
:
center
;
.ware-house-content-item
{
color
:
#333333
;
font-size
:
26rpx
;
display
:
flex
;
justify-content
:
center
;
flex-direction
:
column
;
align-items
:
center
;
.ware-house-image
{
width
:
60rpx
;
height
:
60rpx
;
margin-bottom
:
14rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
}
}
.ware-house-content
{
display
:
flex
;
justify-content
:
space-around
;
align-items
:
center
;
.ware-house-content-item
{
color
:
#333333
;
font-size
:
26rpx
;
display
:
flex
;
justify-content
:
center
;
flex-direction
:
column
;
align-items
:
center
;
.ware-house-image
{
width
:
60rpx
;
height
:
60rpx
;
margin-bottom
:
14rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
}
}
}
.list-view
{
.group-view
{
margin-top
:
20rpx
;
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
overflow
:
hidden
;
.item-title
{
font-size
:
32rpx
;
color
:
#333333
;
margin-left
:
16rpx
;
line-height
:
32rpx
;
}
.item-value
{
font-size
:
26rpx
;
color
:
#999999
;
}
.line-view
{
height
:
2rpx
;
background-color
:
#F4F5F7
;
margin
:
30rpx
;
}
.group-view
{
margin-top
:
20rpx
;
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
overflow
:
hidden
;
.item-title
{
font-size
:
32rpx
;
color
:
#333333
;
margin-left
:
16rpx
;
line-height
:
32rpx
;
}
.item-value
{
font-size
:
26rpx
;
color
:
#999999
;
}
.line-view
{
height
:
2rpx
;
background-color
:
#F4F5F7
;
margin
:
30rpx
;
}
}
}
}
}
...
...
src/pages/mine/order/index.vue
0 → 100644
View file @
45ff8ad0
src/pages/mine/order/list.vue
0 → 100644
View file @
45ff8ad0
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