张文飞 3 jaren geleden
bovenliggende
commit
450add916c
2 gewijzigde bestanden met toevoegingen van 7 en 2 verwijderingen
  1. 3 1
      App.vue
  2. 4 1
      pages/homePage/homePage.vue

+ 3 - 1
App.vue

@@ -3,7 +3,9 @@
 	export default {
 		onLaunch: function() {
 			let href = location.href;
-			if(!href.startsWith("https://open.weixin.qq.com")){
+			let code  = this.getQueryString('code');
+			let userId =  this.$cache.get('_user_id')
+			if(!(code&&userId)){
 				href = encodeURIComponent(href);
 				let url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+config.appid+"&redirect_uri="+href+"&response_type=code&scope=snsapi_base&state=123&connect_redirect=1#wechat_redirect"
 				window.location.href = url;

+ 4 - 1
pages/homePage/homePage.vue

@@ -112,7 +112,7 @@
 
 				</view>
 				<view class="content_tuiguang_money">
-					<text class="money_num">¥{{userInfo.surplusTaskAmount||0}}</text>
+					<text class="money_num">¥{{Number(userInfo.surplusTaskAmount).toFixed(2)||'0.00'}}</text>
 					<text class="money_num_des">剩余任务金额</text>
 					<view class="money_list">
 						<text class="money_name">类型</text>
@@ -888,6 +888,8 @@
 						max-width: 360rpx;
 
 						.house_name {
+							width: 100%;
+							word-break:break-all;
 							font-size: 30rpx;
 							font-family: Verdana, Verdana-Bold;
 							font-weight: 700;
@@ -958,6 +960,7 @@
 							text-align: left;
 							color: #b1b1b1;
 							margin-bottom: 20rpx;
+							word-break:break-all;
 						}
 					}