Kaynağa Gözat

Merge branch 'master' of http://code.qutaovip.com/lihai/fish_app

* 'master' of http://code.qutaovip.com/lihai/fish_app:
  隐藏支付宝认证&&个人页面等级展示
黎海 3 hafta önce
ebeveyn
işleme
2cc1e16c49

+ 2 - 2
src/pages/memberSub/Alipay/index.jsx

@@ -16,7 +16,7 @@ export default class Index extends Component {
16 16
     bankCard: "", // 银行卡号
17 17
     idCardFront: "https://video-img.fyshark.com/1735011631991upload-background-front.11d37038.png", // 身份证正面
18 18
     idCardBack: "https://video-img.fyshark.com/1735011647149upload-background-back.5b42ae0e.png", // 身份证反面
19
-    type: "alipay", // 类型
19
+    type: "bank", // 类型
20 20
     phoneError: false, // 手机号格式错误标志
21 21
     isLoading: false, // 是否加载中
22 22
     isAlipay: false, // 是否已绑定支付宝
@@ -237,7 +237,7 @@ export default class Index extends Component {
237 237
         <View className="alipay-info">
238 238
           <View className="alipay-info-item">
239 239
             <View className="type-box">
240
-              <View className={["type-title", this.state.type === 'alipay' ? 'active' : '']} onClick={() => this.handleChooseType('alipay')}>支付宝</View>
240
+              {/* <View className={["type-title", this.state.type === 'alipay' ? 'active' : '']} onClick={() => this.handleChooseType('alipay')}>支付宝</View> */}
241 241
               <View className={["type-title", this.state.type === 'bank' ? 'active' : '']} onClick={() => this.handleChooseType('bank')}>银行卡</View>
242 242
             </View>
243 243
           </View>

+ 1 - 1
src/pages/memberSub/Alipay/index.less

@@ -80,7 +80,7 @@
80 80
 
81 81
         .active {
82 82
           color: #000000;
83
-          border-bottom: 2px solid #000000;
83
+          // border-bottom: 2px solid #000000;
84 84
         }
85 85
       }
86 86
     }

+ 36 - 4
src/pages/mine/index.jsx

@@ -89,12 +89,44 @@ export default class Index extends Component {
89 89
             <View className="user-info">
90 90
               <View onClick={this.Login} className="name">
91 91
                 {userInfo.name ? userInfo.name : "去登录"}
92
-                {/* {userInfo.user_identity === 1 && (
92
+                {userInfo.user_identity !== 0 && (
93 93
                   <View className="level-box">
94
-                    <Image src={levelOne} className="level-icon" />
95
-                    <Text className="level-text">Lv 1</Text>
94
+                    <Image
95
+                      src={
96
+                        userInfo.user_identity === 1
97
+                          ? levelOne
98
+                          : userInfo.user_identity === 2
99
+                          ? levelTwo
100
+                          : userInfo.user_identity === 3
101
+                          ? levelThree
102
+                          : userInfo.user_identity === 4
103
+                          ? levelFour
104
+                          : userInfo.user_identity === 5
105
+                          ? levelFive
106
+                          : levelOne
107
+                      }
108
+                      className="level-icon"
109
+                    />
110
+                    <Text 
111
+                      className="level-text"
112
+                      style={{
113
+                        color: userInfo.user_identity === 1 
114
+                          ? '#8AA6F1' 
115
+                          : userInfo.user_identity === 2 
116
+                          ? '#0077F6' 
117
+                          : userInfo.user_identity === 3 
118
+                          ? '#7D00E1' 
119
+                          : userInfo.user_identity === 4 
120
+                          ? '#FE585A' 
121
+                          : userInfo.user_identity === 5 
122
+                          ? '#E87D12' 
123
+                          : '#8AA6F1'
124
+                      }}
125
+                    >
126
+                      Lv {userInfo.user_identity}
127
+                    </Text>
96 128
                   </View>
97
-                )} */}
129
+                )}
98 130
               </View>
99 131
               <View className="account">{userInfo.id ? userInfo.id : ""}</View>
100 132
             </View>