ydb-components-material 0.1.125 → 0.1.126
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.
- package/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/{umi.35f02979.css → umi.57dda8ea.css} +1 -1
- package/build/docs/{umi.5327dbca.js → umi.af7442ae.js} +1 -1
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/3.js +2 -2
- package/build/lowcode/4.js +1 -1
- package/build/lowcode/5.js +1 -1
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/1.js +2 -2
- package/build/lowcode/render/default/2.js +1 -1
- package/build/lowcode/render/default/3.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/dist/1.js +2 -2
- package/dist/2.js +1 -1
- package/dist/3.js +1 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +15 -15
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-list/item.js +3 -1
- package/es/components/guide-pc/comment.js +4 -4
- package/es/components/guide-pc/comment.scss +3 -3
- package/es/components/guide-pc/components/accept.js +3 -3
- package/es/components/guide-pc/components/accept.scss +3 -3
- package/es/components/guide-pc/components/basicInfo.js +31 -31
- package/es/components/guide-pc/components/basicInfo.scss +5 -5
- package/es/components/guide-pc/components/eventInfo.d.ts +7 -0
- package/es/components/guide-pc/components/eventInfo.js +45 -0
- package/es/components/guide-pc/components/eventInfo.scss +36 -0
- package/es/components/guide-pc/components/guideTabs.js +2 -2
- package/es/components/guide-pc/components/guideTabs.scss +3 -2
- package/es/components/guide-pc/components/guideTitle.js +4 -4
- package/es/components/guide-pc/components/guideTitle.scss +3 -3
- package/es/components/guide-pc/components/materialsList.js +46 -49
- package/es/components/guide-pc/components/materialsList.scss +22 -22
- package/es/components/guide-pc/components/places.js +21 -21
- package/es/components/guide-pc/components/places.scss +19 -19
- package/es/components/guide-pc/components/processImg.js +19 -19
- package/es/components/guide-pc/components/processImg.scss +16 -16
- package/es/components/guide-pc/components/result.js +36 -36
- package/es/components/guide-pc/components/result.scss +15 -15
- package/es/components/guide-pc/components/situation.d.ts +4 -0
- package/es/components/guide-pc/components/situation.js +35 -31
- package/es/components/guide-pc/components/situation.scss +9 -9
- package/es/components/guide-pc/imgs/icon1.png +0 -0
- package/es/components/guide-pc/imgs/icon2.png +0 -0
- package/es/components/guide-pc/index.d.ts +1 -3
- package/es/components/guide-pc/index.js +41 -88
- package/es/components/guide-pc/index.scss +43 -103
- package/lib/components/file-list/item.js +3 -1
- package/lib/components/guide-pc/comment.js +4 -4
- package/lib/components/guide-pc/comment.scss +3 -3
- package/lib/components/guide-pc/components/accept.js +3 -3
- package/lib/components/guide-pc/components/accept.scss +3 -3
- package/lib/components/guide-pc/components/basicInfo.js +31 -31
- package/lib/components/guide-pc/components/basicInfo.scss +5 -5
- package/lib/components/guide-pc/components/eventInfo.d.ts +7 -0
- package/lib/components/guide-pc/components/eventInfo.js +51 -0
- package/lib/components/guide-pc/components/eventInfo.scss +36 -0
- package/lib/components/guide-pc/components/guideTabs.js +2 -2
- package/lib/components/guide-pc/components/guideTabs.scss +3 -2
- package/lib/components/guide-pc/components/guideTitle.js +4 -4
- package/lib/components/guide-pc/components/guideTitle.scss +3 -3
- package/lib/components/guide-pc/components/materialsList.js +46 -49
- package/lib/components/guide-pc/components/materialsList.scss +22 -22
- package/lib/components/guide-pc/components/places.js +21 -21
- package/lib/components/guide-pc/components/places.scss +19 -19
- package/lib/components/guide-pc/components/processImg.js +19 -19
- package/lib/components/guide-pc/components/processImg.scss +16 -16
- package/lib/components/guide-pc/components/result.js +36 -36
- package/lib/components/guide-pc/components/result.scss +15 -15
- package/lib/components/guide-pc/components/situation.d.ts +4 -0
- package/lib/components/guide-pc/components/situation.js +35 -31
- package/lib/components/guide-pc/components/situation.scss +9 -9
- package/lib/components/guide-pc/imgs/icon1.png +0 -0
- package/lib/components/guide-pc/imgs/icon2.png +0 -0
- package/lib/components/guide-pc/index.d.ts +1 -3
- package/lib/components/guide-pc/index.js +41 -88
- package/lib/components/guide-pc/index.scss +43 -103
- package/lowcode/guide-pc/meta.ts +1 -32
- package/lowcode_es/guide-pc/meta.js +0 -30
- package/lowcode_es/meta.js +1 -1
- package/lowcode_lib/guide-pc/meta.js +0 -30
- package/lowcode_lib/meta.js +1 -1
- package/package.json +3 -3
- package/es/components/guide-pc/comment.vue +0 -117
- package/es/components/guide-pc/components/accept.vue +0 -50
- package/es/components/guide-pc/components/basicInfo.vue +0 -81
- package/es/components/guide-pc/components/guideTabs.vue +0 -48
- package/es/components/guide-pc/components/guideTitle.vue +0 -43
- package/es/components/guide-pc/components/materialsList.vue +0 -403
- package/es/components/guide-pc/components/places.vue +0 -198
- package/es/components/guide-pc/components/processImg.vue +0 -300
- package/es/components/guide-pc/components/result.vue +0 -191
- package/es/components/guide-pc/components/situation.vue +0 -430
- package/es/components/guide-pc/guide.vue +0 -179
- package/es/components/guide-pc/imgs/error.png +0 -0
- package/es/components/guide-pc/imgs/judge.png +0 -0
- package/es/components/guide-pc/imgs/pass.png +0 -0
- package/lib/components/guide-pc/comment.vue +0 -117
- package/lib/components/guide-pc/components/accept.vue +0 -50
- package/lib/components/guide-pc/components/basicInfo.vue +0 -81
- package/lib/components/guide-pc/components/guideTabs.vue +0 -48
- package/lib/components/guide-pc/components/guideTitle.vue +0 -43
- package/lib/components/guide-pc/components/materialsList.vue +0 -403
- package/lib/components/guide-pc/components/places.vue +0 -198
- package/lib/components/guide-pc/components/processImg.vue +0 -300
- package/lib/components/guide-pc/components/result.vue +0 -191
- package/lib/components/guide-pc/components/situation.vue +0 -430
- package/lib/components/guide-pc/guide.vue +0 -179
- package/lib/components/guide-pc/imgs/error.png +0 -0
- package/lib/components/guide-pc/imgs/judge.png +0 -0
- package/lib/components/guide-pc/imgs/pass.png +0 -0
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="materialsList-content">
|
|
3
|
-
|
|
4
|
-
<!-- 表格 -->
|
|
5
|
-
|
|
6
|
-
<view class="table-con">
|
|
7
|
-
<el-table
|
|
8
|
-
:data="list"
|
|
9
|
-
stripe
|
|
10
|
-
row-key="id"
|
|
11
|
-
border
|
|
12
|
-
:tree-props="{children: 'subMaterials'}"
|
|
13
|
-
default-expand-all
|
|
14
|
-
>
|
|
15
|
-
<el-table-column
|
|
16
|
-
prop="materialName"
|
|
17
|
-
label="材料名称"
|
|
18
|
-
/>
|
|
19
|
-
<el-table-column
|
|
20
|
-
prop="materialExample"
|
|
21
|
-
label="材料分类"
|
|
22
|
-
align="center"
|
|
23
|
-
width="100"
|
|
24
|
-
>
|
|
25
|
-
<view slot-scope="{ row }" class="type-content" style="text-align: center;">
|
|
26
|
-
<template v-if="!row.subMaterials">
|
|
27
|
-
<view v-if="getFileType(row) == '智'" class="type type-zhi" @click="showTip('智')" />
|
|
28
|
-
<view v-if="getFileType(row) == '享'" class="type type-xiang" @click="showTip('享')" />
|
|
29
|
-
<view v-if="getFileType(row) == '自'" class="type type-zi" @click="showTip('自')" />
|
|
30
|
-
</template>
|
|
31
|
-
</view>
|
|
32
|
-
</el-table-column>
|
|
33
|
-
<el-table-column
|
|
34
|
-
prop="materialExample"
|
|
35
|
-
label="材料必要性"
|
|
36
|
-
align="center"
|
|
37
|
-
>
|
|
38
|
-
<view slot-scope="{ row }">
|
|
39
|
-
{{ row.isNeed == '1' ? '必要' : '非必要' }}
|
|
40
|
-
</view>
|
|
41
|
-
</el-table-column>
|
|
42
|
-
<el-table-column
|
|
43
|
-
prop="materialExample"
|
|
44
|
-
label="样表"
|
|
45
|
-
align="center"
|
|
46
|
-
>
|
|
47
|
-
<view class="link" slot-scope="{ row }">
|
|
48
|
-
<view v-for="item in initMaterialExample(row)" class="item" @click="previewFile(item)">
|
|
49
|
-
{{ item.name }}
|
|
50
|
-
</view>
|
|
51
|
-
</view>
|
|
52
|
-
</el-table-column>
|
|
53
|
-
|
|
54
|
-
<el-table-column
|
|
55
|
-
prop="formGuid"
|
|
56
|
-
label="空白表格"
|
|
57
|
-
align="center"
|
|
58
|
-
>
|
|
59
|
-
<view class="link" slot-scope="{ row }">
|
|
60
|
-
<view v-for="item in initFormGuid(row)" class="item" @click="goDownLoad(item)">
|
|
61
|
-
{{ item.name }}
|
|
62
|
-
</view>
|
|
63
|
-
</view>
|
|
64
|
-
</el-table-column>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<el-table-column
|
|
68
|
-
label="审查要点"
|
|
69
|
-
align="center"
|
|
70
|
-
>
|
|
71
|
-
<view v-if="row.keyPoint" class="link" slot-scope="{ row }" @click="checkPoint(row)">
|
|
72
|
-
查看
|
|
73
|
-
</view>
|
|
74
|
-
</el-table-column>
|
|
75
|
-
|
|
76
|
-
</el-table>
|
|
77
|
-
</view>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<!-- 预览的展示区域 -->
|
|
81
|
-
<u-popup
|
|
82
|
-
:show="previewShow"
|
|
83
|
-
closeable
|
|
84
|
-
round="10"
|
|
85
|
-
mode="center"
|
|
86
|
-
bgColor="transparent"
|
|
87
|
-
@close="previewShow = false"
|
|
88
|
-
>
|
|
89
|
-
<view class="preview-inner">
|
|
90
|
-
<view class="loading-con" v-if="previewLoading">
|
|
91
|
-
<u-loading-icon text="加载中..." textSize="18" />
|
|
92
|
-
</view>
|
|
93
|
-
<!-- v-if="!previewLoading" -->
|
|
94
|
-
<iframe
|
|
95
|
-
id="previewIframe"
|
|
96
|
-
frameborder="0"
|
|
97
|
-
height="100%"
|
|
98
|
-
width="100%"
|
|
99
|
-
/>
|
|
100
|
-
</view>
|
|
101
|
-
</u-popup>
|
|
102
|
-
|
|
103
|
-
</view>
|
|
104
|
-
</template>
|
|
105
|
-
|
|
106
|
-
<script>
|
|
107
|
-
import { getFileUrlApi, previewFileApi } from '@/api/business.js'
|
|
108
|
-
import { hasShareFile } from '@/utils/testShareFile.js'
|
|
109
|
-
export default {
|
|
110
|
-
data() {
|
|
111
|
-
return {
|
|
112
|
-
list: [],
|
|
113
|
-
|
|
114
|
-
previewShow: false,
|
|
115
|
-
previewLoading: false,
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
mounted() {
|
|
119
|
-
// this.initData()
|
|
120
|
-
this.initDataNew()
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
methods: {
|
|
124
|
-
// 初始化材料列表
|
|
125
|
-
initDataNew() {
|
|
126
|
-
const finalMaterials = uni.getStorageSync('finalMaterials')
|
|
127
|
-
const { taskGeneralMaterials } = uni.getStorageSync('eventInfo')
|
|
128
|
-
this.list = finalMaterials || taskGeneralMaterials
|
|
129
|
-
console.log(this.list, 'this.list');
|
|
130
|
-
},
|
|
131
|
-
// 展示材料类型的提示信息
|
|
132
|
-
showTip(type) {
|
|
133
|
-
const obj = {
|
|
134
|
-
'智': '本材料为智能生成材料,系统将根据您填写的信息自动生成申报材料。',
|
|
135
|
-
'享': '本材料为共享材料,数据由大数据共享获取,无需用户自行准备。',
|
|
136
|
-
'自': '需要用户自行准备申报材料'
|
|
137
|
-
}
|
|
138
|
-
uni.$u.toast(obj[type], 3000)
|
|
139
|
-
},
|
|
140
|
-
// 查询材料的类型
|
|
141
|
-
getFileType(file) {
|
|
142
|
-
let finalType = ''
|
|
143
|
-
if(file.formConvertMaterial) { // 智能制作材料
|
|
144
|
-
finalType = '智'
|
|
145
|
-
} else if(file.noNeedSubmit) { // 共享材料(免于提交)
|
|
146
|
-
finalType = '享'
|
|
147
|
-
}else{ // 自备材料
|
|
148
|
-
finalType = '自'
|
|
149
|
-
}
|
|
150
|
-
return finalType
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
// 审查要点 [按钮]
|
|
154
|
-
checkPoint(item) {
|
|
155
|
-
const keyPoint = item.keyPoint
|
|
156
|
-
if(!keyPoint.fileUrl) {
|
|
157
|
-
uni.$u.toast('该审查要点暂时无法查看')
|
|
158
|
-
return
|
|
159
|
-
}
|
|
160
|
-
uni.setStorageSync('keyPoint', keyPoint)
|
|
161
|
-
uni.navigateTo({
|
|
162
|
-
url: `/pagesDeclarePc/keyPoints`
|
|
163
|
-
})
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
// ============空表下载开始============
|
|
168
|
-
// 去下载页面[方法]
|
|
169
|
-
async goDownLoad(fileObj) {
|
|
170
|
-
console.log('下载文件', fileObj);
|
|
171
|
-
const fileId = fileObj.id || fileObj.url
|
|
172
|
-
const fileUrl = await this.getFileUrlFun(fileId)
|
|
173
|
-
const nameArr = fileObj.name.split('.')
|
|
174
|
-
const format = nameArr[nameArr.length - 1]
|
|
175
|
-
|
|
176
|
-
const url = fileUrl.split('?')[0]
|
|
177
|
-
const params = JSON.stringify(this.parseURLParams(fileUrl))
|
|
178
|
-
|
|
179
|
-
// uni.webView.navigateTo({
|
|
180
|
-
// url: `/pages/common/downLoad?params=${params}&format=${format}&fileUrl=${url}`
|
|
181
|
-
// })
|
|
182
|
-
// jWeixin.miniProgram.navigateTo({
|
|
183
|
-
// url: `/pages/common/downLoad?params=${params}&format=${format}&fileUrl=${url}`
|
|
184
|
-
// })
|
|
185
|
-
console.log(this.$getEnv(), '当前环境====');
|
|
186
|
-
|
|
187
|
-
if(this.$getEnv().wx) { // 微信小程序
|
|
188
|
-
jWeixin.miniProgram.navigateTo({
|
|
189
|
-
url: `/pages/common/downLoad?params=${params}&format=${format}&fileUrl=${url}`
|
|
190
|
-
})
|
|
191
|
-
}else if(this.$getEnv().my) { // 支付宝小程序
|
|
192
|
-
my.navigateTo({
|
|
193
|
-
url: `/pages/common/downLoad?params=${params}&format=${format}&fileUrl=${url}`
|
|
194
|
-
})
|
|
195
|
-
}else{
|
|
196
|
-
window.open(fileUrl)
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
// ============空表下载结束============
|
|
200
|
-
|
|
201
|
-
// ============ 样表预览开始 ============
|
|
202
|
-
// 样表预览 [按钮]
|
|
203
|
-
async previewFile({ url }) {
|
|
204
|
-
const fileUrl = await this.getFileUrlFun(url)
|
|
205
|
-
this.preview(fileUrl)
|
|
206
|
-
},
|
|
207
|
-
|
|
208
|
-
// 预览材料 [方法]
|
|
209
|
-
async preview(fileUrl) {
|
|
210
|
-
this.previewShow = true
|
|
211
|
-
this.previewLoading = true
|
|
212
|
-
const pageUrl = await this.previewFileFun(fileUrl)
|
|
213
|
-
this.previewUrl = pageUrl
|
|
214
|
-
console.log('预览地址', pageUrl);
|
|
215
|
-
// this.previewShow = true
|
|
216
|
-
setTimeout(() => {
|
|
217
|
-
document.getElementById('previewIframe').src = pageUrl
|
|
218
|
-
}, 500);
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
// 通过文件地址 获取预览地址
|
|
222
|
-
previewFileFun(fileUrl) {
|
|
223
|
-
const params = { url: fileUrl }
|
|
224
|
-
return new Promise((resolve, reject) => {
|
|
225
|
-
previewFileApi(params).then((res) => {
|
|
226
|
-
const { url } = res
|
|
227
|
-
resolve(url)
|
|
228
|
-
this.previewLoading = false
|
|
229
|
-
}).catch(err => {
|
|
230
|
-
console.log(err)
|
|
231
|
-
reject(err)
|
|
232
|
-
this.previewLoading = false
|
|
233
|
-
})
|
|
234
|
-
|
|
235
|
-
})
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
// ============ 样表预览结束 ============
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
// 将url的参数进行解构 [方法]
|
|
242
|
-
parseURLParams(url) {
|
|
243
|
-
let queryParams = {}
|
|
244
|
-
// 正则匹配规则
|
|
245
|
-
let reg = /([^?=&]+)=([^?=&]+)/g
|
|
246
|
-
// 利用replace替换
|
|
247
|
-
url.replace(reg, function() {
|
|
248
|
-
// 用伪数组进行键值对拼接
|
|
249
|
-
queryParams[arguments[1]] = arguments[2]
|
|
250
|
-
})
|
|
251
|
-
// 返回参数键值对
|
|
252
|
-
return queryParams
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
// =============== API ===============
|
|
256
|
-
// 通过文件id获取文件地址
|
|
257
|
-
getFileUrlFun(id) {
|
|
258
|
-
const params = {
|
|
259
|
-
effectiveTime: '3600',
|
|
260
|
-
id
|
|
261
|
-
}
|
|
262
|
-
return new Promise((resole) => {
|
|
263
|
-
getFileUrlApi(params).then((res) => {
|
|
264
|
-
if(res && res.presignedUrlList && res.presignedUrlList.length > 0) {
|
|
265
|
-
resole(res.presignedUrlList[2])
|
|
266
|
-
}else{
|
|
267
|
-
uni.$u.toast('暂无相关材料')
|
|
268
|
-
}
|
|
269
|
-
}).catch(err => {
|
|
270
|
-
console.log(err)
|
|
271
|
-
uni.$u.toast('暂无相关材料')
|
|
272
|
-
})
|
|
273
|
-
})
|
|
274
|
-
},
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
// 展示空表
|
|
278
|
-
initFormGuid(row) {
|
|
279
|
-
if(!row.formGuid || row.formGuid == '[]') {
|
|
280
|
-
return ''
|
|
281
|
-
} else {
|
|
282
|
-
const formGuidJson = JSON.parse(row.formGuid)
|
|
283
|
-
return formGuidJson
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
// 展示样表
|
|
287
|
-
initMaterialExample(row) {
|
|
288
|
-
if(!row.materialExample || row.materialExample == '[]') {
|
|
289
|
-
return ''
|
|
290
|
-
} else {
|
|
291
|
-
const formGuidJson = JSON.parse(row.materialExample)
|
|
292
|
-
return formGuidJson
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
</script>
|
|
299
|
-
|
|
300
|
-
<style lang="scss" scoped>
|
|
301
|
-
/deep/ .el-table{
|
|
302
|
-
color: #222222;
|
|
303
|
-
}
|
|
304
|
-
/deep/ .el-table thead{
|
|
305
|
-
color: #222222;
|
|
306
|
-
}
|
|
307
|
-
/deep/ .el-table th.el-table__cell{
|
|
308
|
-
background: #f7f8fa !important;
|
|
309
|
-
}
|
|
310
|
-
/deep/ .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{
|
|
311
|
-
background: #f7f8fa !important;
|
|
312
|
-
}
|
|
313
|
-
.materialsList-content{
|
|
314
|
-
padding-top: 20px;
|
|
315
|
-
|
|
316
|
-
.list{
|
|
317
|
-
.item{
|
|
318
|
-
background: #ffffff;
|
|
319
|
-
margin-bottom: 12px;
|
|
320
|
-
padding: 16px;
|
|
321
|
-
border-radius: 8px;
|
|
322
|
-
.title-con{
|
|
323
|
-
display: flex;
|
|
324
|
-
justify-content: flex-start;
|
|
325
|
-
align-items: center;
|
|
326
|
-
.type{
|
|
327
|
-
width: 20px;
|
|
328
|
-
height: 17px;
|
|
329
|
-
border-radius: 4px;
|
|
330
|
-
// box-sizing: border-box;
|
|
331
|
-
border: 1px solid #1678FF;
|
|
332
|
-
color: #1678FF;
|
|
333
|
-
font-size: 12px;
|
|
334
|
-
display: flex;
|
|
335
|
-
justify-content: center;
|
|
336
|
-
align-items: center;
|
|
337
|
-
margin-right: 8px;
|
|
338
|
-
}
|
|
339
|
-
.type1{
|
|
340
|
-
border: 1px solid #369EB7;
|
|
341
|
-
color: #369EB7;
|
|
342
|
-
}
|
|
343
|
-
.type2{
|
|
344
|
-
border: 1px solid #8358F6;
|
|
345
|
-
color: #8358F6;
|
|
346
|
-
}
|
|
347
|
-
.title{
|
|
348
|
-
font-size: 15px;
|
|
349
|
-
font-weight: 500;
|
|
350
|
-
color: #333333;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
.table-con{
|
|
354
|
-
margin-top: 30px;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.preview-inner{
|
|
360
|
-
height: 900px;
|
|
361
|
-
width: 800px;
|
|
362
|
-
}
|
|
363
|
-
.link{
|
|
364
|
-
color: #1678FF;
|
|
365
|
-
cursor: pointer;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.type-content{
|
|
369
|
-
display: flex;
|
|
370
|
-
justify-content: center;
|
|
371
|
-
align-items: center;
|
|
372
|
-
}
|
|
373
|
-
.type{
|
|
374
|
-
width: 20px;
|
|
375
|
-
height: 18px;
|
|
376
|
-
border-radius: 4px;
|
|
377
|
-
font-size: 12px;
|
|
378
|
-
display: flex;
|
|
379
|
-
justify-content: center;
|
|
380
|
-
align-items: center;
|
|
381
|
-
color: #ffffff;
|
|
382
|
-
padding-bottom: 2px;
|
|
383
|
-
}
|
|
384
|
-
.type-zhi{
|
|
385
|
-
background: #1678FF;
|
|
386
|
-
&::after{
|
|
387
|
-
content: '智';
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
.type-zi{
|
|
391
|
-
background: #9570F7;
|
|
392
|
-
&::after{
|
|
393
|
-
content: '自';
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
.type-xiang{
|
|
397
|
-
background: #15BC83;
|
|
398
|
-
&::after{
|
|
399
|
-
content: '享';
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
</style>
|
|
@@ -1,198 +0,0 @@
|
|
|
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>
|