Bläddra i källkod

Merge branch 'developerB' of http://git.caimei365.com/caimei-repository/caimei-applets-caimei into developerB

喻文俊 3 år sedan
förälder
incheckning
0f819ad5a2

+ 55 - 46
components/cm-module/cart-components/index.vue

@@ -700,7 +700,14 @@
 				this.allPrice = totalPrice ;
 				// 计算优惠券
 				if(this.totalCouponList.length>0){
-					this.calculationCoupon()
+					let eligibleCoupons = this.calculationCoupon()
+					if(eligibleCoupons.length>0){
+						this.eligibleCoupons.splice(0,this.eligibleCoupons.length);
+						this.eligibleCoupons.push(eligibleCoupons[0])
+						this.couponPrice = this.eligibleCoupons.sort((a,b)=> b.couponAmount - a.couponAmount)[0].couponAmount
+					}else{
+						this.couponPrice = 0
+					}
 				}
 				// 最后满减金额 = 店铺减去金额 + 单品减去金额 + 凑单减去金额
 				this.totalDiscountAmount = this.reducedPrice + this.couponPrice;
@@ -728,62 +735,64 @@
 			    })
 			},		 
 			calculationCoupon(){// 优惠券计算
-				const eligibleCoupons = [];
-				this.goodsList.forEach((shop,index)=>{
-					shop.cartList.forEach(pros=>{	
+				let eligibleCoupons = []
+				this.goodsList.forEach(shop=>{ 
+					shop.cartList.forEach(pros=>{
 						if(pros.productsChecked){		
-							this.totalCouponList.map((coupon,index)=>{//循环优惠券
-								const couponType = coupon.couponType;
-								if(couponType == 0){// 活动券
-									if(coupon.productType == 1){// 活动券-全商城商品
-										if(this.allPrice>=coupon.touchPrice){
-											eligibleCoupons.push(coupon)
-											eligibleCoupons.sort((a,b)=> b.couponAmount - a.couponAmount )
+							this.totalCouponList.forEach(coupon=>{//循环优惠券
+								switch(coupon.couponType){
+									case 0:// 活动券
+										if(coupon.productType == 1){// 活动券-全商城商品
+											if(this.allPrice >= coupon.touchPrice){
+												eligibleCoupons = this.setCouponsArr(coupon)
+											}
+										}else if(coupon.productType == 2){// 活动券-指定商品
+											if(coupon.productIds && coupon.productIds.includes(pros.productId)){
+												if(this.allPrice >= coupon.touchPrice){
+													eligibleCoupons = this.setCouponsArr(coupon)
+												}
+											}
 										}
-									}else if(coupon.productType == 2){// 活动券-指定商品
-										if(coupon.productIds && coupon.productIds.includes(pros.productId)){
-											if(this.allPrice>=coupon.touchPrice){
-												eligibleCoupons.push(coupon)
-												eligibleCoupons.sort((a,b)=> b.couponAmount - a.couponAmount )
+										break;
+									case 1:// 品类券适用于产品或者仪器 categoryType(commodityType) : 1 产品  2 仪器 
+										if( coupon.categoryType && coupon.categoryType == pros.commodityType){
+											if(this.allPrice >= coupon.touchPrice){
+												eligibleCoupons = this.setCouponsArr(coupon)
 											}
-										}else{
-											return false
 										}
-									}
-								// 品类券适用于产品或者仪器,购买产品类或仪器类的商品,商品金额达到优惠标准即可使用优惠券	
-								}else if(couponType == 1){// 品类券 categoryType(commodityType) : 1 产品  2 仪器 
-									if( coupon.categoryType && coupon.categoryType == pros.commodityType){
-										if(this.allPrice>=coupon.touchPrice){
-											eligibleCoupons.push(coupon)
-											eligibleCoupons.sort((a,b)=> b.couponAmount - a.couponAmount )
+										break;
+									case 2:// 用户专享券 适用于商城全部商品
+										if(this.allPrice >= coupon.touchPrice){
+											eligibleCoupons = this.setCouponsArr(coupon)
 										}
-									}
-								// 适用于商城全部商品
-								}else if(couponType == 2 || couponType == 4){// 用户专享券和新用户券
-									if(this.allPrice>=coupon.touchPrice){
-										eligibleCoupons.push(coupon)
-										eligibleCoupons.sort((a,b)=> b.couponAmount - a.couponAmount )
-									}
-								// 店铺券适用于某个供应商的全部商品	
-								}else if(couponType == 3){// 店铺券 supplierId
-									if(coupon.shopId && pros.supplierId == coupon.shopId){
-										if(this.allPrice>=coupon.touchPrice){
-											eligibleCoupons.push(coupon)
-											eligibleCoupons.sort((a,b)=> b.couponAmount - a.couponAmount )
+										break;
+									case 3:// 店铺券适用于某个供应商的全部商品	
+										if(coupon.shopId && pros.supplierId == coupon.shopId){
+											if(this.allPrice >= coupon.touchPrice){
+												eligibleCoupons = this.setCouponsArr(coupon)
+											}
 										}
-									}
+										break;		
+									case 4://新用户券 适用于商城全部商品
+										if(this.allPrice >= coupon.touchPrice){
+											eligibleCoupons = this.setCouponsArr(coupon)
+										}
+										break;
 								}
-							})
+							})  
+						}else{
+							console.log('没有选择商品')
+							return;
 						}	
 					})
 				})
-				if(eligibleCoupons.length>0){
-					this.eligibleCoupons.push(eligibleCoupons[0])
-					this.couponPrice = this.eligibleCoupons.sort((a,b)=> b.couponAmount - a.couponAmount)[0].couponAmount
-				}
+				return eligibleCoupons;
 			},
-			checkenTotalPrice(){
-				
+			setCouponsArr(coupon){//处理
+				const list = []
+				list.push(coupon)
+				list.sort((a,b)=> b.couponAmount - a.couponAmount )
+				return list
 			},
 			changeCountAdd(item,pros){//商品数量加加
 				if(pros.step === 2){

+ 8 - 2
components/cm-module/creatOrder/coupon.vue

@@ -112,8 +112,14 @@
 		created(){
 			this.initData(this.couponList)
 		},
-		computed: {
-
+		watch: {
+			couponList: {
+				handler: function (el) {//监听对象的变换使用 function,箭头函数容易出现this指向不正确
+					console.log(el)
+					this.couponList = el
+				},
+				deep: true
+			}
 		},
 		methods:{
 			initData(data){

+ 1 - 0
components/cm-module/creatOrder/exchangeCoupon.vue

@@ -66,6 +66,7 @@
 					this.$parent.ExchangeCouponData = response.data
 					this.$parent.isExchangePopup = false
 					this.$parent.isCouponModel = true
+					this.$parent.isCouponShow = false
 				})
 				.catch(error =>{
 					this.$util.msg(error.msg,2000);

+ 80 - 40
components/cm-module/creatOrder/sellerCoupon.vue

@@ -14,45 +14,51 @@
 				</view>
 				<div class="tui-popup-main coupon">
 					<scroll-view class="tui-popup-scroll"  scroll-y="true">
-						<view v-for="(coupon,index) in dataList" :key="index" class="coupon-list"  @click.stop="checkedCoupon(index)">
-							<view class="list-cell-le">
-								<view class="coupon-maxMoney">
-									<text class="small">¥</text>
-									{{ coupon.couponAmount }}
-								</view>
-								<view class="coupon-minMoney">
-									满{{ coupon.touchPrice }}可用
+						<view class="coupon-empty" v-if="isCouponEmpty">
+							<image class="empty-container-image" :src="StaticUrl+'/icon/icon-coupon-empty@2x.png'"></image>
+							<text class="error-text">暂无可用优惠券~</text>
+						</view>
+						<template>
+							<view v-for="(coupon,index) in dataList" :key="index" class="coupon-list"  @click.stop="checkedCoupon(index)" v-if="dataList.length>0">
+								<view class="list-cell-le">
+									<view class="coupon-maxMoney">
+										<text class="small">¥</text>
+										{{ coupon.couponAmount }}
+									</view>
+									<view class="coupon-minMoney">
+										满{{ coupon.touchPrice }}可用
+									</view>
 								</view>
-							</view>
-							<view class="list-cell-ri">
-								<view class="list-cell-top">
-									<view class="list-cell-type">
-										<view class="list-cell-tags">
-											<text class="tags">{{ coupon.couponType | TypeFormat }}</text>
-										</view>
-										<view class="list-cell-texts">
-											<text v-if="coupon.couponType == 0">
-												{{ coupon.productType && coupon.productType == 1 ? '全商城商品通用' : '仅可购买指定商品'  }}
-											</text>
-											<text v-if="coupon.couponType == 1">
-												{{ coupon.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
-											</text>
-											<text v-if="coupon.couponType == 3">仅限购买店铺【{{ coupon.shopName }}】的商品</text>
-											<text v-if="coupon.couponType == 4 || coupon.couponType == 2">全商城商品通用</text>
+								<view class="list-cell-ri">
+									<view class="list-cell-top">
+										<view class="list-cell-type">
+											<view class="list-cell-tags">
+												<text class="tags">{{ coupon.couponType | TypeFormat }}</text>
+											</view>
+											<view class="list-cell-texts">
+												<text v-if="coupon.couponType == 0">
+													{{ coupon.productType && coupon.productType == 1 ? '全商城商品通用' : '仅可购买指定商品'  }}
+												</text>
+												<text v-if="coupon.couponType == 1">
+													{{ coupon.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
+												</text>
+												<text v-if="coupon.couponType == 3">仅限购买店铺【{{ coupon.shopName }}】的商品</text>
+												<text v-if="coupon.couponType == 4 || coupon.couponType == 2">全商城商品通用</text>
+											</view>
 										</view>
-									</view>
-									<view class="list-cell-btn">
-										<view class="list-cell-checkbox">
-											<view class="checkbox iconfont"											 
-												  :class="[coupon.ischecked ?'icon-yixuanze':'icon-weixuanze']"
-											>
+										<view class="list-cell-btn">
+											<view class="list-cell-checkbox">
+												<view class="checkbox iconfont"											 
+													  :class="[coupon.ischecked ?'icon-yixuanze':'icon-weixuanze']"
+												>
+												</view>
 											</view>
 										</view>
 									</view>
+									<view class="list-cell-time">{{ coupon.startDate }} - {{ coupon.endDate }}</view>
 								</view>
-								<view class="list-cell-time">{{ coupon.startDate }} - {{ coupon.endDate }}</view>
 							</view>
-						</view>
+						</template>
 					</scroll-view>
 				</div>
 				<view class="tui-right-flex tui-popup-btn">
@@ -75,8 +81,10 @@
 		},
 		data() {
 			return{
-				popupShow:false,
+				StaticUrl:this.$Static, //静态图片路径
 				isIphoneX:this.$store.state.isIphoneX,
+				popupShow:false,
+				isCouponEmpty:false,
 				checkedIndex:null,
 				dataList:[],
 				coupon:{
@@ -112,16 +120,27 @@
 		created(){
 			this.initData(this.couponList)
 		},
-		computed: {
-
+		watch: {
+			couponList: {
+				handler: function (el) {//监听对象的变换使用 function,箭头函数容易出现this指向不正确
+					console.log(el)
+					this.couponList = el
+				},
+				deep: true
+			}
 		},
 		methods:{
 			initData(data){
-				data.forEach((el,index) => {
-					this.dataList.push(Object.assign({},el,{ischecked:false}))
-				})
-				this.coupon.couponAmount = data[0].couponAmount
-				this.dataList[0].ischecked = true
+				if(data.length>0){
+					data.forEach((el,index) => {
+						this.dataList.push(Object.assign({},el,{ischecked:false}))
+					})
+					this.coupon.couponAmount = data[0].couponAmount
+					this.dataList[0].ischecked = true
+					this.isCouponEmpty = false
+				}else{
+					this.isCouponEmpty = true
+				}
 			},
 			checkedCoupon(idx){// 选择优惠券
 				this.checkedIndex = idx;
@@ -229,6 +248,27 @@
 			.tui-popup-scroll{
 				width: 100%;
 				height: 600rpx;
+				.coupon-empty{
+					width: 100%;
+					height: 600rpx;
+					display: flex;
+					align-items: center;
+					justify-content: center;
+					flex-direction: column;
+					position: fixed;
+					background: $bg-color;
+					.empty-container-image{
+						width: 150rpx;
+						height: 150rpx;
+						margin-bottom: 0;
+						margin-top: 0;
+					}
+					.error-text{
+						font-size: $font-size-28;
+						color: #999999;
+						line-height: 88rpx;
+					}
+				}
 				.coupon-list{
 					width: 100%;
 					height: 200rpx;

+ 1 - 0
components/cm-module/creatOrder/sellerExchangeCoupon.vue

@@ -66,6 +66,7 @@
 					this.$parent.ExchangeCouponData = response.data
 					this.$parent.isExchangePopup = false
 					this.$parent.isCouponModel = true
+					this.$parent.isCouponShow = false
 				})
 				.catch(error =>{
 					this.$util.msg(error.msg,2000);

+ 10 - 6
components/cm-module/homeIndex/pageFloor.vue

@@ -1,6 +1,6 @@
 <template>
 	<view>
-		<view class="page-content clearfix" v-for="(page, index) in pageFloorList" :key="index">
+		<view class="page-content clearfix" v-for="(page, index) in list" :key="index">
 			<view class="tui-group-name" v-if="page.floorContent">
 				<view class="tui-group-title">
 					<view class="tui-group-l">{{ page.title }}</view>
@@ -81,13 +81,17 @@ export default {
 		}
 	},
 	created() {
-		this.initData(this.list)
+		
+	},
+	watch: {
+		list: {
+			handler: function (el) {//监听对象的变换使用 function,箭头函数容易出现this指向不正确
+				this.list = el
+			},
+			deep: true
+		}
 	},
-	computed: {},
 	methods: {
-		initData(data) {
-			this.pageFloorList = data
-		},
 		NavToDetailPage(page) {
 			//跳转
 			this.$api.navigateTo(

+ 2 - 2
pages/login/login.vue

@@ -89,9 +89,9 @@
 			navigatorRegirst(url){
 				// 友盟埋点注册入口点击事件
 				if(process.env.NODE_ENV != 'development'){
-					this.$uma.trackEvent('Um_Event_zhuce', {
+					this.$uma.trackEvent('Um_Event_Regiest', {
 						Um_Key_PageName: '立即注册',
-						Um_Key_SourcePage: '个人中心',
+						Um_Key_SourcePage: '登录页面',
 					})
 				}
 				this.$api.navigateTo(url)

+ 35 - 20
pages/seller/order/create-order.vue

@@ -111,7 +111,7 @@
 								<text v-if="ExchangeCouponData.couponType == 3">仅限购买店铺【{{ ExchangeCouponData.shopName }}】的商品</text>
 								<text v-if="ExchangeCouponData.couponType == 4 || ExchangeCouponData.couponType == 2">全商城商品通用</text>
 							</view>
-							<view class="list-cell-time">有效期:{{ ExchangeCouponData.startDate  }} - {{ ExchangeCouponData.endDate }}</view>
+							<view class="list-cell-time">{{ ExchangeCouponData.startDate  }} - {{ ExchangeCouponData.endDate }}</view>
 						</view>
 					</view>
 					<view class="coupon-btn" @click.stop="handleClickCancel">立即收下</view>
@@ -262,8 +262,8 @@
 						this.couponList = data.couponList
 						this.reducedPrice = data.reducedPrice
 						this.allPrice = data.totalAmount
+						this.isCouponShow = true
 						if(this.couponList.length>0){
-							this.isCouponShow = true
 							this.couponAmount = data.couponList[0].couponAmount
 							this.clubCouponId = data.couponList[0].clubCouponId 
 							this.payAllPrice = this.allPrice - this.couponAmount
@@ -296,9 +296,11 @@
 						this.isFreight = true
 						this.freightData = response.data
 						if(response.data.freePostFlag== 1){
-							this.payAllPrice = this.allPrice+response.data.freight
+							this.payAllPrice = this.allPrice + response.data.freight
+							this.attributePallPrice()
 						}else{
 							this.payAllPrice = this.allPrice
+							this.attributePallPrice()
 						}
 					})
 				})
@@ -328,7 +330,7 @@
 			handleChoiceaFreightData(data){//获取运费信息
 				if(data.freePostFlag == '1'){
 					this.freightData = data
-					this.payAllPrice = this.allPrice+parseInt(data.freight)
+					this.payAllPrice = this.allPrice + parseInt(data.freight)
 					this.attributePallPrice()
 				}else{
 					this.freightData = data
@@ -355,11 +357,13 @@
 					}else{
 						this.balanceDeductionFlag = 2
 						if(this.freightData.freePostFlag == 1 || this.freightData.freePostFlag == '1'){
-							this.payAllPrice = this.allPrice+parseInt(this.freightData.freight)
+							this.payAllPrice = this.allPrice + parseInt(this.freightData.freight) - this.couponAmount
 						}else{
-							this.payAllPrice = this.allPrice
+							this.payAllPrice = this.allPrice - this.couponAmount
 						}
 					}
+					console.log('最终订单支付金额',this.payAllPrice)
+					console.log('优惠券金额',this.couponAmount)
 				}else{
 					return
 				}
@@ -373,38 +377,43 @@
 			},
 			attributeNofreight(){//计算没有邮费的支付价格
 				if(this.ischecked){
-					if(this.userMoney>this.payAllPrice){
+					let totalAmount = this.allPrice - this.couponAmount//计算不包邮的价格 总价等于商品价格+邮费
+					if(this.userMoney > totalAmount){
 						this.payAllPrice = 0.00
-						this.deductMoney = this.allPrice							//勾选后使用抵余额
-						this.surplusMoney = this.userMoney - this.deductMoney	    //勾选后的剩余抵扣
+						this.deductMoney = this.allPrice - this.couponAmount		// 勾选后使用抵余额
+						this.surplusMoney = this.userMoney - this.deductMoney	    // 勾选后的剩余抵扣
 					}else{
-						this.payAllPrice = this.allPrice - this.userMoney - this.couponAmount       	//勾选后的总价
-						this.deductMoney = this.userMoney				            //勾选后使用抵余额
-						this.surplusMoney = this.userMoney - this.deductMoney	    //勾选后的剩余抵扣
+						this.payAllPrice = this.allPrice - this.userMoney -	this.couponAmount //勾选后的总价
+						this.deductMoney = this.userMoney				            // 勾选后使用抵余额
+						this.surplusMoney = this.userMoney - this.deductMoney	    // 勾选后的剩余抵扣
 					}
 				}else{
 					this.payAllPrice = this.allPrice  - this.couponAmount;
-					this.deductMoney = 0.00;
-					this.surplusMoney = this.userMoney;
+					this.deductMoney = 0.00
+					this.surplusMoney = this.userMoney
 				}
+				console.log('最终订单支付金额',this.payAllPrice)
+				console.log('优惠券金额',this.couponAmount)
 			},
 			attributeHashfreight(freight){//计算需要邮费的支付价格
-				this.payAllPrice = this.allPrice+parseInt(freight)//计算不包邮的价格 总价等于商品价格+邮费
+				let totalAmount = this.allPrice + parseInt(freight) - this.couponAmount//计算不包邮的价格 总价等于商品价格+邮费
 				if(this.ischecked){
-					if(this.userMoney>this.payAllPrice){							//余额大于支付金额
-						this.payAllPrice =0.00
-						this.deductMoney = this.allPrice+parseInt(freight)			//勾选后使用抵余额
+					if(this.userMoney > totalAmount ){							//余额大于支付金额
+						this.payAllPrice = 0.00
+						this.deductMoney = this.allPrice + parseInt(freight) - this.couponAmount			//勾选后使用抵余额
 						this.surplusMoney = this.userMoney - this.deductMoney	    //勾选后的剩余抵扣
 					}else{
-						this.payAllPrice = this.allPrice+parseInt(freight) - this.userMoney  - this.couponAmount       	//勾选后的总价
+						this.payAllPrice = this.allPrice + parseInt(freight) - this.userMoney  - this.couponAmount       	//勾选后的总价
 						this.deductMoney = this.userMoney				            //勾选后使用抵余额
 						this.surplusMoney = this.userMoney - this.deductMoney	    //勾选后的剩余抵扣
 					}
 				}else{
-					this.payAllPrice = this.allPrice+parseInt(freight) - this.couponAmount
+					this.payAllPrice = this.allPrice + parseInt(freight) - this.couponAmount
 					this.deductMoney = 0.00
 					this.surplusMoney = this.userMoney
 				}
+				console.log('最终订单支付金额',this.payAllPrice)
+				console.log('优惠券金额',this.couponAmount)
 			},
 			orderSubmitMit(){//提交订单
 				if(this.addressID == ''){
@@ -814,6 +823,12 @@
 							font-size: $font-size-26;
 							color: #333333;
 							float: left;
+							text-overflow:ellipsis;
+							display: -webkit-box;
+							word-break: break-all;
+							-webkit-box-orient: vertical;
+							-webkit-line-clamp: 1;
+							overflow: hidden;
 						}
 						.list-cell-time{
 							width: 100%;

+ 4 - 11
pages/tabBar/home/index.vue

@@ -9,7 +9,7 @@
 			<!-- 金刚区菜单 -->
 			<navbars :list="navBarsList" v-if="isNavRequest"></navbars>
 			<!-- 优惠券入口 -->
-			<coupon v-if="isNavRequest"></coupon>
+			<coupon v-if="isNavRequest && couponEntry == 1"></coupon>
 			<!-- 直播 -->
 			<page-special :templateData="templateData" v-if="isLiveRequest"></page-special>
 		</view>	
@@ -85,6 +85,7 @@
 				isActivityBean:false,
 				beansType:1,
 				beanNumber:50,
+				couponEntry:2,
 			}
 		},
 		onLoad() {
@@ -137,6 +138,7 @@
 				this.CommonService.GetHomeInit({source:2}).then(response =>{
 					let data = response.data
 					this.navBarsList = data.topMenuList
+					this.couponEntry = data.couponEntry
 					this.isNavRequest = true
 				}).catch(error =>{
 					this.$util.msg(error.msg,2000)
@@ -207,15 +209,6 @@
 			},
 			handleBeanlClick(){
 				this.isActivityBean = false
-			},
-			InitAuthorize(){ //是否已授权 
-				this.GetWxAuthorize()
-				this.$api.getComStorage('userInfo').then((resolve) =>{
-					this.userID = resolve.userId ? resolve.userId :0;
-					this.getHomeInformation()
-				}).catch(error =>{
-					this.getHomeInformation()
-				})
 			}
 		},
 		onPageScroll(e){//实时获取到滚动的值
@@ -246,7 +239,7 @@
 		},
 		onShow(){
 			this.modallayer = false
-			this.InitAuthorize()
+			this.GetWxAuthorize()
 		}
 	}
 </script>

+ 6 - 0
pages/user/coupon/coupon-exchange.vue

@@ -289,6 +289,12 @@
 							font-size: $font-size-26;
 							color: #333333;
 							float: left;
+							text-overflow:ellipsis;
+							display: -webkit-box;
+							word-break: break-all;
+							-webkit-box-orient: vertical;
+							-webkit-line-clamp: 1;
+							overflow: hidden;
 						}
 						.list-cell-time{
 							width: 100%;

+ 28 - 20
pages/user/order/create-order.vue

@@ -98,7 +98,7 @@
 								<text v-if="ExchangeCouponData.couponType == 3">仅限购买店铺【{{ ExchangeCouponData.shopName }}】的商品</text>
 								<text v-if="ExchangeCouponData.couponType == 4 || ExchangeCouponData.couponType == 2">全商城商品通用</text>
 							</view>
-							<view class="list-cell-time">有效期:{{ ExchangeCouponData.startDate }} - {{ ExchangeCouponData.endDate }}</view>
+							<view class="list-cell-time">{{ ExchangeCouponData.startDate }} - {{ ExchangeCouponData.endDate }}</view>
 						</view>
 					</view>
 					<view class="coupon-btn" @click.stop="handleClickCancel">立即收下</view>
@@ -315,12 +315,13 @@
 					if(this.hanldFreePostFlag == 1){	
 						// 如果使用了余额 最终价格
 						if(this.ischecked){
-							if(this.userMoney>=this.payAllPrice){
+							let totalAmount = this.allPrice - this.couponAmount
+							if(this.userMoney >= totalAmount){
 								this.payAllPrice = 0.00
-								this.deductMoney = this.allPrice							// 当前使用金额等于订单金额
+								this.deductMoney = this.allPrice - this.couponAmount		// 当前使用金额等于订单金额
 								this.surplusMoney = this.userMoney - this.deductMoney	    // 剩余金额等于余额-当前使用金额
 							}else{
-								this.payAllPrice = this.allPrice - this.userMoney - this.couponAmount       	// 订单最终支付金额等于订单金额-账户余额
+								this.payAllPrice = this.allPrice - this.userMoney - this.couponAmount // 订单最终支付金额等于订单金额-账户余额
 								this.deductMoney = this.userMoney				            // 当前使用金额等于总余额
 								this.surplusMoney = this.userMoney - this.deductMoney	    // 剩余余额等于总余额-当前使用金额
 							}
@@ -363,8 +364,8 @@
 						}
 						this.balanceDeductionFlag = 2
 					}
-					console.log('this.payAllPrice',this.payAllPrice)
-					console.log('this.couponAmount',this.couponAmount)
+					console.log('最终订单支付金额',this.payAllPrice)
+					console.log('优惠券金额',this.couponAmount)
 				}else{
 					return
 				}
@@ -378,12 +379,13 @@
 			},
 			attributeNofreight(){// 计算没有邮费的支付价格
 				if(this.ischecked){
-					if(this.userMoney>=this.payAllPrice){
+					let totalAmount = this.allPrice - this.couponAmount
+					if(this.userMoney >= totalAmount){
 						this.payAllPrice = 0.00
-						this.deductMoney = this.allPrice							// 当前使用金额等于订单金额
+						this.deductMoney = this.allPrice - this.couponAmount 		// 当前使用金额等于订单金额
 						this.surplusMoney = this.userMoney - this.deductMoney	    // 剩余金额等于余额-当前使用金额
 					}else{
-						this.payAllPrice = this.allPrice - this.userMoney - this.couponAmount       	// 订单最终支付金额等于订单金额-账户余额
+						this.payAllPrice = this.allPrice - this.userMoney - this.couponAmount // 订单最终支付金额等于订单金额-账户余额
 						this.deductMoney = this.userMoney				            // 当前使用金额等于总余额
 						this.surplusMoney = this.userMoney - this.deductMoney	    // 剩余余额等于总余额-当前使用金额
 					}
@@ -392,39 +394,39 @@
 					this.deductMoney = 0.00; // 当前使用
 					this.surplusMoney = this.userMoney; // 剩余余额
 				}
-				console.log('this.payAllPrice',this.payAllPrice)
-				console.log('this.couponAmount',this.couponAmount)
+				console.log('最终订单支付金额',this.payAllPrice)
+				console.log('优惠券金额',this.couponAmount)
 			},
 			attributeHashfreight(freight){// 计算需要邮费的支付价格
-				this.payAllPrice = this.allPrice+parseInt(freight)// 计算不包邮的价格 总价等于商品价格+邮费
+				let totalAmount = this.allPrice + parseInt(freight) - this.couponAmount//计算不包邮的价格 总价等于商品价格+邮费
 				if(this.ischecked){
-					if(this.userMoney>=this.payAllPrice){// 全部抵扣
+					if(this.userMoney >= totalAmount){// 全部抵扣
 						this.payAllPrice =0.00
 						if(this.isCheckedBeans){// 抵扣运费了
-							this.deductMoney = this.allPrice								// 当前使用金额等于订单金额
+							this.deductMoney =  this.allPrice - this.couponAmount			// 当前使用金额等于订单金额
 							this.surplusMoney = this.userMoney - this.deductMoney	    	// 剩余金额等于余额减去当前使用金额
 						}else{
-							this.deductMoney = this.allPrice + parseInt(freight)			// 当前使用金额等于订单金额+运费金额
+							this.deductMoney = this.allPrice + parseInt(freight)- this.couponAmount	// 当前使用金额等于订单金额+运费金额
 							this.surplusMoney = this.userMoney - this.deductMoney	    	// 剩余余额等于总余额-当前使用金额
 						}
 					}else{// 部分抵扣
 						if(this.isCheckedBeans){// 抵扣运费了
-							this.payAllPrice = this.allPrice - this.userMoney - this.couponAmount // 订单最终支付金额等于订单金额+运费-账户余额
+							this.payAllPrice = this.allPrice - this.userMoney - this.couponAmount // 订单最终支付金额等于订单金额-账户余额-优惠券金额
 							this.deductMoney = this.userMoney				            		// 当前使用金额等于账户余额
 							this.surplusMoney = this.userMoney - this.deductMoney	    		// 剩余余额等于账户余额-当前使用金额
 						}else{
-							this.payAllPrice = this.allPrice+parseInt(freight) - this.userMoney - this.couponAmount // 订单最终支付金额等于订单金额+运费-账户余额
+							this.payAllPrice = this.allPrice + parseInt(freight) - this.userMoney - this.couponAmount//订单支付金额等于订单金额+运费-账户余额-优惠券
 							this.deductMoney = this.userMoney				            		// 当前使用金额等于账户余额
 							this.surplusMoney = this.userMoney - this.deductMoney	    		// 剩余余额等于账户余额-当前使用金额
 						}
 					}
 				}else{
-					this.payAllPrice = this.allPrice+parseInt(freight) - this.couponAmount
+					this.payAllPrice = this.allPrice + parseInt(freight) - this.couponAmount
 					this.deductMoney = 0.00 // 当前使用金额
 					this.surplusMoney = this.userMoney // 剩余余额
 				}
-				console.log('this.payAllPrice',this.payAllPrice)
-				console.log('this.couponAmount',this.couponAmount)
+				console.log('最终订单支付金额',this.payAllPrice)
+				console.log('优惠券金额',this.couponAmount)
 			},
 			orderSubmitMit(){// 提交订单
 				if(this.isSubLoading){ return; }
@@ -812,6 +814,12 @@
 							font-size: $font-size-26;
 							color: #333333;
 							float: left;
+							text-overflow:ellipsis;
+							display: -webkit-box;
+							word-break: break-all;
+							-webkit-box-orient: vertical;
+							-webkit-line-clamp: 1;
+							overflow: hidden;
 						}
 						.list-cell-time{
 							width: 100%;