Authored by 肖亚东

物流增加复制订单号,订单详情点商品进商品等问题修改 — review by 李其昌

... ... @@ -71,9 +71,9 @@ export const showDialog = function (orderCode, actionType, fromWhere) {
content: content,
showCancel: true,
cancelText: "确定",
cancelColor: '#000000',
cancelColor: '#E0E0E0',
confirmText: "取消",
confirmColor: '#E0E0E0',
confirmColor: '#000000',
success: function (res) {
if (res.cancel) {
actionOrder(orderCode, method);
... ...
... ... @@ -152,8 +152,16 @@ Page({
}
},
onClickProduct: function() {
let productId = this.data.data.goodsInfo.productId;
let params = {
id: productId
}
router.go('productDetail', params);
},
onCopyOrderCode: function() {
let orderCode = String(this.data.orderCode);
let orderCode = String(this.data.data.orderCode);;
wx.setClipboardData({
data: orderCode,
success (res) {
... ...
... ... @@ -32,7 +32,7 @@
</view>
</view>
<view class='order-detail-split-line'></view>
<orderproductinfo id="orderproductinfo" product-info="{{data.goodsInfo}}" />
<orderproductinfo id="orderproductinfo" product-info="{{data.goodsInfo}}" bindtap='onClickProduct' />
<view class='order-detail-split-line'></view>
<view class='order-detail-count-view' style='margin-top:28rpx;'>
<text class='order-detail-sum-grey-txt'>商品金额:</text>
... ...
... ... @@ -23,7 +23,7 @@ Page({
fetchLogisticsInfo: function (orderCode) {
let that = this;
let params = {
orderCode
orderCode,
}
let api = new logisticsService();
... ... @@ -48,6 +48,16 @@ Page({
})
},
onCopyOrderCode: function() {
let orderCode = String(this.data.wayBillCode);
wx.setClipboardData({
data: orderCode,
success (res) {
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
... ...
... ... @@ -13,6 +13,7 @@
<view class="number">
<text class="tips">快递单号:</text>
<text class="express-content">{{wayBillCode}}</text>
<image class='order-detail-order-copy-image' bindtap='onCopyOrderCode' src='../../../assets/images/copyordercode@3x.png'></image>
</view>
</view>
</view>
... ...
... ... @@ -39,6 +39,11 @@
font-size: 24rpx;
color: #000000;
}
.header-detail .header-content .order-detail-order-copy-image {
width: 30rpx;
height: 30rpx;
margin-left: 20rpx;
}
.space-line {
background-color: #eeeeee;
... ... @@ -120,4 +125,4 @@
font-size: 30rpx;
letter-spacing: 0.8px;
margin-top: 200rpx;
}
\ No newline at end of file
}
... ...