Переглянути джерело

申请退款 申请换货 待支付 等

MS-IOHQJGHXZHQD\Administrator 5 місяців тому
батько
коміт
ff48830791

+ 12 - 0
src/pages.json

@@ -535,6 +535,18 @@
 						"navigationBarTitleText": "待支付",
 						"navigationStyle": "custom"
 					}
+				},{
+					"path": "productDetails/applyRefund",
+					"style": {
+						"navigationBarTitleText": "申请退款",
+						"navigationStyle": "custom"
+					}
+				},{
+					"path": "productDetails/applyExchange",
+					"style": {
+						"navigationBarTitleText": "申请换货",
+						"navigationStyle": "custom"
+					}
 				}
 			]
 		}

+ 1 - 1
src/points/productDetails/addressManagement.vue

@@ -116,7 +116,7 @@ export default {
         },
         //去编辑地址
         goEditAddress() {
-            uni.redirectTo({
+            uni.navigateTo({
                 url: '/pages/address/address-edit'
             });
             // /let str = uni.$u.queryParams(params);

+ 298 - 0
src/points/productDetails/applyExchange.vue

@@ -0,0 +1,298 @@
+<!-- 申请换货 -->
+<template>
+    <view>
+        <scroll-view :scroll-y="true" @scroll="handleContentScroll">
+            <!-- 导航栏  :leftIconColor="!isTop ? '#fff' : '#000'"-->
+            <u-navbar :placeholder="true" autoBack @click="autoBackFun">
+                <view slot="center">
+                    <view class="centerTitle" style="background-color: #fff;">{{ title }}</view>
+                </view>
+            </u-navbar>
+
+            <view class="content">
+                <view class="productPrice">
+                    <view style="display:flex;">
+                        <view>
+                            <image style="width: 120rpx;height: 120rpx;" src="@/static/points/closeIcon.png" mode="">
+                            </image>
+                        </view>
+                        <view
+                            style="margin-left: 24rpx;display: flex;flex-direction: column;justify-content: space-between;">
+                            <view class="name">实付价 ¥10元+1000积分 </view>
+                            <view class="spec">已选:大号,白色 </view>
+                        </view>
+                    </view>
+                </view>
+                <view class="mustInput">
+                    <view class="row">
+                        <view class="title">申请原因</view>
+                        <view class="tip">
+                            <view :style="{color:selectApplyReason?'#333':'#999'}">{{ selectApplyReason?selectApplyReason:'请选择申请原因' }}</view>
+                            <image style="width: 28rpx;height: 28rpx;margin-left: 8rpx;" @click="selectApplyReasonFun('1')"
+                                src="@/static/points/Keyboard_arrow_rifht.png" mode=""></image>
+                        </view>
+
+                    </view>
+                    <view class="row">
+                        <view class="title">问题描述/凭证</view>
+                        <view class="tip">
+                            <view>请您务必上传描述和凭证</view>
+                            <image style="width: 28rpx;height: 28rpx;margin-left: 8rpx;" @click="selectApplyReasonFun('2')"
+                                src="@/static/points/Keyboard_arrow_rifht.png" mode=""></image>
+                        </view>
+
+                    </view>
+                </view>
+                <view class="returnMath">
+                    <text>返回方式</text>
+                    <text>自主邮寄</text>
+                </view>
+            </view>
+            <view class="buttonClass">
+                <u-button :customStyle="{
+                    color: '#fff',
+                    background: '#03C1B8'
+                }" @click="goHome">提交</u-button>
+
+            </view>
+
+
+        </scroll-view>
+
+    </view>
+</template>
+
+<script>
+import ApplyRefund from './applyRefund.vue';
+
+
+export default {
+    components: {},
+    data() {
+        return {
+            
+            selectApplyReason:null,
+            title: '申请换货',
+            isTop: 0,
+            redemptionRulesShowPopup: false,
+            selectProductShowPopup: false,
+            list: [
+                {
+                    addressName: '迎泽西大街86号信达国际金融中心',
+                    userName: '郭丽丽',
+                    userPhone: '16635680981',
+                    defaultAddress: '默认',
+                }, {
+                    addressName: '迎泽西大街86号信达国际金融中心',
+                    userName: '郭丽丽',
+                    userPhone: '16635680981',
+                }, {
+                    addressName: '迎泽西大街86号信达国际金融中心',
+                    userName: '郭丽丽',
+                    userPhone: '16635680981',
+                }, {
+                    addressName: '迎泽西大街86号信达国际金融中心',
+                    userName: '郭丽丽',
+                    userPhone: '16635680981',
+                }, {
+                    addressName: '迎泽西大街86号信达国际金融中心',
+                    userName: '郭丽丽',
+                    userPhone: '16635680981',
+                },
+            ]
+
+
+        }
+    },
+    onLoad(data) {
+        if(data){
+            //decodeURIComponent (data) 
+            this.selectApplyReason=data.selectReason
+           
+        }
+        console.log(data, 'data')
+    },
+    onShow(selectReason) {
+        console.log(selectReason, 'selectReason')
+
+    },
+    onPageScroll(e) {
+        //console.log("滚动距离为:" + e.scrollTop);
+        this.isTop = e.scrollTop;
+    },
+
+    methods: {
+        //申请换货
+        applyExchangeFun() {
+            uni.navigateTo({
+                url: '/points/productDetails/applyExchange'
+            });
+        },
+        //申请退款
+        applyRefundFun() {
+            uni.navigateTo({
+                url: '/points/productDetails/applyRefund'
+            });
+        },
+
+        handleContentScroll(e) {
+            this.isTop = e.detail.scrollTop > 0
+        },
+        //选择申请原因
+        selectApplyReasonFun(tab) {
+
+            uni.navigateTo({
+                url: `/points/productDetails/applyRefund?receivedStatus=3&tab=${tab}`
+            });
+        },
+        //返回首页
+        goHome() {
+            uni.switchTab({
+                url: '/pages/index/index'
+            });
+        },
+        //查看订单
+        checkOrder() {
+            uni.navigateTo({
+                url: '/points/productDetails/pendingPayment'
+            });
+        },
+        //返回上一页
+        autoBackFun() {
+            uni.navigateBack({ delta: 1 });
+        },
+        //去编辑地址
+        goEditAddress() {
+            uni.navigateTo({
+                url: '/pages/address/address-edit'
+            });
+            // /let str = uni.$u.queryParams(params);
+            // uni.navigateTo({
+            // 	url: `/packageA/pages/shop/coupon/couponDetail${str}`
+            // });
+        },
+
+    }
+}
+</script>
+
+<style></style>
+<style lang="scss" scoped>
+.centerTitle {
+    font-family: PingFang SC, PingFang SC;
+    font-weight: 500;
+    font-size: 34rpx;
+    color: #060606;
+    text-align: center;
+    font-style: normal;
+    text-transform: none;
+}
+
+.buttonClass {
+    position: fixed;
+    bottom: 0;
+    width: 100%;
+    padding: 32rpx;
+    font-family: PingFang SC, PingFang SC;
+
+    button {
+        border-radius: 98rpx 98rpx 98rpx 98rpx;
+        border: 2rpx solid #03C1B8;
+    }
+
+}
+
+.content {
+    background-color: #F8F8F8;
+    padding: 32rpx;
+    font-family: PingFang SC, PingFang SC;
+    //height: 658rpx;
+    border-radius: 20rpx 20rpx 20rpx 20rpx;
+
+    .productPrice {
+        background-color: #fff;
+        padding: 24rpx;
+        border-radius: 20rpx 20rpx 20rpx 20rpx;
+
+        .name {
+            font-weight: bold;
+            font-size: 28rpx;
+            color: #333333;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+        }
+
+        .spec {
+            font-weight: 500;
+            font-size: 26rpx;
+            color: #999999;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+
+        }
+    }
+
+    .mustInput {
+        background: #FFFFFF;
+        border-radius: 16rpx 16rpx 16rpx 16rpx;
+        padding: 2rpx 24rpx 26rpx 24rpx;
+        margin-top: 24rpx;
+
+        .title {
+            font-weight: 400;
+            font-size: 26rpx;
+            color: #666666;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+        }
+
+        .tip {
+            font-weight: 400;
+            font-size: 28rpx;
+            color: #999999;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+            display: flex;
+            align-items: center;
+        }
+
+        .row {
+            display: flex;
+            margin-top: 24rpx;
+            justify-content: space-between;
+
+        }
+
+
+    }
+
+    .returnMath {
+        margin-top: 24rpx;
+        background: #FFFFFF;
+        border-radius: 16rpx 16rpx 16rpx 16rpx;
+        font-weight: 400;
+        font-size: 26rpx;
+        color: #666666;
+        display: flex;
+        justify-content: space-between;
+        font-style: normal;
+        text-transform: none;
+        padding: 26rpx 24rpx;
+
+        text:last-of-type {
+            font-size: 28rpx;
+            color: #333333;
+        }
+    }
+
+
+
+
+
+
+}
+</style>

+ 441 - 0
src/points/productDetails/applyRefund.vue

@@ -0,0 +1,441 @@
+<!-- 申请退款页面 -->
+
+<template>
+    <view>
+        <scroll-view :scroll-y="true" @scroll="handleContentScroll">
+            <!-- 导航栏  :leftIconColor="!isTop ? '#fff' : '#000'"-->
+            <u-navbar :placeholder="true" autoBack @click="autoBackFun">
+                <view slot="center">
+                    <view class="centerTitle" style="background-color: #fff;">
+                        {{ receivedStatus == '1' || receivedStatus == '2' ? '申请退款' : '申请换货' }}</view>
+                </view>
+            </u-navbar>
+
+            <view class="content">
+                <view v-if="tab=='1'">
+                    <view class="contentDetail">
+                        <view class="tip">请选择取消订单的原因(必选):</view>
+                        <u-radio-group v-model="selectReason" @change="groupChange">
+                            <view>
+                                <!-- //1 未收到,申请退款 list;  2.已收到货,申请退款 list2     3.已收货-换货申请 list3-->
+                                <view class="item" v-for="item in filteredList">
+                                    <view v-if="item.title" class="title">{{ item.title }}:</view>
+                                    <view class="obj" v-for="obj in item.data">
+                                        <view class="radioBox">
+                                            <u-radio activeColor="#03C1B8 " :name=obj.value></u-radio>{{ obj.text }}
+                                        </view>
+                                    </view>
+                                </view>
+                            </view>
+                        </u-radio-group>
+                    </view>
+                    <view class="tip2" v-if="receivedStatus == '1'">
+                        <view class="title">温馨提示:</view>
+                        <view class="textClass">
+                            1.订单一旦取消,无法恢复<br>
+                            2.用户因个人原因申请退货,包邮商品需承担返回运费,非包邮商品需承担送返两程运费<br>
+                            3.如有其他问题,请及时与平台联系,联系电话:****-*******<br>
+                        </view>
+                    </view>
+                </view>
+                <view v-if="tab=='2'">
+                    <view class="Box">
+                        <view class="questionOrDiscribe">
+                            <view>问题与描述:</view>
+                            <u--textarea v-model="questionOrDiscribe" placeholder="请输入问题描述" :maxlength="100"
+                                count></u--textarea>
+
+                        </view>
+                        <view class="pictures">
+                            <view>上传凭证图片:</view>
+                            <view style="margin-top: 16rpx;" class="pictureClass">
+                                <!-- <view v-for="value in 3" style="position: relative;width: calc(25% - 22rpx)">
+                                    <image style="width: 144rpx;height: 144rpx;" src="@/static/points/closeIcon.png"
+                                        mode="">
+                                    </image>
+                                    <image style="width: 36rpx;height: 36rpx;position: absolute;right : 0;top:0"
+                                        src="@/static/points/pictureIcon.png" mode="" @click="deletePictureFun">
+                                    </image>
+                                </view> -->
+
+                                <Upload style="" :maxCount="6"
+                                    :customImg="true" :width="'70'" :height="'70'" :src="'/static/points/picture2.png'"
+                                    @fileList="onUpload" />
+
+
+                            </view>
+
+
+                        </view>
+                    </view>
+
+
+                </view>
+
+
+
+
+            </view>
+            <view class="buttonClass">
+                <u-button :customStyle="{
+                    color: '#fff',
+                    background: '#03C1B8'
+                }" @click="goSubmit">提交</u-button>
+
+            </view>
+
+        </scroll-view>
+
+    </view>
+</template>
+
+<script>
+import Upload from '@/components/upload/index.vue';
+export default {
+    components: { Upload },
+    data() {
+        return {
+            tab:null,
+            headPhotoImg: [],
+            questionOrDiscribe: '',
+            selectReason: '',
+            selectReasonName: '',
+            receivedStatus: null,//1 未收到,申请退款;2.已收到货,申请退款 3.已收货-换货申请
+            isTop: 0,
+            list: [],
+            //未收到,申请退款
+            list1: [
+                {
+                    title: '平台原因',
+                    data: [
+                        { value: '1', text: '商家无货联系我取消订单' },
+                        { value: '2', text: '商家无法按承诺时效送达' },
+                        { value: '3', text: '商家其他原因联系我取消订单' },
+                    ]
+                }, {
+                    title: '个人原因',
+                    data: [
+                        { value: '4', text: '不想要' },
+                        { value: '5', text: '商品错选 / 多选' },
+                        { value: '6', text: '地址信息填写错误' },
+                        { value: '7', text: '7天无理由退货' },
+                    ]
+                }
+            ],
+            //已收到货,申请退款
+            list2: [
+                {
+                    title: '',
+                    data: [
+                        { value: '1', text: '买错/买多/不想要' },
+                        { value: '2', text: '买错/买多/不想要' },
+                        { value: '3', text: '商品与页面描述不符' },
+                        { value: '4', text: '商品与页面描述不符' },
+                        { value: '5', text: '发错货' },
+                        { value: '6', text: '少件/未收到货' },
+                        { value: '7', text: '7天无理由退货' },
+                    ]
+                }
+            ],
+            //已收货-换货申请
+            list3: [
+                {
+                    title: '',
+                    data: [
+                        { value: '1', text: '商品质量问题' },
+                        { value: '2', text: '商品与页面描述不符' },
+                        { value: '3', text: '商品/包装破损' },
+                        { value: '4', text: '发错货' },
+                        { value: '5', text: '少件/未收到货' },
+                        { value: '6', text: '商品大小不合适' },
+                    ]
+                },
+            ],
+
+
+        }
+    },
+    computed: {
+        filteredList() {
+            if (this.receivedStatus === '1') return this.list1;
+            if (this.receivedStatus === '2') return this.list2;
+            return this.list3;
+        }
+    },
+    onLoad(data) {
+        console.log(data, 'onLoad')
+        if (data) {
+            this.receivedStatus = data.receivedStatus
+            this.tab=data.tab?data.tab:null
+        }
+        setTimeout(()=>{
+          console.log(this.filteredList,'2222')  
+        },2000)
+        
+
+    },
+    onShow(data) {
+        if (data) {
+            this.receivedStatus = data.receivedStatus
+            this.tab=data.tab?data.tab:null
+        }
+        console.log(data, 'onShow')
+
+
+    },
+    onPageScroll(e) {
+        //console.log("滚动距离为:" + e.scrollTop);
+        this.isTop = e.scrollTop;
+    },
+
+    methods: {
+        // upload事件
+        onUpload(e, t) {
+            console.log(e, t)
+            //this.form[t] = e.map(item => item.url);
+        },
+        handleContentScroll(e) {
+            this.isTop = e.detail.scrollTop > 0
+        },
+        clichFun() {
+
+        },
+        //点击单选按钮
+        groupChange(val) {
+            this.selectReason = val
+            this.filteredList[0].data.forEach(item => {
+                if (item.value == val) {
+                    this.selectReasonName = item.text
+                }
+
+            });
+
+
+
+        },
+        //提交
+        goSubmit() {
+            //`/pages/test/test?name=${encodeURIComponent(name)}&info=${encodeURIComponent(info)}`
+            uni.navigateTo({
+                url: `/points/productDetails/applyExchange?selectReason=${encodeURIComponent(this.selectReasonName)}`
+            });
+        },
+        //查看订单
+        checkOrder() {
+            uni.navigateTo({
+                url: '/points/productDetails/pendingPayment'
+            });
+        },
+        //返回上一页
+        autoBackFun() {
+            uni.navigateBack();
+        },
+        //去编辑地址
+        goEditAddress() {
+            uni.navigateTo({
+                url: '/pages/address/address-edit'
+            });
+            // /let str = uni.$u.queryParams(params);
+            // uni.navigateTo({
+            // 	url: `/packageA/pages/shop/coupon/couponDetail${str}`
+            // });
+        },
+
+    }
+}
+</script>
+
+<style></style>
+<style lang="scss" scoped>
+.centerTitle {
+    font-family: PingFang SC, PingFang SC;
+    font-weight: 500;
+    font-size: 34rpx;
+    color: #060606;
+    text-align: center;
+    font-style: normal;
+    text-transform: none;
+}
+
+.buttonClass {
+    position: fixed;
+    padding: 32rpx;
+    bottom: 0;
+    width: 100%;
+    font-family: PingFang SC, PingFang SC;
+
+    button {
+        height: 84rpx;
+        border-radius: 98rpx 98rpx 98rpx 98rpx;
+        border: 2rpx solid #03C1B8;
+    }
+
+}
+
+.content {
+    background-color: #F8F8F8;
+    padding: 32rpx;
+    font-family: PingFang SC, PingFang SC;
+    //height: 658rpx;
+    border-radius: 20rpx 20rpx 20rpx 20rpx;
+
+    ::v-deep .Box {
+        background: #FFFFFF;
+        border-radius: 20rpx 20rpx 20rpx 20rpx;
+        padding: 18rpx 22rpx 22rpx 22rpx;
+
+        .questionOrDiscribe {
+            font-weight: 500;
+            font-size: 28rpx;
+            color: #333333;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+
+            .u-textarea {
+                margin-top: 16rpx;
+                height: 206rpx;
+                background: #F8F8F8;
+                border-radius: 16rpx 16rpx 16rpx 16rpx;
+                border: 1rpx solid #DCDCDC;
+
+                .uni-textarea-placeholder {
+                    font-weight: 400;
+                    font-size: 24rpx;
+                    color: #999999;
+                    text-align: left;
+                    font-style: normal;
+                    text-transform: none;
+                }
+
+                .uni-textarea-wrapper {
+                    font-weight: 400;
+                    font-size: 24rpx;
+                    color: #333;
+                    text-align: left;
+                    font-style: normal;
+                    text-transform: none;
+                }
+
+
+            }
+        }
+
+        .pictures {
+            margin-top: 16rpx;
+            font-weight: 500;
+            font-size: 28rpx;
+            color: #333333;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+        }
+
+        .pictureClass {
+            
+            .u-upload {
+                .u-upload__wrap{
+                    /* display: inline-block; */
+                    flex-direction: row;
+                    /* justify-content: space-between; */
+                    flex-wrap: wrap;
+                    /* flex: 1; */
+                    gap: 24rpx;
+                    .u-upload__wrap__preview{
+                        position: relative;
+                        width: calc(25% - 20rpx);
+                    }
+                    
+                }
+            }
+
+            .u-upload__wrap__preview {
+                margin: 0;
+                width: calc(25% - 22rpx)
+            }
+
+
+        }
+    }
+
+    .contentDetail {
+        background: #FFFFFF;
+        border-radius: 20rpx 20rpx 20rpx 20rpx;
+        padding: 0 20rpx 24rpx 20rpx;
+
+        .tip {
+            font-weight: bold;
+            font-size: 28rpx;
+            color: #333333;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+            padding-top: 18rpx;
+        }
+
+        .item {
+            width: 100%;
+            margin-top: 24rpx;
+        }
+
+        .title {
+            font-weight: 400;
+            font-size: 26rpx;
+            color: #333333;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+        }
+
+        .obj {
+            margin-top: 24rpx;
+            font-weight: 400;
+            font-size: 26rpx;
+            color: #999999;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+            display: flex;
+        }
+
+        .radioBox {
+            display: flex;
+        }
+
+
+
+    }
+
+    .tip2 {
+        margin-top: 24rpx;
+
+        .title {
+            font-weight: bold;
+            font-size: 28rpx;
+            color: #333333;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+        }
+
+        .textClass {
+            margin-top: 24rpx;
+            font-weight: 400;
+            font-size: 26rpx;
+            color: #999;
+            text-align: left;
+            font-style: normal;
+            text-transform: none;
+            display: flex;
+        }
+
+
+    }
+
+
+
+
+
+
+}
+</style>

+ 1 - 1
src/points/productDetails/components/selectProduct.vue

@@ -93,7 +93,7 @@ export default {
         },
         //去我的地址页面
         addressSelectFun() {
-             uni.redirectTo({
+             uni.navigateTo({
                 url: '/points/productDetails/addressManagement'
             });
         }

+ 10 - 11
src/points/productDetails/index.vue

@@ -20,11 +20,11 @@
           <view class="discribeClass">双层曲线杯身在隔热防烫</view>
           <view class="serviceClass">
             <ImageItem style="width: 24rpx;height: 24rpx;margin-right: 4rpx;" src="/static/points/Group4.png" />放心购
-            <ImageItem style="width: 24rpx;height: 24rpx;margin-left: 24rpx;margin-right: 4rpx;"
+            <ImageItem style="width: 24rpx;height: 24rpx;margin-left: 26rpx;margin-right: 4rpx;"
               src="/static/points/Group6.png" />假一赔三
-            <ImageItem style="width: 24rpx;height: 24rpx;margin-left: 24rpx;margin-right: 4rpx;"
+            <ImageItem style="width: 24rpx;height: 24rpx;margin-left: 26rpx;margin-right: 4rpx;"
               src="/static/points/Group2.png" /> 7天无理由退换
-            <ImageItem style="width: 24rpx;height: 24rpx;margin-left: 24rpx;margin-right: 4rpx;"
+            <ImageItem style="width: 24rpx;height: 24rpx;margin-left: 26rpx;margin-right: 4rpx;"
               src="/static/points/return7.png" /> 破损包退换
           </view>
 
@@ -33,17 +33,17 @@
         <view class="seconedRow">
           <view class="specClass">
             <view style="display: flex;align-items: center;">
-              <text style="color: 666666;">规格</text>
+              <text style="color: #666666;">规格</text>
               <ImageItem class="imgClass" v-for="item in 3" src="/static/points/Group6.png" />
             </view>
             <view style="display: flex;align-items: center;">
-              <text style="color: 666666;margin-right: 8rpx;">已选:白色,大号</text>
+              <text style="color: #666666;margin-right: 8rpx;">已选:白色,大号</text>
               <image style="width: 28rpx;height: 28rpx;" @click="selectProductShowFun"
                   src="@/static/points/Keyboard_arrow_rifht.png" mode=""></image>
             </view>
           </view>
           <view class="arriveAddressClass">
-            <text style="color: 666666;margin-right: 24rpx;">送至</text>
+            <text style="color: #666666;margin-right: 24rpx;">送至</text>
             <text>山西省太原市万柏林区</text>
             <span style="position: absolute;right: 0;">
               <image style="width: 28rpx;height: 28rpx;" @click="addressSelectFun"
@@ -51,10 +51,10 @@
             </span>
           </view>
           <view class="seedAddressClass">
-            <text style="color: 666666;margin-right: 24rpx;">发货</text>
+            <text style="color: #666666;margin-right: 24rpx;">发货</text>
             <text>山西省太原市小店区 | 免运费</text>
           </view>
-          <view class="promiseSeedTime" style="margin-right: 104rpx;">
+          <view class="promiseSeedTime" style="margin-left: 80rpx;">
             下单后48小时内发货
           </view>
 
@@ -160,7 +160,7 @@ export default {
     },
     //立即兑换
     redeemNowFun() {
-      uni.redirectTo({
+      uni.navigateTo({
         url: '/points/productDetails/paymentSuccessful'
       });
     },
@@ -174,7 +174,7 @@ export default {
     },
     //去我的地址页面
     addressSelectFun() {
-      uni.redirectTo({
+      uni.navigateTo({
         url: '/points/productDetails/addressManagement'
       });
     },
@@ -203,7 +203,6 @@ export default {
 
 .footer-bar {
   .u-button {
-    width: 670rpx;
     height: 84rpx;
     border-radius: 98rpx 98rpx 98rpx 98rpx;
     margin: 20rpx 40rpx;

+ 27 - 2
src/points/productDetails/paymentSuccessful.vue

@@ -51,6 +51,16 @@
                     color: '#03C1B8 ',
                     background: ''
                 }" @click="checkOrder">查看订单</u-button>
+
+                <u-button :customStyle="{
+                    color: '#03C1B8 ',
+                    background: ''
+                }" @click="applyRefundFun">申请退款</u-button>
+
+                <u-button :customStyle="{
+                    color: '#03C1B8 ',
+                    background: ''
+                }" @click="applyExchangeFun">申请换货</u-button>
             </view>
 
         </scroll-view>
@@ -59,6 +69,8 @@
 </template>
 
 <script>
+import ApplyRefund from './applyRefund.vue';
+
 
 export default {
     components: {},
@@ -108,6 +120,19 @@ export default {
     },
 
     methods: {
+        //申请换货
+        applyExchangeFun() {
+            uni.navigateTo({
+                url: '/points/productDetails/applyExchange'
+            });
+        },
+        //申请退款
+        applyRefundFun() {
+            uni.navigateTo({
+                url: `/points/productDetails/applyRefund?receivedStatus=1&tab=1`
+            });
+        },
+
         handleContentScroll(e) {
             this.isTop = e.detail.scrollTop > 0
         },
@@ -122,7 +147,7 @@ export default {
         },
         //查看订单
         checkOrder() {
-            uni.redirectTo({
+            uni.navigateTo({
                 url: '/points/productDetails/pendingPayment'
             });
         },
@@ -132,7 +157,7 @@ export default {
         },
         //去编辑地址
         goEditAddress() {
-            uni.redirectTo({
+            uni.navigateTo({
                 url: '/pages/address/address-edit'
             });
             // /let str = uni.$u.queryParams(params);

+ 9 - 8
src/points/productDetails/pendingPayment.vue

@@ -87,17 +87,17 @@
                 </view>
             </view>
             <view class="buttonClass">
-                <u-button v-if="title=='待支付'" :customStyle="{
+                <u-button v-if="title == '待支付'" :customStyle="{
                     color: '#999',
                     background: ''
                 }" @click="cancelOrderFun">取消支付</u-button>
 
-                <u-button v-if="title=='待支付'" :customStyle="{
+                <u-button v-if="title == '待支付'" :customStyle="{
                     color: '#fff ',
                     background: '#03C1B8'
                 }" @click="checkOrder">去付款</u-button>
 
-                <u-button v-if="title=='订单取消'" :customStyle="{
+                <u-button v-if="title == '订单取消'" :customStyle="{
                     color: '#fff ',
                     background: '#03C1B8'
                 }" @click="checkOrder">再次购买</u-button>
@@ -121,7 +121,7 @@
                 <!-- 项目列表 -->
                 <view class="refund-items">
                     <view class="reason">请选择退款原因</view>
-                    <u-radio-group v-model="pay" @change="groupChange">
+                    <u-radio-group v-model="selectReason" @change="groupChange">
 
                         <view style="padding: 0 20rpx 24rpx 20rpx;">
                             <view class="radioBox">
@@ -169,6 +169,7 @@ export default {
     components: {},
     data() {
         return {
+            selectReason:'',
             title: '待支付',
             cancelOrderShowPopup: false,
             orderStatus: '剩余时间 14:59', //超时未支付
@@ -190,8 +191,8 @@ export default {
         //取消订单提交按钮
         cancelOrderSubmit() {
             this.cancelOrderShowPopup = false
-            this.title='订单取消'
-            this.orderStatus='您已取消支付'
+            this.title = '订单取消'
+            this.orderStatus = '您已取消支付'
         },
         //关闭取消订单选择页
         closeCancelOrderFun() {
@@ -203,7 +204,7 @@ export default {
         },
         //去我的地址页面
         addressSelectFun() {
-            uni.redirectTo({
+            uni.navigateTo({
                 url: '/points/productDetails/addressManagement'
             });
         }
@@ -380,7 +381,7 @@ export default {
             .price {
                 font-weight: 500;
                 font-size: 28rpx;
-                color: #333333;
+                color: #03C1B8;
                 text-align: left;
                 font-style: normal;
                 text-transform: none;

BIN
src/static/points/picture2.png


BIN
src/static/points/pictureIcon.png