zhengjinyi 4 vuotta sitten
vanhempi
commit
baa3b12c9b

+ 16 - 5
components/cm-module/creatOrder/goodsList.vue

@@ -16,7 +16,9 @@
 							<view class="producttitle">{{ pros.productName }}</view>
 							<view class="productspec">规格:{{ pros.unit }}</view>
 							<view class="floor-item-act" v-if="pros.activeStatus == 1">
-								<view class="tag">活动价</view>
+								<text class="tag tag-01" v-if="!pros.heUserId">自营</text>
+								<text class="tag tag-01" v-else>促销</text>
+								<text class="tag tag-02" >活动价</text>
 							</view>
 							<view class="productprice">
 								<view class="price">
@@ -255,15 +257,24 @@
 					float: left;
 					.tag{
 						display: inline-block;
-						width: 80rpx;
-						height: 30rpx;
-						background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png)top center no-repeat;
-						background-size: contain;
+						height: 32rpx;
 						font-size: 22rpx;
 						line-height: 30rpx;
 						text-align: center;
 						color: #f83c6c;
 						float: left;
+						margin-right: 10rpx;
+						&.tag-02{
+							width: 80rpx;
+							background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png)top center no-repeat;
+							background-size: contain;
+						}
+						&.tag-01{
+							width: 56rpx;
+							color: #fff;
+							background-color: #f83c6c;
+							border-radius: 4rpx;
+						}
 					}
 				}
 			}

+ 19 - 6
components/cm-module/orderDetails/goodsList.vue

@@ -15,7 +15,11 @@
 						<view class="pros-product">
 							<view class="producttitle">{{pros.name}}</view>
 							<view class="productspec product-view" v-if="pros.productCategory != 2">规格:{{pros.productUnit ? pros.productUnit : ''}}</view>
-							<view class="floor-item-act" v-if="pros.ladderPriceFlag == 1"><view class="tag">活动价</view></view>
+							<view class="floor-item-act" v-if="pros.ladderPriceFlag == 1">
+								<text class="tag tag-01" v-if="!pros.heUserId">自营</text>
+								<text class="tag tag-01" v-else>促销</text>
+								<text class="tag tag-02" @click.stop="clickPopupShow(pros,2)">活动价</text>
+							</view>
 							<view class="product-view">
 								<view class="view-num red">¥{{pros.price | NumFormat}}</view>
 							</view>
@@ -270,20 +274,29 @@
 				}
 				.floor-item-act{
 					width: 100%;
-					height: 30rpx;
+					height: 32rpx;
 					margin-top: 8rpx;
 					float: left;
 					.tag{
 						display: inline-block;
-						width: 80rpx;
-						height: 30rpx;
-						background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png)top center no-repeat;
-						background-size: contain;
+						height: 32rpx;
 						font-size: 22rpx;
 						line-height: 30rpx;
 						text-align: center;
 						color: #f83c6c;
 						float: left;
+						margin-right: 10rpx;
+						&.tag-02{
+							width: 80rpx;
+							background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png)top center no-repeat;
+							background-size: contain;
+						}
+						&.tag-01{
+							width: 56rpx;
+							color: #fff;
+							background-color: #f83c6c;
+							border-radius: 4rpx;
+						}
 					}
 				}
 			}

+ 1 - 0
components/cm-module/productDetails/cm-activipopu.vue

@@ -76,6 +76,7 @@
 		box-sizing: border-box;
 		min-height: 220rpx;
 		padding:24rpx 24rpx 0 24rpx;
