msb_beta
ch 3 years ago
parent 35da7ed76f
commit 8456962ef1

4
.gitignore vendored

@ -1,6 +1,6 @@
.hbuilderx/ .hbuilderx/
.history/ .history/
unpackage/dist/dev/ # unpackage/dist/dev/
unpackage/dist/build/.automator/ # unpackage/dist/build/.automator/
node_moudel/ node_moudel/
package-lock.json 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" "navigationBarBackgroundColor" : "#F8F8F8"
} }
}, },
{
"path": "pages/order/saleAfter/saleAfterSelect",
"aliasPath" : "/saleAfterSelect",
"style": {
"navigationBarTitleText": "申请售后"
}
},
{ {
"path": "pages/order/saleAfter/saleAfterApply", "path": "pages/order/saleAfter/saleAfterApply",
"aliasPath" : "/saleAfterApply", "aliasPath" : "/saleAfterApply",

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

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-03-31 14:26:09 * @Date: 2022-03-31 14:26:09
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-13 17:43:55 * @LastEditTime: 2022-04-14 18:02:14
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -11,7 +11,7 @@
<UiWhiteBox> <UiWhiteBox>
<UiGoodsInfo v-for="(item, index) in orderInfo.products" :data="item" :key="index"> <UiGoodsInfo v-for="(item, index) in orderInfo.products" :data="item" :key="index">
<template slot="operation"> <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> </template>
</UiGoodsInfo> </UiGoodsInfo>
</UiWhiteBox> </UiWhiteBox>

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-04-11 13:51:10 * @Date: 2022-04-11 13:51:10
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-14 17:23:39 * @LastEditTime: 2022-04-14 17:59:09
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -86,7 +86,11 @@ export default {
}; };
}, },
onShow(){ 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) || {}; this.receiveSelected = this.receiveStatusData.find(i => i.value == this.$Route.query.status) || {};
}, },
methods: { methods: {

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

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

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

@ -2,16 +2,72 @@
* @Author: ch * @Author: ch
* @Date: 2022-04-14 16:50:37 * @Date: 2022-04-14 16:50:37
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-14 17:10:58 * @LastEditTime: 2022-04-14 18:57:54
* @Description: file content * @Description: file content
--> -->
<template> <template>
<view> <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> </view>
</template> </template>
<script> <script>
import UiGoodsInfo from '../../../components/UiGoodsInfo.vue'
import UiWhiteBox from '../../../components/UiWhiteBox.vue'
export default { export default {
components: { UiWhiteBox, UiGoodsInfo },
data(){
return {
}
},
methods : {
getOrderInfo(){
}
}
} }
</script> </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