parent
62644ddb56
commit
2aef6a4fe5
|
@ -46,10 +46,6 @@
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
ids: {
|
|
||||||
type: Number,
|
|
||||||
default: 0,
|
|
||||||
},
|
|
||||||
jump: {
|
jump: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
|
@ -79,7 +75,7 @@
|
||||||
// TODO 芋艿:评价
|
// TODO 芋艿:评价
|
||||||
evaluateTap(item) {
|
evaluateTap(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/users/goods_comment_con/index?unique=" + item.attrId + "&orderId=" + this.orderId + '&id=' + this.ids
|
url: "/pages/users/goods_comment_con/index?unique=" + item.attrId + "&orderId=" + this.orderId + '&id=' + item.id
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
jumpCon: function(id) {
|
jumpCon: function(id) {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<view class='state' v-if="orderInfo.status === 20">商家已发货,请耐心等待</view>
|
<view class='state' v-if="orderInfo.status === 20">商家已发货,请耐心等待</view>
|
||||||
<view class='state' v-if="orderInfo.status === 30 && !orderInfo.commentStatus">已收货,快去评价一下吧</view>
|
<view class='state' v-if="orderInfo.status === 30 && !orderInfo.commentStatus">已收货,快去评价一下吧</view>
|
||||||
<view class='state' v-if="orderInfo.status === 30 && orderInfo.commentStatus">交易完成,感谢您的支持</view>
|
<view class='state' v-if="orderInfo.status === 30 && orderInfo.commentStatus">交易完成,感谢您的支持</view>
|
||||||
<!-- TODO 芋艿:未来可以优化下,关闭的原因补充。例如说:订单超时/订单取消 -->
|
<!-- TODO 芋艿:未来可以优化下,关闭的原因补充。例如说:订单超时/订单取消;参考淘宝 -->
|
||||||
<view class='state' v-if="orderInfo.status === 40">交易关闭</view>
|
<view class='state' v-if="orderInfo.status === 40">交易关闭</view>
|
||||||
<!-- 下单时间 -->
|
<!-- 下单时间 -->
|
||||||
<view>{{ formatDate(orderInfo.createTime) }}</view>
|
<view>{{ formatDate(orderInfo.createTime) }}</view>
|
||||||
|
@ -103,10 +103,15 @@
|
||||||
<text class="iconfont icon-weizhi"></text>查看位置
|
<text class="iconfont icon-weizhi"></text>查看位置
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="orderInfo.shippingType === 1" class='address borRadius14'>
|
|
||||||
<view class='name'>{{orderInfo.realName}}<text class='phone'>{{orderInfo.userPhone}}</text></view>
|
<!-- 收货人信息 -->
|
||||||
<view>{{orderInfo.userAddress}}</view>
|
<view v-if="orderInfo.deliveryType === 1" class='address borRadius14'>
|
||||||
|
<view class='name'>{{ orderInfo.receiverName }}
|
||||||
|
<text class='phone'>{{ orderInfo.receiverMobile }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view>{{ orderInfo.receiverAreaName }} {{ orderInfo.receiverDetailAddress}}</view>
|
||||||
|
</view>
|
||||||
|
<!-- TODO 芋艿:核销的情况 -->
|
||||||
<view v-else class='address' style="margin-top:15rpx;">
|
<view v-else class='address' style="margin-top:15rpx;">
|
||||||
<view class='name' @tap="makePhone">{{orderInfo.systemStore?orderInfo.systemStore.name:''}}<text
|
<view class='name' @tap="makePhone">{{orderInfo.systemStore?orderInfo.systemStore.name:''}}<text
|
||||||
class='phone'>{{orderInfo.systemStore?orderInfo.systemStore.phone:''}}</text><text
|
class='phone'>{{orderInfo.systemStore?orderInfo.systemStore.phone:''}}</text><text
|
||||||
|
@ -114,23 +119,34 @@
|
||||||
<view>{{orderInfo.systemStore?orderInfo.systemStore.detailedAddress:''}}</view>
|
<view>{{orderInfo.systemStore?orderInfo.systemStore.detailedAddress:''}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<orderGoods :evaluate='evaluate' :productType="orderInfo.type" :orderId="order_id" :ids="id" :cartInfo="cartInfo"
|
<!-- 商品列表 -->
|
||||||
:jump="true"></orderGoods>
|
<orderGoods
|
||||||
|
:evaluate='evaluate'
|
||||||
|
:productType="orderInfo.type"
|
||||||
|
:orderId="order_id"
|
||||||
|
:cartInfo="cartInfo"
|
||||||
|
:jump="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 客服 -->
|
||||||
<!-- #ifndef MP -->
|
<!-- #ifndef MP -->
|
||||||
<div class="goodCall borRadius14" @click="kefuClick">
|
<div class="goodCall borRadius14" @click="kefuClick">
|
||||||
<span class="iconfont icon-kefu"></span><span>联系客服</span>
|
<span class="iconfont icon-kefu" />
|
||||||
|
<span>联系客服</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!-- #ifdef MP -->
|
<!-- #ifdef MP -->
|
||||||
<div class="goodCall borRadius14">
|
<div class="goodCall borRadius14">
|
||||||
<button open-type='contact' hover-class='none'>
|
<button open-type='contact' hover-class='none'>
|
||||||
<span class="iconfont icon-kefu"></span><span>联系客服</span>
|
<span class="iconfont icon-kefu" />
|
||||||
|
<span>联系客服</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="pad30">
|
<view class="pad30">
|
||||||
|
<!-- TODO 芋艿:退款各种 -->
|
||||||
<view class='nav refund' v-if="orderInfo.refundStatus>0">
|
<view class='nav refund' v-if="orderInfo.refundStatus>0">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<image src="/static/images/shuoming.png" mode=""></image>
|
<image src="/static/images/shuoming.png" mode=""></image>
|
||||||
|
@ -141,34 +157,35 @@
|
||||||
<view class='wrapper borRadius14'>
|
<view class='wrapper borRadius14'>
|
||||||
<view class='item acea-row row-between'>
|
<view class='item acea-row row-between'>
|
||||||
<view>订单编号:</view>
|
<view>订单编号:</view>
|
||||||
<view class='conter acea-row row-middle row-right'>{{orderInfo.orderId}}
|
<view class='conter acea-row row-middle row-right'>{{orderInfo.no}}
|
||||||
<!-- #ifndef H5 -->
|
<!-- #ifndef H5 -->
|
||||||
<text class='copy' @tap='copy'>复制</text>
|
<text class='copy' @tap='copy'>复制</text>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!-- #ifdef H5 -->
|
<!-- #ifdef H5 -->
|
||||||
<text class='copy copy-data' :data-clipboard-text="orderInfo.orderId">复制</text>
|
<text class='copy copy-data' :data-clipboard-text="orderInfo.no">复制</text>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='item acea-row row-between'>
|
<view class='item acea-row row-between'>
|
||||||
<view>下单时间:</view>
|
<view>下单时间:</view>
|
||||||
<view class='conter'>{{(orderInfo.createTime || 0)}}</view>
|
<view class='conter'>{{( formatDate(orderInfo.createTime) )}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='item acea-row row-between'>
|
<view class='item acea-row row-between'>
|
||||||
<view>支付状态:</view>
|
<view>支付状态:</view>
|
||||||
<view class='conter' v-if="orderInfo.paid">已支付</view>
|
<view class='conter' v-if="orderInfo.payStatus">已支付</view>
|
||||||
<view class='conter' v-else>未支付</view>
|
<view class='conter' v-else>未支付</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- TODO 芋艿:支付方式的翻译 -->
|
||||||
<view class='item acea-row row-between'>
|
<view class='item acea-row row-between'>
|
||||||
<view>支付方式:</view>
|
<view>支付方式:</view>
|
||||||
<view class='conter'>{{orderInfo.payTypeStr}}</view>
|
<view class='conter'>{{orderInfo.payTypeStr}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='item acea-row row-between' v-if="orderInfo.mark">
|
<view class='item acea-row row-between' v-if="orderInfo.userRemark">
|
||||||
<view>买家留言:</view>
|
<view>买家留言:</view>
|
||||||
<view class='conter'>{{orderInfo.mark}}</view>
|
<view class='conter'>{{orderInfo.userRemark}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 退款订单详情 "-->
|
<!-- TODO 芋艿:退款订单详情 -->
|
||||||
<view v-if="isGoodsReturn" class='wrapper borRadius14' >
|
<view v-if="isGoodsReturn" class='wrapper borRadius14' >
|
||||||
<view class='item acea-row row-between'>
|
<view class='item acea-row row-between'>
|
||||||
<view>收货人:</view>
|
<view>收货人:</view>
|
||||||
|
@ -183,8 +200,10 @@
|
||||||
<view class='conter'>{{orderInfo.userAddress}}</view>
|
<view class='conter'>{{orderInfo.userAddress}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="orderInfo.status>0">
|
|
||||||
<view class='wrapper borRadius14' v-if='orderInfo.deliveryType=="express"'>
|
<!-- TODO 芋艿:快递相关 -->
|
||||||
|
<view v-if="orderInfo.status !== 0">
|
||||||
|
<view class='wrapper borRadius14' v-if='orderInfo.deliveryType === 1'>
|
||||||
<view class='item acea-row row-between'>
|
<view class='item acea-row row-between'>
|
||||||
<view>配送方式:</view>
|
<view>配送方式:</view>
|
||||||
<view class='conter'>发货</view>
|
<view class='conter'>发货</view>
|
||||||
|
@ -220,30 +239,42 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 价格相关 -->
|
||||||
<view class='wrapper borRadius14'>
|
<view class='wrapper borRadius14'>
|
||||||
<view class='item acea-row row-between'>
|
<view class='item acea-row row-between'>
|
||||||
<view>商品总价:</view>
|
<view>商品总价:</view>
|
||||||
<view class='conter'>¥{{orderInfo.proTotalPrice}}</view>
|
<view class='conter'>¥{{ fen2yuan(orderInfo.totalPrice) }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='item acea-row row-between' v-if="orderInfo.payPostage > 0">
|
<view class='item acea-row row-between' v-if="orderInfo.deliveryPrice > 0">
|
||||||
<view>运费:</view>
|
<view>运费:</view>
|
||||||
<view class='conter'>¥{{orderInfo.payPostage}}</view>
|
<view class='conter'>¥{{ fen2yuan(orderInfo.deliveryPrice) }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='item acea-row row-between' v-if='orderInfo.couponId'>
|
<view class='item acea-row row-between' v-if='orderInfo.couponId'>
|
||||||
<view>优惠券抵扣:</view>
|
<view>优惠券抵扣:</view>
|
||||||
<view class='conter'>-¥{{orderInfo.couponPrice}}</view>
|
<view class='conter'>-¥{{ fen2yuan(orderInfo.couponPrice) }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='item acea-row row-between' v-if="orderInfo.useIntegral > 0">
|
<!-- TODO 芋艿:vip 价格减免 from php -->
|
||||||
|
<!-- TODO 芋艿:vip 价格减免 from php -->
|
||||||
|
<view class='item acea-row row-between' v-if="orderInfo.pointPrice > 0">
|
||||||
<view>积分抵扣:</view>
|
<view>积分抵扣:</view>
|
||||||
<view class='conter'>-¥{{orderInfo.deductionPrice}}</view>
|
<view class='conter'>-¥{{ fen2yuan(orderInfo.deductionPrice) }}</view>
|
||||||
|
</view>
|
||||||
|
<view class='actualPay acea-row row-right'>
|
||||||
|
实付款:<text class='money font-color'>¥{{ fen2yuan(orderInfo.payPrice) }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class='actualPay acea-row row-right'>实付款:<text
|
|
||||||
class='money font-color'>¥{{orderInfo.payPrice}}</text></view>
|
|
||||||
</view>
|
</view>
|
||||||
<view style='height:120rpx;'></view>
|
<view style='height:120rpx;'></view>
|
||||||
|
|
||||||
|
<!-- 操作区域 -->
|
||||||
<view class='footer acea-row row-right row-middle' v-if="isGoodsReturn==false">
|
<view class='footer acea-row row-right row-middle' v-if="isGoodsReturn==false">
|
||||||
<view class="qs-btn" v-if="!orderInfo.paid" @click.stop="cancelOrder">取消订单</view>
|
<view class="qs-btn" v-if="orderInfo.status === 0" @click.stop="cancelOrder">
|
||||||
<view class='bnt bg-color' v-if="!orderInfo.paid" @tap='pay_open(orderInfo.orderId)'>立即付款</view>
|
取消订单
|
||||||
|
</view>
|
||||||
|
<view class='bnt bg-color' v-if="orderInfo.status === 0" @tap='goPay'>
|
||||||
|
立即付款
|
||||||
|
</view>
|
||||||
|
<!-- TODO 芋艿:退款各种 -->
|
||||||
<!-- #ifdef MP -->
|
<!-- #ifdef MP -->
|
||||||
<view @tap="openSubcribe('/pages/users/goods_return/index?orderId='+orderInfo.orderId)"
|
<view @tap="openSubcribe('/pages/users/goods_return/index?orderId='+orderInfo.orderId)"
|
||||||
class='bnt cancel' v-else-if="orderInfo.paid === true && orderInfo.refundStatus === 0 && orderInfo.type!==1 && type==='normal'">申请退款
|
class='bnt cancel' v-else-if="orderInfo.paid === true && orderInfo.refundStatus === 0 && orderInfo.type!==1 && type==='normal'">申请退款
|
||||||
|
@ -254,13 +285,23 @@
|
||||||
class='bnt cancel' v-else-if="orderInfo.paid === true && orderInfo.refundStatus === 0 && orderInfo.type!==1 && type==='normal'">申请退款
|
class='bnt cancel' v-else-if="orderInfo.paid === true && orderInfo.refundStatus === 0 && orderInfo.type!==1 && type==='normal'">申请退款
|
||||||
</navigator>
|
</navigator>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
|
<!-- TODO 芋艿:拼团 -->
|
||||||
<view class='bnt bg-color' v-if="orderInfo.combinationId > 0" @tap='goJoinPink'>查看拼团</view>
|
<view class='bnt bg-color' v-if="orderInfo.combinationId > 0" @tap='goJoinPink'>查看拼团</view>
|
||||||
<navigator class='bnt cancel' v-if="orderInfo.deliveryType == 'express' && orderInfo.status >0"
|
<!-- TODO 芋艿:物流 -->
|
||||||
hover-class='none' :url="'/pages/users/goods_logistics/index?orderId='+ orderInfo.orderId">查看物流
|
<navigator class='bnt cancel' v-if="orderInfo.deliveryType === 2 && orderInfo.status > 0"
|
||||||
|
hover-class='none' :url="'/pages/users/goods_logistics/index?orderId='+ orderInfo.orderId">
|
||||||
|
查看物流
|
||||||
</navigator>
|
</navigator>
|
||||||
<view class='bnt bg-color' v-if="orderInfo.status==1" @tap='confirmOrder'>确认收货</view>
|
<view class='bnt bg-color' v-if="orderInfo.status === 20" @tap='confirmOrder'>
|
||||||
<view class='bnt cancel' v-if="orderInfo.status==3" @tap='delOrder'>删除订单</view>
|
确认收货
|
||||||
<view class='bnt bg-color' v-if="orderInfo.status==3 && orderInfo.type!==1" @tap='goOrderConfirm'>再次购买</view>
|
</view>
|
||||||
|
<view class='bnt cancel' v-if="orderInfo.status === 40" @tap='delOrder'>
|
||||||
|
删除订单
|
||||||
|
</view>
|
||||||
|
<!-- TODO 芋艿:再次购买 -->
|
||||||
|
<view class='bnt bg-color' v-if="orderInfo.status==3 && orderInfo.type!==1" @tap='goOrderConfirm'>
|
||||||
|
再次购买
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -268,25 +309,25 @@
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
orderTake,
|
orderTake,
|
||||||
orderDel,
|
orderDel,
|
||||||
orderCancel,
|
orderCancel,
|
||||||
qrcodeApi
|
qrcodeApi
|
||||||
} from '@/api/order.js';
|
} from '@/api/order.js';
|
||||||
import * as OrderApi from '@/api/trade/order.js';
|
import * as OrderApi from '@/api/trade/order.js';
|
||||||
import {
|
import {
|
||||||
openOrderRefundSubscribe
|
openOrderRefundSubscribe
|
||||||
} from '@/utils/SubscribeMessage.js';
|
} from '@/utils/SubscribeMessage.js';
|
||||||
import home from '@/components/home';
|
import home from '@/components/home';
|
||||||
import payment from '@/components/payment';
|
import payment from '@/components/payment';
|
||||||
import orderGoods from "@/components/orderGoods";
|
import orderGoods from "@/components/orderGoods";
|
||||||
import ClipboardJS from "@/plugin/clipboard/clipboard.js";
|
import ClipboardJS from "@/plugin/clipboard/clipboard.js";
|
||||||
import { toLogin } from '@/libs/login.js';
|
import { toLogin } from '@/libs/login.js';
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import dayjs from '@/plugin/dayjs/dayjs.min.js';
|
import dayjs from '@/plugin/dayjs/dayjs.min.js';
|
||||||
import * as Util from '@/utils/util.js';
|
import * as Util from '@/utils/util.js';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
payment,
|
payment,
|
||||||
home,
|
home,
|
||||||
|
@ -294,21 +335,19 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
order_id: '', // 订单编号
|
||||||
|
type: 'normal',
|
||||||
|
orderInfo: { // 订单详情
|
||||||
|
systemStore: {},
|
||||||
|
},
|
||||||
|
cartInfo: [], // 购物车产品
|
||||||
|
|
||||||
codeImg: '',
|
codeImg: '',
|
||||||
qrcodeSize: 100,
|
qrcodeSize: 100,
|
||||||
order_id: '',
|
|
||||||
evaluate: 0,
|
evaluate: 0,
|
||||||
cartInfo: [], //购物车产品
|
|
||||||
orderInfo: {
|
|
||||||
systemStore: {},
|
|
||||||
pstatus: {}
|
|
||||||
}, //订单详情
|
|
||||||
system_store: {},
|
system_store: {},
|
||||||
isGoodsReturn: false, //是否为退款订单
|
isGoodsReturn: false, //是否为退款订单
|
||||||
status: {}, //订单底部按钮状态
|
|
||||||
totalPrice: '0',
|
|
||||||
id: 0, //订单id
|
|
||||||
type: 'normal'
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: mapGetters(['isLogin', 'chatUrl', 'userInfo']),
|
computed: mapGetters(['isLogin', 'chatUrl', 'userInfo']),
|
||||||
|
@ -390,23 +429,9 @@ export default {
|
||||||
}, '/pages/users/order_list/index');
|
}, '/pages/users/order_list/index');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
kefuClick() {
|
|
||||||
location.href = this.chatUrl;
|
// TODO 芋艿:未整理
|
||||||
},
|
|
||||||
openSubcribe: function(e) {
|
|
||||||
let page = e;
|
|
||||||
uni.showLoading({
|
|
||||||
title: '正在加载',
|
|
||||||
})
|
|
||||||
openOrderRefundSubscribe().then(res => {
|
|
||||||
uni.hideLoading();
|
|
||||||
uni.navigateTo({
|
|
||||||
url: page,
|
|
||||||
});
|
|
||||||
}).catch(() => {
|
|
||||||
uni.hideLoading();
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
* 拨打电话
|
* 拨打电话
|
||||||
*/
|
*/
|
||||||
|
@ -442,17 +467,6 @@ export default {
|
||||||
this.codeImg = res.data.code
|
this.codeImg = res.data.code
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
*
|
|
||||||
* 剪切订单号
|
|
||||||
*/
|
|
||||||
// #ifndef H5
|
|
||||||
copy: function() {
|
|
||||||
uni.setClipboardData({
|
|
||||||
data: this.orderInfo.orderId
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// #endif
|
|
||||||
/**
|
/**
|
||||||
* 打电话
|
* 打电话
|
||||||
*/
|
*/
|
||||||
|
@ -500,6 +514,14 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 打开支付组件
|
||||||
|
*/
|
||||||
|
goPay() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/goods/cashier/index?order_id=${this.orderInfo.payOrderId}&from_type=order`
|
||||||
|
})
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 删除订单
|
* 删除订单
|
||||||
*/
|
*/
|
||||||
|
@ -547,6 +569,41 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// ========== 非关键逻辑 ==========
|
||||||
|
/**
|
||||||
|
* 跳转客服
|
||||||
|
*/
|
||||||
|
kefuClick() {
|
||||||
|
location.href = this.chatUrl;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 订阅,并前往链接
|
||||||
|
*/
|
||||||
|
openSubcribe: function(page) {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '正在加载',
|
||||||
|
})
|
||||||
|
openOrderRefundSubscribe().then(res => {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.navigateTo({
|
||||||
|
url: page,
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
uni.hideLoading();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 剪切订单号
|
||||||
|
*/
|
||||||
|
// #ifndef H5
|
||||||
|
copy: function() {
|
||||||
|
uni.setClipboardData({
|
||||||
|
data: this.orderInfo.no
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
|
||||||
fen2yuan(price) {
|
fen2yuan(price) {
|
||||||
return Util.fen2yuan(price)
|
return Util.fen2yuan(price)
|
||||||
},
|
},
|
||||||
|
@ -554,7 +611,7 @@ export default {
|
||||||
return dayjs(date).format("YYYY-MM-DD HH:mm:ss");
|
return dayjs(date).format("YYYY-MM-DD HH:mm:ss");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.shuoming{
|
.shuoming{
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class='list'>
|
<view class='list'>
|
||||||
<view class='item' v-for="(order, index) in orderList" :key="index">
|
<view class='item' v-for="(order, index) in orderList" :key="index">
|
||||||
<view @click='goOrderDetails(order.orderId)'>
|
<view @click='goOrderDetails(order.id)'>
|
||||||
<view class='title acea-row row-between-wrapper'>
|
<view class='title acea-row row-between-wrapper'>
|
||||||
<view class="acea-row row-middle">
|
<view class="acea-row row-middle">
|
||||||
<text class="sign cart-color acea-row row-center-wrapper" v-if="order.typeName">{{ order.typeName }}</text>
|
<text class="sign cart-color acea-row row-center-wrapper" v-if="order.typeName">{{ order.typeName }}</text>
|
||||||
|
|
Loading…
Reference in New Issue