+		z-index: 9999;
 	}
 	.tui-scrollview-box{
 		width: 100%;

+ 370 - 0
components/cm-module/productDetails/cm-price-activity.vue

@@ -0,0 +1,370 @@
+<template name="cm-price">
+	<!-- 商品详情价格判断 -->
+	<view class="wrap-main">
+		<!-- 协销  -->
+		<view class="wrap-main-item">
+			<view class="p-price tui-skeleton-fillet">
+				<text class="txt sm">¥</text>
+				<text class="txt big">{{ showIndexOfMoney }} </text>
+				<text class="txt sm">{{ smallMoney }} </text>
+			</view>
+			<view class="floor-item-act" v-if="product.activeStatus == 1">
+				<text class="tag tag-01">促销</text>
+				<view class="tag tag-02" @click.stop="clickPopupShow()">活动价</view>
+			</view>
+		</view>
+		<!--促销活动弹窗提示-->
+		<tui-bottom-popup :radius="true" :show="popupShow" @close="hidePopup()">
+			<view class="tui-popup-box clearfix">
+				<template v-if="product.activeStatus == 1">
+					<view class="tui-scrollview-box">
+						<view class="ladder-main clearfix">
+							<view class="ladder-item">
+								<view class="ladder-item-td">起订量</view>
+								<view class="ladder-item-td">价格</view>
+							</view>
+							<view
+								class="ladder-item"
+								v-for="(ladd, index) in product.ladderList"
+								:key="index"
+							>
+								<view class="ladder-item-td">{{ ladd.buyNum }}</view>
+								<view class="ladder-item-td">{{ ladd.buyPrice | NumFormat }}</view>
+							</view>
+						</view>
+					</view>
+				</template>
+				<template v-else>
+					<view class="tui-scrollview-box">
+						<view class="box-text">
+							<text>促销时间:</text>
+							<text class="txt" v-if="product.promotion.status == 1">不限时</text>
+							<text class="txt" v-else
+								>{{ product.promotion.beginTime }}~{{ product.promotion.endTime }}</text
+							>
+						</view>
+						<view class="box-title" v-show="product.promotion.mode == 2">
+							<text>购买{{ product.promotion.name }}商品,满</text>
+							<text class="txt"
+								>¥{{
+									product.promotion == null
+										? '0.00'
+										: product.promotion.touchPrice | NumFormat
+								}}</text
+							>减
+							<text class="txt"
+								>¥{{
+									product.promotion == null
+										? '0.00'
+										: product.promotion.reducedPrice | NumFormat
+								}}</text
+							>
+						</view>
+						<view class="box-title" v-show="product.promotion.mode == 3">
+							<text>购买{{ product.promotion.name }}商品,满</text>
+							<text class="txt"
+								>¥{{
+									product.promotion == null
+										? '0.00'
+										: product.promotion.touchPrice | NumFormat
+								}}</text
+							>赠送商品
+						</view>
+						<view class="box-product" v-show="product.promotion.mode == 3">
+							<view
+								class="box-product-main"
+								v-for="(item, index) in product.promotion.productGifts"
+								:key="index"
+							>
+								<view class="image"
+									><image :src="item.mainImage" mode="widthFix"></image
+								></view>
+								<view class="info">
+									<view class="name">{{ item.productName }}</view>
+									<view class="num">X{{ item.productCount }}</view>
+								</view>
+							</view>
+						</view>
+					</view>
+				</template>
+				<view
+					class="tui-right-flex tui-popup-btn"
+					:style="{ paddingBottom: isIphoneX ? '68rpx' : '0rpx' }"
+				>
+					<view class="tui-flex-1">
+						<view
+							class="tui-button"
+							v-if="product.promotion.type == 2"
+							@click="goGoodActiveFn(product.promotion.id)"
+							>更多凑单商品</view
+						>
+						<view class="tui-button" v-else @click="hidePopup()">了解</view>
+					</view>
+				</view>
+			</view>
+		</tui-bottom-popup>
+		<!-- </template> -->
+	</view>
+</template>
+
+<script>
+import { mapState, mapMutations } from 'vuex'
+import uniGrader from '@/components/uni-grade/uni-grade.vue'
+export default {
+	name: 'cm-price',
+	components: {
+		uniGrader
+	},
+	props: {
+		product: {
+			type: Object
+		},
+		userIdentity: {
+			type: Number,
+			default: 2
+		},
+		ladderList: {
+			type: Array
+		},
+		promotion: {
+			type: Object
+		}
+	},
+	data() {
+		return {
+			productInfo:{},
+			popupShow: false,
+			promotionType: 0,
+			isIphoneX: this.$store.state.isIphoneX,
+			ableUserMoney:'',
+			showIndexOfMoney:'',
+			smallMoney:''
+		}
+	},
+	filters: {
+		NumFormat: function(text) {
+			//处理金额
+			return Number(text).toFixed(2)
+		}
+	},
+	created() {
+		
+		this.InfoData(this.product)			
+	},
+	computed: {
+		...mapState(['hasLogin', 'isWxAuthorize'])
+	},
+	methods: {
+		InfoData(data){
+			this.productInfo = data
+			if(this.productInfo.price == 0){
+				this.showIndexOfMoney ='0';
+				this.smallMoney=".00"
+			}else{
+				this.ableUserMoney = this.$api.FormatMoney(this.productInfo.price) ;
+				let i =  this.ableUserMoney.toString().lastIndexOf('.');
+				if(i==-1){
+					this.showIndexOfMoney=this.$api.FormatMoney(this.ableUserMoney)
+					this.smallMoney=".00"
+				}else{
+					this.smallMoney = this.ableUserMoney.toString().substring(i,i+3);
+					this.showIndexOfMoney= this.$api.FormatMoney(this.ableUserMoney.toString().substring(0,i))
+					if(this.smallMoney.length == 2) { //补0,实际上用不着
+						this.smallMoney = this.smallMoney + '0';
+					}
+				}
+			}
+			console.log('this.showIndexOfMoney',this.showIndexOfMoney)
+			console.log('this.smallMoney',this.smallMoney)
+		},
+		clickPopupShow(type) {
+			this.popupShow = true
+			this.promotionType = type
+		},
+		hidePopup() {
+			this.popupShow = false
+		},
+		promotionFormat(promo) {
+			//促销活动类型数据处理
+			if (promo != null) {
+				if (promo.type == 1 && promo.mode == 1) {
+					return true
+				} else {
+					return false
+				}
+			}
+			return false
+		},
+		goUpgradeApply() {
+			this.$api.navigateTo('/pages/login/apply')
+		},
+		loginClick() {
+			this.$api.navigateTo('/pages/login/login')
+		},
+		goGoodActiveFn(id) {
+			this.$parent.popupShow = false
+			this.$api.navigateTo('/pages/goods/goods-active?id=' + id)
+		}
+	}
+}
+</script>
+
+<style lang="scss">
+.tui-flex-1 {
+	flex: 1;
+}
+.tui-popup-box {
+	position: relative;
+	box-sizing: border-box;
+	min-height: 220rpx;
+	padding: 24rpx 24rpx 0 24rpx;
+}
+.tui-scrollview-box {
+	width: 100%;
+	height: auto;
+	float: left;
+	box-sizing: border-box;
+	.ladder-main {
+		width: 100%;
+		min-height: 240rpx;
+		border: 1px solid rgba(225, 86, 22, 0.3);
+		border-radius: 10rpx;
+		.ladder-item {
+			width: 100%;
+			height: 80rpx;
+			float: left;
+			border-bottom: 1px solid rgba(225, 86, 22, 0.3);
+			&:nth-child(1) {
+				.ladder-item-td {
+					color: #333333;
+				}
+			}
+			&:last-child {
+				border-bottom: none;
+			}
+			.ladder-item-td {
+				width: 50%;
+				text-align: center;
+				line-height: 80rpx;
+				font-size: $font-size-24;
+				color: $color-system;
+				box-sizing: border-box;
+				float: left;
+				&:nth-child(1) {
+					border-right: 1px solid rgba(225, 86, 22, 0.3);
+				}
+			}
+		}
+	}
+	.box-title {
+		font-size: $font-size-26;
+		color: $text-color;
+		text-align: left;
+		line-height: 56rpx;
+		.txt {
+			color: $color-system;
+			margin: 0 8rpx;
+		}
+	}
+	.box-text{
+		font-size: $font-size-26;
+		color: $text-color;
+		text-align: left;
+		line-height: 56rpx;
+		.txt{
+			color: #ff2a2a;
+		}
+	}
+	.box-product {
+		width: 100%;
+		height: auto;
+		margin-top: 20rpx;
+		.title {
+			font-size: $font-size-24;
+			color: $text-color;
+			text-align: left;
+			line-height: 54rpx;
+		}
+		.box-product-main {
+			width: 100%;
+			height: 136rpx;
+			float: left;
+			margin: 10rpx 0;
+			.image {
+				width: 134rpx;
+				height: 134rpx;
+				border: 1px solid #ebebeb;
+				float: left;
+				image {
+					width: 100%;
+					height: 100%;
+					display: block;
+				}
+			}
+			.info {
+				width: 540rpx;
+				height: 134rpx;
+				float: left;
+				margin-left: 16rpx;
+				position: relative;
+				.name {
+					width: 100%;
+					float: left;
+					line-height: 40rpx;
+					font-size: $font-size-28;
+					color: $text-color;
+					-o-text-overflow: ellipsis;
+					text-overflow: ellipsis;
+					display: -webkit-box;
+					word-break: break-all;
+					-webkit-box-orient: vertical;
+					-webkit-line-clamp: 2;
+					overflow: hidden;
+				}
+				.num {
+					width: 100%;
+					height: 44rpx;
+					font-size: $font-size-24;
+					color: $text-color;
+					text-align: left;
+					line-height: 44rpx;
+					position: absolute;
+					bottom: 0;
+					left: 0;
+				}
+			}
+		}
+	}
+}
+
+.tui-popup-btn {
+	width: 100%;
+	height: auto;
+	float: left;
+	margin-top: 24rpx;
+	.tui-button {
+		width: 100%;
+		height: 88rpx;
+		background: $btn-confirm;
+		line-height: 88rpx;
+		text-align: center;
+		color: #ffffff;
+		font-size: $font-size-28;
+		border-radius: 44rpx;
+	}
+}
+
+// .wrap-main{
+// 	.floor-item-act{
+// 		&::after{
+// 			content: "";
+// 			display: block;
+// 			clear: both;
+// 		}
+// 		.tag{
+// 			margin-right: 10rpx;
+// 			float: left;
+// 		}
+// 	}
+// }
+</style>

+ 2 - 3
components/cm-module/productDetails/cm-price.vue

@@ -8,9 +8,8 @@
 				<text class="txt big">{{ showIndexOfMoney }} </text>
 				<text class="txt sm">{{ smallMoney }} </text>
 			</view>
-			<view class="floor-item-act" v-if="product.activeStatus == 1">
-				<text class="tag tag-01" v-if="product.includedTax == '0'">自营</text>
-				<text class="tag tag-01" v-if="product.includedTax == '1'">促销</text>
+			<view class="floor-item-act" v-if="product.activeStatus == -1">
+				<text class="tag tag-01">促销</text>
 				<view class="tag tag-02" @click.stop="clickPopupShow()">活动价</view>
 			</view>
 		</view>

+ 91 - 65
pages/goods/product-activi.vue

@@ -27,7 +27,7 @@
 		<tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading	="true" :loadingType="2"></tui-skeleton>
 		<template v-else >
 			<view class="container-product tui-skeleton">
-				<view class="container-product-main product-details0">
+				<view class="container-product-main product-details product-details0">
 					<view class="product-top">
 						<view class="banner-section">
 							<uni-swiper-dot :info="productImage" :current="current" field="content" :mode="mode" >
@@ -211,7 +211,7 @@
 <script>
 	import { mapState,mapMutations } from 'vuex'
 	import customP from '@/components/cm-module/headerNavbar/header-poduct' 		 //自定义导航
-	import cmPrice from "@/components/cm-module/productDetails/cm-price.vue" //价格显示
+	import cmPrice from "@/components/cm-module/productDetails/cm-price-activity.vue" //价格显示
 	import cmAttributes from "@/components/cm-module/productDetails/cm-attributes.vue" //规格信息
 	import parser from "@/components/jyf-Parser/index" //富文本处理
 	import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
@@ -284,27 +284,21 @@
 				scrollTopArray:[],
 				sectionTopRangeArr: [],
 				winHeight:'',
-				isShowButton:false,
-				heUserId:0,
-				hasActiviType:false
+				isShowButton:false
 			}
 		},
 		onLoad(option) {
-			console.log(option)
-			if(this.isShareType =='share'){
-				wxLogin.wxLoginAuthorize()
-			}
+			
 			this.productId = option.productId;//获取商品ID
 			this.isShareType = option.type
 			this.linkPath = option.path
 			this.isHeaderPoduct = true
+			if(this.isShareType =='share'){
+				wxLogin.wxLoginAuthorize()
+			}
 			if(option.page == 2){
 				this.backPage = option.page
 			}
-			if(option.heUserId){
-				this.heUserId = option.heUserId
-				this.hasActiviType = true
-			}
 			this.getWinHeight()
 		},
 		computed: {
@@ -312,6 +306,7 @@
 		},
 		filters:{
 			NumFormat(value) {//处理金额
+				// console.log('===' + Number(value).toFixed(2))
 				return Number(value).toFixed(2);
 			}
 		},	
