新增退货流程
This commit is contained in:
@@ -54,8 +54,13 @@ Page({
|
||||
* 支付订单
|
||||
*/
|
||||
payClick() {
|
||||
let payData = {
|
||||
order_id : this.data.goodsData.order_id,
|
||||
order_no : this.data.goodsData.order_no,
|
||||
order_type : this.data.goodsData.order_type
|
||||
}
|
||||
wx.navigateTo({
|
||||
url: '/pages/pay/index?order_no=' + this.data.goodsData.order_no + '&total=' + this.data.goodsData.total
|
||||
url: '/pages/pay/index?params=' + encodeURIComponent(JSON.stringify(payData))
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<view class="orderData">
|
||||
<view class="While">
|
||||
<view class="orderData-cont-label">
|
||||
<image class="orderData-cont-img" src="https://cdn.shuiganying.com/images/2023/04/04/3b3938e3a883e6b173b4d49a5242666a.png" mode="aspectFill"></image>
|
||||
<image class="orderData-cont-img" src="/static/icons/copy_icon.png" mode="aspectFill"></image>
|
||||
<view class="orderData-cont-text">
|
||||
<view class="orderData-cont-name">订单编号</view>
|
||||
<view class="orderData-cont-copy">
|
||||
|
||||
@@ -215,7 +215,7 @@ page {
|
||||
}
|
||||
|
||||
.reserve-status {
|
||||
color: #ff8100
|
||||
color: #da2b54
|
||||
}
|
||||
|
||||
/* 底部菜单 */
|
||||
|
||||
@@ -60,8 +60,14 @@ Page({
|
||||
* 支付订单
|
||||
*/
|
||||
payClick(e) {
|
||||
let { item } = e.currentTarget.dataset
|
||||
let data = {
|
||||
order_id : item.order_id,
|
||||
order_no : item.order_no,
|
||||
order_type : item.order_type
|
||||
}
|
||||
wx.navigateTo({
|
||||
url: '/pages/pay/index?order_no=' + e.currentTarget.dataset.order_no + '&total=' + e.currentTarget.dataset.total
|
||||
url: '/pages/pay/index?params=' + encodeURIComponent(JSON.stringify(data))
|
||||
})
|
||||
},
|
||||
|
||||
@@ -137,5 +143,14 @@ Page({
|
||||
// 获取订单列表
|
||||
this.listInfo(pageNumber);
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 申请售后
|
||||
*/
|
||||
signRefund(e){
|
||||
let { order_no } = e.currentTarget.dataset
|
||||
wx.navigateTo({
|
||||
url: "/pages/refund/aftersale/aftersale?id=" + order_no,
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -44,8 +44,9 @@
|
||||
<view class="list-more-go" bindtap="operateMore" data-order_no="{{item.order_no}}" wx:if="{{item.can.cancel}}">更多</view>
|
||||
</view>
|
||||
<view class="list-btn">
|
||||
<view class="list-btn-labor" bindtap="payClick" data-order_no="{{item.order_no}}" data-total="{{item.total}}" wx:if="{{item.can.pay}}">立即付款</view>
|
||||
<view class="list-btn-labor" bindtap="payClick" data-item="{{item}}" wx:if="{{item.can.pay}}">立即付款</view>
|
||||
<view bindtap="signClick" data-order_no="{{item.order_no}}" class="list-btn-labor" wx:if="{{item.can.sign}}">签收订单</view>
|
||||
<view bindtap="signRefund" data-order_no="{{item.order_no}}" class="list-btn-labor" wx:if="{{item.can.refund}}">申请退货</view>
|
||||
<navigator hover-class="none" url="./details/details?order_no={{item.order_no}}" class="list-btn-labor grey">查看详情</navigator>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -52,7 +52,7 @@ page {
|
||||
}
|
||||
|
||||
.list-top-status {
|
||||
color: #ff8100;
|
||||
color: #da2b54;
|
||||
}
|
||||
|
||||
.list-goods {
|
||||
@@ -157,8 +157,8 @@ page {
|
||||
}
|
||||
|
||||
.list-btn-labor {
|
||||
border: 2rpx solid #ff8100;
|
||||
color: #ff8100;
|
||||
border: 2rpx solid #da2b54;
|
||||
color: #da2b54;
|
||||
border-radius: 80rpx;
|
||||
height: 56rpx;
|
||||
line-height: 56rpx;
|
||||
|
||||
Reference in New Issue
Block a user