Browse Source

静态页面

xcx 4 years ago
parent
commit
b03b1a4aa7

+ 3
- 3
src/app.js View File

12
 
12
 
13
   onLaunch () {
13
   onLaunch () {
14
 
14
 
15
-    Taro.setEnableDebug({
16
-      enableDebug: true
17
-    })
15
+    // Taro.setEnableDebug({
16
+    //   enableDebug: true
17
+    // })
18
     // 此处获取不到 state, 因为 app 不会刷新
18
     // 此处获取不到 state, 因为 app 不会刷新
19
     const { setSysInfo } = store.getModel('sys').getState()
19
     const { setSysInfo } = store.getModel('sys').getState()
20
 
20
 

+ 0
- 1
src/layouts/index.jsx View File

103
 
103
 
104
   return (
104
   return (
105
     <Spin loading={loading}>
105
     <Spin loading={loading}>
106
-
107
       {/* 广告 */}
106
       {/* 广告 */}
108
       <AdvLayer></AdvLayer>
107
       <AdvLayer></AdvLayer>
109
       <RenZhengScreen Show={showAuthYeZhu}></RenZhengScreen>
108
       <RenZhengScreen Show={showAuthYeZhu}></RenZhengScreen>

+ 2
- 2
src/pages/ShouYe/index.jsx View File

14
 import '@/assets/css/iconfont.less'
14
 import '@/assets/css/iconfont.less'
15
 import './index.less'
15
 import './index.less'
16
 
16
 
17
-export default function Index (props) {
17
+export default function Index () {
18
 
18
 
19
   const { user } = useModel('user')
19
   const { user } = useModel('user')
20
   const [OwnerList] = useState([
20
   const [OwnerList] = useState([
103
   }
103
   }
104
 
104
 
105
   const GetNotice = () => { // 获取通知
105
   const GetNotice = () => { // 获取通知
106
-    request({ ...apis.getGongGaoList, args: { orgId: user.orgId }, params: { annType: 'notice', pageNum: 1, pageSize: 1 } }).then((res) => {
106
+    request({ ...apis.getGongGaoList, args: { orgId: 1 }, params: { annType: 'notice', pageNum: 1, pageSize: 1 } }).then((res) => {
107
       setNoticeInfo(res.records[0])
107
       setNoticeInfo(res.records[0])
108
       if (res.records !== null && res.records.length > 0) {
108
       if (res.records !== null && res.records.length > 0) {
109
         setShowNotice(true)
109
         setShowNotice(true)

+ 14
- 2
src/pages/WoDe/YeZhuRenZheng/index.css View File

20
   color: #333;
20
   color: #333;
21
   line-height: 100px;
21
   line-height: 100px;
22
 }
22
 }
23
-.YeZhuRenZheng > .Form > .flex-h > text:first-child {
23
+.YeZhuRenZheng > .Form > .flex-h > text.iconfont {
24
   font-size: 50px;
24
   font-size: 50px;
25
   color: #F35844;
25
   color: #F35844;
26
   width: 80px;
26
   width: 80px;
27
 }
27
 }
28
+.YeZhuRenZheng > .Form > .flex-h > text:first-child {
29
+  min-width: 80px;
30
+}
28
 .YeZhuRenZheng > .Form > .flex-h > text:last-child {
31
 .YeZhuRenZheng > .Form > .flex-h > text:last-child {
29
   line-height: 60px;
32
   line-height: 60px;
30
   padding: 0 20px;
33
   padding: 0 20px;
36
   color: #F35844;
39
   color: #F35844;
37
   border-color: #F35844;
40
   border-color: #F35844;
38
 }
41
 }
42
+.YeZhuRenZheng > .Form > .flex-h > .flex-item .PickerText {
43
+  width: 100%;
44
+  text-align: right;
45
+  font-size: 28px;
46
+  color: #666;
47
+}
39
 .YeZhuRenZheng > .Form > .flex-h > input {
48
 .YeZhuRenZheng > .Form > .flex-h > input {
40
   font-size: 28px;
49
   font-size: 28px;
41
   color: #333;
50
   color: #333;
54
   width: 100%;
63
   width: 100%;
55
   font-size: 32px;
64
   font-size: 32px;
56
   color: #fff;
65
   color: #fff;
57
-  background: #F35844;
66
+  background: #ccc;
58
   border-radius: 12px;
67
   border-radius: 12px;
59
   line-height: 84px;
68
   line-height: 84px;
60
   text-align: center;
69
   text-align: center;
61
 }
70
 }
71
+.YeZhuRenZheng > .BottomBtn > text.active {
72
+  background: #F35844;
73
+}

+ 2
- 2
src/pages/WoDe/YeZhuRenZheng/index.jsx View File

181
           }
181
           }
182
         }).then((res) => {
182
         }).then((res) => {
183
           Taro.showToast({ title: '添加认证成功', icon: 'none' })
183
           Taro.showToast({ title: '添加认证成功', icon: 'none' })
184
+          setDataLock(false)
184
           if (PageFrom === 'popup') {
185
           if (PageFrom === 'popup') {
185
             // 获取审核详情
186
             // 获取审核详情
186
             request({ ...apis.getRenZhengDetail, args: { id: res.id } }).then((cRes) => {
187
             request({ ...apis.getRenZhengDetail, args: { id: res.id } }).then((cRes) => {
190
           } else {
191
           } else {
191
             Taro.navigateTo({ url: `/pages/WoDe/YeZhuShenHe/index?id=${res.id}` })
192
             Taro.navigateTo({ url: `/pages/WoDe/YeZhuShenHe/index?id=${res.id}` })
192
           }
193
           }
193
-          setDataLock(false)
194
         }).catch((res) => {
194
         }).catch((res) => {
195
           Taro.showToast({ title: res, icon: 'none' })
195
           Taro.showToast({ title: res, icon: 'none' })
196
           setDataLock(false)
196
           setDataLock(false)
372
           </view>
372
           </view>
373
         </view>
373
         </view>
374
         <view className='BottomBtn' onClick={Submit}>
374
         <view className='BottomBtn' onClick={Submit}>
375
-          <text>提交</text>
375
+          <text className={DataLock ? '' : 'active'}>{DataLock ? '提交中...' : '提交'}</text>
376
         </view>
376
         </view>
377
       </view>
377
       </view>
378
     </Page>
378
     </Page>

+ 4
- 1
src/pages/WoDe/YeZhuRenZheng/index.less View File

74
       width: 100%;
74
       width: 100%;
75
       font-size: 32px;
75
       font-size: 32px;
76
       color: #fff;
76
       color: #fff;
77
-      background: #F35844;
77
+      background: #ccc;
78
       border-radius: 12px;
78
       border-radius: 12px;
79
       line-height: 84px;
79
       line-height: 84px;
80
       text-align: center;
80
       text-align: center;
81
+      &.active {
82
+        background: #F35844;
83
+      }
81
     }
84
     }
82
   }
85
   }
83
 }
86
 }

+ 1
- 1
src/pages/WuYe/TianJiaBaoXiu/index.jsx View File

101
           <Textarea placeholder='描述问题详情,以便我们更好的相处' onInput={TitleChange} value={Title}></Textarea>
101
           <Textarea placeholder='描述问题详情,以便我们更好的相处' onInput={TitleChange} value={Title}></Textarea>
102
           <view className='LabelList'>
102
           <view className='LabelList'>
103
             {
103
             {
104
-              (repairType || {tags: ''}).tags.split(',').map(tag => <text key={tag} onClick={() => setTitle(tag)}>{tag}</text>)
104
+              (repairType || {tags: ''}).tags.split(',').map(tag => <text key={tag} onClick={() => setTitle(Title === '' ? tag : `${Title},${tag}`)}>{tag}</text>)
105
             }
105
             }
106
           </view>
106
           </view>
107
         </view>
107
         </view>

+ 2
- 2
src/pages/WuYe/XiuGaiBaoXiu/index.jsx View File

33
   }
33
   }
34
 
34
 
35
   const TitleChange = (e) => {
35
   const TitleChange = (e) => {
36
-    handleTitleChange(e.detail.value)
36
+    setDetailInfo({ ...DetailInfo, ticketTitle: e.detail.value })
37
   }
37
   }
38
 
38
 
39
   const DescChange = (e) => {
39
   const DescChange = (e) => {
113
           <Textarea placeholder='描述问题详情,以便我们更好的相处' onInput={TitleChange} value={DetailInfo === null ? null : DetailInfo.ticketTitle}></Textarea>
113
           <Textarea placeholder='描述问题详情,以便我们更好的相处' onInput={TitleChange} value={DetailInfo === null ? null : DetailInfo.ticketTitle}></Textarea>
114
           <view className='LabelList'>
114
           <view className='LabelList'>
115
             {
115
             {
116
-              (repairType || {tags: ''}).tags.split(',').map(tag => <text key={tag} onClick={() => handleTitleChange(tag)}>{tag}</text>)
116
+              (repairType || {tags: ''}).tags.split(',').map(tag => <text key={tag} onClick={() => handleTitleChange(DetailInfo.ticketTitle === '' ? tag : `${DetailInfo.ticketTitle},${tag}`)}>{tag}</text>)
117
             }
117
             }
118
           </view>
118
           </view>
119
         </view>
119
         </view>