@@ -339,7 +334,7 @@
 						this.productImage.push(item);
 					})
 					//处理阶梯价格
-					if(this.product.ladderList.length>0){
+					if(this.product.ladderList && this.product.ladderList.length>0){
 						this.ladderList = this.product.ladderList;
 					}
 					this.retailPrice = this.product.price.toFixed(2);
@@ -384,21 +379,30 @@
 					longPressActions:''
 				})
 			},
-			tabClick(index) {//商品详情&&供应商信息tab切换
+			tabClick(index) {
+				//商品详情&&供应商信息tab切换
 				this.tabSelectFlag = true
-				this.tabCurrentIndex = index;
-				let classIndex = '.product-details'+index;
-				uni.createSelectorQuery().select('.container-product-main').boundingClientRect((data)=>{//最外层盒子节点
-				  uni.createSelectorQuery().select(classIndex).boundingClientRect((res)=>{//最外层盒子节点
-				    uni.pageScrollTo({
-				      duration:300,//过渡时间必须为0,uniapp bug,否则运行到手机会报错
-				      scrollTop:res.top - data.top - 150,//滚动到实际距离是元素距离顶部的距离减去最外层盒子的滚动距离
-				    })
-						setTimeout(()=>{
-							this.tabSelectFlag = false;
-						},500)
-				  }).exec()
-				}).exec()
+				this.tabCurrentIndex = index
+				let classIndex = '.product-details' + index
+				uni.createSelectorQuery()
+					.select('.container-product')
+					.boundingClientRect(data => {
+						//最外层盒子节点
+						uni.createSelectorQuery()
+							.select(classIndex)
+							.boundingClientRect(res => {
+								//最外层盒子节点
+								uni.pageScrollTo({
+									duration: 300, //过渡时间必须为0,uniapp bug,否则运行到手机会报错
+									scrollTop: res.top - data.top - 40 //滚动到实际距离是元素距离顶部的距离减去最外层盒子的滚动距离
+								})
+								setTimeout(() => {
+									this.tabSelectFlag = false
+								}, 500)
+							})
+							.exec()
+					})
+					.exec()
 			},
 			handleContact(e){//跳转小程序客服
 
@@ -479,7 +483,6 @@
 						allCount:this.number,
 						productId:this.product.productId,
 						productCount:this.number,
-						heUserId:this.heUserId
 				}	
 				this.$api.navigateTo(`/pages/user/order/create-order?type=prodcut&data=${JSON.stringify({data:productStp})}`)
 				setTimeout(() => {
@@ -492,7 +495,7 @@
 						productId:this.productId,
 						userId:this.userId,
 						productCount:this.number,
-						heUserId:this.heUserId*1,
+						heUserId:0,
 					}
 				)
 				.then(response => {
@@ -555,15 +558,18 @@
 			getSectionProps() {//获取每个tab对应区域的scrollTop值
 				let className = '.product-details',
 					sectionPropsArr = [];
-				uni.createSelectorQuery().select('.container-product-main').boundingClientRect((data)=>{//最外层盒子节点
+				uni.createSelectorQuery().select('.container-product').boundingClientRect((data)=>{//最外层盒子节点
 				  uni.createSelectorQuery().selectAll(className).boundingClientRect((res)=>{//最外层盒子节点
 						res.forEach((item, index) => {
+							console.log(item);
 							sectionPropsArr.push({
 								className: `${className}${index}`,
-								scrollTop: item.top - data.top - 150
+								scrollTop: item.top - data.top,
+								height:item.height
 							})
 						})
 						this.sectionPropsArr = sectionPropsArr;
+						console.log(this.sectionPropsArr);
 						this.sectionTopRangeArr = this.getSectionRange(sectionPropsArr);
 				  }).exec()
 				}).exec()
@@ -571,35 +577,46 @@
 			getSectionRange(arr) {// 获取每个tab对应区域的区间
 				let sectionScrollTopList = [];
 				for(let i = 0; i < arr.length; i++) {
-					let thisScrollTop = arr[i].scrollTop;
-					if(i < arr.length - 1) {
-						let nextScrollTop = arr[i+1].scrollTop;
-						if(i == 0) {
-							sectionScrollTopList.push(`0-${thisScrollTop}`);
-						} else if(i == arr.length - 1){
-							sectionScrollTopList.push(`${thisScrollTop}-${nextScrollTop - this.winHeight}`);
-						} else {
-							sectionScrollTopList.push(`${thisScrollTop}-${nextScrollTop}`);
-						}
-					} else {
-						sectionScrollTopList.push(`${thisScrollTop}-${thisScrollTop+500}`);
-					}
+					sectionScrollTopList.push(`${arr[i].scrollTop}-${arr[i].scrollTop + arr[i].height}`)
 				}
+				// for(let i = 0; i < arr.length; i++) {
+				// 	let thisScrollTop = arr[i].scrollTop;
+				// 	let thisHeight = arr[i].height;
+				// 	if(i < arr.length - 1) {
+				// 		let nextScrollTop = arr[i+1].scrollTop;
+				// 		if(i == 0) {
+				// 			sectionScrollTopList.push(`0-${thisScrollTop + thisHeight}`);
+				// 		} else if(i == arr.length - 1){
+				// 			sectionScrollTopList.push(`${thisScrollTop + thisHeight}-${nextScrollTop - this.winHeight}`);
+				// 		} else {
+				// 			sectionScrollTopList.push(`${thisScrollTop + thisHeight}-${nextScrollTop}`);
+				// 		}
+				// 	} else {
+				// 		sectionScrollTopList.push(`${thisScrollTop}-${thisScrollTop+500}`);
+				// 	}
+				// }
 				return sectionScrollTopList;
 			},
-			activeTab: debounce((top, _this)=> {//当滑动时也能同步激活tab
-				const { sectionTopRangeArr } = _this;
-				if(sectionTopRangeArr.length > 0) {
-					sectionTopRangeArr.forEach((item, index) => {
-						let splitItem = item.split('-'),
-							openInterval = Number(splitItem[0]),
-							closedInterval = Number(splitItem[1]);
-						if(top >= openInterval && top < closedInterval) {
-							_this.tabCurrentIndex = index;
-						}
-					})
-				}
-			},100, true),
+			activeTab: debounce(
+				(top, _this) => {
+					//当滑动时也能同步激活tab
+					const { sectionTopRangeArr } = _this
+					console.log(sectionTopRangeArr);
+					if (sectionTopRangeArr.length > 0) {
+						sectionTopRangeArr.forEach((item, index) => {
+							let splitItem = item.split('-'),
+								openInterval = Number(splitItem[0]),
+								closedInterval = Number(splitItem[1])
+							if (top >= openInterval && top < closedInterval) {
+								console.log(top);
+								_this.tabCurrentIndex = index
+							}
+						})
+					}
+				},
+				100,
+				true
+			),
 			getWinHeight() {
 				this.winHeight = wx.getSystemInfoSync().windowHeight;
 			},
@@ -874,22 +891,31 @@
 				}
 			}
 			.floor-item-act{
-				width: 80rpx;
-				height: 30rpx;
+				// width: 80rpx;
+				height: 34rpx;
 				margin-top: 15rpx;
 				margin-left: 20rpx;
 				float: left;
 				.tag{
 					display: inline-block;
-					width: 80rpx;
-					height: 30rpx;
-					background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png)top center no-repeat;
-					background-size: contain;
+					height: 32rpx;
 					font-size: 22rpx;
 					line-height: 30rpx;
 					text-align: center;
 					color: #f83c6c;
 					float: left;
+					margin-right: 10rpx;
+					&.tag-02{
+						width: 80rpx;
+						background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png)top center no-repeat;
+						background-size: contain;
+					}
+					&.tag-01{
+						width: 56rpx;
+						color: #fff;
+						background-color: #f83c6c;
+						border-radius: 4rpx;
+					}
 				}
 			}
 			.floor-item-btn{
@@ -1113,7 +1139,7 @@
 		bottom: 0;
 		left: 0;
 		background: #FFFFFF;
-		z-index: 999;
+		// z-index: 999;
 		.bottom-le{
 			width: 300rpx;
 			height: 100rpx;

+ 2 - 2
pages/tabBar/cart/index.vue

@@ -29,8 +29,8 @@
 											<view class="producttitle" @click.stop="navToListPage(pros)"	>{{pros.productName}}</view>
 											<view class="productspec">规格:{{pros.unit ? pros.unit : ''}}</view>
 											<view class="floor-item-act" v-if="pros.activeStatus == 1">
-												<text class="tag tag-01" v-if="pros.includedTax == '0'">自营</text>
-												<text class="tag tag-01" v-if="pros.includedTax == '1'">促销</text>
+												<text class="tag tag-01" v-if="!pros.heUserId">自营</text>
+												<text class="tag tag-01" v-else>促销</text>
 												<text class="tag tag-02" @click.stop="clickPopupShow(pros,2)">活动价</text>
 											</view>
 											<view class="productprice">

+ 1 - 1
pages/tabBar/index/index.vue

@@ -31,7 +31,7 @@
 				</view>
 				<view class="product-list-msg">
 					<view class="product-msg-name">{{ pro.name }}</view>
-					<view class="product-list-tag" v-if="pro.activeStatus == 1">
+					<view class="product-list-tag" v-if="pro.activeStatus == -1">
 						<text class="tag tag-01" v-if="pro.includedTax == '0'">自营</text>
 						<text class="tag tag-01" v-if="pro.includedTax == '1'">促销</text>
 						<text class="tag tag-02">活动价</text>

+ 15 - 8
pages/user/activity/activity.vue

@@ -12,10 +12,9 @@
 				</view>
 				<view class="product-list-msg">
 					<view class="product-msg-name">{{ pro.name }}</view>
-					<view class="product-list-tag">
-						<text class="tag">活动价</text>
-						<text class="tag" v-if="pro.includedTax == '0'">自营</text>
-						<text class="tag" v-if="pro.includedTax == '1'">促销</text>
+					<view class="product-list-tag" v-if="pro.activeStatus === 1">
+						<text class="tag tag-01">促销</text>
+						<text class="tag tag-02">活动价</text>
 					</view>
 					<view class="product-list-pri">
 						<view class="price">¥{{ pro.price | PriceFormat}}</view>
@@ -233,16 +232,24 @@
 					float: left;
 					.tag{
 						display: inline-block;
-						width: 80rpx;
-						height: 30rpx;
-						background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png)top center no-repeat;
-						background-size: contain;
+						height: 32rpx;
 						font-size: 22rpx;
 						line-height: 30rpx;
 						text-align: center;
 						color: #f83c6c;
 						float: left;
 						margin-right: 10rpx;
+						&.tag-02{
+							width: 80rpx;
+							background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png)top center no-repeat;
+							background-size: contain;
+						}
+						&.tag-01{
+							width: 56rpx;
+							color: #fff;
+							background-color: #f83c6c;
+							border-radius: 4rpx;
+						}
 					}
 				}
 				.product-list-pri{

+ 7 - 3
pages/user/order/create-order.vue

@@ -68,12 +68,14 @@
 					payInfo:{
 						orderShouldPayFee:0
 					}
-				}
+				},
+				orderInfo:''
 			}
 		},
 		onLoad(option){//商品数据
 			let data = JSON.parse(option.data);
 			this.allCount = data.data.allCount;
+			console.log(data);
 			if(option.type =='prodcut'){
 				this.subParams.cartType = 2
 				this.params.productCount = data.data.productCount
@@ -101,6 +103,7 @@
 						let productIds = []
 						this.isRequest = true
 						this.goodsData = data.shopList
+						console.log(this.goodsData);
 						// this.totalFullReduction = data.totalFullReduction
 						// this.totalOriginalPrice = data.totalFullReduction + data.totalPrice
 						this.allPrice = this.payAllPrice = data.totalPrice
@@ -152,6 +155,7 @@
 				this.isSubLoading = true;	
 				this.OrderService.CreatedOrderSubmit(this.subParams).then(response =>{
 					const data = response.data;
+					this.orderInfo = response.data;
 					setTimeout(()=>{
 						this.isSubLoading = false;
 					},2000)
@@ -192,8 +196,8 @@
 						},
 						'fail':function(res){
 							console.log(res)
-							console.log('ORDERiD',data.orderId)
-							self.$api.redirectTo(`/pages/user/order/success?orderId=${data.orderId}`)
+							console.log('ORDERID',self.orderInfo)
+							self.$api.redirectTo(`/pages/user/order/success?data=${JSON.stringify({data:self.orderInfo})}`)
 						},
 						'complete':function(res){
 			

+ 3 - 4
pages/user/order/order-list-retail.vue

@@ -53,16 +53,15 @@
 											<view class="pros-product clearfix">
 												<view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
 												<view class="productspec tui-skeleton-fillet" v-if="pros.productCategory!=2">规格:{{pros.productUnit}}</view>
-												<view class="floor-item-act">
-													<text class="tag tag-01" v-if="pros.includedTax == '0'">自营</text>
-													<text class="tag tag-01" v-if="pros.includedTax == '1'">促销</text>
+												<view class="floor-item-act" v-if="pros.ladderPriceFlag === '1'">
+													<text class="tag tag-01" v-if="!pros.heUserId">自营</text>
+													<text class="tag tag-01" v-else>促销</text>
 													<text class="tag tag-02" @click.stop="clickPopupShow(pros,2)">活动价</text>
 												</view>
 												<view class="productprice">
 													<view class="price tui-skeleton-fillet"><text>¥{{pros.price | NumFormat}}</text></view>
 													<view class="count tui-skeleton-fillet"><text class="small">x</text>{{pros.num}}</view>
 												</view>
-												
 											</view>	
 										</view>
 									</view>