瀏覽代碼

Merge branch 'v4' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into v4

张延森 5 年之前
父節點
當前提交
2026a27f7c
共有 4 個文件被更改,包括 26 次插入15 次删除
  1. 1
    1
      src/pages/city/index.scss
  2. 0
    3
      src/pages/im/index.js
  3. 19
    6
      src/pages/person/profile/index.js
  4. 6
    5
      src/pages/shop/index.js

+ 1
- 1
src/pages/city/index.scss 查看文件

@@ -23,7 +23,7 @@
23 23
 
24 24
   .search-list {
25 25
     position: absolute;
26
-    top: 136px;
26
+    top: 114px;
27 27
     width: 100%;
28 28
     background: white;
29 29
     min-height: 100vh;

+ 0
- 3
src/pages/im/index.js 查看文件

@@ -375,9 +375,6 @@ export default class Chat extends Component {
375 375
     // 发送消息
376 376
     socket.sendNotice(payload, res => {
377 377
       console.log('发送成功')
378
-      this.setState({
379
-        inputText:'',
380
-      })
381 378
       this.appendData(payload)
382 379
     })
383 380
   }

+ 19
- 6
src/pages/person/profile/index.js 查看文件

@@ -21,6 +21,7 @@ export default class Profile extends Component {
21 21
     documentTitle: '',
22 22
     verfyList: [], // 审核列表
23 23
     descVisible: false,
24
+    showWhich: true,
24 25
 
25 26
   }
26 27
 
@@ -33,6 +34,17 @@ export default class Profile extends Component {
33 34
     getVerifyList().then(res => {
34 35
       this.setState({
35 36
         verfyList: res
37
+      }, () => {
38
+        if (this.state.verfyList.length == 0) {
39
+          this.setState({
40
+            showWhich: true
41
+          })
42
+        } else {
43
+          this.setState({
44
+            showWhich: false
45
+          })
46
+        }
47
+
36 48
       })
37 49
       Taro.hideLoading()
38 50
     }).catch((err) => {
@@ -47,7 +59,8 @@ export default class Profile extends Component {
47 59
   // 选择图片
48 60
   bindAlbumClick(e) {
49 61
     this.setState({
50
-      descVisible: true
62
+      descVisible: true,
63
+      showWhich: false
51 64
     })
52 65
     e.stopPropagation()
53 66
     Taro.chooseImage({
@@ -174,25 +187,25 @@ export default class Profile extends Component {
174 187
 
175 188
 
176 189
   render() {
177
-    const { imgList, documentTitle, verfyList, descVisible } = this.state
190
+    const { imgList, documentTitle, verfyList, descVisible,showWhich } = this.state
178 191
 
179 192
     return (
180 193
       <View className="profile-page" style={`background: url(${profileBg}) no-repeat top;background-size: 100% 100%;`}>
181 194
         <ScrollView scrollY scrollWithAnimation style="height: 100vh">
182 195
 
183
-          {!verfyList.length &&
196
+          {(!verfyList.length && showWhich) &&
184 197
             <View className="up-images">
185 198
               {this.renderUpImages()}
186 199
 
187 200
               <View className="tip">
188 201
                 建议上传相关购房资格等相关资料,审核
189
-          </View>
202
+              </View>
190 203
               <View className="tip">
191 204
                 通过后将获取更多积分、兑换好礼~
192
-          </View>
205
+              </View>
193 206
             </View>
194 207
           }
195
-          {verfyList.length &&
208
+          {(verfyList.length || !showWhich) &&
196 209
             <View>
197 210
 
198 211
               {descVisible &&

+ 6
- 5
src/pages/shop/index.js 查看文件

@@ -144,13 +144,10 @@ export default class Shop extends Component {
144 144
       url: `/pages/city/index`
145 145
     })
146 146
   }
147
+  
147 148
   doSign() {
148 149
     const { user: { id, havaSigned } } = this.state
149 150
     if (havaSigned) {
150
-      Taro.showToast({
151
-        title: '你已经签到过了',
152
-        icon: 'none'
153
-      })
154 151
       return
155 152
     }
156 153
 
@@ -161,6 +158,7 @@ export default class Shop extends Component {
161 158
 
162 159
       this.loadUserInfo()
163 160
 
161
+      // App.zhuge.track('签到成功')
164 162
     })
165 163
   }
166 164
 
@@ -244,6 +242,7 @@ export default class Shop extends Component {
244 242
   renderDetail() {
245 243
     // const { user } = this.state
246 244
     const { userInfo: { person }, curCity } = this.props
245
+    const { bannerList } = this.state
247 246
     return (
248 247
       <View className="page">
249 248
         {/* <Search placeholder="请输入要搜索的商品名称" onSearch={this.onSearch} /> */}
@@ -285,8 +284,10 @@ export default class Shop extends Component {
285 284
           </View>
286 285
 
287 286
 
287
+          {bannerList.length > 0 &&
288
+            <Banner list={bannerList} indicatorDots={false}></Banner>
289
+          }
288 290
 
289
-          <Banner list={this.state.bannerList} indicatorDots={false}></Banner>
290 291
 
291 292
           {this.renderGoods()}
292 293
         </ScrollView>