shish %!s(int64=3) %!d(string=hai) anos
pai
achega
68feb0127b

+ 3 - 3
hdApp/src/components/module/app-activily-coupon.vue

@@ -45,8 +45,8 @@ export default {
 			default: () => {}
 			default: () => {}
 		},
 		},
 		ghsId: {
 		ghsId: {
-			type: Number,
-			default: 0
+			type: String,
+			default: '0'
 		}
 		}
 	},
 	},
 	data() {
 	data() {
@@ -57,7 +57,7 @@ export default {
 	methods: {
 	methods: {
 		receive() {
 		receive() {
 			let that = this
 			let that = this
-			if(this.ghsId == 0){
+			if(this.ghsId == '0'){
 				this.$msg('稍等2秒')
 				this.$msg('稍等2秒')
 				return false
 				return false
 			}
 			}

+ 3 - 3
hdApp/src/pagesPurchase/components/item.vue

@@ -36,7 +36,7 @@
 						</text>
 						</text>
 						<i class="iconfont iconzeng" @click.stop="addEvents(info.variety)"></i>
 						<i class="iconfont iconzeng" @click.stop="addEvents(info.variety)"></i>
 					</view>
 					</view>
-					<template v-if="showStock && showStock == 1">
+					<template v-if="showStock && showStock == '1'">
 						<text v-if="Number(info.stock) > Number(info.stockWarning)" style="color:#333;margin-right:65upx;">还剩 {{ parseFloat(info.stock) }}</text>
 						<text v-if="Number(info.stock) > Number(info.stockWarning)" style="color:#333;margin-right:65upx;">还剩 {{ parseFloat(info.stock) }}</text>
 						<text v-else style="color:red;font-weight:bold;margin-right:65upx;">还剩 {{ parseFloat(info.stock) }}</text>
 						<text v-else style="color:red;font-weight:bold;margin-right:65upx;">还剩 {{ parseFloat(info.stock) }}</text>
 					</template>
 					</template>
@@ -67,8 +67,8 @@ export default {
 			default: 0
 			default: 0
 		},
 		},
 		showStock:{
 		showStock:{
-			type: Number,
-			default: 0
+			type: String,
+			default: '0'
 		},
 		},
 		offVerifyRepertory: {
 		offVerifyRepertory: {
 			type: Boolean,
 			type: Boolean,