ZZ 3 hafta önce
ebeveyn
işleme
dd7bac1e61

+ 1 - 4
mer_uniapp/components/WaterfallsFlowItem/WaterfallsFlowItem.vue

@@ -17,12 +17,9 @@
 				<text v-if="item.auditStatus == 0" class="approval_info">通过后将展示在列表</text>
 			</view>
 			<view class='texts'>
-				<view class='names box-line2 flex-between-center' v-if="userFair && item.title">
-					{{!userFair ? '' : item.title}}
-				</view>
 				<view class='names box-line2 flex-between-center'>
 					<text v-if="item.productTags && item.productTags.locationLeftTitle.length" class="font-bg-red mr10 bg-color merType">{{item.productTags.locationLeftTitle[0].tagName}}</text>
-					{{!userFair ? item.name : item.content}}
+					{{!userFair ? item.name : item.title}}
 					<view v-if="userFair">
 						<text class="iconfont icon-shoucang"></text>{{item.likeNum || 0}}
 					</view>

+ 1 - 1
mer_uniapp/pages/goods/goods_details/index.vue

@@ -463,7 +463,7 @@
 									立即购买
 								</button>
 							</form>
-							<form @submit="goSecondHand" report-submit="true" >
+							<form @submit="goSecondHand" report-submit="true" v-if="dataItem.authorId !== uid">
 								<button style="border-radius: 0;" :class="productInfo.systemFormId == 0 ? 'bnts' : 'longBnts'" class="buy"
 								 form-type="submit">
 									立即购买

+ 3 - 3
mer_uniapp/pages/goods/order_confirm/index.vue

@@ -679,7 +679,7 @@
 					this.isAddress = Number(this.orderInfoVo.secondType) < 5 && Number(this.orderInfoVo.secondType) !== 2 && Number(this.orderInfoVo.type) != 2;
 
 					orderInfoVo.merchantInfoList.map(item => {
-						if (item.shippingType == 2) this.isAddress = false; //  && this.orderType !== 'secondHand'
+						if (item.shippingType == 2 && this.orderType !== 'secondHand') this.isAddress = false;
 						this.orderMerchantRequestList.push({
 							shippingType: item.shippingType,
 							merId: item.merId,
@@ -956,7 +956,7 @@
 				if (this.orderType == 'secondHand') {
 					console.log(this.addressInfo)
 					that.orderMerchantRequestList.map(function(v) {
-						if (v.shippingType === 1 && !that.addressInfo.id) {
+						if (!that.addressInfo.id) {
 							flag = true;
 						}
 					});
@@ -968,7 +968,7 @@
 					}
 
 					data = {
-						addressId: this.merchantOrderVoList[this.activeIndex].shippingType == 1 ? this.addressInfo.id : null,
+						addressId: this.addressInfo.id,
 						orderMerchantRequestList: [
 							{
 								remark: this.merchantOrderVoList[this.activeIndex].remark || '',

+ 4 - 2
mer_uniapp/pages/goods/order_details/index.vue

@@ -113,7 +113,7 @@
 							</view>
 						</view>
 					</view>
-					<view v-if="orderType == 'secondHand' && item.shippingType == 2">
+					<view v-if="orderType == 'secondHand' && item.shippingType == 2 && orderInfo.uid == uid">
 						<view class="map borRadius14">
 							<view class='title item acea-row row-between-wrapper'>
 								<view>自提地址信息</view>
@@ -626,7 +626,9 @@
 					})
 					that.isUserAddress = that.userAddress.length > 0 ? true : false;
 					if (that.orderType == 'secondHand' && data.merchantOrderList[0].shippingType == 2) {
-						that.isUserAddress = true;
+						if (data.sellerId == that.uid) {
+							that.isUserAddress = true;
+						}
 						that.userAddress = data.merchantOrderList;
 					}
 					if (data.status !== 0 || data.status !== 9) {

+ 64 - 3
mer_uniapp/pages/trade_fair/trade_fair_user/index.vue

@@ -218,9 +218,20 @@
 		editSchoolApi
 	} from '@/api/discover.js';
 	import {
+		getSecondHandDetail,
+		secondHandTake,
+		secondHandDel,
+		secondHandCancel,
+		secondHandStatusImgApi,
+		secondHandSend,
+		secondHandOrderList
+	} from '@/api/secondHand.js';
+	import {
 		ProductTypeEnum,
 	} from "@/enums/productEnums";
-	import {secondHandOrderList} from '@/api/secondHand.js';
+	import {
+		Debounce
+	} from '@/utils/validate.js';
 	import {
 		toLogin
 	} from '@/libs/login.js';
@@ -445,7 +456,7 @@
 				if (that.loaded || that.loading) return;
 				that.loading = true;
 				that.loadTitle = '';
-				that.where.status = 1;
+				that.where.status = -1;
 				secondHandOrderList(that.where).then(res => {
 					let list = res.data.list;
 					let goods = that.$util.SplitArray(list, that.list);
@@ -550,7 +561,57 @@
 						icon: 'none'
 					})
 				})
-			}
+			},
+			/**
+			 * 取消订单
+			 *
+			 */
+			cancelOrder: function(index, orderNo) {
+				let that = this;
+				if (!orderNo) return that.$util.Tips({
+					title: '缺少订单号无法取消订单'
+				});
+				uni.showModal({
+					content: '确定取消该订单',
+					cancelText: "取消",
+					confirmText: "确定",
+					showCancel: true,
+					confirmColor: '#f55850',
+					success: (res) => {
+						if (res.confirm) {
+							uni.showLoading({
+								title: '正在取消中'
+							});
+							secondHandCancel(orderNo).then(res => {
+								uni.hideLoading();
+								return that.$util.Tips({
+									title: '取消成功',
+									icon: 'success'
+								}, function() {
+									that.getAllOrder();
+								});
+							}).catch(err => {
+								return that.$util.Tips({
+									title: err
+								});
+							});
+						} else {
+			
+						}
+					},
+				})
+			},
+			/**
+			 * 打开支付组件
+			 *
+			 */
+			goPay: Debounce(function(item) {
+				uni.showLoading({
+					title: '加载中...'
+				});
+				// 其他商品走正常流程,去支付收银台页面
+				this.getToPayment('', item, 'secondHand')
+			}),
 		},
 		onReachBottom() {
 			// if (this.id) {