|
@@ -56,10 +56,10 @@
|
|
|
<view>{{thrform.reason_name||'请选择申请理由'}}</view>
|
|
|
</picker>
|
|
|
</uni-forms-item>
|
|
|
- <uni-forms-item label="申请售后描述" name="desc">
|
|
|
- <uni-easyinput type="textarea" v-model="thrform.desc" placeholder="请输入申请售后描述" />
|
|
|
+ <uni-forms-item label="售后描述" name="desc">
|
|
|
+ <uni-easyinput type="textarea" v-model="thrform.desc" placeholder="请输入售后描述" />
|
|
|
</uni-forms-item>
|
|
|
- <uni-forms-item label="附件" name="icon">
|
|
|
+ <uni-forms-item label="附件" name="file">
|
|
|
<upload :list="thrform.file" name="file" :count="1" @uplSuc="uplSuc" @uplDel="uplDel"></upload>
|
|
|
</uni-forms-item>
|
|
|
<view class="btn">
|
|
@@ -110,8 +110,6 @@
|
|
|
thrform: {
|
|
|
file: []
|
|
|
},
|
|
|
- // 附件
|
|
|
- // icon: [],
|
|
|
// 最大退款数
|
|
|
moneyInfo: {},
|
|
|
thrrules: {
|
|
@@ -280,6 +278,7 @@
|
|
|
e.file = that.thrform.file;
|
|
|
e.order_detail = that.id;
|
|
|
let money = that.moneyInfo.payTotal;
|
|
|
+ let res;
|
|
|
if (e.type != '3') {
|
|
|
if (e.money) {
|
|
|
if (parseFloat(e.money) > parseFloat(money)) {
|
|
@@ -288,21 +287,7 @@
|
|
|
icon: 'none'
|
|
|
})
|
|
|
} else {
|
|
|
- let arr = await that.$api(`/afterSale`, 'POST', e)
|
|
|
- if (arr.errcode == '0') {
|
|
|
- uni.showToast({
|
|
|
- title: '申请售后完成',
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
- uni.navigateBack({
|
|
|
- detail: 1
|
|
|
- })
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: arr.errmsg,
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
- }
|
|
|
+ res = await that.$api(`/afterSale`, 'POST', e)
|
|
|
}
|
|
|
} else {
|
|
|
uni.showToast({
|
|
@@ -311,21 +296,21 @@
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
|
- let arr = await that.$api(`/afterSale`, 'POST', e)
|
|
|
- if (arr.errcode == '0') {
|
|
|
- uni.showToast({
|
|
|
- title: '申请售后完成',
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
- uni.navigateBack({
|
|
|
- detail: 1
|
|
|
- })
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: arr.errmsg,
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
- }
|
|
|
+ res = await that.$api(`/afterSale`, 'POST', e)
|
|
|
+ }
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ uni.showToast({
|
|
|
+ title: '申请售后完成',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ uni.navigateBack({
|
|
|
+ detail: 1
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.errmsg,
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
// 未收到货
|