zhengkaixin 1 rok pred
rodič
commit
b861d13f3d
2 zmenil súbory, kde vykonal 9 pridanie a 6 odobranie
  1. 1 1
      config/.env.dev.js
  2. 8 5
      pages/mine/mine.vue

+ 1 - 1
config/.env.dev.js

@@ -15,7 +15,7 @@ const UNI_APP = {
 	//openId:"oK9Wr57rAcNzihDN2PEdptprT0As", 
 	// openId:"oK9Wr54VbEh3xvWYmD_zT5NbH4AY",
 	openId:"oBEnI6GDWCRQqn_xlyPlCYFY8Amg",//zkx
-	//openId:"oBEnI6FVaHBZOgnxVa70ePPIBd68",//sz
+	openId:"oBEnI6FVaHBZOgnxVa70ePPIBd68",//sz
 	//
 	//openId:"oBEnI6DtjgbX65mL4_nUFtVgo-8Y",
 	//openId:"oBEnI6PiaBMNUMTnjT0ffT1R2JOk",//杨所

+ 8 - 5
pages/mine/mine.vue

@@ -38,8 +38,10 @@
 					</text>
 				</view>
 			</view>
-			<view style="margin-left: 20px;" v-if="plusInfo.userPointsLast">
-				去年总积分:{{plusInfo.userPointsLast}}
+			<view style="margin-left: 20px;" >
+				{{lastyear}}年年度积分:{{plusInfo.userPointsLast?plusInfo.userPointsLast:'0'}}
+				<span v-if="plusInfo.userPointsRankLast&&plusInfo.userPointsRankLast!='0'" style="margin-left: 4px;">  , 年度排名:第{{plusInfo.userPointsRankLast}}名</span>
+				
 			</view>
 			<view class="grid"  >
 				<view class="item"  @click="gotoUrl('pages/mine/personalPage')" >
@@ -230,11 +232,12 @@
 				userInfo:{},
 				userPhone:"",
 				balance: 0,
-				isCard: false
+				isCard: false,
+				lastyear:'',
 			}
 		},
 		onLoad() {
-			
+			this.lastyear=new Date().getFullYear()-1
 			this.init()
 		},
 		onShow(){
@@ -282,7 +285,7 @@
 					this.carhelp.setPersonInfo(response.data.regUser);
 					this.carhelp.setPersonInfoPlus(response.data)
 					this.init();
-					this.getCardPayAmountList();
+					//this.getCardPayAmountList();
 				}).catch(error => {
 					uni.hideLoading();