正在显示
2 个修改的文件
包含
460 行增加
和
452 行删除
... | ... | @@ -7,146 +7,148 @@ |
7 | 7 | <view class="t1"> |
8 | 8 | {{desc}} |
9 | 9 | </view> |
10 | - </view> | |
11 | - <view style="background-color: #fff; margin-top: 20rpx;"> | |
12 | - <view class="nav_bar_topV65"> | |
13 | - <!-- <u-tabs :height="104" :list="menu_list" :active-color="'#26B961'" :is-scroll="false" | |
14 | - :current="current" @click="change" :active-item-style="{'color':'#000'}"> | |
15 | - </u-tabs> --> | |
16 | - <u-tabs :list="menu_list" @click="click" :lineColor="'#26B961'"></u-tabs> | |
17 | - </view> | |
18 | - </view> | |
19 | - <view v-if="current==0"> | |
20 | - <view class="timeb"> | |
21 | - <view v-if="detailObj.status == 'wait'" class="status" style="color: #F49A23;"> | |
22 | - 待处理 | |
23 | - </view> | |
24 | - <view v-else-if="detailObj.status == 'adopt'" class="status" style="color: #0CB17A;"> | |
25 | - 已通过 | |
26 | - </view> | |
27 | - <view v-else-if="detailObj.status == 'reject'" class="status" style="color: red;"> | |
28 | - 已驳回 | |
29 | - </view> | |
30 | - <!-- <image class="sxdw_icon116" :src="statusImg" mode=""></image> --> | |
31 | - <view style="margin-top: 20px;"> | |
32 | - <view> | |
33 | - <view v-for="(item,index) in questions" :key="index"> | |
34 | - <view class="nodef"> | |
35 | - <!-- <template v-slot:node> --> | |
36 | - <view class="node1"> | |
37 | - <view :class="item.title == '新单位信息'?'u-green-node':'u-node'"></view> | |
38 | - <view class="line"></view> | |
39 | - </view> | |
40 | - <!-- </template> --> | |
41 | - <!-- <template v-slot:content> --> | |
42 | - <view class="node2"> | |
43 | - <view class='u-order-title'>{{item.title}}</view> | |
44 | - <view class='u-order-reply'> | |
45 | - <view v-for="(item1,index1) in item.desc" :key="index1"> | |
46 | - <view style="margin-bottom: 20rpx; overflow: hidden;"> | |
47 | - <text style="font-size: 13px;color: rgba(0,0,0,0.65);">{{item1.title}}</text> | |
48 | - <text style="font-size: 13px;color: rgba(0,0,0,1);margin-left: 4px;">{{item1.desc}}</text> | |
49 | - </view> | |
50 | - </view> | |
51 | - </view> | |
52 | - </view> | |
53 | - <!-- </template> --> | |
54 | - </view> | |
55 | - </view> | |
56 | - </view> | |
57 | - </view> | |
58 | - </view> | |
59 | - <view style="height: 94px;"></view> | |
60 | - <!-- <view class="btv"> | |
61 | - <view class="btn" @click="onenter"> | |
62 | - 撤销申请 | |
63 | - </view> | |
64 | - </view> --> | |
65 | - <view class="footer" v-if="detailObj.status == 'wait'"> | |
66 | - <view class="left_btn"> | |
67 | - <c-button type="cancel" text="驳回" @click="handelCancel"> | |
68 | - </c-button> | |
69 | - </view> | |
70 | - <view class="right_btn"> | |
71 | - <c-button type="confirm" text="通过" @click="hancelSubmit"> | |
72 | - </c-button> | |
73 | - </view> | |
74 | - </view> | |
75 | 10 | </view> |
76 | - <view v-else> | |
77 | - <view v-if="JSON.stringify(clObj) != '{}' && clObj" class="bczl"> | |
78 | - <view class="t"> | |
79 | - <view class="green"></view> | |
80 | - <view class="title"> | |
81 | - 上传时间 | |
82 | - </view> | |
83 | - </view> | |
84 | - <view class="desc"> | |
85 | - <!-- 2022年10月26日 17:22:10 --> | |
86 | - {{$u.timeFrom(clObj.createdTime)}} | |
87 | - </view> | |
88 | - <view class="t" style="margin-top: 72rpx;"> | |
89 | - <view class="green"></view> | |
90 | - <view class="title"> | |
91 | - 备注 | |
92 | - </view> | |
93 | - </view> | |
94 | - <view class="desc"> | |
95 | - {{clObj.remarks}} | |
96 | - </view> | |
97 | - <view class="t" style="margin-top: 72rpx;"> | |
98 | - <view class="green"></view> | |
99 | - <view class="title"> | |
100 | - 照片 | |
101 | - </view> | |
102 | - </view> | |
103 | - <view style="margin-top: 32rpx;"> | |
104 | - <u-grid :col="3" :border="false"> | |
105 | - <u-grid-item v-for="(item, index) in picList" :key="index"> | |
106 | - <u-image :height="196" :width="196" :src="item"></u-image> | |
107 | - </u-grid-item> | |
108 | - </u-grid> | |
109 | - </view> | |
110 | - <view class="t" style="margin-top: 72rpx;"> | |
111 | - <view class="green"></view> | |
112 | - <view class="title"> | |
113 | - 附件 | |
114 | - </view> | |
115 | - </view> | |
116 | - <view class="pdffj" v-for="(item,index) in fileList " @click="openLink(item)"> | |
117 | - <image class="img" src="/static/img/common/link.png"></image> | |
118 | - <text class="look">{{item.filename}}</text> | |
119 | - <!-- <text class="look">{{item.filename}}</text> --> | |
120 | - </view> | |
121 | - </view> | |
122 | - <view v-else class="bczl"> | |
123 | - <view class="no_data"> | |
124 | - <image class="img" src="/static/img/home/nodata.png"></image> | |
125 | - <view style=" | |
126 | - font-size: 16px; | |
127 | - color: #333333; | |
128 | - margin-top: 60rpx; | |
129 | - text-align: center; | |
130 | - ">暂无数据</view> | |
131 | - </view> | |
132 | - </view> | |
133 | - <view style="height: 94px;"></view> | |
134 | - <!-- <view v-if="cjtype" class="btv"> | |
135 | - <view class="btn" @click="editClick"> | |
136 | - {{(JSON.stringify(clObj) != '{}' && clObj)?'编辑':'上传报名材料'}} | |
137 | - </view> | |
138 | - </view> --> | |
11 | + <view style="background-color: #fff; margin-top: 20rpx;"> | |
12 | + <view class="nav_bar_topV65"> | |
13 | + <!-- <u-tabs :height="104" :list="menu_list" :active-color="'#26B961'" :is-scroll="false" | |
14 | + :current="current" @click="change" :active-item-style="{'color':'#000'}"> | |
15 | + </u-tabs> --> | |
16 | + <u-tabs :list="menu_list" @click="click" :lineColor="'#26B961'"></u-tabs> | |
17 | + </view> | |
18 | + </view> | |
19 | + <view v-if="current==0"> | |
20 | + <view class="timeb"> | |
21 | + <view v-if="detailObj.status == 'wait'" class="status" style="color: #F49A23;"> | |
22 | + 待处理 | |
23 | + </view> | |
24 | + <view v-else-if="detailObj.status == 'adopt'" class="status" style="color: #0CB17A;"> | |
25 | + 已通过 | |
26 | + </view> | |
27 | + <view v-else-if="detailObj.status == 'reject'" class="status" style="color: red;"> | |
28 | + 已驳回 | |
29 | + </view> | |
30 | + <!-- <image class="sxdw_icon116" :src="statusImg" mode=""></image> --> | |
31 | + <view style="margin-top: 20px;"> | |
32 | + <view> | |
33 | + <view v-for="(item,index) in questions" :key="index"> | |
34 | + <view class="nodef"> | |
35 | + <!-- <template v-slot:node> --> | |
36 | + <view class="node1"> | |
37 | + <view :class="item.title == '新单位信息'?'u-green-node':'u-node'"></view> | |
38 | + <view class="line"></view> | |
39 | + </view> | |
40 | + <!-- </template> --> | |
41 | + <!-- <template v-slot:content> --> | |
42 | + <view class="node2"> | |
43 | + <view class='u-order-title'>{{item.title}}</view> | |
44 | + <view class='u-order-reply'> | |
45 | + <view v-for="(item1,index1) in item.desc" :key="index1"> | |
46 | + <view style="margin-bottom: 20rpx; overflow: hidden;"> | |
47 | + <text | |
48 | + style="font-size: 13px;color: rgba(0,0,0,0.65);">{{item1.title}}</text> | |
49 | + <text | |
50 | + style="font-size: 13px;color: rgba(0,0,0,1);margin-left: 4px;">{{item1.desc}}</text> | |
51 | + </view> | |
52 | + </view> | |
53 | + </view> | |
54 | + </view> | |
55 | + <!-- </template> --> | |
56 | + </view> | |
57 | + </view> | |
58 | + </view> | |
59 | + </view> | |
60 | + </view> | |
61 | + <view style="height: 94px;"></view> | |
62 | + <!-- <view class="btv"> | |
63 | + <view class="btn" @click="onenter"> | |
64 | + 撤销申请 | |
65 | + </view> | |
66 | + </view> --> | |
67 | + <view class="footer" v-if="detailObj.status == 'wait'"> | |
68 | + <view class="left_btn"> | |
69 | + <c-button type="cancel" text="驳回" @click="handelCancel"> | |
70 | + </c-button> | |
71 | + </view> | |
72 | + <view class="right_btn"> | |
73 | + <c-button type="confirm" text="通过" @click="hancelSubmit"> | |
74 | + </c-button> | |
75 | + </view> | |
76 | + </view> | |
77 | + </view> | |
78 | + <view v-else> | |
79 | + <view v-if="JSON.stringify(clObj) != '{}' && clObj" class="bczl"> | |
80 | + <view class="t"> | |
81 | + <view class="green"></view> | |
82 | + <view class="title"> | |
83 | + 上传时间 | |
84 | + </view> | |
85 | + </view> | |
86 | + <view class="desc"> | |
87 | + <!-- 2022年10月26日 17:22:10 --> | |
88 | + {{$u.timeFrom(clObj.createdTime)}} | |
89 | + </view> | |
90 | + <view class="t" style="margin-top: 72rpx;"> | |
91 | + <view class="green"></view> | |
92 | + <view class="title"> | |
93 | + 备注 | |
94 | + </view> | |
95 | + </view> | |
96 | + <view class="desc"> | |
97 | + {{clObj.remarks}} | |
98 | + </view> | |
99 | + <view class="t" style="margin-top: 72rpx;"> | |
100 | + <view class="green"></view> | |
101 | + <view class="title"> | |
102 | + 照片 | |
103 | + </view> | |
104 | + </view> | |
105 | + <view style="margin-top: 32rpx;"> | |
106 | + <u-grid :col="3" :border="false"> | |
107 | + <u-grid-item v-for="(item, index) in picList" :key="index"> | |
108 | + <u-image :height="196" :width="196" :src="item"></u-image> | |
109 | + </u-grid-item> | |
110 | + </u-grid> | |
111 | + </view> | |
112 | + <view class="t" style="margin-top: 72rpx;"> | |
113 | + <view class="green"></view> | |
114 | + <view class="title"> | |
115 | + 附件 | |
116 | + </view> | |
117 | + </view> | |
118 | + <view class="pdffj" v-for="(item,index) in fileList " @click="openLink(item)"> | |
119 | + <image class="img" src="/static/img/common/link.png"></image> | |
120 | + <text class="look">{{item.filename}}</text> | |
121 | + <!-- <text class="look">{{item.filename}}</text> --> | |
122 | + </view> | |
123 | + </view> | |
124 | + <view v-else class="bczl"> | |
125 | + <view class="no_data"> | |
126 | + <image class="img" src="/static/img/home/nodata.png"></image> | |
127 | + <view style=" | |
128 | + font-size: 16px; | |
129 | + color: #333333; | |
130 | + margin-top: 60rpx; | |
131 | + text-align: center; | |
132 | + ">暂无数据</view> | |
133 | + </view> | |
134 | + </view> | |
135 | + <view style="height: 94px;"></view> | |
136 | + <!-- <view v-if="cjtype" class="btv"> | |
137 | + <view class="btn" @click="editClick"> | |
138 | + {{(JSON.stringify(clObj) != '{}' && clObj)?'编辑':'上传报名材料'}} | |
139 | + </view> | |
140 | + </view> --> | |
139 | 141 | </view> |
140 | 142 | </view> |
141 | 143 | </template> |
142 | 144 | |
143 | -<script> | |
144 | - import { | |
145 | - formChangeApplydetailUrl, | |
146 | - getImgUrlApi, | |
147 | - putformChangeApplyapprovalUrl | |
148 | - } from '@/config/api.js'; | |
149 | - | |
145 | +<script> | |
146 | + import { | |
147 | + formChangeApplydetailUrl, | |
148 | + getImgUrlApi, | |
149 | + putformChangeApplyapprovalUrl | |
150 | + } from '@/config/api.js'; | |
151 | + | |
150 | 152 | export default { |
151 | 153 | data() { |
152 | 154 | return { |
... | ... | @@ -154,87 +156,91 @@ |
154 | 156 | desc: '', |
155 | 157 | changeid: '', |
156 | 158 | detailObj: {}, |
157 | - questions: [], | |
159 | + questions: [], | |
158 | 160 | statusImg: '', |
159 | 161 | wageTypes: { |
160 | 162 | "monthly": "月", |
161 | 163 | "daily": "日", |
162 | 164 | "hourly": "时", |
163 | 165 | "annual": "年" |
164 | - }, | |
165 | - menu_list: [{ | |
166 | - name: '变更详情' | |
167 | - }, { | |
168 | - name: '变更材料' | |
169 | - }], | |
170 | - current: 0, | |
171 | - cjtype: false, | |
172 | - clObj: {}, | |
173 | - picList: [], | |
166 | + }, | |
167 | + menu_list: [{ | |
168 | + name: '变更详情' | |
169 | + }, { | |
170 | + name: '变更材料' | |
171 | + }], | |
172 | + current: 0, | |
173 | + cjtype: false, | |
174 | + clObj: {}, | |
175 | + picList: [], | |
174 | 176 | fileList: [], |
175 | 177 | } |
176 | 178 | }, |
177 | 179 | |
178 | - onLoad(e) { | |
180 | + onLoad(e) { | |
179 | 181 | console.log(e) |
180 | 182 | this.changeid = e.id |
181 | - }, | |
182 | - | |
183 | - onShow() { | |
184 | - this.loadData() | |
185 | 183 | }, |
186 | 184 | |
187 | - methods: { | |
188 | - | |
189 | - // change(index) { | |
190 | - // this.current = index; | |
191 | - // }, | |
192 | - | |
193 | - handelCancel() { | |
194 | - putformChangeApplyapprovalUrl(this.changeid,{status: 'reject'}).then(res => { | |
195 | - if (res) { | |
196 | - uni.navigateBack({ | |
197 | - delta: 1 | |
198 | - }); | |
199 | - } | |
200 | - }) | |
201 | - }, | |
202 | - | |
203 | - hancelSubmit() { | |
204 | - putformChangeApplyapprovalUrl(this.changeid,{status: 'adopt'}).then(res => { | |
205 | - if (res) { | |
206 | - uni.navigateBack({ | |
207 | - delta: 1 | |
208 | - }); | |
209 | - } | |
210 | - }) | |
211 | - }, | |
212 | - | |
213 | - click(item) { | |
214 | - console.log('item', item); | |
215 | - this.current = item.index; | |
185 | + onShow() { | |
186 | + this.loadData() | |
187 | + }, | |
188 | + | |
189 | + methods: { | |
190 | + | |
191 | + // change(index) { | |
192 | + // this.current = index; | |
193 | + // }, | |
194 | + | |
195 | + handelCancel() { | |
196 | + putformChangeApplyapprovalUrl(this.changeid, { | |
197 | + status: 'reject' | |
198 | + }).then(res => { | |
199 | + if (res) { | |
200 | + uni.navigateBack({ | |
201 | + delta: 1 | |
202 | + }); | |
203 | + } | |
204 | + }) | |
205 | + }, | |
206 | + | |
207 | + hancelSubmit() { | |
208 | + putformChangeApplyapprovalUrl(this.changeid, { | |
209 | + status: 'adopt' | |
210 | + }).then(res => { | |
211 | + if (res) { | |
212 | + uni.navigateBack({ | |
213 | + delta: 1 | |
214 | + }); | |
215 | + } | |
216 | + }) | |
217 | + }, | |
218 | + | |
219 | + click(item) { | |
220 | + console.log('item', item); | |
221 | + this.current = item.index; | |
216 | 222 | }, |
217 | 223 | |
218 | 224 | loadData() { |
219 | 225 | formChangeApplydetailUrl(this.changeid).then(res => { |
220 | 226 | if (res) { |
221 | - this.detailObj = res; | |
222 | - | |
223 | - this.title = res.form.projectName | |
224 | - this.desc = res.form.courseName | |
225 | - | |
226 | - if (res.auditStatus == "wait") { | |
227 | - this.statusImg = '/static/img/home/status_need_qiye.png' | |
228 | - this.cjtype = true | |
229 | - }else if (res.auditStatus == "company_wait") { | |
230 | - this.statusImg = '/static/img/home/status_need_qiye.png' | |
231 | - this.cjtype = false | |
232 | - } | |
233 | - | |
234 | - this.clObj = res.entryAttachments | |
235 | - if (res.entryAttachments) { | |
236 | - this.handleDataspdf() | |
237 | - this.handlePicks() | |
227 | + this.detailObj = res; | |
228 | + | |
229 | + this.title = res.form.projectName | |
230 | + this.desc = res.form.courseName | |
231 | + | |
232 | + if (res.auditStatus == "wait") { | |
233 | + this.statusImg = '/static/img/home/status_need_qiye.png' | |
234 | + this.cjtype = true | |
235 | + } else if (res.auditStatus == "company_wait") { | |
236 | + this.statusImg = '/static/img/home/status_need_qiye.png' | |
237 | + this.cjtype = false | |
238 | + } | |
239 | + | |
240 | + this.clObj = res.entryAttachments | |
241 | + if (res.entryAttachments) { | |
242 | + this.handleDataspdf() | |
243 | + this.handlePicks() | |
238 | 244 | } |
239 | 245 | |
240 | 246 | let q1_nb = { |
... | ... | @@ -245,22 +251,22 @@ |
245 | 251 | }, |
246 | 252 | { |
247 | 253 | title: "转岗日期:", |
248 | - desc: this.$u.timeFormat(res.quitTime,'yyyy-mm-dd') | |
254 | + desc: this.$u.timeFormat(res.quitTime, 'yyyy-mm-dd') | |
249 | 255 | }, |
250 | 256 | { |
251 | 257 | title: "变更原因:", |
252 | 258 | desc: res.applyReason |
253 | 259 | } |
254 | 260 | ] |
255 | - } | |
256 | - | |
257 | - let sorce = '' | |
258 | - if (res.afterJobSource == "school") { | |
259 | - sorce = "学校推荐" | |
260 | - }else if (res.afterJobSource == "hro_platform") { | |
261 | - sorce = "平台选岗" | |
262 | - }else if (res.afterJobSource == "student") { | |
263 | - sorce = "自主添加" | |
261 | + } | |
262 | + | |
263 | + let sorce = '' | |
264 | + if (res.afterJobSource == "school") { | |
265 | + sorce = "学校推荐" | |
266 | + } else if (res.afterJobSource == "hro_platform") { | |
267 | + sorce = "平台选岗" | |
268 | + } else if (res.afterJobSource == "student") { | |
269 | + sorce = "自主添加" | |
264 | 270 | } |
265 | 271 | let q1_qt = { |
266 | 272 | title: '变更申请', |
... | ... | @@ -270,11 +276,11 @@ |
270 | 276 | }, |
271 | 277 | { |
272 | 278 | title: "离职日期:", |
273 | - desc: this.$u.timeFormat(res.quitTime,'yyyy-mm-dd') | |
279 | + desc: this.$u.timeFormat(res.quitTime, 'yyyy-mm-dd') | |
274 | 280 | }, |
275 | 281 | { |
276 | 282 | title: "入职日期:", |
277 | - desc: this.$u.timeFormat(res.entryTime,'yyyy-mm-dd') | |
283 | + desc: this.$u.timeFormat(res.entryTime, 'yyyy-mm-dd') | |
278 | 284 | }, |
279 | 285 | { |
280 | 286 | title: "岗位来源:", |
... | ... | @@ -364,106 +370,106 @@ |
364 | 370 | this.questions.push(q3) |
365 | 371 | } |
366 | 372 | }) |
367 | - }, | |
368 | - | |
369 | - editClick() { | |
370 | - if (JSON.stringify(this.clObj) != '{}' && this.clObj) { | |
371 | - this.$u.route({ | |
372 | - url: '/pages/student/internship/intership-msg/intership-msg', | |
373 | - params: { | |
374 | - type: '2', | |
375 | - id: this.id, | |
376 | - obj: JSON.stringify(this.clObj) | |
377 | - } | |
378 | - }) | |
379 | - }else { | |
380 | - this.$u.route({ | |
381 | - url: '/pages/student/internship/intership-msg/intership-msg', | |
382 | - params: { | |
383 | - type: '1', | |
384 | - id: this.id | |
385 | - } | |
386 | - }) | |
387 | - } | |
388 | 373 | }, |
389 | - | |
390 | - handlePicks() { //处理获取的网络图片 | |
391 | - this.picList = [] | |
392 | - if (this.clObj.attachments) { | |
393 | - // this.createdTime = this.$u.timeFormat(this.datas.createdTime / 1000, 'yyyy/mm/dd'); | |
394 | - var originInfo = JSON.parse(this.clObj.attachments); | |
395 | - // this.attachments = this.attachments.concat(originInfo) | |
396 | - // console.log("1---", originInfo, "2---", this.attachments) | |
397 | - if (originInfo && originInfo.length > 0) { | |
398 | - for (var i = 0; i < originInfo.length; i++) { | |
399 | - getImgUrlApi({ | |
400 | - bucket: originInfo[i].bucket, | |
401 | - filePath: originInfo[i].object | |
402 | - }).then(res => { | |
403 | - this.picList.push(res.url) | |
404 | - console.log('picList...', this.picList) | |
405 | - }) | |
406 | - } | |
407 | - } | |
408 | - } | |
409 | - }, | |
410 | - | |
411 | - handleDataspdf() { //处理获取的pdf | |
412 | - if (this.clObj.attachmentsFile) { | |
413 | - this.fileList = JSON.parse(this.clObj.attachmentsFile) | |
414 | - // this.attachmentsFile = this.attachmentsFile.concat(this.fileList) | |
415 | - } | |
416 | - }, | |
417 | - | |
418 | - openLink(e) { | |
419 | - var _this = this | |
420 | - | |
421 | - uni.showLoading({ | |
422 | - title: '努力加载中~', | |
423 | - mask: true | |
424 | - }) | |
425 | - | |
426 | - getImgUrlApi({ | |
427 | - bucket: e.bucket, | |
428 | - filePath: e.object | |
429 | - }).then(data => { | |
430 | - console.log("data...", data) | |
431 | - if (e.mime_type.indexOf("image") != -1) { | |
432 | - _this.openImage(data.url) | |
433 | - } else { | |
434 | - uni.downloadFile({ | |
435 | - url: data.url, | |
436 | - success: function(res) { | |
437 | - var filePath = res.tempFilePath; | |
438 | - uni.openDocument({ | |
439 | - filePath: filePath, | |
440 | - showMenu: true, | |
441 | - success: function(res) { | |
442 | - console.log('打开文档成功'); | |
443 | - }, | |
444 | - complete: function() { | |
445 | - uni.hideLoading(); | |
446 | - } | |
447 | - }); | |
448 | - } | |
449 | - }); | |
450 | - } | |
451 | - }) | |
452 | - }, | |
453 | - | |
454 | - openImage(imgPath) { | |
455 | - let array = new Array(1).fill(imgPath); | |
456 | - uni.previewImage({ | |
457 | - urls: array, | |
458 | - success(res) { | |
459 | - uni.hideLoading(); | |
460 | - console.log('openImage success'); | |
461 | - }, | |
462 | - fail(res) { | |
463 | - uni.hideLoading(); | |
464 | - console.log('openImage fail:', res); | |
465 | - } | |
466 | - }); | |
374 | + | |
375 | + editClick() { | |
376 | + if (JSON.stringify(this.clObj) != '{}' && this.clObj) { | |
377 | + this.$u.route({ | |
378 | + url: '/pages/student/internship/intership-msg/intership-msg', | |
379 | + params: { | |
380 | + type: '2', | |
381 | + id: this.id, | |
382 | + obj: JSON.stringify(this.clObj) | |
383 | + } | |
384 | + }) | |
385 | + } else { | |
386 | + this.$u.route({ | |
387 | + url: '/pages/student/internship/intership-msg/intership-msg', | |
388 | + params: { | |
389 | + type: '1', | |
390 | + id: this.id | |
391 | + } | |
392 | + }) | |
393 | + } | |
394 | + }, | |
395 | + | |
396 | + handlePicks() { //处理获取的网络图片 | |
397 | + this.picList = [] | |
398 | + if (this.clObj.attachments) { | |
399 | + // this.createdTime = this.$u.timeFormat(this.datas.createdTime / 1000, 'yyyy/mm/dd'); | |
400 | + var originInfo = JSON.parse(this.clObj.attachments); | |
401 | + // this.attachments = this.attachments.concat(originInfo) | |
402 | + // console.log("1---", originInfo, "2---", this.attachments) | |
403 | + if (originInfo && originInfo.length > 0) { | |
404 | + for (var i = 0; i < originInfo.length; i++) { | |
405 | + getImgUrlApi({ | |
406 | + bucket: originInfo[i].bucket, | |
407 | + filePath: originInfo[i].object | |
408 | + }).then(res => { | |
409 | + this.picList.push(res.url) | |
410 | + console.log('picList...', this.picList) | |
411 | + }) | |
412 | + } | |
413 | + } | |
414 | + } | |
415 | + }, | |
416 | + | |
417 | + handleDataspdf() { //处理获取的pdf | |
418 | + if (this.clObj.attachmentsFile) { | |
419 | + this.fileList = JSON.parse(this.clObj.attachmentsFile) | |
420 | + // this.attachmentsFile = this.attachmentsFile.concat(this.fileList) | |
421 | + } | |
422 | + }, | |
423 | + | |
424 | + openLink(e) { | |
425 | + var _this = this | |
426 | + | |
427 | + uni.showLoading({ | |
428 | + title: '努力加载中~', | |
429 | + mask: true | |
430 | + }) | |
431 | + | |
432 | + getImgUrlApi({ | |
433 | + bucket: e.bucket, | |
434 | + filePath: e.object | |
435 | + }).then(data => { | |
436 | + console.log("data...", data) | |
437 | + if (e.mime_type.indexOf("image") != -1) { | |
438 | + _this.openImage(data.url) | |
439 | + } else { | |
440 | + uni.downloadFile({ | |
441 | + url: data.url, | |
442 | + success: function(res) { | |
443 | + var filePath = res.tempFilePath; | |
444 | + uni.openDocument({ | |
445 | + filePath: filePath, | |
446 | + showMenu: true, | |
447 | + success: function(res) { | |
448 | + console.log('打开文档成功'); | |
449 | + }, | |
450 | + complete: function() { | |
451 | + uni.hideLoading(); | |
452 | + } | |
453 | + }); | |
454 | + } | |
455 | + }); | |
456 | + } | |
457 | + }) | |
458 | + }, | |
459 | + | |
460 | + openImage(imgPath) { | |
461 | + let array = new Array(1).fill(imgPath); | |
462 | + uni.previewImage({ | |
463 | + urls: array, | |
464 | + success(res) { | |
465 | + uni.hideLoading(); | |
466 | + console.log('openImage success'); | |
467 | + }, | |
468 | + fail(res) { | |
469 | + uni.hideLoading(); | |
470 | + console.log('openImage fail:', res); | |
471 | + } | |
472 | + }); | |
467 | 473 | }, |
468 | 474 | } |
469 | 475 | } |
... | ... | @@ -477,6 +483,7 @@ |
477 | 483 | |
478 | 484 | <style lang="scss" scoped> |
479 | 485 | .page { |
486 | + width: 100%; | |
480 | 487 | |
481 | 488 | .top { |
482 | 489 | padding: 50rpx 32rpx; |
... | ... | @@ -498,23 +505,23 @@ |
498 | 505 | color: rgba(0, 0, 0, 0.6500); |
499 | 506 | } |
500 | 507 | |
501 | - } | |
502 | - | |
503 | - .sxdw_icon116 { | |
504 | - position: absolute; | |
505 | - right: 0; | |
506 | - top: 0; | |
507 | - width: 224rpx; | |
508 | - height: 30px; | |
509 | - } | |
510 | - | |
511 | - .status { | |
512 | - position: absolute; | |
513 | - right: 10px; | |
514 | - top: 10px; | |
515 | - font-size: 16px; | |
516 | - font-family: PingFangSC-Regular, PingFang SC; | |
517 | - font-weight: 400; | |
508 | + } | |
509 | + | |
510 | + .sxdw_icon116 { | |
511 | + position: absolute; | |
512 | + right: 0; | |
513 | + top: 0; | |
514 | + width: 224rpx; | |
515 | + height: 30px; | |
516 | + } | |
517 | + | |
518 | + .status { | |
519 | + position: absolute; | |
520 | + right: 10px; | |
521 | + top: 10px; | |
522 | + font-size: 16px; | |
523 | + font-family: PingFangSC-Regular, PingFang SC; | |
524 | + font-weight: 400; | |
518 | 525 | } |
519 | 526 | |
520 | 527 | .content { |
... | ... | @@ -612,18 +619,18 @@ |
612 | 619 | } |
613 | 620 | |
614 | 621 | } |
615 | - } | |
616 | - | |
617 | - .nav_bar_topV65 { | |
618 | - background-color: #FFFFFF; | |
619 | - width: 50%; | |
622 | + } | |
623 | + | |
624 | + .nav_bar_topV65 { | |
625 | + background-color: #FFFFFF; | |
626 | + width: 50%; | |
620 | 627 | } |
621 | 628 | |
622 | 629 | .timeb { |
623 | 630 | padding: 40rpx 36rpx; |
624 | 631 | background-color: #fff; |
625 | 632 | border-radius: 10px; |
626 | - margin-top: 16rpx; | |
633 | + margin-top: 16rpx; | |
627 | 634 | position: relative; |
628 | 635 | |
629 | 636 | .title { |
... | ... | @@ -632,29 +639,30 @@ |
632 | 639 | font-weight: 600; |
633 | 640 | color: #000000; |
634 | 641 | margin-bottom: 20rpx; |
635 | - } | |
636 | - | |
637 | - .nodef { | |
638 | - display: flex; | |
639 | - justify-content: start; | |
640 | - margin-bottom: 30rpx; | |
641 | - | |
642 | - .node1 { | |
643 | - position: relative; | |
644 | - margin-top: 4px; | |
645 | - | |
646 | - .line { | |
647 | - position: absolute; | |
648 | - left: 5px; | |
649 | - width: 1px; | |
650 | - height: 100%; | |
651 | - background-color: #f7f7f7; | |
652 | - } | |
653 | - } | |
654 | - | |
655 | - .node2 { | |
656 | - margin-left: 10px; | |
657 | - } | |
642 | + } | |
643 | + | |
644 | + .nodef { | |
645 | + display: flex; | |
646 | + justify-content: start; | |
647 | + margin-bottom: 30rpx; | |
648 | + | |
649 | + .node1 { | |
650 | + position: relative; | |
651 | + margin-top: 4px; | |
652 | + | |
653 | + .line { | |
654 | + position: absolute; | |
655 | + left: 5px; | |
656 | + width: 1px; | |
657 | + height: 100%; | |
658 | + background-color: #f7f7f7; | |
659 | + } | |
660 | + } | |
661 | + | |
662 | + .node2 { | |
663 | + margin-left: 10px; | |
664 | + width: 85%; | |
665 | + } | |
658 | 666 | } |
659 | 667 | |
660 | 668 | .u-node { |
... | ... | @@ -686,104 +694,104 @@ |
686 | 694 | margin-top: 22rpx; |
687 | 695 | } |
688 | 696 | |
689 | - } | |
690 | - | |
691 | - .bczl { | |
692 | - margin: 20rpx 10rpx 0rpx; | |
693 | - padding: 52rpx 38rpx; | |
694 | - background-color: #fff; | |
695 | - | |
696 | - .t { | |
697 | - display: flex; | |
698 | - align-items: center; | |
699 | - | |
700 | - .green { | |
701 | - width: 3px; | |
702 | - height: 15px; | |
703 | - background: #0CB17A; | |
704 | - } | |
705 | - | |
706 | - .title { | |
707 | - margin-left: 16rpx; | |
708 | - font-size: 16px; | |
709 | - font-family: PingFangSC-Medium, PingFang SC; | |
710 | - font-weight: 500; | |
711 | - color: #000000; | |
712 | - } | |
713 | - | |
714 | - } | |
715 | - | |
716 | - .desc { | |
717 | - margin-top: 32rpx; | |
718 | - margin-left: 16rpx; | |
719 | - font-size: 14px; | |
720 | - font-family: PingFangSC-Regular, PingFang SC; | |
721 | - font-weight: 400; | |
722 | - color: rgba(0,0,0,0.65); | |
723 | - } | |
724 | - | |
725 | - .pdffj { | |
726 | - padding: 28rpx 16rpx; | |
727 | - | |
728 | - .img { | |
729 | - width: 24rpx; | |
730 | - height: 24rpx; | |
731 | - margin-right: 12rpx; | |
732 | - } | |
733 | - | |
734 | - .look { | |
735 | - font-size: 28rpx; | |
736 | - font-family: PingFangSC-Regular, PingFang SC; | |
737 | - font-weight: 400; | |
738 | - color: #0CB17A; | |
739 | - margin-left: 8rpx; | |
740 | - } | |
741 | - } | |
742 | - } | |
743 | - | |
744 | - .no_data { | |
745 | - width: 100%; | |
746 | - | |
747 | - .img { | |
748 | - display: block; | |
749 | - margin: 0 auto; | |
750 | - margin-top: 100rpx; | |
751 | - width: 260rpx; | |
752 | - height: 200rpx; | |
753 | - } | |
754 | - | |
755 | - .text_black_28 { | |
756 | - font-family: PingFangSC-Regular, PingFang SC; | |
757 | - font-weight: 400; | |
758 | - color: #000000; | |
759 | - margin-top: 48rpx; | |
760 | - text-align: center; | |
761 | - } | |
762 | - } | |
763 | - | |
764 | - .footer { | |
765 | - width: 100%; | |
766 | - height: 96rpx; | |
767 | - padding: 28rpx 30rpx; | |
768 | - background: #FFFFFF; | |
769 | - position: fixed; | |
770 | - bottom: 0; | |
771 | - left: 0; | |
772 | - z-index: 99; | |
773 | - border-top: 2rpx solid #E2E2E8; | |
774 | - | |
775 | - view { | |
776 | - display: inline-block; | |
777 | - } | |
778 | - | |
779 | - .left_btn { | |
780 | - width: 330rpx; | |
781 | - margin: 0 30rpx 0 0; | |
782 | - } | |
783 | - | |
784 | - .right_btn { | |
785 | - width: 330rpx; | |
786 | - } | |
697 | + } | |
698 | + | |
699 | + .bczl { | |
700 | + margin: 20rpx 10rpx 0rpx; | |
701 | + padding: 52rpx 38rpx; | |
702 | + background-color: #fff; | |
703 | + | |
704 | + .t { | |
705 | + display: flex; | |
706 | + align-items: center; | |
707 | + | |
708 | + .green { | |
709 | + width: 3px; | |
710 | + height: 15px; | |
711 | + background: #0CB17A; | |
712 | + } | |
713 | + | |
714 | + .title { | |
715 | + margin-left: 16rpx; | |
716 | + font-size: 16px; | |
717 | + font-family: PingFangSC-Medium, PingFang SC; | |
718 | + font-weight: 500; | |
719 | + color: #000000; | |
720 | + } | |
721 | + | |
722 | + } | |
723 | + | |
724 | + .desc { | |
725 | + margin-top: 32rpx; | |
726 | + margin-left: 16rpx; | |
727 | + font-size: 14px; | |
728 | + font-family: PingFangSC-Regular, PingFang SC; | |
729 | + font-weight: 400; | |
730 | + color: rgba(0, 0, 0, 0.65); | |
731 | + } | |
732 | + | |
733 | + .pdffj { | |
734 | + padding: 28rpx 16rpx; | |
735 | + | |
736 | + .img { | |
737 | + width: 24rpx; | |
738 | + height: 24rpx; | |
739 | + margin-right: 12rpx; | |
740 | + } | |
741 | + | |
742 | + .look { | |
743 | + font-size: 28rpx; | |
744 | + font-family: PingFangSC-Regular, PingFang SC; | |
745 | + font-weight: 400; | |
746 | + color: #0CB17A; | |
747 | + margin-left: 8rpx; | |
748 | + } | |
749 | + } | |
750 | + } | |
751 | + | |
752 | + .no_data { | |
753 | + width: 100%; | |
754 | + | |
755 | + .img { | |
756 | + display: block; | |
757 | + margin: 0 auto; | |
758 | + margin-top: 100rpx; | |
759 | + width: 260rpx; | |
760 | + height: 200rpx; | |
761 | + } | |
762 | + | |
763 | + .text_black_28 { | |
764 | + font-family: PingFangSC-Regular, PingFang SC; | |
765 | + font-weight: 400; | |
766 | + color: #000000; | |
767 | + margin-top: 48rpx; | |
768 | + text-align: center; | |
769 | + } | |
770 | + } | |
771 | + | |
772 | + .footer { | |
773 | + width: 100%; | |
774 | + height: 96rpx; | |
775 | + padding: 28rpx 30rpx; | |
776 | + background: #FFFFFF; | |
777 | + position: fixed; | |
778 | + bottom: 0; | |
779 | + left: 0; | |
780 | + z-index: 99; | |
781 | + border-top: 2rpx solid #E2E2E8; | |
782 | + | |
783 | + view { | |
784 | + display: inline-block; | |
785 | + } | |
786 | + | |
787 | + .left_btn { | |
788 | + width: 330rpx; | |
789 | + margin: 0 30rpx 0 0; | |
790 | + } | |
791 | + | |
792 | + .right_btn { | |
793 | + width: 330rpx; | |
794 | + } | |
787 | 795 | } |
788 | 796 | |
789 | 797 | .btv { | ... | ... |
请
注册
或
登录
后发表评论