lilei 4 anos atrás
pai
commit
c118c39010
2 arquivos alterados com 7 adições e 3 exclusões
  1. 2 2
      pages/index/index.vue
  2. 5 1
      pages/userAuth/userAuth.vue

+ 2 - 2
pages/index/index.vue

@@ -5,7 +5,7 @@
 		</view>
 		<!-- 称重 -->
 		<view class="content">
-			<view @click="toHelp" class="tdrecord">蓝牙使用帮助</view>
+			<view @click="toHelp" class="tdrecord">使用帮助</view>
 			<view class="cz-box" @click="toWork">
 				<view :class="loading?'turn':''">
 					<u-image width="100rpx" height="100rpx" src="/static/chengzhong.png"></u-image>
@@ -552,7 +552,7 @@
 		position: absolute;
 		right: 0;
 		top: 5%;
-		background: rgba(255,255,255,0.8);
+		background: rgba(255,255,255,0.6);
 		border-radius: 150rpx 0 0 150rpx;
 		box-shadow: 2rpx 2rpx 6rpx rgba(0,0,0,0.4);
 		padding: 15rpx 20rpx 15rpx 30rpx;

+ 5 - 1
pages/userAuth/userAuth.vue

@@ -117,7 +117,11 @@
 			goldNum(){
 				let ret = 0
 				if(this.curRubbishType&&this.curRubbishType.rubbishWeight){
-					ret = this.balanceData / this.curRubbishType.rubbishWeight * this.curRubbishType.goleNum
+					if(this.balanceData >= this.curRubbishType.rubbishWeight){
+						ret = this.balanceData / this.curRubbishType.rubbishWeight * this.curRubbishType.goleNum
+					}else{
+						ret = 0
+					}
 				}
 				return Math.floor(ret)
 			},