Tang 4 lat temu
rodzic
commit
b3512ec270
3 zmienionych plików z 19 dodań i 14 usunięć
  1. 6 8
      components/my.vue
  2. 5 3
      pages/index/index.vue
  3. 8 3
      pages2/bank/question.vue

+ 6 - 8
components/my.vue

@@ -116,7 +116,9 @@
 							<navigator url="/pages2/resume/delivery" hover-class="none"  style="position: relative;">
 								<image src="/static/toudi@3x.png" class="tool_img"></image>
 								<view class="tool_t">我的投递</view>
-								<view class="iconLittles" v-if="showLittleIcon > 0"></view>
+								<view class="iconLittles" v-if="showLittleIcon > 0">
+								<u-badge size="mini" type="success" :count="showLittleIcon" :absolute="false" bgColor="#fa3534"></u-badge>
+								</view>
 							</navigator>
 						</u-col>
 					</u-row>
@@ -164,7 +166,6 @@ export default {
 		},
 		refresher(){
 			this.init()
-			this.$api.refreshUserInfo();
 			this.triggered = false
 		},
 		restore(){
@@ -203,6 +204,7 @@ export default {
 		async init() {
 			const firstFunc = await this.getInfoAttached();
 			const seciedFunc = await this.getLevel();
+			this.$api.refreshUserInfo();
 		},
 		jumpPopup() {
 			uni.showModal({
@@ -365,11 +367,7 @@ page {
 }
 .iconLittles{
 	position: absolute;
-	top: -8rpx;
-	right: 48rpx;
-	width: 16rpx;
-	height: 16rpx;
-	border-radius: 50%;
-	background-color: #F13E3A;
+	top: -18rpx;
+	right: 33rpx;
 }
 </style>

+ 5 - 3
pages/index/index.vue

@@ -46,14 +46,16 @@ export default {
 		};
 	},
 	onPullDownRefresh(){
-		console.log(34)
 	},
 	onLoad(option) {
 		this.$refs.home.init();
 		this.getDict()
-		// this.$refs.recruitment.inits();
 	},
-	onShow() {},
+	onShow() {
+		if(this.current === 2 && this.$method.isLogin()){
+			this.$refs.refMy.init();
+		}
+	},
 	onShareAppMessage(res) {
 		var self = this;
 		return {

+ 8 - 3
pages2/bank/question.vue

@@ -44,8 +44,8 @@
 						<image v-if="items.imgUrl && items.imgUrl !== null" :src="$method.splitImgHost(items.imgUrl)" mode="aspectFit" @click="seeBigImage(items.imgUrl)"></image>
 					</view>
 				</view>
-				<view v-if="itemst.type === 3" class="banksChiList" :class="isWrong === 1 ? 'activeListBt' : ''" @click="activePDs(1, indexst)">正确</view>
-				<view v-if="itemst.type === 3" class="banksChiList" :class="isWrong === 0 ? 'activeListBt' : ''" @click="activePDs(0, indexst)">错误</view>
+				<view v-if="itemst.type === 3" class="banksChiList" :class="isWrongs[indexst] === 1 ? 'activeListBt' : ''" @click="activePDs(1, indexst)">正确</view>
+				<view v-if="itemst.type === 3" class="banksChiList" :class="isWrongs[indexst] === 0 ? 'activeListBt' : ''" @click="activePDs(0, indexst)">错误</view>
 				<view class="jxTit" style="margin-bottom: 10rpx;" @click="showTitles(indexst)">
 					<span class="jxSpan">查看解析</span>
 					<u-icon name="info-circle" color="#999999" size="40"></u-icon>
@@ -179,6 +179,7 @@ export default {
 			alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
 			replyL: [],
 			isWrong: -1,
+			isWrongs:[],
 			answerList: [], //总提交列表
 			bankId: 0, //题库ID
 			selects: [], //当前做了哪些题目
@@ -329,6 +330,7 @@ export default {
 		},
 		//数据清空
 		initDatas() {
+			this.isWrongs = []
 			this.isWrong = -1;
 			this.showJX = [];
 			this.showJXanli = [];
@@ -615,7 +617,10 @@ export default {
 			this.isWrong = int;
 		},
 		activePDs(int, fatInt) {
-			this.isWrong = int;
+			console.log(this.replyL)
+			this.isWrongs[fatInt] = int
+			console.log(fatInt)
+			// this.isWrong = int;
 			if (this.replyL[fatInt] === undefined) {
 				this.replyL[fatInt] = {};
 			}