msb_beta
ch 3 years ago
parent 35da7ed76f
commit 8456962ef1

4
.gitignore vendored

@ -1,6 +1,6 @@
.hbuilderx/
.history/
unpackage/dist/dev/
unpackage/dist/build/.automator/
# unpackage/dist/dev/
# unpackage/dist/build/.automator/
node_moudel/
package-lock.json

@ -1,22 +0,0 @@
/*
* @Author: ch
* @Date: 2022-03-23 14:07:07
* @LastEditors: ch
* @LastEditTime: 2022-03-23 14:14:37
* @Description: file content
*/
import { ToAsyncAwait } from '@/common/utils';
const getStorageSync = (key )=> ToAsyncAwait(async ()=>{
return Promise((resolve, reject)=>{
try{
cosnt val = await uni.getStorageSync(key);
resolve(val)
}catch (e){
reject(e)
}
})
})

@ -183,6 +183,13 @@
"navigationBarBackgroundColor" : "#F8F8F8"
}
},
{
"path": "pages/order/saleAfter/saleAfterSelect",
"aliasPath" : "/saleAfterSelect",
"style": {
"navigationBarTitleText": "申请售后"
}
},
{
"path": "pages/order/saleAfter/saleAfterApply",
"aliasPath" : "/saleAfterApply",

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2019-08-22 19:41:20
* @LastEditors: ch
* @LastEditTime: 2022-04-12 18:55:04
* @LastEditTime: 2022-04-14 17:37:40
* @Description: file content
-->
<template>
@ -30,7 +30,7 @@
<text class="category--title">{{item.name}}</text>
</view>
</view>
<Seckill :data="seckillData"></Seckill>
<Seckill :data="seckillData" v-if="seckillData.activityTimeVO"></Seckill>
<view class="title">甄选推荐</view>
<Pick :data="recommendedGoodsList"></Pick>

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-03-31 14:26:09
* @LastEditors: ch
* @LastEditTime: 2022-04-13 17:43:55
* @LastEditTime: 2022-04-14 18:02:14
* @Description: file content
-->
<template>
@ -11,7 +11,7 @@
<UiWhiteBox>
<UiGoodsInfo v-for="(item, index) in orderInfo.products" :data="item" :key="index">
<template slot="operation">
<UiButton size="min" @click="$Router.push(`/saleAfterApply?type=1&id=${item.orderProductId}`)"></UiButton>
<UiButton size="min" @click="$Router.push(`/saleAfterSelect?id=${item.orderProductId}`)"></UiButton>
</template>
</UiGoodsInfo>
</UiWhiteBox>

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-04-11 13:51:10
* @LastEditors: ch
* @LastEditTime: 2022-04-14 17:23:39
* @LastEditTime: 2022-04-14 17:59:09
* @Description: file content
-->
<template>
@ -86,7 +86,11 @@ export default {
};
},
onShow(){
this.$Route.query.
if(this.$Route.query.type == 2){
uni.setNavigationBarTitle({title:'申请退货退款'});
}else{
uni.setNavigationBarTitle({title:'申请退款'});
}
this.receiveSelected = this.receiveStatusData.find(i => i.value == this.$Route.query.status) || {};
},
methods: {

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-04-14 13:44:30
* @LastEditors: ch
* @LastEditTime: 2022-04-14 14:58:49
* @LastEditTime: 2022-04-14 19:25:37
* @Description: file content
-->
<template>
@ -17,7 +17,7 @@
<view>请填写真实退货物流信息逾期未填写退货申请将关闭</view>
</view>
<view class="footer">
<UiButton size="min">撤销申请</UiButton>
<UiButton size="min" @click="cancelShow = true">撤销申请</UiButton>
</view>
</UiWhiteBox>
<UiWhiteBox class="box">
@ -50,15 +50,40 @@
</UiWhiteBox>
<UiButton class="submit-btn" size="max" type="gradual">确认提交</UiButton>
<u-modal :show="cancelShow" @confirm="cancelSaleAfter" showCancelButton @cancel="cancelShow = false"
content="你将撤销本次申请,撤销后,保障期内你可以再次申请售后服务" cancelText="我再想想"></u-modal>
</view>
</template>
<script>
import UiButton from '../../../../../components/UiButton.vue'
import UiCell from '../../../../../components/UiCell.vue'
import UiWhiteBox from '../../../../../components/UiWhiteBox.vue'
import {ApiPostCancelSaleAfter} from '@/common/api/order.js';
export default {
components: { UiWhiteBox, UiButton, UiCell },
props:{
data : {
type : Object,
default : ()=>({})
}
},
data(){
return {
cancelShow : false
}
},
methods:{
async cancelSaleAfter(){
const {error, result} = await ApiPostCancelSaleAfter({refundId : this.data.refundId});
if(error){
uni.$u.toast(error.message);
return false;
}
this.$emit('reload');
this.cancelShow = false;
},
}
}
</script>
<style lang="scss" scoped>

@ -2,15 +2,15 @@
* @Author: ch
* @Date: 2022-03-31 14:26:09
* @LastEditors: ch
* @LastEditTime: 2022-04-14 15:47:50
* @LastEditTime: 2022-04-14 19:18:28
* @Description: file content
-->
<template>
<view>
<StatusTips :data="orderInfo"></StatusTips>
<AwaitExamine :data="orderInfo" v-if="orderInfo.refundStatus == 1" @reload="getOrderInfo"></AwaitExamine>
<SubmitLogistics v-if="orderInfo.refundStatus == 3"></SubmitLogistics>
<LogisticsInfo v-if="[4,5,6].includes(orderInfo.refundStatus)"></LogisticsInfo>
<SubmitLogistics :data="orderInfo" v-if="orderInfo.refundStatus == 3"></SubmitLogistics>
<LogisticsInfo :data="orderInfo" v-if="[4,5,6].includes(orderInfo.refundStatus)"></LogisticsInfo>
<GoodsInfo :data="orderInfo"></GoodsInfo>
</view>
</template>
@ -49,7 +49,7 @@ export default {
uni.$u.toast(error.message);
return false;
}
this.orderInfo = result;
this.orderInfo = {...result, refundStatus : 3};
}
}

