liujd 6 лет назад
Родитель
Сommit
699dc75d71

+ 1 - 1
mobile-code/src/components/module/app-order-list.vue

@@ -34,7 +34,7 @@ export default {
 	},
 	computed: {
 		imgUrl() {
-			if (!this.$util.isEmpty(this.info)) return ''
+			if (this.$util.isEmpty(this.info)) return ''
 			return this.info.smallCoverUrl ? this.info.smallCoverUrl : this.info.smallImgList[0]
 		}
 	},

+ 1 - 1
mobile-code/src/pages/order/buy.vue

@@ -148,7 +148,7 @@
 			...mapGetters({ shopUser: 'getShopUser' }),
 			// 计算总金额
 			totalPrice() {
-				let totalPrice = this.goodsInfo.price * this.option.goodsNum - freightPrice
+				let totalPrice = this.goodsInfo.price * this.option.goodsNum - this.freightPrice
 				console.log('this.shopUser', this.shopUser)
 				// let discountMember = this.$util.isEmpty(this.shopUser) ? this.shopUser.userAsset.discount * totalPrice : 1 * totalPrice
 				// discountMember = discountMember / 10