订单跳转修改
This commit is contained in:
parent
9b6befad9c
commit
2f6ca46b15
|
@ -39,7 +39,6 @@
|
||||||
暂存
|
暂存
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -111,23 +110,33 @@
|
||||||
<text class="fk_status" v-if="item.order_status == 0">未支付</text>
|
<text class="fk_status" v-if="item.order_status == 0">未支付</text>
|
||||||
<text class="fk_status" v-if="item.order_status == 1">
|
<text class="fk_status" v-if="item.order_status == 1">
|
||||||
<view>待核销</view>
|
<view>待核销</view>
|
||||||
<view style="color: #FFE4BF;" v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status != 3">退款中</view>
|
<view style="color: #FFE4BF;"
|
||||||
|
v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status != 3">
|
||||||
|
退款中</view>
|
||||||
</text>
|
</text>
|
||||||
<text class="fk_status" v-if="item.order_status == 2">
|
<text class="fk_status" v-if="item.order_status == 2">
|
||||||
<view>待发货</view>
|
<view>待发货</view>
|
||||||
<view style="color: #FFE4BF;" v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status != 3">退款中</view>
|
<view style="color: #FFE4BF;"
|
||||||
|
v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status != 3">
|
||||||
|
退款中</view>
|
||||||
</text>
|
</text>
|
||||||
<text class="fk_status" v-if="item.order_status == 3">
|
<text class="fk_status" v-if="item.order_status == 3">
|
||||||
<view>待收货</view>
|
<view>待收货</view>
|
||||||
<view style="color: #FFE4BF;" v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status != 3">退款中</view>
|
<view style="color: #FFE4BF;"
|
||||||
|
v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status != 3">
|
||||||
|
退款中</view>
|
||||||
</text>
|
</text>
|
||||||
<text class="fk_status" v-if="item.order_status == 4">
|
<text class="fk_status" v-if="item.order_status == 4">
|
||||||
<view>待评价</view>
|
<view>待评价</view>
|
||||||
<view style="color: #FFE4BF;" v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status != 3">退款中</view>
|
<view style="color: #FFE4BF;"
|
||||||
|
v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status != 3">
|
||||||
|
退款中</view>
|
||||||
</text>
|
</text>
|
||||||
<text class="fk_status" v-if="item.order_status == 5">
|
<text class="fk_status" v-if="item.order_status == 5">
|
||||||
<view>交易完成</view>
|
<view>交易完成</view>
|
||||||
<view style="color: #FFE4BF;" v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status != 3">退款中</view>
|
<view style="color: #FFE4BF;"
|
||||||
|
v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status != 3">
|
||||||
|
退款中</view>
|
||||||
</text>
|
</text>
|
||||||
<text class="fk_status" v-if="item.refund_mark == 1">
|
<text class="fk_status" v-if="item.refund_mark == 1">
|
||||||
<view>退款成功</view>
|
<view>退款成功</view>
|
||||||
|
@ -181,7 +190,8 @@
|
||||||
<view class="bnt bnt_color" v-if="item.order_status == 1" @click="toDetail(item)">去核销</view>
|
<view class="bnt bnt_color" v-if="item.order_status == 1" @click="toDetail(item)">去核销</view>
|
||||||
<view class="bnt bnt_color" v-if="item.order_status == 2" @click="toPostagequ(item)">去发货
|
<view class="bnt bnt_color" v-if="item.order_status == 2" @click="toPostagequ(item)">去发货
|
||||||
</view>
|
</view>
|
||||||
<navigator class="bnt bnt_color" v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status!=3"
|
<navigator class="bnt bnt_color"
|
||||||
|
v-if="!!item.refund_order_id && item.refund_status != -1 && item.refund_status!=3"
|
||||||
:url="'/pages/admin/orderRefund/index?id='+item.refund_order_id+'&merId='+merId">
|
:url="'/pages/admin/orderRefund/index?id='+item.refund_order_id+'&merId='+merId">
|
||||||
立即退款
|
立即退款
|
||||||
</navigator>
|
</navigator>
|
||||||
|
|
|
@ -52,16 +52,11 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="content-open" v-if='!isshow' @click="open">
|
|
||||||
<image src="@/static/images/zk.png" mode="aspectFit"></image>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<div v-if='isshow' style="margin-top: 80rpx;">
|
<div v-if='isshow' style="margin-top: 80rpx;">
|
||||||
<!-- // type=price&time=today&merId=1 -->
|
|
||||||
<view class="tools-one"
|
<view class="tools-one"
|
||||||
style="font-size: 33rpx;font-family: PingFang SC-Medium, PingFang SC;font-weight: 500;color: #333333; margin-left: 30rpx;margin-bottom: 30rpx;">
|
style="font-size: 33rpx;font-family: PingFang SC-Medium, PingFang SC;font-weight: 500;color: #333333; margin-left: 30rpx;margin-bottom: 30rpx;">
|
||||||
订单数据统计
|
订单数据统计
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<ordertime ref='test' type='price' timetype='today' :merid='userInfoData.service.mer_id'></ordertime>
|
<ordertime ref='test' type='price' timetype='today' :merid='userInfoData.service.mer_id'></ordertime>
|
||||||
</div>
|
</div>
|
||||||
|
@ -75,7 +70,6 @@
|
||||||
<view class="content-order-one">
|
<view class="content-order-one">
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -120,7 +114,6 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="content-list">
|
<view class="content-list">
|
||||||
<view style="width: 100%;background-color: #fff;">
|
<view style="width: 100%;background-color: #fff;">
|
||||||
<view class="tools-one">
|
<view class="tools-one">
|
||||||
|
@ -899,6 +892,7 @@
|
||||||
if (index == 3) url = "/pages/activeCode/subsidy";
|
if (index == 3) url = "/pages/activeCode/subsidy";
|
||||||
if (index == 1) url = "/pages/admin/orderList/index?merId=" + this.userInfoData.service.mer_id +
|
if (index == 1) url = "/pages/admin/orderList/index?merId=" + this.userInfoData.service.mer_id +
|
||||||
"&types=88";
|
"&types=88";
|
||||||
|
if (index == 5) url = "/pages/admin/orderList/index?merId=" + this.userInfoData.service.mer_id + '&types=';
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: url
|
url: url
|
||||||
|
|
|
@ -170,10 +170,12 @@
|
||||||
<view v-if="item.order_status == 2 && item.pay_type !=3" class='t-color'>待发货</view>
|
<view v-if="item.order_status == 2 && item.pay_type !=3" class='t-color'>待发货</view>
|
||||||
<view v-if="item.order_status == 1 && item.pay_type==3" class='t-color'>待付款</view>
|
<view v-if="item.order_status == 1 && item.pay_type==3" class='t-color'>待付款</view>
|
||||||
<view v-if="item.order_status == 3" class='t-color'>待收货</view>
|
<view v-if="item.order_status == 3" class='t-color'>待收货</view>
|
||||||
<view v-if="item.order_status == 4 && item.pay_type !== 8" class='t-color'>待评价</view>
|
<view v-if="item.order_status == 4 && item.pay_type !== 8" class='t-color'>待评价
|
||||||
|
</view>
|
||||||
<view v-if="item.order_status == 5" class='t-color'>已完成</view>
|
<view v-if="item.order_status == 5" class='t-color'>已完成</view>
|
||||||
<view v-if="item.order_status == 6" class='t-color'>已退款</view>
|
<view v-if="item.order_status == 6" class='t-color'>已退款</view>
|
||||||
<view v-if="item.order_status == 8 && item.pay_type == 8" class='t-color'>待结算</view>
|
<view v-if="item.order_status == 8 && item.pay_type == 8" class='t-color'>待结算
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view v-if="item.activity_type === 2">
|
<view v-if="item.activity_type === 2">
|
||||||
|
@ -252,8 +254,8 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='bottom acea-row row-right row-middle'>
|
<view class='bottom acea-row row-right row-middle'>
|
||||||
<view v-if="!item.receipt && item.status != -1 && (item.status != 0)" class='bnt cancelBnt'
|
<view v-if="!item.receipt && item.status != -1 && (item.status != 0)"
|
||||||
@click.stop='applyInvoice(item.order_id)'>申请开票</view>
|
class='bnt cancelBnt' @click.stop='applyInvoice(item.order_id)'>申请开票</view>
|
||||||
<block v-if="item.status == 0 || item.status == 9 || item.status == -1">
|
<block v-if="item.status == 0 || item.status == 9 || item.status == -1">
|
||||||
<view class='bnt b-color' @click='goOrderDetails(item.order_id, item)'>查看详情</view>
|
<view class='bnt b-color' @click='goOrderDetails(item.order_id, item)'>查看详情</view>
|
||||||
</block>
|
</block>
|
||||||
|
@ -345,7 +347,9 @@
|
||||||
import {
|
import {
|
||||||
HTTP_REQUEST_URL
|
HTTP_REQUEST_URL
|
||||||
} from '@/config/app';
|
} from '@/config/app';
|
||||||
import { Toast } from '../../../libs/uniApi';
|
import {
|
||||||
|
Toast
|
||||||
|
} from '../../../libs/uniApi';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
payment,
|
payment,
|
||||||
|
@ -581,7 +585,7 @@
|
||||||
})
|
})
|
||||||
openOrderSubscribe().then(() => {
|
openOrderSubscribe().then(() => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (self.orderStatus == 0 || (item&&item.order_status==1)) {
|
if (self.orderStatus == 0 || (item && item.order_status == 1)) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/order_details/stay?order_id=' + order_id
|
url: '/pages/order_details/stay?order_id=' + order_id
|
||||||
})
|
})
|
||||||
|
@ -599,7 +603,7 @@
|
||||||
})
|
})
|
||||||
// #endif
|
// #endif
|
||||||
// #ifndef MP
|
// #ifndef MP
|
||||||
if (self.orderStatus == 0||(item&&item.order_status==1)) {
|
if (self.orderStatus == 0 || (item && item.order_status == 1)) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/order_details/stay?order_id=' + item.group_order_id
|
url: '/pages/order_details/stay?order_id=' + item.group_order_id
|
||||||
})
|
})
|
||||||
|
@ -631,7 +635,7 @@
|
||||||
url: '/pages/order_details/stay?order_id=' + item.order_id
|
url: '/pages/order_details/stay?order_id=' + item.order_id
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if(!item.orderProduct[0]?.order_product_id) return Toast('无法评价该商品')
|
if (!item.orderProduct[0]?.order_product_id) return Toast('无法评价该商品')
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/users/goods_comment_con/index?uni=${item.orderProduct[0].order_product_id}&order_id=${item.order_id}`
|
url: `/pages/users/goods_comment_con/index?uni=${item.orderProduct[0].order_product_id}&order_id=${item.order_id}`
|
||||||
})
|
})
|
||||||
|
@ -643,7 +647,7 @@
|
||||||
url: '/pages/order_details/stay?order_id=' + item.order_id
|
url: '/pages/order_details/stay?order_id=' + item.order_id
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if(!item.orderProduct[0]?.order_product_id) return Toast('无法评价该商品')
|
if (!item.orderProduct[0]?.order_product_id) return Toast('无法评价该商品')
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/users/goods_comment_con/index?uni=${item.orderProduct[0].order_product_id}&order_id=${item.order_id}`
|
url: `/pages/users/goods_comment_con/index?uni=${item.orderProduct[0].order_product_id}&order_id=${item.order_id}`
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue