Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
e24d9475
Commit
e24d9475
authored
Sep 15, 2021
by
zhoucong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
ec1c638d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
5 deletions
+49
-5
myVlogPhotos.vue
pages/vlog/myVlogPhotos/myVlogPhotos.vue
+48
-4
product.vue
pages/vlog/product/product.vue
+1
-1
No files found.
pages/vlog/myVlogPhotos/myVlogPhotos.vue
View file @
e24d9475
...
...
@@ -5,12 +5,33 @@
<text
style=
"font-size: 24rpx;color: #ccc;margin-left: 30rpx;"
>
MOMENT
</text>
</view>
<image
src=
"../../../static/img/vlog/icon/fengexian.png"
mode=
""
style=
"width: 100%;height: 15rpx;"
></image>
<view
class=
"row"
>
<view
class=
"item"
v-for=
"(item,index) in list"
:key=
"index"
@
click=
"pushImg(item)"
>
<image
:src=
"item.thumbImageUrl"
mode=
""
></image>
<u-icon
class=
"icon"
name=
"checkmark-circle-fill"
color=
"#2979FF"
size=
"50"
></u-icon>
<view
class=
"price"
>
<text
class=
"text1"
>
¥123
</text>
<text
class=
"text2"
>
¥123
</text>
</view>
</view>
</view>
<view
class=
"bottom"
>
<view
class=
"price"
>
<text
class=
"text1"
>
¥123
</text>
<text
class=
"text2"
>
¥123
</text>
</view>
<view
class=
"btnn"
>
提交订单
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
list
:[],
//相片列表
checkImg
:
""
,
//选中的图片
}
},
onLoad
(){
//代替 vue 里面的 created
...
...
@@ -19,6 +40,9 @@ export default {
onReady
()
{
//代替 vue 里面的 mounted
},
methods
:
{
pushImg
(
item
){
//添加相片到订单
// this.checkImg=item.thumbImageUrl
},
getPhotoData
(){
//获取用户vlog图片
this
.
$request
(
"wechatUser/myPage/getVlogRecord"
,
{
openid
:
uni
.
getStorageSync
(
"openid"
),
...
...
@@ -26,17 +50,37 @@ export default {
}).
then
(
res
=>
{
console
.
log
(
res
.
data
);
if
(
res
.
code
===
"00"
)
{
this
.
list
=
res
.
data
}
else
{
uni
.
showModal
({
title
:
'提示'
,
content
:
res
.
message
,
showCancel
:
false
,
})
}
})
// this.$request("distribution/vlog/getBeautyPhotos",{jobId: uni.getStorageSync("openid"),userId:uni.getStorageSync("openid")}).then(res=>{
// console.log("123",res);
// })
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.content
{
padding
:
0
20rpx
;
box-sizing
:
border-box
;
margin
:
0
auto
;
.row
{
display
:
flex
;
width
:
100%
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
padding-bottom
:
100rpx
;
.item
{
width
:
48%
;
height
:
220rpx
;
position
:
relative
;
margin-bottom
:
20rpx
;
image
{
width
:
100%
;
height
:
100%
;
border-radius
:
10rpx
;}
.icon
{
position
:
absolute
;
top
:
5rpx
;
right
:
5rpx
;}
.price
{
position
:
absolute
;
bottom
:
10rpx
;
right
:
10rpx
;
font-weight
:
bold
;
.text1
{
font-size
:
24rpx
;
text-decoration
:
line-through
;
color
:
#ccc
;}
.text2
{
font-size
:
32rpx
;
color
:
#EE520E
;
margin-left
:
10rpx
;}
}
}
}
.bottom
{
border-top
:
1rpx
solid
#e8e8e8
;
background-color
:
#fff
;
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
height
:
100rpx
;
right
:
0
;
line-height
:
100rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
border-top-left-radius
:
10rpx
;
border-top-right-radius
:
10rpx
;
z-index
:
10
;
.btnn
{
float
:
right
;
width
:
200rpx
;
background-color
:
#FFE600
;
border-radius
:
10rpx
;
text-align
:
center
;}
.price
{
font-weight
:
bold
;
float
:
left
;
padding-left
:
20rpx
;
.text1
{
font-size
:
24rpx
;
text-decoration
:
line-through
;
color
:
#ccc
;}
.text2
{
font-size
:
32rpx
;
color
:
#EE520E
;
margin-left
:
10rpx
;}
}
}
}
</
style
>
\ No newline at end of file
pages/vlog/product/product.vue
View file @
e24d9475
...
...
@@ -23,7 +23,7 @@
</navigator>
</view>
<view
class=
"guige"
>
规格:
{{
item
.
priceStockList
[
0
].
standardName
}}
规格:
{{
item
.
priceStockList
[
0
].
standardName
||
""
}}
</view>
</view>
</block>
...
...
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