From-wh пре 2 година
родитељ
комит
53ac7b1b8f

+ 1 - 1
template/uni-app/components/orderGoods/index.vue

@@ -29,7 +29,7 @@
 					</view>
 					<view class='text'>
 						<view class='acea-row row-between-wrapper'>
-							<view class='name line1'>{{item.productInfo.store_name}}</view>
+							<view class='name line2'>{{item.productInfo.store_name}}</view>
 							<view class='num'>x {{item.cart_num}}</view>
 						</view>
 						<view class='attr line1' v-if="item.productInfo.attrInfo">{{item.productInfo.attrInfo.suk}}

+ 1 - 1
template/uni-app/pages/activity/goods_seckill/index.vue

@@ -29,7 +29,7 @@
 							<image :src='item.image'></image>
 						</view>
 						<view class='text acea-row row-column-around'>
-							<view class='name line1'>{{item.title}}</view>
+							<view class='name line2'>{{item.title}}</view>
 							<view class='money font-color'>{{$t(`¥`)}}
 								<text class='num font-color'>{{item.price}}</text>
 								<text class="y_money">{{$t(`¥`)}}{{item.ot_price}}</text>

+ 18 - 26
template/uni-app/pages/goods/order_details/index.vue

@@ -1166,32 +1166,24 @@
 			},
 			cancelOrder() {
 				let self = this
-				uni.showModal({
-					title: this.$t(`提示`),
-					content: this.$t(`确认取消该订单`),
-					success: function(res) {
-						if (res.confirm) {
-							orderCancel(self.orderInfo.order_id)
-								.then((data) => {
-									// #ifndef MP
-									self.$util.Tips({
-										title: data.msg
-									}, {
-										tab: 3
-									})
-									// #endif
-									// #ifdef MP
-									self.$util.Tips({
-										title: data.msg
-									}, '/pages/goods/order_list/index');
-									// #endif
-								})
-								.catch(() => {
-									self.getOrderInfo();
-								});
-						} else if (res.cancel) {}
-					}
-				});
+				orderCancel(self.orderInfo.order_id)
+					.then((data) => {
+						// #ifndef MP
+						self.$util.Tips({
+							title: data.msg
+						}, {
+							tab: 3
+						})
+						// #endif
+						// #ifdef MP
+						self.$util.Tips({
+							title: data.msg
+						}, '/pages/goods/order_list/index');
+						// #endif
+					})
+					.catch(() => {
+						self.getOrderInfo();
+					});
 			},
 		}
 	}