guhongwei 2 年之前
父節點
當前提交
d21390c8c7
共有 1 個文件被更改,包括 23 次插入29 次删除
  1. 23 29
      pagesMy/order/service.vue

+ 23 - 29
pagesMy/order/service.vue

@@ -8,8 +8,7 @@
 				<view class="one_2">
 					<view class="list" v-for="(item,index) in info.goods" :key="index">
 						<view class="list_1">
-							<image class="image"
-								:src="item.goods.file&&item.goods.file.length>0?item.goods.file[0].url:''" mode="">
+							<image class="image" :src="item.goods.file&&item.goods.file.length>0?item.goods.file[0].url:''" mode="">
 							</image>
 						</view>
 						<view class="list_2">
@@ -37,27 +36,23 @@
 				<view class="two_1" v-if="status=='3'">
 					<uni-forms ref="thrform" :rules="thrrules" :model="thrform" label-width="auto">
 						<uni-forms-item label="售后商品" name="goods_id">
-							<picker class="picker" mode="selector" :range="info.goods" @change="goodsChange"
-								range-key="goods_name">
+							<picker class="picker" mode="selector" :range="info.goods" @change="goodsChange" range-key="goods_name">
 								<view>{{thrform.goods_name||'请选择退款商品'}}</view>
 							</picker>
 						</uni-forms-item>
 						<uni-forms-item label="售后类型" name="type">
-							<picker class="picker" mode="selector" :range="typeList" @change="typeChange"
-								range-key="label">
+							<picker class="picker" mode="selector" :range="typeList" @change="typeChange" range-key="label">
 								<view>{{thrform.type_name||'请选择售后类型'}}</view>
 							</picker>
 						</uni-forms-item>
 						<uni-forms-item label="退款金额" name="money" v-if="thrform.type=='0'||thrform.type=='1'">
-							<uni-easyinput type="digit" v-model="thrform.money" @input="toMoney"
-								placeholder="请输入退款金额" />
+							<uni-easyinput type="digit" v-model="thrform.money" @input="toMoney" placeholder="请输入退款金额" />
 							<view>
 								最大退款金额不能超过{{moneyInfo.payTotal||0}}
 							</view>
 						</uni-forms-item>
 						<uni-forms-item label="申请理由" name="reason">
-							<picker class="picker" mode="selector" :range="reasonList" @change="reasonChange"
-								range-key="label">
+							<picker class="picker" mode="selector" :range="reasonList" @change="reasonChange" range-key="label">
 								<view>{{thrform.reason_name||'请选择申请理由'}}</view>
 							</picker>
 						</uni-forms-item>
@@ -130,25 +125,6 @@
 			await that.watchLogin();
 		},
 		methods: {
-			// 查询其他信息
-			async searchOther() {
-				const that = this;
-				let res;
-				res = await that.$api(`/dictData`, 'GET', {
-					code: "afterSale_type"
-				});
-				if (res.errcode == '0') {
-					let type = res.data.filter((i) => i.value !== '4' || i.value !== '5');
-					console.log(type);
-					that.$set(that, `typeList`, type)
-				}
-				res = await that.$api(`/dictData`, 'GET', {
-					code: "afterSale_reason"
-				});
-				if (res.errcode == '0') {
-					that.$set(that, `reasonList`, res.data)
-				}
-			},
 			watchLogin() {
 				const that = this;
 				uni.getStorage({
@@ -287,6 +263,24 @@
 						icon: 'none',
 					})
 				}
+			},
+			// 查询其他信息
+			async searchOther() {
+				const that = this;
+				let res;
+				res = await that.$api(`/dictData`, 'GET', {
+					code: "afterSale_type"
+				});
+				if (res.errcode == '0') {
+					let type = res.data.filter(i => i.value != '4' && i.value != '5')
+					that.$set(that, `typeList`, type)
+				}
+				res = await that.$api(`/dictData`, 'GET', {
+					code: "afterSale_reason"
+				});
+				if (res.errcode == '0') {
+					that.$set(that, `reasonList`, res.data)
+				}
 			}
 		}
 	}