1002884655 il y a 4 ans
Parent
révision
0de6ee3ed6

+ 5
- 2
src/pages/WoDe/YeZhuBaoXiu/components/Item/index.jsx Voir le fichier

@@ -1,4 +1,6 @@
1 1
 import React, { useState } from 'react'
2
+import { PERSON_TYPE } from '@/utils/constants'
3
+import { useModel } from '@/store'
2 4
 import Taro from '@tarojs/taro'
3 5
 import toolclass from '@/utils/toolclass.js'
4 6
 import '@/assets/css/reset.less'
@@ -7,6 +9,7 @@ import './index.less'
7 9
 
8 10
 export default function Item (props) {
9 11
 
12
+  const { user } = useModel('user')
10 13
   const { Data } = props
11 14
 
12 15
   // 随便一条
@@ -30,9 +33,9 @@ export default function Item (props) {
30 33
         <text className='Time'>{toolclass.FormatDate(Data.createDate)}</text>
31 34
       </view>
32 35
       <view className='Name flex-h'>
33
-        <view style={{flex: 1}}><text className='flex-item'>{Data.ticketTitle}</text></view>
36
+        <view className='flex-item'><text>{Data.ticketTitle}</text></view>
34 37
         {
35
-          Data.status === '3' && <view className="Name-action" onClick={props.onAction}>完成</view>    
38
+          Data.status - 0 === 3 && user && user.personType === PERSON_TYPE.LIFE_CONSULTANT && <view className="Name-action" onClick={props.onAction}>完成</view>    
36 39
         }
37 40
       </view>
38 41
       <view className='Detail flex-h'>

+ 2
- 2
src/pages/WoDe/index.jsx Voir le fichier

@@ -17,9 +17,9 @@ const menuGroup = [
17 17
     { icon: 'iconrenzheng1', name: '业主认证', id: 1, router: '/pages/WoDe/WoDeRenZheng/index' },
18 18
     { icon: 'iconjifenguize', name: '积分明细', id: 2, router: '/pages/FuLi/JiFenMingXi/index' },
19 19
     { icon: 'iconjiaofei', name: '物业缴费', id: 3, router: '/pages/WoDe/WoDeJiaoFei/index' },
20
-    { icon: 'iconfuwu1', name: '业报修', id: 4, router: '/pages/WoDe/WoDeGongDan/index' },
20
+    { icon: 'iconfuwu1', name: '业报修', id: 4, router: '/pages/WoDe/WoDeGongDan/index' },
21 21
     // { icon: 'iconfuwu1', name: '业主工单', id: 4, router: '/pages/WoDe/YeZhuBaoXiu/index', personTypes: [PERSON_TYPE.LIFE_CONSULTANT] },
22
-    { icon: 'iconfuwu1', name: '业报修', id: 4, router: '/pages/WoDe/YeZhuBaoXiu/index' },
22
+    { icon: 'iconfuwu1', name: '业报修', id: 4, router: '/pages/WoDe/YeZhuBaoXiu/index' },
23 23
   ],
24 24
   [
25 25
     { icon: 'iconerweima', name: '推荐二维码', id: 5, router: '/pages/WoDe/TuiJianErWeiMa/index' },

+ 1
- 0
src/pages/WuYe/BaoXiuFeiYong/index.jsx Voir le fichier

@@ -84,6 +84,7 @@ export default function BaoXiuFeiYong () {
84 84
       success: res => {
85 85
         if (res.confirm) {
86 86
           WechatPay([BillInfo.id - 0]).then(() => {
87
+            setShowPopup(false)
87 88
             Taro.showToast({
88 89
               title: '缴费成功',
89 90
               icon: 'success'