Branch_csl #1
@ -4,54 +4,25 @@
|
||||
<form @submit="subRefund" report-submit="true">
|
||||
<view class="apply-return">
|
||||
<view class="list borRadius14">
|
||||
<view
|
||||
class="item acea-row row-between-wrapper"
|
||||
style="display: flex; align-items: center"
|
||||
>
|
||||
<view class="item acea-row row-between-wrapper" style="display: flex; align-items: center">
|
||||
<view>物流公司</view>
|
||||
<view v-if="state.expresses.length > 0" style="flex: 1">
|
||||
<picker
|
||||
mode="selector"
|
||||
class="num"
|
||||
@change="bindPickerChange"
|
||||
:value="state.expressIndex"
|
||||
:range="state.expresses"
|
||||
range-key="name"
|
||||
>
|
||||
<view
|
||||
class="picker acea-row row-between-wrapper"
|
||||
style="display: flex; justify-content: space-between"
|
||||
>
|
||||
<view v-if="state.expresses.length > 0" style="flex: 1;">
|
||||
<picker mode="selector" class="num" @change="bindPickerChange"
|
||||
:value="state.expressIndex" :range="state.expresses" range-key="name">
|
||||
<view class="picker acea-row row-between-wrapper"
|
||||
style="display: flex; justify-content: space-between;">
|
||||
<view class="reason">{{ state.expresses[state.expressIndex].name }}</view>
|
||||
<text class="iconfont _icon-forward" />
|
||||
<text class="iconfont _icon-forward"></text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="item textarea acea-row row-between"
|
||||
style="display: flex; align-items: center"
|
||||
>
|
||||
<view class="item textarea acea-row row-between" style="display: flex; align-items: center">
|
||||
<view>物流单号</view>
|
||||
<input
|
||||
placeholder="请填写物流单号"
|
||||
class="num"
|
||||
name="logisticsNo"
|
||||
placeholder-class="placeholder"
|
||||
/>
|
||||
<input placeholder="请填写物流单号" class="num" name="logisticsNo" placeholder-class="placeholder" />
|
||||
</view>
|
||||
<button
|
||||
class="returnBnt bg-color ss-reset-button ui-BG-Main-Gradient sub-btn"
|
||||
form-type="submit"
|
||||
style="
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--ui-BG-Main),
|
||||
var(--ui-BG-Main-gradient)
|
||||
) !important;
|
||||
"
|
||||
>提交</button
|
||||
>
|
||||
<button class="returnBnt bg-color ss-reset-button ui-BG-Main-Gradient sub-btn" form-type="submit" style="background: linear-gradient( 90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient) ) !important; ">
|
||||
提交</button>
|
||||
</view>
|
||||
</view>
|
||||
</form>
|
||||
@ -60,8 +31,12 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
import { reactive } from 'vue';
|
||||
import {
|
||||
onLoad
|
||||
} from '@dcloudio/uni-app';
|
||||
import {
|
||||
reactive
|
||||
} from 'vue';
|
||||
import sheep from '@/sheep';
|
||||
import AfterSaleApi from '@/sheep/api/trade/afterSale';
|
||||
import DeliveryApi from '@/sheep/api/trade/delivery';
|
||||
@ -82,19 +57,26 @@
|
||||
logisticsId: state.expresses[state.expressIndex].id,
|
||||
logisticsNo: e.detail.value.logisticsNo,
|
||||
};
|
||||
const { code } = await AfterSaleApi.deliveryAfterSale(data);
|
||||
const {
|
||||
code
|
||||
} = await AfterSaleApi.deliveryAfterSale(data);
|
||||
if (code !== 0) {
|
||||
return;
|
||||
}
|
||||
uni.showToast({
|
||||
title: '填写退货成功',
|
||||
});
|
||||
sheep.$router.go('/pages/order/aftersale/detail', { id: state.id });
|
||||
sheep.$router.go('/pages/order/aftersale/detail', {
|
||||
id: state.id
|
||||
});
|
||||
}
|
||||
|
||||
// 获得快递物流列表
|
||||
async function getExpressList() {
|
||||
const { code, data } = await DeliveryApi.getDeliveryExpressList();
|
||||
const {
|
||||
code,
|
||||
data
|
||||
} = await DeliveryApi.getDeliveryExpressList();
|
||||
if (code !== 0) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user