zs 2 years ago
parent
commit
9b24e65441
2 changed files with 11 additions and 5 deletions
  1. 3 0
      pagesMy/order/index.vue
  2. 8 5
      pagesMy/order/service.vue

+ 3 - 0
pagesMy/order/index.vue

@@ -654,6 +654,9 @@
 								.goods_3 {
 									width: 15vw;
 									text-align: right;
+									.price{
+										color: #ff0000;
+									}
 								}
 							}
 						}

+ 8 - 5
pagesMy/order/service.vue

@@ -22,7 +22,7 @@
 							</view>
 							<view class="other_1">
 								<text>金额:</text>
-								<text>¥{{info.type=='0'?item.sell_money:item.group_config.money}}</text>
+								<text class="money">¥{{info.type=='0'?item.sell_money:item.group_config.money}}</text>
 							</view>
 							<view class="other_1">
 								<text>数量:</text>
@@ -36,7 +36,7 @@
 			<view class="two">
 				<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">
+						<uni-forms-item label="售后商品" name="goods">
 							<picker class="picker" mode="selector" :range="info.goods" @change="goodsChange"
 								range-key="goods_name">
 								<view>{{thrform.goods_name||'请选择退款商品'}}</view>
@@ -193,7 +193,7 @@
 				const that = this;
 				let data = that.info.goods[e.detail.value];
 				if (data) that.$set(that.info, `goods`, [data])
-				that.$set(that.thrform, `goods_id`, data._id);
+				that.$set(that.thrform, `goods`, data._id);
 				that.$set(that.thrform, `goods_name`, data.goods_name);
 			},
 			// 选择售后类型
@@ -206,10 +206,10 @@
 					that.$set(that.thrform, `type_name`, data.label);
 				}
 				if (data.value != '3') {
-					if (thrform.goods_id) {
+					if (thrform.goods) {
 						const arr = await that.$api(`/afterSale/cgfr`, 'POST', {
 							order_detail: that.id,
-							goods_id: thrform.goods_id
+							goods_id: thrform.goods
 						});
 						if (arr.errcode == '0') {
 							that.$set(that, `moneyInfo`, arr.data);
@@ -414,6 +414,9 @@
 						}
 
 						.other_1 {
+							.money {
+								color: #ff0000 !important;
+							}
 
 							text {
 								font-size: 13px;