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
1e8ba92e
Commit
1e8ba92e
authored
Nov 18, 2021
by
zhoucong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
相册图片优化
parent
34e173bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
14 deletions
+11
-14
orderPay.vue
pages/vlog/orderPay/orderPay.vue
+10
-10
productDetails.vue
pages/vlog/productDetails/productDetails.vue
+1
-3
uploadPictures.vue
pages/vlog/uploadPictures/uploadPictures.vue
+0
-1
No files found.
pages/vlog/orderPay/orderPay.vue
View file @
1e8ba92e
...
...
@@ -25,7 +25,7 @@
</view>
<u-cell-group>
<u-cell-item
title=
"商品金额"
:value=
"'¥'+ price"
:arrow=
"false"
></u-cell-item>
<u-cell-item
title=
"运费"
:value=
"'¥'+Freight.defaultCost"
:arrow=
"false"
></u-cell-item>
<u-cell-item
title=
"运费"
:value=
"
Freight.defaultCost==0?'包邮':
'¥'+Freight.defaultCost"
:arrow=
"false"
></u-cell-item>
</u-cell-group>
<view
class=
"bottom"
>
<view
class=
"price"
>
...
...
@@ -53,12 +53,12 @@
Freight
:
{},
//手续费信息
}
},
onLoad
()
{
//
代替 vue 里面的
created
onLoad
()
{
//created
this
.
productVo
=
uni
.
getStorageSync
(
'productVo'
)
this
.
price
=
(
this
.
productVo
.
priceStockList
[
0
].
sellingPrice
*
1
).
toFixed
(
2
)
this
.
getAddress
()
},
onReady
()
{
//
代替 vue 里面的
mounted
onReady
()
{
//mounted
},
methods
:
{
confirm
()
{
//确认订单
...
...
@@ -77,9 +77,6 @@
title
:
'联系方式不能为空!'
});
}
uni
.
showLoading
({
title
:
'订单创建中'
});
let
imgList
=
[]
imgList
=
uni
.
getStorageSync
(
'sortImglist'
)
let
coverInside
=
uni
.
getStorageSync
(
'coverInside'
)
...
...
@@ -94,7 +91,7 @@
userId
:
uni
.
getStorageSync
(
'openid'
),
//openid
orderSource
:
1
,
//订单来源 1公众号平台、2公众号组合页面1、3公众号组合页面2、4胖丁伙伴app、5第三方自助机、6第三方票房窗口
orderType
:
4
,
//订单类型(0其他,1景区,2酒店,3餐饮,4特产,5运营车,10组合订单)
ticketPhone
:
this
.
address
.
phone
,
ticketPhone
:
this
.
address
.
phone
,
//联系电话
orderProductVo
:
{
buyNum
:
1
,
//购买数量
couponList
:
[],
...
...
@@ -120,13 +117,16 @@
}
}
uni
.
showLoading
({
title
:
'订单创建中'
});
this
.
$request
(
'orderc/order/createOrder'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
"00"
)
{
this
.
$u
.
route
(
"pages/orderPayment/orderPayment"
,
{
orderId
:
res
.
data
.
id
})
uni
.
hideLoading
();
}
else
{
}
else
{
uni
.
showModal
({
showCancel
:
false
,
title
:
'提示'
,
...
...
@@ -146,7 +146,7 @@
this
.
address
=
res
.
data
[
0
]
this
.
addressShow
=
false
this
.
getFreight
()
}
else
{
}
else
{
uni
.
showModal
({
showCancel
:
false
,
title
:
'提示'
,
...
...
@@ -165,7 +165,7 @@
this
.
allprice
=
((
this
.
productVo
.
priceStockList
[
0
].
sellingPrice
*
1
)
+
(
this
.
Freight
.
defaultCost
*
1
))
this
.
showBody
=
true
}
else
{
}
else
{
uni
.
showModal
({
showCancel
:
false
,
title
:
'提示'
,
...
...
pages/vlog/productDetails/productDetails.vue
View file @
1e8ba92e
...
...
@@ -28,7 +28,6 @@
<view
class=
"coverItem1"
v-for=
"(item,index) in imgList2"
:key=
"index"
>
<image
class=
"img"
:src=
"item.url"
@
click=
"changeCover(item.url)"
></image>
<image
v-if=
"cover===item.url"
src=
"../../../static/img/vlog/icon/check.png"
class=
"icon"
></image>
<!--
<u-icon
v-if=
"cover===item.url"
class=
"icon"
name=
"checkmark-circle-fill"
color=
"#2979FF"
size=
"50"
></u-icon>
-->
</view>
</view>
</view>
...
...
@@ -37,7 +36,6 @@
<view
class=
"coverItem"
v-for=
"(item,index) in imgList3"
:key=
"index"
>
<image
class=
"img"
:src=
"item.url"
@
click=
"changeinsidePages(item.url)"
></image>
<image
v-if=
"insidePages===item.url"
src=
"../../../static/img/vlog/icon/check.png"
class=
"icon"
></image>
<!--
<u-icon
v-if=
"insidePages===item.url"
class=
"icon"
name=
"checkmark-circle-fill"
color=
"#2979FF"
size=
"50"
></u-icon>
-->
</view>
</view>
</view>
...
...
@@ -134,7 +132,7 @@
imgUrl
:
this
.
cover
},
inside
:
{
imgName
:
'
封面
'
,
imgName
:
'
内页
'
,
imgUrl
:
this
.
insidePages
}
}
...
...
pages/vlog/uploadPictures/uploadPictures.vue
View file @
1e8ba92e
...
...
@@ -14,7 +14,6 @@
<view
class=
"imgItem"
@
click=
"changeImg(item,index)"
>
<image
:src=
"imgUrl+item.url"
></image>
<image
v-if=
"item.check===1"
src=
"../../../static/img/vlog/icon/check.png"
class=
"icon"
></image>
<!--
<u-icon
v-if=
"item.check===1"
class=
"icon"
name=
"checkmark-circle-fill"
color=
"#2979FF"
size=
"50"
></u-icon>
-->
</view>
</block>
</view>
...
...
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