ydb-components-material 0.1.119 → 0.1.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/build/docs/404.html +3 -3
  2. package/build/docs/_demos/:uuid +3 -3
  3. package/build/docs/colorful-button.html +3 -3
  4. package/build/docs/colorful-input.html +3 -3
  5. package/build/docs/index.html +3 -3
  6. package/build/docs/static/situation.80bdb450.png +0 -0
  7. package/build/docs/{umi.ffb7b81c.css → umi.35f02979.css} +1 -1
  8. package/build/docs/umi.8b7db9c6.js +1 -0
  9. package/build/docs/~demos/:uuid.html +3 -3
  10. package/build/docs/~demos/colorful-button-demo.html +3 -3
  11. package/build/docs/~demos/colorful-input-demo.html +3 -3
  12. package/build/lowcode/3.js +2 -2
  13. package/build/lowcode/4.js +1 -1
  14. package/build/lowcode/5.js +1 -1
  15. package/build/lowcode/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
  16. package/build/lowcode/assets-daily.json +11 -11
  17. package/build/lowcode/assets-dev.json +2 -2
  18. package/build/lowcode/assets-prod.json +11 -11
  19. package/build/lowcode/index.js +1 -1
  20. package/build/lowcode/meta.js +1 -1
  21. package/build/lowcode/preview.js +9 -9
  22. package/build/lowcode/render/default/1.js +2 -2
  23. package/build/lowcode/render/default/2.js +1 -1
  24. package/build/lowcode/render/default/3.js +1 -1
  25. package/build/lowcode/render/default/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
  26. package/build/lowcode/render/default/view.css +1 -1
  27. package/build/lowcode/render/default/view.js +26 -26
  28. package/build/lowcode/view.css +1 -1
  29. package/build/lowcode/view.js +26 -26
  30. package/dist/1.js +2 -2
  31. package/dist/2.js +1 -1
  32. package/dist/3.js +1 -1
  33. package/dist/BizComps.css +1 -1
  34. package/dist/BizComps.js +19 -19
  35. package/dist/BizComps.js.map +1 -1
  36. package/dist/assets/8644ab95dcea871942e57b3d0e2e0eea.png +0 -0
  37. package/es/components/file-list/item.js +2 -2
  38. package/es/components/file-list/seal.js +5 -1
  39. package/es/components/file-list/signUtil.js +9 -1
  40. package/es/components/guide-pc/comment.d.ts +9 -0
  41. package/es/components/guide-pc/comment.js +93 -0
  42. package/es/components/guide-pc/comment.scss +15 -0
  43. package/es/components/guide-pc/comment.vue +117 -0
  44. package/es/components/guide-pc/components/accept.d.ts +7 -0
  45. package/es/components/guide-pc/components/accept.js +30 -0
  46. package/es/components/guide-pc/components/accept.scss +18 -0
  47. package/es/components/guide-pc/components/accept.vue +50 -0
  48. package/es/components/guide-pc/components/basicInfo.d.ts +7 -0
  49. package/es/components/guide-pc/components/basicInfo.js +89 -0
  50. package/es/components/guide-pc/components/basicInfo.scss +30 -0
  51. package/es/components/guide-pc/components/basicInfo.vue +81 -0
  52. package/es/components/guide-pc/components/guideTabs.d.ts +8 -0
  53. package/es/components/guide-pc/components/guideTabs.js +32 -0
  54. package/es/components/guide-pc/components/guideTabs.scss +34 -0
  55. package/es/components/guide-pc/components/guideTabs.vue +48 -0
  56. package/es/components/guide-pc/components/guideTitle.d.ts +7 -0
  57. package/es/components/guide-pc/components/guideTitle.js +22 -0
  58. package/es/components/guide-pc/components/guideTitle.scss +15 -0
  59. package/es/components/guide-pc/components/guideTitle.vue +43 -0
  60. package/es/components/guide-pc/components/materialsList.d.ts +11 -0
  61. package/es/components/guide-pc/components/materialsList.js +386 -0
  62. package/es/components/guide-pc/components/materialsList.scss +139 -0
  63. package/es/components/guide-pc/components/materialsList.vue +403 -0
  64. package/es/components/guide-pc/components/places.d.ts +7 -0
  65. package/es/components/guide-pc/components/places.js +110 -0
  66. package/es/components/guide-pc/components/places.scss +144 -0
  67. package/es/components/guide-pc/components/places.vue +198 -0
  68. package/es/components/guide-pc/components/processImg.d.ts +9 -0
  69. package/es/components/guide-pc/components/processImg.js +220 -0
  70. package/es/components/guide-pc/components/processImg.scss +117 -0
  71. package/es/components/guide-pc/components/processImg.vue +300 -0
  72. package/es/components/guide-pc/components/result.d.ts +7 -0
  73. package/es/components/guide-pc/components/result.js +130 -0
  74. package/es/components/guide-pc/components/result.scss +104 -0
  75. package/es/components/guide-pc/components/result.vue +191 -0
  76. package/es/components/guide-pc/components/situation.d.ts +12 -0
  77. package/es/components/guide-pc/components/situation.js +142 -0
  78. package/es/components/guide-pc/components/situation.scss +79 -0
  79. package/es/components/guide-pc/components/situation.vue +430 -0
  80. package/es/components/guide-pc/guide.vue +179 -0
  81. package/es/components/guide-pc/imgs/bg.png +0 -0
  82. package/es/components/guide-pc/imgs/cant.png +0 -0
  83. package/es/components/guide-pc/imgs/dept.png +0 -0
  84. package/es/components/guide-pc/imgs/error.png +0 -0
  85. package/es/components/guide-pc/imgs/judge.png +0 -0
  86. package/es/components/guide-pc/imgs/pass.png +0 -0
  87. package/es/components/guide-pc/imgs/rightArr.png +0 -0
  88. package/es/components/guide-pc/imgs/situation.png +0 -0
  89. package/es/components/guide-pc/imgs/time.png +0 -0
  90. package/es/components/guide-pc/imgs/titleL.png +0 -0
  91. package/es/components/guide-pc/imgs/titleR.png +0 -0
  92. package/es/components/guide-pc/index.d.ts +37 -0
  93. package/es/components/guide-pc/index.js +440 -0
  94. package/es/components/guide-pc/index.scss +185 -0
  95. package/es/index.d.ts +2 -0
  96. package/es/index.js +1 -0
  97. package/lib/components/file-list/item.js +2 -2
  98. package/lib/components/file-list/seal.js +5 -1
  99. package/lib/components/file-list/signUtil.js +9 -1
  100. package/lib/components/guide-pc/comment.d.ts +9 -0
  101. package/lib/components/guide-pc/comment.js +98 -0
  102. package/lib/components/guide-pc/comment.scss +15 -0
  103. package/lib/components/guide-pc/comment.vue +117 -0
  104. package/lib/components/guide-pc/components/accept.d.ts +7 -0
  105. package/lib/components/guide-pc/components/accept.js +36 -0
  106. package/lib/components/guide-pc/components/accept.scss +18 -0
  107. package/lib/components/guide-pc/components/accept.vue +50 -0
  108. package/lib/components/guide-pc/components/basicInfo.d.ts +7 -0
  109. package/lib/components/guide-pc/components/basicInfo.js +95 -0
  110. package/lib/components/guide-pc/components/basicInfo.scss +30 -0
  111. package/lib/components/guide-pc/components/basicInfo.vue +81 -0
  112. package/lib/components/guide-pc/components/guideTabs.d.ts +8 -0
  113. package/lib/components/guide-pc/components/guideTabs.js +37 -0
  114. package/lib/components/guide-pc/components/guideTabs.scss +34 -0
  115. package/lib/components/guide-pc/components/guideTabs.vue +48 -0
  116. package/lib/components/guide-pc/components/guideTitle.d.ts +7 -0
  117. package/lib/components/guide-pc/components/guideTitle.js +28 -0
  118. package/lib/components/guide-pc/components/guideTitle.scss +15 -0
  119. package/lib/components/guide-pc/components/guideTitle.vue +43 -0
  120. package/lib/components/guide-pc/components/materialsList.d.ts +11 -0
  121. package/lib/components/guide-pc/components/materialsList.js +392 -0
  122. package/lib/components/guide-pc/components/materialsList.scss +139 -0
  123. package/lib/components/guide-pc/components/materialsList.vue +403 -0
  124. package/lib/components/guide-pc/components/places.d.ts +7 -0
  125. package/lib/components/guide-pc/components/places.js +116 -0
  126. package/lib/components/guide-pc/components/places.scss +144 -0
  127. package/lib/components/guide-pc/components/places.vue +198 -0
  128. package/lib/components/guide-pc/components/processImg.d.ts +9 -0
  129. package/lib/components/guide-pc/components/processImg.js +226 -0
  130. package/lib/components/guide-pc/components/processImg.scss +117 -0
  131. package/lib/components/guide-pc/components/processImg.vue +300 -0
  132. package/lib/components/guide-pc/components/result.d.ts +7 -0
  133. package/lib/components/guide-pc/components/result.js +136 -0
  134. package/lib/components/guide-pc/components/result.scss +104 -0
  135. package/lib/components/guide-pc/components/result.vue +191 -0
  136. package/lib/components/guide-pc/components/situation.d.ts +12 -0
  137. package/lib/components/guide-pc/components/situation.js +147 -0
  138. package/lib/components/guide-pc/components/situation.scss +79 -0
  139. package/lib/components/guide-pc/components/situation.vue +430 -0
  140. package/lib/components/guide-pc/guide.vue +179 -0
  141. package/lib/components/guide-pc/imgs/bg.png +0 -0
  142. package/lib/components/guide-pc/imgs/cant.png +0 -0
  143. package/lib/components/guide-pc/imgs/dept.png +0 -0
  144. package/lib/components/guide-pc/imgs/error.png +0 -0
  145. package/lib/components/guide-pc/imgs/judge.png +0 -0
  146. package/lib/components/guide-pc/imgs/pass.png +0 -0
  147. package/lib/components/guide-pc/imgs/rightArr.png +0 -0
  148. package/lib/components/guide-pc/imgs/situation.png +0 -0
  149. package/lib/components/guide-pc/imgs/time.png +0 -0
  150. package/lib/components/guide-pc/imgs/titleL.png +0 -0
  151. package/lib/components/guide-pc/imgs/titleR.png +0 -0
  152. package/lib/components/guide-pc/index.d.ts +37 -0
  153. package/lib/components/guide-pc/index.js +445 -0
  154. package/lib/components/guide-pc/index.scss +185 -0
  155. package/lib/index.d.ts +2 -0
  156. package/lib/index.js +3 -1
  157. package/lowcode/guide-pc/meta.ts +338 -0
  158. package/lowcode_es/guide-pc/meta.d.ts +22 -0
  159. package/lowcode_es/guide-pc/meta.js +315 -0
  160. package/lowcode_es/meta.js +3 -2
  161. package/lowcode_lib/guide-pc/meta.d.ts +22 -0
  162. package/lowcode_lib/guide-pc/meta.js +320 -0
  163. package/lowcode_lib/meta.js +17 -16
  164. package/package.json +3 -3
  165. package/build/docs/umi.55472eae.js +0 -1
