wkw há 6 meses atrás
pai
commit
0c48d9fdce
1 ficheiros alterados com 18 adições e 50 exclusões
  1. 18 50
      pages/my/index.vue

+ 18 - 50
pages/my/index.vue

@@ -16,45 +16,12 @@
 							style="margin-top: 40rpx;margin-right:30rpx" @click="goNav('switchRoles')" />
 						<image src="@/static/images/jobApplicant/shezhi.svg" mode="scaleToFill"
 							style="margin-top: 40rpx;" @click="goNav('/pages/my/setup')" />
-						<!-- <image
-              src="../../static/images/my/icon/selectUser.png"
-              style="width: 40rpx; height: 100%; margin-right: 40rpx"
-              mode=""
-              @click="bindQe(userType)"
-            >
-            </image>
-            <image
-              src="../../static/images/my/icon/set.png"
-              style="width: 36rpx; height: 36rpx;margin-top: 40rpx"
-              mode="aspectFill"
-            >
-            </image> -->
 					</view>
 				</view>
 				<view class="user-content">
 					<view class="info flex justify-center"
 						:style="{ paddingTop: token && XCXIsSelect != '否' ? '0' : '100rpx' }">
 						<view class="info-box">
-							<!-- <view
-                class="info-box-btn flex justify-end align-center"
-                v-if="token && XCXIsSelect != '否'"
-              >
-                <image
-                  src="@/static/images/jobApplicant/qiehuan.svg"
-                  mode="scaleToFill"
-                  style="margin-top: 40rpx"
-                  @click="bindQe(userType)"
-                />
-                <image
-              src="../../static/images/my/icon/selectUser.png"
-              style="width: 40rpx; height: 100%; margin-right: 40rpx"
-              mode=""
-              @click="bindQe(userType)"
-            >
-            </image>
-                <image src="../../static/images/my/icon/set.png" style="width: 44rpx;height: 100%;" mode="">
-						</image>
-              </view> -->
 							<view @click="goNav('/pages/my/onlineResume')"
 								class="info-box-header flex justify-between align-center">
 								<view style="width: 60%; height: 100%" class="flex align-center">
@@ -63,17 +30,11 @@
 									</view>
 									<view class="info-box-header-r">
 										<view class="info-box-header-r-name flex align-center">
-											<view class="" style="
-                          height: fit-content;
-                          overflow: hidden;
-                          white-space: nowrap;
-                          text-overflow: ellipsis;
-                          -o-text-overflow: ellipsis;
-                        ">
+											<view class="info-box-header-r-text">
 												{{ userName }}
 											</view>
-											<image v-if="isVip == true" src="../../static/images/my/isVip.png"
-												style="margin-left: 10rpx; width: 80rpx; height: 30rpx" mode=""></image>
+											<!-- <image v-if="isVip == true" src="../../static/images/my/isVip.png"
+												style="margin-left: 10rpx; width: 80rpx; height: 30rpx" mode=""></image> -->
 										</view>
 										<view v-if="token && XCXIsSelect != '否'"
 											class="info-box-header-r-bj flex align-center">
@@ -370,7 +331,7 @@
 								<view class="info-box-header-r">
 									<view class="info-box-header-r-name flex align-center">
 										{{ userName }}
-										<image v-if="isCompanyVip"
+										<image v-if="isUserVip"
 											style="margin-left: 10rpx; width: 80rpx; height: 30rpx"
 											src="../../static/images/my/isVip.png" mode=""></image>
 									</view>
@@ -473,7 +434,7 @@
                   margin-right: 10rpx;
                 "
               >
-                {{ isCompanyVip == true ? "已开通" : "去开通" }}
+                {{ isUserVip == true ? "已开通" : "去开通" }}
                 <u-icon name="play-right-fill" color="#914016" size="18"></u-icon>
               </view>
             </view>
@@ -860,7 +821,7 @@ export default {
 			interviewCount: 0,
 			postPushCount: 0,//在线职位数量
 			isVip: false, //用户是否是vip
-			isCompanyVip: false, //企业是否是vip
+			isUserVip: false, //企业是否是vip
 			resumesStatus: 1, //求职状态
 			resumesId: "",
 			token: "",
@@ -1199,7 +1160,7 @@ export default {
 							title: "刷新成功",
 						});
 					} else {
-						if (this.isCompanyVip) {
+						if (this.isUserVip) {
 							uni.showToast({
 								title: res.msg,
 								icon: "none",
@@ -1439,12 +1400,12 @@ export default {
 						uni.setStorageSync("userType", 2);
 						uni.setStorageSync("vipDueTimes", res.data.vipDueTimes ? res.data.vipDueTimes : 0);
 						uni.setStorageSync("vipPostTimes", res.data.vipPostTimes ? res.data.vipPostTimes : 0);
-						if (res.data.isCompanyVip == 1) {
+						if (res.data.isUserVip == 1) {
 							//判断企业用户是否是vip
-							this.isCompanyVip = true;
-							uni.setStorageSync("isCompanyVip", 0);
+							this.isUserVip = true;
+							uni.setStorageSync("isUserVip", 0);
 						} else {
-							this.isCompanyVip = false;
+							this.isUserVip = false;
 						}
 
 					}
@@ -2421,4 +2382,11 @@ page {
 	margin-top: 20rpx;
 	border-radius: 40rpx;
 }
+.info-box-header-r-text{
+	height: fit-content;
+	overflow: hidden;
+	white-space: nowrap;
+	text-overflow: ellipsis;
+	-o-text-overflow: ellipsis;
+}
 </style>