[退货相关跳转页面兼容处理]

This commit is contained in:
2021-10-19 17:03:57 +08:00
parent 3aa6fb1882
commit 47f969767f
9 changed files with 2955 additions and 2771 deletions

View File

@@ -37,7 +37,7 @@
</view> </view>
<view class="group-flex group-flex-4"> <view class="group-flex group-flex-4">
<view class="item" @click="$Router.push({name:'Extract'})"> <view class="item" @click="$Router.push({name:'Extract'})">
<view class="item-num">{{base.account.token}}</view> <view class="item-num">{{base.account.coins}}</view>
<view class="item-title">原石</view> <view class="item-title">原石</view>
</view> </view>
<view class="item" @click="$Router.push({name:'Fragment'})"> <view class="item" @click="$Router.push({name:'Fragment'})">

View File

@@ -1,5 +1,5 @@
<template> <template>
<view class="LogisticsIndex"> <view class="LogisticsIndex" v-if="loaded">
<block v-if="list.length>0"> <block v-if="list.length>0">
<view class="logistics-top"> <view class="logistics-top">
<view>{{express.express_name}} <span class="copy" @click='copy(express.express_no)'>复制单号</span></view> <view>{{express.express_name}} <span class="copy" @click='copy(express.express_no)'>复制单号</span></view>
@@ -34,12 +34,15 @@
data() { data() {
return { return {
list: [], list: [],
loaded:false,
no: '', // 快递单号 no: '', // 快递单号
express:{},// 地址信息 express:{},// 地址信息
} }
}, },
onLoad(e) { onLoad(e) {
this.no = this.$route.params.no // this.no = this.$route.params.no
// this.getLogistic(this.no)
this.no = e.no
this.getLogistic(this.no) this.getLogistic(this.no)
}, },
methods: { methods: {
@@ -48,6 +51,7 @@
console.log(res) console.log(res)
this.list = res.logistics this.list = res.logistics
this.express = res.express this.express = res.express
this.loaded = true
}).catch(err => { }).catch(err => {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: err.message, title: err.message,

View File

@@ -1,23 +1,13 @@
<template> <template>
<view class="OrderInfo"> <view class="OrderInfo" v-if="loaded">
<!-- 订单状态 --> <!-- 订单状态 -->
<view class="order-status"> <view class="order-status">
<view class="info"> <view class="info">
{{info.state.text}} {{state.text}}
<span>{{info.state.remark}}</span> <span>{{state.remark}}</span>
</view> </view>
<image src="/static/imgs/fire.png" mode="widthFix"></image> <image src="/static/imgs/fire.png" mode="widthFix"></image>
</view> </view>
<!-- 收货人 -->
<view class="acceptInfo" v-if="type === '2'">
<block>
<view class="name">{{address.name}} <span>{{address.mobile}}</span> </view>
<view class="address">
<u-icon name="map" color="red"></u-icon>
<span>{{address.full_address}}</span>
</view>
</block>
</view>
<view class="goods-info1"> <view class="goods-info1">
<view class="top"> <view class="top">
@@ -41,7 +31,7 @@
<view class="sku">权证个数 <span>x {{info.qty}}</span> </view> <view class="sku">权证个数 <span>x {{info.qty}}</span> </view>
</view> </view>
</view> </view>
<navigator class="total" hover-class="none" :url='"/pages/goods/detail?id="+info.goods_sku.goods_id'> <navigator class="total" hover-class="none" :url='"/pages/goods/details?id="+info.goods_sku.goods_id'>
<view class="total-btn">再次购买</view> <view class="total-btn">再次购买</view>
</navigator> </navigator>
<view class="goods-type">创建退货时间 <span>{{info.created_at}}</span></view> <view class="goods-type">创建退货时间 <span>{{info.created_at}}</span></view>
@@ -73,7 +63,7 @@
<view :class="['dian',index === 0 ?'dian-active':'']"></view> <view :class="['dian',index === 0 ?'dian-active':'']"></view>
<view :class="['content',index === 0?'content-active':'']"> <view :class="['content',index === 0?'content-active':'']">
<view class="title">{{item.state_text?item.state_text:'当前状态不明确,需后台返回'}}</view> <view class="title">{{item.state_text?item.state_text:'当前状态不明确,需后台返回'}}</view>
<view class="des">退货原因{{item.title || '无理由'}} 退货备注{{item.remark || '无备注'}}</view> <view class="des">原因{{item.title || '无理由'}} 备注{{item.remark || '无备注'}}</view>
<view class="pictures"> <view class="pictures">
<image @click="priveImg(index,idx)" v-for="(it,idx) in item.pictures" :key='idx' :src="it" mode="aspectFill" /> <image @click="priveImg(index,idx)" v-for="(it,idx) in item.pictures" :key='idx' :src="it" mode="aspectFill" />
</view> </view>
@@ -101,16 +91,20 @@
return { return {
info: {}, info: {},
qty: 1, qty: 1,
state:{},
refund_id: '', // 退货单no refund_id: '', // 退货单no
company: '', company: '',
number: '', number: '',
logs: [], logs: [],
loaded:false,
showLogs: false // 默认不显示记录信息 showLogs: false // 默认不显示记录信息
}; };
}, },
onLoad(e) { onLoad(e) {
this.refund_id = this.$route.params.no // this.refund_id = this.$route.params.no
this.getInfo(this.refund_id) // this.getInfo(this.refund_id)
this.refund_id = e.no
this.getInfo(e.no)
}, },
onShow() { onShow() {
if (uni.getStorageSync('refresh')) { if (uni.getStorageSync('refresh')) {
@@ -123,6 +117,8 @@
mallRefundsInfo(refund_id).then(res => { mallRefundsInfo(refund_id).then(res => {
this.info = res this.info = res
this.logs = res.log this.logs = res.log
this.state = res.state
this.loaded = true
}).catch(err => { }).catch(err => {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: err.message, title: err.message,

View File

@@ -1,5 +1,5 @@
<template> <template>
<view class="NumberWeight"> <view class="mallShipments">
<!-- 订单分类 --> <!-- 订单分类 -->
<view class="nav"> <view class="nav">
<view :class="['nav-item' ,selectTypeId === item.id?'nav-item-selected':'']" <view :class="['nav-item' ,selectTypeId === item.id?'nav-item-selected':'']"
@@ -314,39 +314,51 @@
// 申请退货 // 申请退货
nowRefund(no) { nowRefund(no) {
this.$router.push({ // this.$Router.push({
name: 'MallShipmentsRefund', // name: 'MallShipmentsRefund',
params: { // params: {
no: no // no: no
} // }
// })
uni.navigateTo({
url:'/pages/property/order/mallShipmentsRefund?no='+no
}) })
}, },
// 查看物流 // 查看物流
nowLogistics(no) { nowLogistics(no) {
this.$router.push({ // this.$Router.push({
name: 'Orderlogistics', // name: 'Orderlogistics',
params: { // params: {
no: no // no: no
} // }
// })
uni.navigateTo({
url:'/pages/property/order/logistics?no='+no
}) })
}, },
// 查看详情 // 查看详情
goDetail(no) { goDetail(no) {
this.$router.push({ // this.$Router.push({
name: 'MallShipmentsInfo', // name: 'MallShipmentsInfo',
params: { // query:{
no: no // no:no
} // }
// })
uni.navigateTo({
url:'/pages/property/order/mallShipmentsInfo?no='+no
}) })
}, },
// 查看退货单详情 // 查看退货单详情
// 查看详情 // 查看详情
goDetail1(no){ goDetail1(no){
this.$router.push({ // this.$Router.push({
name: 'MallRefundsInfo', // name: 'MallRefundsInfo',
params:{ // params:{
no:no // no:no
} // }
// })
uni.navigateTo({
url:'/pages/property/order/mallRefundsInfo?no='+no
}) })
} }
@@ -360,7 +372,7 @@
height: 100%; height: 100%;
} }
.NumberWeight { .mallShipments {
width: 100%; width: 100%;
min-height: 100vh; min-height: 100vh;
box-sizing: border-box; box-sizing: border-box;

View File

@@ -1,5 +1,5 @@
<template> <template>
<view class="OrderInfo"> <view class="OrderInfo" v-if="loaded">
<!-- 订单状态 --> <!-- 订单状态 -->
<view class="order-status"> <view class="order-status">
<view class="info"> <view class="info">
@@ -41,7 +41,7 @@
<view class="sku">权证个数 <span>x {{info.qty}}</span> </view> <view class="sku">权证个数 <span>x {{info.qty}}</span> </view>
</view> </view>
</view> </view>
<navigator class="total" hover-class="none" :url='"/pages/goods/detail?id="+info.goods_sku.goods_id'> <navigator class="total" hover-class="none" :url='"/pages/goods/details?id="+info.goods_sku.goods_id'>
<view class="total-btn">再次购买</view> <view class="total-btn">再次购买</view>
</navigator> </navigator>
<view class="goods-type">创建提货单时间 <span>{{info.created_at}}</span></view> <view class="goods-type">创建提货单时间 <span>{{info.created_at}}</span></view>
@@ -106,11 +106,12 @@
store_Name:'',// 门店名称 store_Name:'',// 门店名称
qty :1, qty :1,
shipment_no:'', // 提货单no shipment_no:'', // 提货单no
loaded:false
}; };
}, },
onLoad(e) { onLoad(e) {
this.shipment_no = this.$route.params.no this.shipment_no = e.no
this.getInfo(this.$route.params.no) this.getInfo(e.no)
}, },
onShow() { onShow() {
if(uni.getStorageSync('refresh')){ if(uni.getStorageSync('refresh')){
@@ -123,6 +124,7 @@
this.info = res this.info = res
this.address = res.express this.address = res.express
this.type = res.type+'' this.type = res.type+''
this.loaded = true
}).catch(err=>{ }).catch(err=>{
this.$refs.uToast.show({ this.$refs.uToast.show({
title: err.message, title: err.message,

View File

@@ -78,8 +78,11 @@
}; };
}, },
onLoad(e) { onLoad(e) {
this.shipment_no = this.$route.params.no
this.getInfo(this.shipment_no) // this.shipment_no = this.$route.params.no
// this.getInfo(this.shipment_no)
this.shipment_no = e.no
this.getInfo(e.no)
}, },
methods: { methods: {
// 预览上传图片 // 预览上传图片

View File

@@ -1,5 +1,5 @@
<template> <template>
<view class="OrderInfo"> <view class="OrderInfo" v-if="loaded">
<!-- 订单状态 --> <!-- 订单状态 -->
<view class="order-status"> <view class="order-status">
<view class="info"> <view class="info">
@@ -45,7 +45,7 @@
<view class="sku">可提个数 <span>x {{account.balance}}</span> </view> <view class="sku">可提个数 <span>x {{account.balance}}</span> </view>
</view> </view>
</view> </view>
<navigator class="total" hover-class="none" :url='"/pages/goods/detail?id="+goods.goods_id'> <navigator class="total" hover-class="none" :url='"/pages/goods/details?id="+goods.goods_id'>
<view class="total-btn">再次购买</view> <view class="total-btn">再次购买</view>
</navigator> </navigator>
<view class="goods-type" v-if="type === '1'">运费 <span>免邮</span></view> <view class="goods-type" v-if="type === '1'">运费 <span>免邮</span></view>
@@ -147,7 +147,8 @@
store_Name: '', // 门店名称 store_Name: '', // 门店名称
qty: 1, qty: 1,
showCode:false, showCode:false,
showCodeImg:'' showCodeImg:'',
loaded:false
}; };
}, },
onLoad(e) { onLoad(e) {
@@ -176,6 +177,7 @@
this.stores = res.stores this.stores = res.stores
this.qty = res.account.balance this.qty = res.account.balance
this.type = res.logistic_type + '' this.type = res.logistic_type + ''
this.loaded = true
}).catch(err => { }).catch(err => {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: err.message, title: err.message,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long