fly 4 روز پیش
والد
کامیت
8ca80294d9
4فایلهای تغییر یافته به همراه14 افزوده شده و 8 حذف شده
  1. 8 6
      src/components/watch-login/watch-input.vue
  2. 4 2
      src/views/TeamDetail.vue
  3. 1 0
      src/views/login.vue
  4. 1 0
      src/views/register.vue

+ 8 - 6
src/components/watch-login/watch-input.vue

@@ -13,9 +13,10 @@
     <!-- 是否可见密码 -->
     <img
       v-if="_isShowPass && type === 'password' && !_isShowCode"
-      class="img cuIcon"
-      :class="showPassword ? 'cuIcon-attention' : 'cuIcon-attentionforbid'"
-      @tap="showPass"
+      class="img eye-icon"
+      :src="showPassword ? require('@/assets/eye-open.png') : require('@/assets/eye-close.png')"
+      @click="showPass"
+      alt="eye"
     />
     <!-- 倒计时 -->
     <div
@@ -123,9 +124,10 @@ export default {
   },
   computed: {
     _type() {
-      //处理值
-      const type = this.type;
-      return type == "password" ? "text" : type;
+      if (this.type === "password") {
+        return this.showPassword ? "text" : "password";
+      }
+      return this.type;
     },
     _isShowPass() {
       //处理值

+ 4 - 2
src/views/TeamDetail.vue

@@ -42,7 +42,7 @@
             <span style="background: #e6b7e6; color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; margin-right: 10px;margin-left: 10px;">{{ item.level }}</span>
             <span style="font-weight: bold; margin-right: 10px;">{{ item.mobile }}</span>
           </div>
-          <div style="margin-bottom: 4px;">直推人数 {{ item.zhituicount }}人</div>
+          <div style="margin-bottom: 4px;">姓名:{{ item.nickname }}</div>
           <div>邀请时间 {{ item.createtime }}</div>
         </div>
       </div>
@@ -96,7 +96,9 @@ export default {
 <style scoped>
 .container {
   min-height: 100vh;
-  background: #f5f5f5;
+  background: url('../assets/dabag.png') no-repeat;
+  background-size: cover;
+  background-position: center;
 }
 
 .nav-bar {

+ 1 - 0
src/views/login.vue

@@ -19,6 +19,7 @@
           maxlength="11"
           placeholder="密码"
           v-model="passData"
+          :isShowPass="true"
         ></wInput>
       </div>
       <wButton

+ 1 - 0
src/views/register.vue

@@ -28,6 +28,7 @@
           maxlength="11"
           placeholder="请输入密码"
           v-model="passData"
+          :isShowPass="true"
         ></wInput>
         <wInput
           type="number"