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
b3e4d9b7
Commit
b3e4d9b7
authored
Jun 24, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的页面
parent
86f4ed66
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
568 additions
and
63 deletions
+568
-63
pages.json
src/pages.json
+16
-0
mine.vue
src/pages/index/mine.vue
+110
-58
express.vue
src/pages/mine/warehouse/express.vue
+3
-2
index.vue
src/pages/mine/warehouse/index.vue
+3
-2
partsDetail.vue
src/pages/mine/warehouse/partsDetail.vue
+1
-1
return.vue
src/pages/mine/warehouse/return.vue
+215
-0
spare.vue
src/pages/mine/warehouse/spare.vue
+220
-0
No files found.
src/pages.json
View file @
b3e4d9b7
...
@@ -262,6 +262,22 @@
...
@@ -262,6 +262,22 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
{
"path"
:
"warehouse/spare"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"我的备件"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"warehouse/return"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"返件信息"
,
"enablePullDownRefresh"
:
false
}
},
{
{
"path"
:
"warehouse/searchParts"
,
"path"
:
"warehouse/searchParts"
,
"style"
:
{
"style"
:
{
...
...
src/pages/index/mine.vue
View file @
b3e4d9b7
...
@@ -18,22 +18,31 @@
...
@@ -18,22 +18,31 @@
</view>
</view>
<view
v-if=
"showSuperButton"
class=
"super-button"
><u-button
@
click=
"handleSuperButton"
>
切换用户
</u-button></view>
<view
v-if=
"showSuperButton"
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)"
>
<image
:src=
"item.icon"
class=
"ware-house-image"
></image>
<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"
>
<u-cell-group
:border=
"false"
>
<view
v-for=
"(item, index) in
items"
:key=
"index
"
>
<view
v-for=
"(item, index) in
group"
:key=
"index.pathName
"
>
<u-cell-item
:value=
"item.value"
:border-bottom=
"false"
@
click=
"handleClick(item.pathName)"
>
<u-cell-item
:value=
"item.value"
:border-bottom=
"false"
@
click=
"handleClick(item.pathName)"
>
<image
slot=
"icon"
:src=
"qnFile(item.icon)"
:style=
"item.imageStyle"
></image>
<image
slot=
"icon"
:src=
"qnFile(item.icon)"
:style=
"item.imageStyle"
></image>
<view
slot=
"title"
class=
"item-title"
>
{{
item
.
title
}}
</view>
<view
slot=
"title"
class=
"item-title"
>
{{
item
.
title
}}
</view>
<view
slot=
"value"
class=
"item-value"
>
{{
value
}}
</view>
<view
slot=
"value"
class=
"item-value"
>
{{
value
}}
</view>
</u-cell-item>
</u-cell-item>
<view
v-if=
"index == 3"
class=
"line-view"
></view>
</view>
</view>
</u-cell-group>
</u-cell-group>
</view>
</view>
</view>
</view>
</view>
<u-modal
v-model=
"show"
:content=
"content"
show-cancel-button
@
confirm=
"logout"
></u-modal>
<u-modal
v-model=
"show"
:content=
"content"
show-cancel-button
@
confirm=
"logout"
></u-modal>
</view>
</view>
</
template
>
</
template
>
...
@@ -67,62 +76,77 @@
...
@@ -67,62 +76,77 @@
},
},
items
()
{
items
()
{
return
[
return
[
{
[
{
pathName
:
'wallet'
,
pathName
:
'wallet
/index
'
,
title
:
'我的钱包'
,
title
:
'我的钱包'
,
value
:
''
,
value
:
''
,
icon
:
'qianbao.png'
,
icon
:
'qianbao.png'
,
imageStyle
:
'width:34rpx;height:32rpx'
imageStyle
:
'width:34rpx;height:32rpx'
},
},
{
{
pathName
:
'deposit'
,
pathName
:
'deposit
/index
'
,
title
:
'配件押金'
,
title
:
'配件押金'
,
value
:
''
,
value
:
''
,
icon
:
'yajin.png'
,
icon
:
'yajin.png'
,
imageStyle
:
'width:32rpx;height:32rpx'
imageStyle
:
'width:32rpx;height:32rpx'
},
},
{
{
pathName
:
'contract'
,
pathName
:
'contract
/index
'
,
title
:
'我的合同'
,
title
:
'我的合同'
,
value
:
''
,
value
:
''
,
icon
:
'hetong.png'
,
icon
:
'hetong.png'
,
imageStyle
:
'width:34rpx;height:32rpx'
imageStyle
:
'width:34rpx;height:32rpx'
},
},
{
{
pathName
:
'cert'
,
pathName
:
'cert
/index
'
,
title
:
'我的证件'
,
title
:
'我的证件'
,
value
:
''
,
value
:
''
,
icon
:
'zhengjian.png'
,
icon
:
'zhengjian.png'
,
imageStyle
:
'width:36rpx;height:28rpx'
imageStyle
:
'width:36rpx;height:28rpx'
}
,
}
],[
{
{
pathName
:
'address'
,
pathName
:
'address
/index
'
,
title
:
'收货地址'
,
title
:
'收货地址'
,
value
:
''
,
value
:
''
,
icon
:
'wddizhi.png'
,
icon
:
'wddizhi.png'
,
imageStyle
:
'width:32rpx;height:32rpx'
imageStyle
:
'width:32rpx;height:32rpx'
},
},
// {
// pathName: 'warehouse',
// title: '我的仓库',
// value: '',
// icon: 'cangku.png',
// imageStyle: 'width:36rpx;height:32rpx'
// },
{
{
pathName
:
'warehouse'
,
pathName
:
'customer/index'
,
title
:
'我的仓库'
,
value
:
''
,
icon
:
'cangku.png'
,
imageStyle
:
'width:36rpx;height:32rpx'
},
{
pathName
:
'customer'
,
title
:
'联系客服'
,
title
:
'联系客服'
,
value
:
this
.
serviceTel
,
value
:
this
.
serviceTel
,
icon
:
'lxkefu.png'
,
icon
:
'lxkefu.png'
,
imageStyle
:
'width:32rpx;height:32rpx'
imageStyle
:
'width:32rpx;height:32rpx'
}]
]
},
},
warehouseItems
()
{
return
[
{
{
pathName
:
'about'
,
pathName
:
'warehouse/index'
,
title
:
'版本更新'
,
title
:
'我的配件'
,
value
:
process
.
uniEnv
.
version
,
value
:
''
,
icon
:
'version.png'
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'cangku.png'
,
imageStyle
:
'width:32rpx;height:32rpx'
},
}
{
pathName
:
'warehouse/spare'
,
title
:
'我的备件'
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'cangku.png'
,
},
{
pathName
:
'warehouse/return'
,
title
:
'返件信息'
,
value
:
''
,
icon
:
process
.
uniEnv
.
qn_base_url
+
'cangku.png'
,
},
]
]
},
},
telTip
()
{
telTip
()
{
...
@@ -162,12 +186,8 @@
...
@@ -162,12 +186,8 @@
},
},
handleClick
(
path
)
{
handleClick
(
path
)
{
if
(
this
.
vuex_token
)
{
if
(
this
.
vuex_token
)
{
if
(
path
===
'about'
)
{
app
.
updateApp
(
1
)
return
}
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/mine/'
+
path
+
'/index'
url
:
'pages/mine/'
+
path
})
})
}
else
{
}
else
{
this
.
$u
.
route
({
url
:
"pages/login/index"
})
this
.
$u
.
route
({
url
:
"pages/login/index"
})
...
@@ -209,7 +229,7 @@
...
@@ -209,7 +229,7 @@
position
:
relative
;
position
:
relative
;
height
:
100vh
;
height
:
100vh
;
overflow
:
auto
;
overflow
:
auto
;
background-color
:
#F
FFFFF
;
background-color
:
#F
4F5F7
;
.header-image
{
.header-image
{
position
:
absolute
;
position
:
absolute
;
...
@@ -226,11 +246,11 @@
...
@@ -226,11 +246,11 @@
.mine-content
{
.mine-content
{
position
:
relative
;
position
:
relative
;
padding
:
30rpx
;
.header-view
{
.header-view
{
padding
:
30rpx
30rpx
80rpx
30rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
60rpx
;
.head-image
{
.head-image
{
width
:
144rpx
;
width
:
144rpx
;
height
:
144rpx
;
height
:
144rpx
;
...
@@ -280,13 +300,43 @@
...
@@ -280,13 +300,43 @@
margin-left
:
20rpx
;
margin-left
:
20rpx
;
}
}
}
}
.ware-house-view
{
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
padding
:
30rpx
;
height
:
240rpx
;
.ware-house-title
{
color
:
#333333
;
font-weight
:
bold
;
font-size
:
32rpx
;
margin-bottom
:
12rpx
;
}
.ware-house-content
{
display
:
flex
;
justify-content
:
space-around
;
align-items
:
center
;
.ware-house-content-item
{
color
:
#333333
;
font-size
:
26rpx
;
text-align
:
center
;
.ware-house-image
{
width
:
60rpx
;
height
:
60rpx
;
margin-bottom
:
12rpx
;
}
}
}
}
.list-view
{
.list-view
{
.group-view
{
margin-top
:
20rpx
;
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
border-radius
:
32rpx
32rpx
0
0
;
border-radius
:
12rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
padding-top
:
16rpx
;
.item-title
{
.item-title
{
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#333333
;
color
:
#333333
;
...
@@ -305,6 +355,8 @@
...
@@ -305,6 +355,8 @@
margin
:
30rpx
;
margin
:
30rpx
;
}
}
}
}
}
}
}
}
}
...
...
src/pages/mine/warehouse/express.vue
View file @
b3e4d9b7
...
@@ -224,13 +224,14 @@
...
@@ -224,13 +224,14 @@
.title-view
{
.title-view
{
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
32rpx
;
font-size
:
32rpx
;
margin-bottom
:
12rpx
;
}
}
.number-view
{
.number-view
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
12rpx
;
.copy-view
{
.copy-view
{
color
:
#2272FF
;
color
:
#2272FF
;
padding-left
:
30rpx
;
padding-left
:
30rpx
;
...
...
src/pages/mine/warehouse/index.vue
View file @
b3e4d9b7
<
template
>
<
template
>
<!-- 我的配件 -->
<view
class=
"ware-house"
>
<view
class=
"ware-house"
>
<u-navbar
back-icon-color=
"#333333"
background=
"#FFFFFF"
title=
"我的
仓库
"
titleColor=
"#333333"
<u-navbar
back-icon-color=
"#333333"
background=
"#FFFFFF"
title=
"我的
配件
"
titleColor=
"#333333"
:border-bottom=
"false"
title-bold
></u-navbar>
:border-bottom=
"false"
title-bold
></u-navbar>
<!--
<view
class=
"tools-box"
>
<!--
<view
class=
"tools-box"
>
<view
class=
"search-sub"
>
<view
class=
"search-sub"
>
...
...
src/pages/mine/warehouse/partsDetail.vue
View file @
b3e4d9b7
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<text
class=
"amount-view"
>
{{
total
}}
</text>
<text
class=
"amount-view"
>
{{
total
}}
</text>
<text>
件
</text>
<text>
件
</text>
</view>
</view>
<u-button
v-if=
"buttonText"
:custom-style=
"customStyle"
shape=
"circle"
@
click=
"handleClick"
type=
"primary"
>
<u-button
:custom-style=
"customStyle"
shape=
"circle"
@
click=
"handleClick"
type=
"primary"
>
{{
buttonText
}}
{{
buttonText
}}
</u-button>
</u-button>
</view>
</view>
...
...
src/pages/mine/warehouse/return.vue
0 → 100644
View file @
b3e4d9b7
This diff is collapsed.
Click to expand it.
src/pages/mine/warehouse/spare.vue
0 → 100644
View file @
b3e4d9b7
This diff is collapsed.
Click to expand it.
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