Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
yoho-miniapp-ufo
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
黄敬囿
6 years ago
Commit
878dd79d531f25d0d24978b947a69a36ebd3a928
1 parent
7d3538e8
优化订单列表 review by肖亚东
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
src/components/order/orderaction.js
src/pages/order/orderConfirm/orderConfirm.js
src/pages/orderDetail/index.wxml
src/pages/orderList/index.wxss
src/components/order/orderaction.js
View file @
878dd79
...
...
@@ -7,6 +7,7 @@ import { showDialog } from './orderActionUtil.js';
const
BUY_AGAIN
=
'buy_again'
;
// const CANCEL_ORDER = 'cancel_order';
const
NOW_BUY
=
'now_buy'
;
const
SHOW_DETAIL
=
'show_detail'
;
// const CONFIRM_ORDER = 'confirm_order';//确认收货
// //订单操作接口
// const UFO_BUYER_DELETE_ORDER = 'ufo.buyer.delete';//删除订单
...
...
@@ -103,6 +104,10 @@ detached: function () {
//url: '/pages/productDetail/index?id=' + productId,
})
}
else
if
(
actionCode
==
SHOW_DETAIL
)
{
wx
.
navigateTo
({
url
:
'../orderDetail/index?orderCode='
+
orderCode
})
}
else
{
showDialog
(
orderCode
,
actionCode
,
0
);
}
...
...
src/pages/order/orderConfirm/orderConfirm.js
View file @
878dd79
...
...
@@ -92,7 +92,7 @@ Page({
},
submit
()
{
if
(
this
.
data
.
agreeProtocol
)
return
if
(
!
this
.
data
.
agreeProtocol
)
return
if
(
!
this
.
data
.
hasAddress
)
{
wx
.
showToast
({
...
...
@@ -113,6 +113,8 @@ Page({
api
.
buyerSubmit
(
skup
,
channelNo
,
addressId
,
()
=>
wx
.
hideLoading
())
.
then
(
data
=>
{
if
(
data
&&
data
.
orderCode
)
{
//todo:待处理微信数据分析上报,订单生成
// wx.reportAnalytics(eventName, data)
this
.
prePay
(
data
.
orderCode
)
}
})
...
...
src/pages/orderDetail/index.wxml
View file @
878dd79
...
...
@@ -63,7 +63,7 @@
</scroll-view>
<view class='order-detail-bottom-action-view'>
<!-- <orderdetailaction id="orderdetailaction" buttons="{{buttons}}" order-code="orderCode" real-price="{{priceInfo.realPayPrice}}" product-id='{{goodsInfo.productId}}'/> -->
<view class='order-detail-bottom-realprice-view'>
<view class='order-detail-bottom-realprice-view'
wx:if='{{buttons.length >0}}'
>
<text class='order-action-pay-amount-txt'>¥{{priceInfo.realPayPrice}}</text>
<text class='order-daction-pay-amount-title-txt'>实付金额</text>
</view>
...
...
src/pages/orderList/index.wxss
View file @
878dd79
...
...
@@ -28,15 +28,15 @@
flex: 1;
padding: 20rpx 0;
text-align: center;
font-size: 30rpx;
color: #E0E0E0;
font-size: 28rpx;
color: #999999;
height: 68rpx;
line-height: 68rpx;
}
.order-list-navbar-item-on {
color: #000000;
font-weight: bold;
font-size: 3
5
rpx;
font-size: 3
6
rpx;
}
.order-list-navbar-slider {
position: absolute;
...
...
Please
register
or
login
to post a comment