@ -2,13 +2,13 @@
* @Author: ch
* @Date: 2022-04-11 13:51:10
* @LastEditors: ch
* @LastEditTime: 2022-04-14 16:42:51
* @LastEditTime: 2022-04-14 17:55:55
* @Description: file content
-->
<template>
<view>
<view class="box">
<UiCell title="货物状态" @click="receiveShow = true" v-if="!$Route.query.status">
<UiCell title="货物状态" @click="receiveShow = true" v-if="params.refundType == 1">
<input class="input" slot="value" disabled placeholder="请选择" :value="receiveSelected.label"/>
</UiCell>
<UiCell title="退款原因" @click="refundShow=true">
@ -112,6 +112,13 @@ export default {
// console.log(this.params.evidenceImages);
this.receiveSelected = this.receiveStatusData.find(i => i.value == this.params.receiveStatus) || {};
this.refundSelected = this.refundReasonData.find(i => i.value == this.params.refundType) || {};
if(result.refundType == 2){
uni.setNavigationBarTitle({title:'修改退货退款申请'});
}else{
uni.setNavigationBarTitle({title:'修改退款申请'});
}
},
async getOssCon(){
const {error, result} = await ApiPostGetOssConfig({

@ -2,16 +2,72 @@
* @Author: ch
* @Date: 2022-04-14 16:50:37
* @LastEditors: ch
* @LastEditTime: 2022-04-14 17:10:58
* @LastEditTime: 2022-04-14 18:57:54
* @Description: file content
-->
<template>
<view>
<UiWhiteBox>
<!-- <ui-goods-info -->
<UiGoodsInfo class="goods-info" ></UiGoodsInfo>
</UiWhiteBox>
<UiWhiteBox>
<view class="title">选择售后类型</view>
<view class="item item__first" @click="$Router.push(`/saleAfterApply?type=1`)">
<view>申请退款</view>
<text>没有收到货或已协商同意不退货只退款</text>
</view>
<view class="item" @click="$Router.push(`/saleAfterApply?type=2&status=2`)">
<view>申请退货退款</view>
<text>已收到货需要退还收到的货物</text>
</view>
</UiWhiteBox>
</view>
</template>
<script>
import UiGoodsInfo from '../../../components/UiGoodsInfo.vue'
import UiWhiteBox from '../../../components/UiWhiteBox.vue'
export default {
components: { UiWhiteBox, UiGoodsInfo },
data(){
return {
}
},
methods : {
getOrderInfo(){
}
}
}
</script>
<style lang="scss" scoped>
page{
background: $color-grey1;
}
.title{
height: 98rpx;
line-height: 98rpx;
border-bottom: 2rpx solid $color-grey2;
padding: 0 30rpx;
color: $color-grey5;
}
.item{
padding: 40rpx 0;
margin: 0 40rpx;
&__first{
border-bottom: 2rpx solid $color-grey2;
}
view{
font-weight: bold;
margin-bottom:20rpx;
}
text{
color: $color-grey4;
font-size: $font-size-sm;
}
}
.goods-info{
border: 0;
}
</style>

Before

Width:  |  Height:  |  Size: 878 B

After

Width:  |  Height:  |  Size: 878 B

Before

Width:  |  Height:  |  Size: 604 B

After

Width:  |  Height:  |  Size: 604 B

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 663 B

After

Width:  |  Height:  |  Size: 663 B

Before

Width:  |  Height:  |  Size: 858 B

After

Width:  |  Height:  |  Size: 858 B

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 484 B

Before

Width:  |  Height:  |  Size: 984 B

After

Width:  |  Height:  |  Size: 984 B

Before

Width:  |  Height:  |  Size: 607 B

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Loading…
Cancel
Save