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
abb25e5c
Commit
abb25e5c
authored
May 10, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的首页-部分修改
parent
43751fef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
176 additions
and
88 deletions
+176
-88
mine.vue
src/pages/index/mine.vue
+176
-88
No files found.
src/pages/index/mine.vue
View file @
abb25e5c
<
template
>
<view>
<u-navbar
v-if=
"!takeStatus"
:is-back=
"false"
:title-size=
"26"
title-color=
"#000"
title=
"我的"
></u-navbar>
<view
v-if=
"!takeStatus"
>
<view
class=
"u-flex user-box u-p-l-30 u-p-r-20 u-p-b-30"
>
<view
class=
"u-m-r-10"
>
<u-avatar
:src=
"pic"
size=
"140"
></u-avatar>
</view>
<view
class=
"u-flex-1"
>
<view
class=
"u-font-18 u-p-b-20"
>
uView ui
</view>
<view
class=
"u-font-14 u-tips-color"
>
微信号:helang_uView
</view>
</view>
</view>
<
template
>
<view
class=
"mine-view"
>
<image
class=
"header-image"
mode=
"widthFix"
:src=
"imageUrl + 'wodebeijing.png'"
></image>
<u-navbar
:is-back=
"false"
:background=
"
{ background: 'transparent' }" :border-bottom="false">
<text
class=
"title-view"
>
我的
</text>
</u-navbar>
<view
v-if=
"!takeStatus"
class=
"mine-content"
>
<view
class=
"u-flex header-view"
>
<view
class=
"u-m-r-10"
>
<u-avatar
:src=
"pic"
size=
"140"
></u-avatar>
</view>
<view
class=
"u-flex-1"
>
<view
class=
"u-font-18 u-p-b-20"
>
uView ui
</view>
<view
class=
"u-font-14 u-tips-color"
>
微信号:helang_uView
</view>
</view>
</view>
<view
class=
"list-view"
>
<u-cell-group>
<view
v-for=
"(item, index) in items"
:key=
"index"
>
<u-cell-item
:value=
"item.value"
:border-bottom=
"false"
@
click=
"handleClick(index)"
>
<image
slot=
"icon"
:src=
"imageUrl + item.icon"
:style=
"item.imageStyle"
></image>
<view
slot=
"title"
class=
"item-title"
>
{{
item
.
title
}}
</view>
<view
slot=
"value"
class=
"item-value"
>
{{
value
}}
</view>
</u-cell-item>
<view
v-if=
"index == 3"
class=
"line-view"
></view>
</view>
</u-cell-group>
</view>
<view
class=
"u-m-t-20"
@
click=
"take"
>
<u-cell-group>
<u-cell-item
icon=
"setting"
title=
"相机组件测试"
></u-cell-item>
</u-cell-group>
</view>
</view>
<take-photo
v-if=
"takeStatus"
:currentItem=
"testData"
@
close=
"closeTake"
></take-photo>
</view>
</
template
>
<
script
>
import
takePhoto
from
'@/components/take/index.vue'
export
default
{
components
:
{
'take-photo'
:
takePhoto
},
data
()
{
return
{
serviceTel
:
'0755-81773817'
,
pic
:
'https://uviewui.com/common/logo.png'
,
show
:
true
,
takeStatus
:
false
,
testData
:
{
_id
:
'1'
,
// 规格ID
system_id
:
'2'
,
// 系统ID
brand_id
:
'3'
,
// 品牌ID
classify_id
:
'4'
,
// 分类ID
images
:
[
// 拍照要求示意图
'https://qn-static.banshouhui.com/live_mark.png'
,
'https://qn-static.banshouhui.com/live_mark.png'
,
'https://qn-static.banshouhui.com/live_mark.png'
],
main_point
:
[]
// 要点
}
}
},
computed
:
{
items
()
{
return
[{
title
:
'我的钱包'
,
value
:
''
,
icon
:
'qianbao.png'
,
imageStyle
:
'width:34rpx;height:32rpx'
},
{
title
:
'配件押金'
,
value
:
''
,
icon
:
'yajin.png'
,
imageStyle
:
'width:32rpx;height:32rpx'
},
{
title
:
'我的合同'
,
value
:
''
,
icon
:
'hetong.png'
,
imageStyle
:
'width:34rpx;height:32rpx'
},
{
title
:
'我的证件'
,
value
:
''
,
icon
:
'zhengjian.png'
,
imageStyle
:
'width:36rpx;height:28rpx'
},
{
title
:
'收货地址'
,
value
:
''
,
icon
:
'wddizhi.png'
,
imageStyle
:
'width:32rpx;height:32rpx'
},
{
title
:
'我的仓库'
,
value
:
''
,
icon
:
'cangku.png'
,
imageStyle
:
'width:36rpx;height:32rpx'
},
{
title
:
'联系客服'
,
value
:
this
.
serviceTel
,
icon
:
'lxkefu.png'
,
imageStyle
:
'width:32rpx;height:32rpx'
}
]
},
imageUrl
(
name
)
{
return
process
.
uniEnv
.
qn_base_url
},
pages
()
{
return
[]
}
},
onLoad
()
{
},
methods
:
{
take
()
{
uni
.
hideTabBar
()
this
.
takeStatus
=
true
},
closeTake
(
img
)
{
console
.
log
(
img
)
this
.
takeStatus
=
false
},
handleClick
(
index
)
{
uni
.
navigateTo
({
url
:
'pages/mine/'
+
this
.
pages
[
index
]
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.mine-view
{
position
:
relative
;
.header-image
{
position
:
absolute
;
width
:
100%
;
}
.title-view
{
color
:
#FFFFFF
;
font-weight
:
bold
;
font-size
:
40rpx
;
}
.mine-content
{
background-color
:
#F4F5F7
;
.header-view
{}
<view
class=
"u-m-t-20"
>
<u-cell-group>
<u-cell-item
v-for=
"(item, index) in items"
:title=
"item.title"
:value=
"item.value"
:key=
"index"
>
<u-icon
slot=
"icon"
size=
"32"
name=
"search"
></u-icon>
</u-cell-item>
</u-cell-group>
</view>
.list-view
{
background-color
:
#FFFFFF
;
border-radius
:
16rpx
16rpx
0
0
;
<view
class=
"u-m-t-20"
>
<u-cell-group>
<u-cell-item
icon=
"setting"
title=
"设置"
></u-cell-item>
</u-cell-group>
</view>
<view
class=
"u-m-t-20"
@
click=
"take"
>
<u-cell-group>
<u-cell-item
icon=
"setting"
title=
"相机组件测试"
></u-cell-item>
</u-cell-group>
</view>
</view>
<take-photo
v-if=
"takeStatus"
:currentItem=
"testData"
@
close=
"closeTake"
></take-photo>
</view>
</
template
>
<
script
>
import
takePhoto
from
'@/components/take/index.vue'
export
default
{
components
:
{
'take-photo'
:
takePhoto
},
data
()
{
return
{
pic
:
'https://uviewui.com/common/logo.png'
,
show
:
true
,
takeStatus
:
false
,
testData
:
{
_id
:
'1'
,
// 规格ID
system_id
:
'2'
,
// 系统ID
brand_id
:
'3'
,
// 品牌ID
classify_id
:
'4'
,
// 分类ID
images
:
[
// 拍照要求示意图
'https://qn-static.banshouhui.com/live_mark.png'
,
'https://qn-static.banshouhui.com/live_mark.png'
,
'https://qn-static.banshouhui.com/live_mark.png'
],
main_point
:
[]
// 要点
.item-title
{
font-size
:
32rpx
;
color
:
#333333
;
margin-left
:
16rpx
;
line-height
:
32rpx
;
}
}
},
computed
:
{
items
()
{
return
[
{
title
:
'我的钱包'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的质保金'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的合同'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的证件'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的收货地址'
,
value
:
''
,
icon
:
''
},
{
title
:
'我的仓库'
,
value
:
''
,
icon
:
''
},
{
title
:
'联系客服'
,
value
:
'6666666'
,
icon
:
''
}]
}
},
onLoad
()
{
},
methods
:
{
take
()
{
uni
.
hideTabBar
()
this
.
takeStatus
=
true
},
closeTake
(
img
)
{
console
.
log
(
img
)
this
.
takeStatus
=
false
.item-value
{
font-size
:
26rpx
;
color
:
#999999
;
}
.line-view
{
height
:
2rpx
;
background-color
:
#F4F5F7
;
margin-top
:
30rpx
;
margin-bottom
:
30rpx
;
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
}
}
</
style
>
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