@@ -0,0 +1,144 @@
1
+ .places-content {
2
+ background: #ffffff;
3
+ border-radius: 8px;
4
+ padding: 12px 12px 0;
5
+ margin-top: 12px;
6
+
7
+ .inner-content {
8
+ background: #f5f6f8;
9
+ display: flex;
10
+ justify-content: space-between;
11
+ gap: 20px;
12
+ border-radius: 5px;
13
+ margin-top: 24px;
14
+
15
+ .map-con {
16
+ flex: 0.6;
17
+ border-radius: 5px;
18
+ overflow: hidden;
19
+ min-height: 300px;
20
+
21
+ .map-placeholder {
22
+ width: 100%;
23
+ height: 400px;
24
+ background: #e8edf3;
25
+ display: flex;
26
+ flex-direction: column;
27
+ justify-content: center;
28
+ align-items: center;
29
+ gap: 8px;
30
+
31
+ .map-marker {
32
+ width: 32px;
33
+ height: 32px;
34
+ background: #1678FF;
35
+ border-radius: 50% 50% 50% 0;
36
+ transform: rotate(-45deg);
37
+ position: relative;
38
+
39
+ &::after {
40
+ content: '';
41
+ position: absolute;
42
+ width: 12px;
43
+ height: 12px;
44
+ background: #fff;
45
+ border-radius: 50%;
46
+ top: 10px;
47
+ left: 10px;
48
+ }
49
+ }
50
+
51
+ .map-coords {
52
+ font-size: 13px;
53
+ color: #666;
54
+ }
55
+
56
+ .map-hint {
57
+ font-size: 12px;
58
+ color: #999;
59
+ }
60
+ }
61
+ }
62
+
63
+ .list-con {
64
+ flex: 0.4;
65
+ padding: 0 20px;
66
+
67
+ .item {
68
+ padding: 16px 0;
69
+ border-bottom: 1px solid #EEEEEE;
70
+ cursor: pointer;
71
+
72
+ &:last-child {
73
+ border: none;
74
+ }
75
+
76
+ &:hover {
77
+ background: #f0f5ff;
78
+ margin: 0 -20px;
79
+ padding: 16px 20px;
80
+ border-radius: 4px;
81
+ }
82
+
83
+ .name {
84
+ font-size: 16px;
85
+ font-weight: 500;
86
+ color: #333333;
87
+ margin-bottom: 12px;
88
+ }
89
+
90
+ .info {
91
+ display: flex;
92
+ justify-content: flex-start;
93
+ align-items: flex-start;
94
+ font-size: 14px;
95
+ line-height: 24px;
96
+ margin-top: 8px;
97
+ color: #222222;
98
+
99
+ .icon {
100
+ margin-right: 6px;
101
+ margin-top: 4px;
102
+ flex-shrink: 0;
103
+ }
104
+
105
+ .icon-address::before {
106
+ content: '📍';
107
+ }
108
+ .icon-time::before {
109
+ content: '🕐';
110
+ }
111
+ .icon-phone::before {
112
+ content: '📞';
113
+ }
114
+
115
+ .desc {
116
+ flex: 1;
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+
123
+ .empty-con {
124
+ background: #ffffff;
125
+ display: flex;
126
+ justify-content: center;
127
+ align-items: center;
128
+ flex-direction: column;
129
+ height: 50vh;
130
+
131
+ .empty-img {
132
+ width: 189px;
133
+ height: 120px;
134
+ background-size: 100% 100%;
135
+ background-repeat: no-repeat;
136
+ margin-bottom: 12px;
137
+ }
138
+
139
+ .empty-text {
140
+ font-size: 14px;
141
+ color: #8BB5ED;
142
+ }
143
+ }
144
+ }
@@ -0,0 +1,198 @@
1
+ <template>
2
+ <view class="places-content">
3
+ <guideTitle title="办事大厅" />
4
+
5
+ <view v-if="list.length" class="inner-content">
6
+ <view class="map-con">
7
+ <commonMap
8
+ :longitude="local.longitude"
9
+ :latitude="local.latitude"
10
+ :list="list"
11
+ mapH="400px"
12
+ mapW="800px"
13
+ @clickDot="clickDotHandle"
14
+ />
15
+ </view>
16
+ <view class="list-con">
17
+ <view
18
+ class="item"
19
+ v-for="item, index in list" :key="index"
20
+ @click="clickDotHandle(item)"
21
+ >
22
+ <view class="name">{{ item.hallName }}</view>
23
+ <view class="info">
24
+ <u-icon class="icon" name="map-fill" color="#666666" size="16" />
25
+ <view class="title_">地址:</view>
26
+ <view class="desc">{{ item.addressDetail }}</view>
27
+ </view>
28
+
29
+ <view class="info">
30
+ <u-icon class="icon" name="clock-fill" color="#666666" size="16" />
31
+ <view class="title_">时间:</view>
32
+ <view class="desc">
33
+ {{ item.firstStartTime }} - {{ item.firstEndTime }} /
34
+ {{ item.secondStartTime }} - {{ item.secondEndTime }}
35
+ </view>
36
+ </view>
37
+
38
+ <view class="info">
39
+ <u-icon class="icon" name="phone-fill" color="#666666" size="16" />
40
+ <view class="title_">电话:</view>
41
+ <view class="desc">{{ item.consultPhone }}</view>
42
+ </view>
43
+ </view>
44
+ </view>
45
+ </view>
46
+
47
+ <view class="empty-con" v-if="!list.length">
48
+ <view class="empty-img" :style="{backgroundImage: `url(${emptyImg})`}"></view>
49
+ <view class="empty-text">暂无办事大厅</view>
50
+ </view>
51
+ <!-- <empty
52
+ v-if="!list.length"
53
+ mode="address"
54
+ text="暂无办事大厅"
55
+ /> -->
56
+ </view>
57
+ </template>
58
+
59
+ <script>
60
+ import guideTitle from './guideTitle.vue'
61
+ export default {
62
+ components: { guideTitle },
63
+ data() {
64
+ return {
65
+ // 中心点位经纬度
66
+ local: {
67
+ longitude: NaN,
68
+ latitude: NaN
69
+ },
70
+ list: [],
71
+ emptyImg: '../static/img/declare/empty.png', // 背景图片
72
+ }
73
+ },
74
+ mounted() {
75
+ // this.init()
76
+ this.initData()
77
+ },
78
+ methods: {
79
+ // 初始化 成效分析
80
+ async initData() {
81
+ const { hallList } = uni.getStorageSync('eventInfo')
82
+ this.list = hallList
83
+ if(hallList.length) {
84
+ this.clickDotHandle(hallList[0])
85
+ }
86
+ },
87
+ // 初始化当前位置 [方法]
88
+ init() {
89
+ uni.getLocation({
90
+ success: (res) => {
91
+ const { latitude, longitude } = res
92
+ console.log('经纬度', latitude, longitude);
93
+ this.setCenter(latitude, longitude)
94
+ }
95
+ });
96
+ },
97
+ // 设置中心点经纬度 [方法]
98
+ setCenter(latitude, longitude) {
99
+ this.local.latitude = +latitude
100
+ this.local.longitude = +longitude
101
+ },
102
+ // 点击某个服务点 [地图][按钮]
103
+ clickDotHandle(point) {
104
+ console.log(point);
105
+ const { latitude, longitude } = point
106
+ if(latitude && longitude) {
107
+ this.setCenter(latitude, longitude)
108
+ }else{
109
+ this.setCenter(37.81, 112.52)
110
+ }
111
+ },
112
+
113
+
114
+ }
115
+ }
116
+ </script>
117
+
118
+ <style lang="scss" scoped>
119
+ .places-content{
120
+ background: #ffffff;
121
+ border-radius: 8px;
122
+ padding: 12px 12px 0;
123
+ margin-top: 12px;
124
+
125
+ .inner-content{
126
+ background: #f5f6f8;
127
+ display: flex;
128
+ justify-content: space-between;
129
+ align-items: center;
130
+ gap: 20px;
131
+ border-radius: 5px;
132
+ margin-top: 24px;
133
+
134
+ .map-con{
135
+ border-radius: 5px;
136
+ overflow: hidden;
137
+ // border: 1px solid red;
138
+ flex: .6;
139
+ // flex: 1;
140
+ }
141
+
142
+ .list-con{
143
+ // border: 1px solid green;
144
+ flex: .4;
145
+ padding: 0 20px;
146
+ .item{
147
+ padding: 16px 0;
148
+ border-bottom: 1px solid #EEEEEE;
149
+ &:last-child{
150
+ border: none;
151
+ }
152
+ .name{
153
+ font-size: 28px;
154
+ font-weight: 500;
155
+ color: #333333;
156
+ margin-bottom: 50px;
157
+ }
158
+ .info{
159
+ display: flex;
160
+ justify-content: flex-start;
161
+ align-items: flex-start;
162
+ font-size: 16px;
163
+ line-height: 24px;
164
+ margin-top: 16px;
165
+ color: #222222;
166
+ .icon{
167
+ margin-right: 6px;
168
+ margin-top: 4px;
169
+ }
170
+ .desc{
171
+ flex: 1;
172
+ }
173
+
174
+ }
175
+ }
176
+ }
177
+ }
178
+
179
+ .empty-con{
180
+ background: #ffffff;
181
+ display: flex;
182
+ justify-content: center;
183
+ align-items: center;
184
+ flex-direction: column;
185
+ height: 50vh;
186
+ .empty-img{
187
+ width: 189px;
188
+ height: 120px;
189
+ background-size: 100% 100%;
190
+ }
191
+ .empty-text{
192
+ font-size: 14px;
193
+ color: #8BB5ED;
194
+ margin-top: 5px;
195
+ }
196
+ }
197
+ }
198
+ </style>
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import './processImg.scss';
3
+ export interface ProcessImgProps {
4
+ eventInfo?: any;
5
+ baseUrl?: string;
6
+ declarationAppToken?: string;
7
+ }
8
+ declare const ProcessImg: React.FC<ProcessImgProps>;
9
+ export default ProcessImg;
@@ -0,0 +1,220 @@
1
+ import _Loading from "@alifd/next/es/loading";
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
+ import * as React from 'react';
6
+ import GuideTitle from "./guideTitle";
7
+ import "./processImg.scss";
8
+ import { getUrlById } from "../../../api.js";
9
+ var ProcessImg = function ProcessImg(_ref) {
10
+ var eventInfoProp = _ref.eventInfo,
11
+ baseUrlProp = _ref.baseUrl,
12
+ declarationAppTokenProp = _ref.declarationAppToken;
13
+ var _React$useState = React.useState(true),
14
+ loading = _React$useState[0],
15
+ setLoading = _React$useState[1];
16
+ var _React$useState2 = React.useState(''),
17
+ processImg = _React$useState2[0],
18
+ setProcessImg = _React$useState2[1];
19
+ var _React$useState3 = React.useState(0),
20
+ subIndex = _React$useState3[0],
21
+ setSubIndex = _React$useState3[1];
22
+ var _React$useState4 = React.useState([]),
23
+ strategyList = _React$useState4[0],
24
+ setStrategyList = _React$useState4[1];
25
+ var subList = ['办事攻略', '办事流程'];
26
+ React.useEffect(function () {
27
+ initData();
28
+ }, [eventInfoProp]);
29
+ var initData = /*#__PURE__*/function () {
30
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
31
+ var _eventInfo$taskGenera;
32
+ var eventInfo, imgObj, imgObjParsed, _urlRes$presignedUrlL, urlRes, strategies, _t;
33
+ return _regeneratorRuntime.wrap(function (_context) {
34
+ while (1) switch (_context.prev = _context.next) {
35
+ case 0:
36
+ eventInfo = eventInfoProp;
37
+ if (eventInfo) {
38
+ _context.next = 1;
39
+ break;
40
+ }
41
+ return _context.abrupt("return");
42
+ case 1:
43
+ // Process image (workflow chart)
44
+ imgObj = (_eventInfo$taskGenera = eventInfo.taskGeneralExtend) === null || _eventInfo$taskGenera === void 0 ? void 0 : _eventInfo$taskGenera.programProcess;
45
+ _context.prev = 2;
46
+ imgObjParsed = JSON.parse(imgObj);
47
+ if (!(imgObjParsed.length > 0 && imgObjParsed[0].id)) {
48
+ _context.next = 4;
49
+ break;
50
+ }
51
+ _context.next = 3;
52
+ return getUrlById({
53
+ id: imgObjParsed[0].id,
54
+ effectiveTime: 3600000
55
+ }, {
56
+ tokenTY: declarationAppTokenProp,
57
+ baseUrl: baseUrlProp
58
+ });
59
+ case 3:
60
+ urlRes = _context.sent;
61
+ if ((urlRes === null || urlRes === void 0 ? void 0 : (_urlRes$presignedUrlL = urlRes.presignedUrlList) === null || _urlRes$presignedUrlL === void 0 ? void 0 : _urlRes$presignedUrlL.length) > 0) {
62
+ setProcessImg(urlRes.presignedUrlList[2]);
63
+ }
64
+ setLoading(false);
65
+ _context.next = 5;
66
+ break;
67
+ case 4:
68
+ setLoading(false);
69
+ case 5:
70
+ _context.next = 7;
71
+ break;
72
+ case 6:
73
+ _context.prev = 6;
74
+ _t = _context["catch"](2);
75
+ setLoading(false);
76
+ case 7:
77
+ // Strategy guide list
78
+ strategies = eventInfo.applicationAffairsStrategy || [];
79
+ setStrategyList(strategies);
80
+
81
+ // Fetch file URLs for each strategy item
82
+ if (strategies.length > 0) {
83
+ strategies.forEach(function (ele, index) {
84
+ if (ele.fileId) {
85
+ getFileUrl(ele.fileId, index);
86
+ }
87
+ });
88
+ }
89
+ case 8:
90
+ case "end":
91
+ return _context.stop();
92
+ }
93
+ }, _callee, null, [[2, 6]]);
94
+ }));
95
+ return function initData() {
96
+ return _ref2.apply(this, arguments);
97
+ };
98
+ }();
99
+ var getFileUrl = /*#__PURE__*/function () {
100
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(id, index) {
101
+ var imgFormat, _urlRes$presignedUrlL2, urlRes, fileUrl, isImg, _t2;
102
+ return _regeneratorRuntime.wrap(function (_context2) {
103
+ while (1) switch (_context2.prev = _context2.next) {
104
+ case 0:
105
+ imgFormat = ['jpg', 'jpeg', 'png', 'gif'];
106
+ _context2.prev = 1;
107
+ _context2.next = 2;
108
+ return getUrlById({
109
+ id: id,
110
+ effectiveTime: 3600000
111
+ }, {
112
+ tokenTY: declarationAppTokenProp,
113
+ baseUrl: baseUrlProp
114
+ });
115
+ case 2:
116
+ urlRes = _context2.sent;
117
+ if ((urlRes === null || urlRes === void 0 ? void 0 : (_urlRes$presignedUrlL2 = urlRes.presignedUrlList) === null || _urlRes$presignedUrlL2 === void 0 ? void 0 : _urlRes$presignedUrlL2.length) > 0) {
118
+ fileUrl = urlRes.presignedUrlList[2];
119
+ isImg = imgFormat.some(function (fmt) {
120
+ return fileUrl.includes(fmt);
121
+ });
122
+ setStrategyList(function (prev) {
123
+ var next = [].concat(prev);
124
+ if (next[index]) {
125
+ next[index] = _extends({}, next[index], {
126
+ fileUrl: fileUrl,
127
+ isImg: isImg
128
+ });
129
+ }
130
+ return next;
131
+ });
132
+ }
133
+ _context2.next = 4;
134
+ break;
135
+ case 3:
136
+ _context2.prev = 3;
137
+ _t2 = _context2["catch"](1);
138
+ console.error(_t2);
139
+ case 4:
140
+ case "end":
141
+ return _context2.stop();
142
+ }
143
+ }, _callee2, null, [[1, 3]]);
144
+ }));
145
+ return function getFileUrl(_x, _x2) {
146
+ return _ref3.apply(this, arguments);
147
+ };
148
+ }();
149
+ var preView = function preView() {
150
+ // In mobile Vue version used uni.previewImage; in PC we open in a new tab
151
+ if (processImg) {
152
+ window.open(processImg);
153
+ }
154
+ };
155
+ return /*#__PURE__*/React.createElement("div", {
156
+ className: "processImg-content"
157
+ }, /*#__PURE__*/React.createElement(GuideTitle, {
158
+ title: "\u529E\u4E8B\u6D41\u7A0B"
159
+ }), /*#__PURE__*/React.createElement("div", {
160
+ className: "sub-con"
161
+ }, subList.map(function (item, index) {
162
+ return /*#__PURE__*/React.createElement("div", {
163
+ className: "sub-item " + (subIndex === index ? 'active' : ''),
164
+ key: index,
165
+ onClick: function onClick() {
166
+ return setSubIndex(index);
167
+ }
168
+ }, item);
169
+ })), subIndex === 0 && /*#__PURE__*/React.createElement("div", {
170
+ className: "card"
171
+ }, strategyList.length > 0 ? /*#__PURE__*/React.createElement("div", {
172
+ className: "list-con"
173
+ }, strategyList.map(function (item, index) {
174
+ return /*#__PURE__*/React.createElement("div", {
175
+ className: "item",
176
+ key: index
177
+ }, /*#__PURE__*/React.createElement("div", {
178
+ className: "title-con"
179
+ }, /*#__PURE__*/React.createElement("div", {
180
+ className: "num"
181
+ }, "0", index + 1), /*#__PURE__*/React.createElement("div", {
182
+ className: "item-title"
183
+ }, item.title)), /*#__PURE__*/React.createElement("div", {
184
+ className: "desc-con"
185
+ }, /*#__PURE__*/React.createElement("div", {
186
+ className: "desc-info"
187
+ }, /*#__PURE__*/React.createElement("div", {
188
+ className: "desc"
189
+ }, item.introduction), item.fileUrl && item.isImg && /*#__PURE__*/React.createElement("img", {
190
+ className: "video-con",
191
+ src: item.fileUrl,
192
+ alt: ""
193
+ }), item.fileUrl && !item.isImg && /*#__PURE__*/React.createElement("video", {
194
+ className: "video-con",
195
+ src: item.fileUrl,
196
+ controls: true
197
+ }))));
198
+ })) : /*#__PURE__*/React.createElement("div", {
199
+ className: "empty-text"
200
+ }, "\u6682\u65E0\u529E\u4E8B\u653B\u7565")), subIndex === 1 && /*#__PURE__*/React.createElement("div", {
201
+ className: "card"
202
+ }, processImg ? /*#__PURE__*/React.createElement("div", {
203
+ className: "imgView",
204
+ onClick: preView
205
+ }, /*#__PURE__*/React.createElement("img", {
206
+ src: processImg,
207
+ alt: "\u529E\u4E8B\u6D41\u7A0B",
208
+ style: {
209
+ width: '100%'
210
+ }
211
+ })) : /*#__PURE__*/React.createElement("div", {
212
+ className: "empty-content"
213
+ }, loading ? /*#__PURE__*/React.createElement(_Loading, {
214
+ tip: "\u52A0\u8F7D\u4E2D"
215
+ }) : /*#__PURE__*/React.createElement("div", {
216
+ className: "empty-text"
217
+ }, "\u6682\u65E0\u76F8\u5173\u6750\u6599"))));
218
+ };
219
+ ProcessImg.displayName = 'ProcessImg';
220
+ export default ProcessImg;
@@ -0,0 +1,117 @@
1
+ .processImg-content {
2
+ .sub-con {
3
+ display: flex;
4
+ gap: 0;
5
+ margin: 20px 0;
6
+ width: 240px;
7
+ border: 1px solid #e8e8e8;
8
+ border-radius: 4px;
9
+ overflow: hidden;
10
+
11
+ .sub-item {
12
+ flex: 1;
13
+ padding: 8px 0;
14
+ text-align: center;
15
+ font-size: 14px;
16
+ color: #666666;
17
+ cursor: pointer;
18
+ transition: all 0.2s;
19
+
20
+ &.active {
21
+ background: #1678FF;
22
+ color: #ffffff;
23
+ }
24
+
25
+ &:hover:not(.active) {
26
+ background: #f0f5ff;
27
+ }
28
+ }
29
+ }
30
+
31
+ .card {
32
+ width: 100%;
33
+ margin-bottom: 20px;
34
+
35
+ .list-con {
36
+ .item {
37
+ margin: 16px 0;
38
+ background: #f5f6f8;
39
+ padding: 20px;
40
+ border-radius: 8px;
41
+
42
+ .title-con {
43
+ display: flex;
44
+ justify-content: flex-start;
45
+ align-items: center;
46
+
47
+ .num {
48
+ background: linear-gradient(90deg, #73AEFF 0%, #1678FF 100%);
49
+ color: #ffffff;
50
+ font-size: 13px;
51
+ padding: 0 7px;
52
+ border-radius: 2px;
53
+ transform: skew(-10deg);
54
+ }
55
+ .item-title {
56
+ font-size: 16px;
57
+ font-weight: 500;
58
+ color: #333333;
59
+ margin-left: 10px;
60
+
61
+ &::after {
62
+ content: '';
63
+ display: block;
64
+ width: 68px;
65
+ height: 8px;
66
+ margin-top: -7px;
67
+ background: linear-gradient(90deg, #D9E9FF 0%, #FFFFFF 98%);
68
+ }
69
+ }
70
+ }
71
+
72
+ .desc-con {
73
+ margin-top: 10px;
74
+
75
+ .desc-info {
76
+ font-size: 14px;
77
+ line-height: 22px;
78
+ color: #333333;
79
+ border-radius: 8px;
80
+ display: flex;
81
+ justify-content: space-between;
82
+ align-items: flex-start;
83
+ gap: 50px;
84
+
85
+ .desc {
86
+ flex: 1;
87
+ }
88
+ .video-con {
89
+ width: 262px;
90
+ height: 146px;
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+
98
+ .imgView {
99
+ cursor: pointer;
100
+ margin: 20px 0;
101
+ img {
102
+ width: 100%;
103
+ }
104
+ }
105
+
106
+ .empty-content {
107
+ padding: 60px 0;
108
+ text-align: center;
109
+ }
110
+
111
+ .empty-text {
112
+ text-align: center;
113
+ padding: 40px;
114
+ color: #999;
115
+ font-size: 14px;
116
+ }
117
+ }