hmp 4 ani în urmă
părinte
comite
08fb40ddef

+ 2 - 2
pages/activityList/activity/awards.vue

@@ -122,7 +122,7 @@
 				})
 			},
 			init(){
-				this.userId = uni.getStorageSync("userId");
+				this.userId = uni.getStorageSync("userId") || "1412774298841526273";
 				if (!this.userId) {
 					this.$u.toast('用户未登录')
 					return
@@ -148,7 +148,7 @@
 				})
 			},
 			doAwards(){
-				if (!this.$u.test.isEmpty(cardNumber)) {
+				if (!this.$u.test.isEmpty(this.cardInfo)) {
 					uni.navigateTo({
 						url:"doAwards?userId="+this.userId
 					})

+ 2 - 2
pages/activityList/activity/doAwards.vue

@@ -22,7 +22,7 @@
 				</view>
 			</view>
 			<view class="right">
-				<u-number-box  v-model="withdrawList[index].totalCash"  :index="index" :min="0" :max="max(item.usableCash)"  :input-width="100" :input-height="60"></u-number-box>
+				<u-number-box  v-model="withdrawList[index].totalCash" :positive-integer="false"  :index="index" :min="0" :max="max(item.usableCash)"  :input-width="100" :input-height="60"></u-number-box>
 				<text  class="padding-left-sm text-red">元</text>
 			</view>
 		</view>
@@ -94,7 +94,7 @@
 			},
 			withdraw(){
 				if (this.total<=0) {
-					this.$u.toast("兑换金额有误")
+					this.$u.toast("请输入正确的兑换金额")
 					return
 				}
 				this.$u.api.user.withdraw(this.withdrawList).then(res=>{