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,226 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
7
+ var _loading = _interopRequireDefault(require("@alifd/next/lib/loading"));
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _guideTitle = _interopRequireDefault(require("./guideTitle"));
12
+ require("./processImg.scss");
13
+ var _api = require("../../../api.js");
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t3 in e) "default" !== _t3 && {}.hasOwnProperty.call(e, _t3) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t3)) && (i.get || i.set) ? o(f, _t3, i) : f[_t3] = e[_t3]); return f; })(e, t); }
15
+ var ProcessImg = function ProcessImg(_ref) {
16
+ var eventInfoProp = _ref.eventInfo,
17
+ baseUrlProp = _ref.baseUrl,
18
+ declarationAppTokenProp = _ref.declarationAppToken;
19
+ var _React$useState = React.useState(true),
20
+ loading = _React$useState[0],
21
+ setLoading = _React$useState[1];
22
+ var _React$useState2 = React.useState(''),
23
+ processImg = _React$useState2[0],
24
+ setProcessImg = _React$useState2[1];
25
+ var _React$useState3 = React.useState(0),
26
+ subIndex = _React$useState3[0],
27
+ setSubIndex = _React$useState3[1];
28
+ var _React$useState4 = React.useState([]),
29
+ strategyList = _React$useState4[0],
30
+ setStrategyList = _React$useState4[1];
31
+ var subList = ['办事攻略', '办事流程'];
32
+ React.useEffect(function () {
33
+ initData();
34
+ }, [eventInfoProp]);
35
+ var initData = /*#__PURE__*/function () {
36
+ var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
37
+ var _eventInfo$taskGenera;
38
+ var eventInfo, imgObj, imgObjParsed, _urlRes$presignedUrlL, urlRes, strategies, _t;
39
+ return _regenerator["default"].wrap(function (_context) {
40
+ while (1) switch (_context.prev = _context.next) {
41
+ case 0:
42
+ eventInfo = eventInfoProp;
43
+ if (eventInfo) {
44
+ _context.next = 1;
45
+ break;
46
+ }
47
+ return _context.abrupt("return");
48
+ case 1:
49
+ // Process image (workflow chart)
50
+ imgObj = (_eventInfo$taskGenera = eventInfo.taskGeneralExtend) === null || _eventInfo$taskGenera === void 0 ? void 0 : _eventInfo$taskGenera.programProcess;
51
+ _context.prev = 2;
52
+ imgObjParsed = JSON.parse(imgObj);
53
+ if (!(imgObjParsed.length > 0 && imgObjParsed[0].id)) {
54
+ _context.next = 4;
55
+ break;
56
+ }
57
+ _context.next = 3;
58
+ return (0, _api.getUrlById)({
59
+ id: imgObjParsed[0].id,
60
+ effectiveTime: 3600000
61
+ }, {
62
+ tokenTY: declarationAppTokenProp,
63
+ baseUrl: baseUrlProp
64
+ });
65
+ case 3:
66
+ urlRes = _context.sent;
67
+ if ((urlRes === null || urlRes === void 0 ? void 0 : (_urlRes$presignedUrlL = urlRes.presignedUrlList) === null || _urlRes$presignedUrlL === void 0 ? void 0 : _urlRes$presignedUrlL.length) > 0) {
68
+ setProcessImg(urlRes.presignedUrlList[2]);
69
+ }
70
+ setLoading(false);
71
+ _context.next = 5;
72
+ break;
73
+ case 4:
74
+ setLoading(false);
75
+ case 5:
76
+ _context.next = 7;
77
+ break;
78
+ case 6:
79
+ _context.prev = 6;
80
+ _t = _context["catch"](2);
81
+ setLoading(false);
82
+ case 7:
83
+ // Strategy guide list
84
+ strategies = eventInfo.applicationAffairsStrategy || [];
85
+ setStrategyList(strategies);
86
+
87
+ // Fetch file URLs for each strategy item
88
+ if (strategies.length > 0) {
89
+ strategies.forEach(function (ele, index) {
90
+ if (ele.fileId) {
91
+ getFileUrl(ele.fileId, index);
92
+ }
93
+ });
94
+ }
95
+ case 8:
96
+ case "end":
97
+ return _context.stop();
98
+ }
99
+ }, _callee, null, [[2, 6]]);
100
+ }));
101
+ return function initData() {
102
+ return _ref2.apply(this, arguments);
103
+ };
104
+ }();
105
+ var getFileUrl = /*#__PURE__*/function () {
106
+ var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(id, index) {
107
+ var imgFormat, _urlRes$presignedUrlL2, urlRes, fileUrl, isImg, _t2;
108
+ return _regenerator["default"].wrap(function (_context2) {
109
+ while (1) switch (_context2.prev = _context2.next) {
110
+ case 0:
111
+ imgFormat = ['jpg', 'jpeg', 'png', 'gif'];
112
+ _context2.prev = 1;
113
+ _context2.next = 2;
114
+ return (0, _api.getUrlById)({
115
+ id: id,
116
+ effectiveTime: 3600000
117
+ }, {
118
+ tokenTY: declarationAppTokenProp,
119
+ baseUrl: baseUrlProp
120
+ });
121
+ case 2:
122
+ urlRes = _context2.sent;
123
+ if ((urlRes === null || urlRes === void 0 ? void 0 : (_urlRes$presignedUrlL2 = urlRes.presignedUrlList) === null || _urlRes$presignedUrlL2 === void 0 ? void 0 : _urlRes$presignedUrlL2.length) > 0) {
124
+ fileUrl = urlRes.presignedUrlList[2];
125
+ isImg = imgFormat.some(function (fmt) {
126
+ return fileUrl.includes(fmt);
127
+ });
128
+ setStrategyList(function (prev) {
129
+ var next = [].concat(prev);
130
+ if (next[index]) {
131
+ next[index] = (0, _extends2["default"])({}, next[index], {
132
+ fileUrl: fileUrl,
133
+ isImg: isImg
134
+ });
135
+ }
136
+ return next;
137
+ });
138
+ }
139
+ _context2.next = 4;
140
+ break;
141
+ case 3:
142
+ _context2.prev = 3;
143
+ _t2 = _context2["catch"](1);
144
+ console.error(_t2);
145
+ case 4:
146
+ case "end":
147
+ return _context2.stop();
148
+ }
149
+ }, _callee2, null, [[1, 3]]);
150
+ }));
151
+ return function getFileUrl(_x, _x2) {
152
+ return _ref3.apply(this, arguments);
153
+ };
154
+ }();
155
+ var preView = function preView() {
156
+ // In mobile Vue version used uni.previewImage; in PC we open in a new tab
157
+ if (processImg) {
158
+ window.open(processImg);
159
+ }
160
+ };
161
+ return /*#__PURE__*/React.createElement("div", {
162
+ className: "processImg-content"
163
+ }, /*#__PURE__*/React.createElement(_guideTitle["default"], {
164
+ title: "\u529E\u4E8B\u6D41\u7A0B"
165
+ }), /*#__PURE__*/React.createElement("div", {
166
+ className: "sub-con"
167
+ }, subList.map(function (item, index) {
168
+ return /*#__PURE__*/React.createElement("div", {
169
+ className: "sub-item " + (subIndex === index ? 'active' : ''),
170
+ key: index,
171
+ onClick: function onClick() {
172
+ return setSubIndex(index);
173
+ }
174
+ }, item);
175
+ })), subIndex === 0 && /*#__PURE__*/React.createElement("div", {
176
+ className: "card"
177
+ }, strategyList.length > 0 ? /*#__PURE__*/React.createElement("div", {
178
+ className: "list-con"
179
+ }, strategyList.map(function (item, index) {
180
+ return /*#__PURE__*/React.createElement("div", {
181
+ className: "item",
182
+ key: index
183
+ }, /*#__PURE__*/React.createElement("div", {
184
+ className: "title-con"
185
+ }, /*#__PURE__*/React.createElement("div", {
186
+ className: "num"
187
+ }, "0", index + 1), /*#__PURE__*/React.createElement("div", {
188
+ className: "item-title"
189
+ }, item.title)), /*#__PURE__*/React.createElement("div", {
190
+ className: "desc-con"
191
+ }, /*#__PURE__*/React.createElement("div", {
192
+ className: "desc-info"
193
+ }, /*#__PURE__*/React.createElement("div", {
194
+ className: "desc"
195
+ }, item.introduction), item.fileUrl && item.isImg && /*#__PURE__*/React.createElement("img", {
196
+ className: "video-con",
197
+ src: item.fileUrl,
198
+ alt: ""
199
+ }), item.fileUrl && !item.isImg && /*#__PURE__*/React.createElement("video", {
200
+ className: "video-con",
201
+ src: item.fileUrl,
202
+ controls: true
203
+ }))));
204
+ })) : /*#__PURE__*/React.createElement("div", {
205
+ className: "empty-text"
206
+ }, "\u6682\u65E0\u529E\u4E8B\u653B\u7565")), subIndex === 1 && /*#__PURE__*/React.createElement("div", {
207
+ className: "card"
208
+ }, processImg ? /*#__PURE__*/React.createElement("div", {
209
+ className: "imgView",
210
+ onClick: preView
211
+ }, /*#__PURE__*/React.createElement("img", {
212
+ src: processImg,
213
+ alt: "\u529E\u4E8B\u6D41\u7A0B",
214
+ style: {
215
+ width: '100%'
216
+ }
217
+ })) : /*#__PURE__*/React.createElement("div", {
218
+ className: "empty-content"
219
+ }, loading ? /*#__PURE__*/React.createElement(_loading["default"], {
220
+ tip: "\u52A0\u8F7D\u4E2D"
221
+ }) : /*#__PURE__*/React.createElement("div", {
222
+ className: "empty-text"
223
+ }, "\u6682\u65E0\u76F8\u5173\u6750\u6599"))));
224
+ };
225
+ ProcessImg.displayName = 'ProcessImg';
226
+ var _default = exports["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
+ }