1
|
1
|
<template>
|
2
|
|
- <view class="page">
|
3
|
|
- <view class="qy">
|
4
|
|
- <view class="gv" style="background-color: #fff; padding: 20px 16px 0;">
|
5
|
|
- <view class="green"></view>
|
6
|
|
- <view class="title">
|
7
|
|
- 企业评价
|
8
|
|
- </view>
|
9
|
|
- </view>
|
10
|
|
- <view style="background-color: #fff; padding: 20px 16px 0;">
|
11
|
|
- <view class="t">
|
12
|
|
- 评分
|
13
|
|
- </view>
|
14
|
|
- <view class="box">
|
15
|
|
- <u-input v-model="qypf" border="none" :maxlength="'3'" type="number" input-align="left" :placeholder="'请输入0~100的数值'"
|
16
|
|
- :clearable="false"
|
17
|
|
- :custom-style="{height:'50px',fontSize:'32rpx', color:'#6666666', backgroundColor: '#FFF', paddingLeft: '0px'}" />
|
18
|
|
- </view>
|
19
|
|
- </view>
|
20
|
|
- <view style="background-color: #fff; padding: 20px 16px 20px;">
|
21
|
|
- <view class="list list_item_top" style="margin-top: 0;">
|
22
|
|
- <text class="item1">评语:</text>
|
23
|
|
- <text class="item2">{{detailObj.companyComment?`${detailObj.companyComment}`:'-'}}</text>
|
24
|
|
- </view>
|
25
|
|
- <view class="listflex list_item_top">
|
26
|
|
- <text class="item1">附件:</text>
|
27
|
|
- <view class="list_flex_right">
|
28
|
|
- <view class="pdffj" v-for="(item,index) in comattachmentsFile " @click="openLink1(item)">
|
29
|
|
- <text class="look">{{item.filename}}</text>
|
30
|
|
- </view>
|
31
|
|
- </view>
|
32
|
|
- </view>
|
33
|
|
- </view>
|
|
2
|
+ <view class="page">
|
|
3
|
+ <view class="qy">
|
|
4
|
+ <view class="gv" style="background-color: #fff; padding: 20px 16px 0;">
|
|
5
|
+ <view class="green"></view>
|
|
6
|
+ <view class="title">
|
|
7
|
+ 企业评价
|
|
8
|
+ </view>
|
|
9
|
+ </view>
|
|
10
|
+ <view style="background-color: #fff; padding: 20px 16px 0;">
|
|
11
|
+ <view class="t">
|
|
12
|
+ 评分
|
|
13
|
+ </view>
|
|
14
|
+ <view class="box">
|
|
15
|
+ <u-input v-model="qypf" border="none" :maxlength="'3'" type="number" input-align="left"
|
|
16
|
+ :placeholder="'请输入0~100的数值'" :clearable="false"
|
|
17
|
+ :custom-style="{height:'50px',fontSize:'32rpx', color:'#6666666', backgroundColor: '#FFF', paddingLeft: '0px'}" />
|
|
18
|
+ </view>
|
|
19
|
+ </view>
|
|
20
|
+ <view style="background-color: #fff; padding: 20px 16px 20px;">
|
|
21
|
+ <view class="list list_item_top" style="margin-top: 0;">
|
|
22
|
+ <text class="item1">评语:</text>
|
|
23
|
+ <text class="item2">{{detailObj.companyComment?`${detailObj.companyComment}`:'-'}}</text>
|
|
24
|
+ </view>
|
|
25
|
+ <view class="listflex list_item_top">
|
|
26
|
+ <text class="item1">附件:</text>
|
|
27
|
+ <view class="list_flex_right">
|
|
28
|
+ <view class="pdffj" v-for="(item,index) in comattachmentsFile " @click="openLink1(item)">
|
|
29
|
+ <text class="look">{{item.filename}}</text>
|
|
30
|
+ </view>
|
|
31
|
+ </view>
|
|
32
|
+ </view>
|
|
33
|
+ </view>
|
34
|
34
|
</view>
|
35
|
|
- <view class="bczl" style="margin-top: 15px;">
|
36
|
|
- <view class="gv" style="background-color: #fff; padding: 20px 16px 0;">
|
37
|
|
- <view class="green"></view>
|
38
|
|
- <view class="title">
|
39
|
|
- 教师评价
|
40
|
|
- </view>
|
|
35
|
+ <view class="bczl" style="margin-top: 15px;">
|
|
36
|
+ <view class="gv" style="background-color: #fff; padding: 20px 16px 0;">
|
|
37
|
+ <view class="green"></view>
|
|
38
|
+ <view class="title">
|
|
39
|
+ 教师评价
|
|
40
|
+ </view>
|
41
|
41
|
</view>
|
42
|
42
|
<view style="background-color: #fff; padding: 20px 16px 0;">
|
43
|
43
|
<view class="t">
|
44
|
44
|
评分
|
45
|
45
|
</view>
|
46
|
46
|
<view class="box">
|
47
|
|
- <u-input v-model="pf" border="none" :maxlength="'3'" type="number" input-align="left" :placeholder="'请输入0~100的数值'"
|
48
|
|
- :clearable="false"
|
|
47
|
+ <u-input v-model="pf" border="none" :maxlength="'3'" type="number" input-align="left"
|
|
48
|
+ :placeholder="'请输入0~100的数值'" :clearable="false"
|
49
|
49
|
:custom-style="{height:'50px',fontSize:'32rpx', color:'#6666666', backgroundColor: '#FFF', paddingLeft: '0px'}" />
|
50
|
50
|
</view>
|
51
|
51
|
</view>
|
...
|
...
|
@@ -54,8 +54,8 @@ |
54
|
54
|
评语
|
55
|
55
|
</view>
|
56
|
56
|
<view style="margin-top: 15px;">
|
57
|
|
- <u--textarea v-model="py" border="none" :maxlength="'100'" input-align="left" :placeholder="'请输入评语…'"
|
58
|
|
- :type="'textarea'" :height="240"
|
|
57
|
+ <u--textarea v-model="py" border="none" :maxlength="'100'" input-align="left"
|
|
58
|
+ :placeholder="'请输入评语…'" :type="'textarea'" :height="240"
|
59
|
59
|
:custom-style="{fontSize:'28rpx', color:'#6666666', backgroundColor: 'rgba(0,0,0,0.03)', padding: '15px 18px'}" />
|
60
|
60
|
</view>
|
61
|
61
|
</view>
|
...
|
...
|
@@ -86,24 +86,25 @@ |
86
|
86
|
<view style="height: 144rpx;"></view>
|
87
|
87
|
<view class="botBtnV_centralize">
|
88
|
88
|
<view class="botBtn" @click="submit()">确认提交</view>
|
89
|
|
- </view>
|
90
|
|
- <!-- <u-action-sheet :list="list" @click="chooseImg" v-model="show"></u-action-sheet> -->
|
91
|
|
- <u-action-sheet :actions="list" cancelText="取消" round="24" :show="show" @select="chooseImg" @close="close" :closeOnClickOverlay="true" ></u-action-sheet>
|
|
89
|
+ </view>
|
|
90
|
+ <!-- <u-action-sheet :list="list" @click="chooseImg" v-model="show"></u-action-sheet> -->
|
|
91
|
+ <u-action-sheet :actions="list" cancelText="取消" round="24" :show="show" @select="chooseImg" @close="close"
|
|
92
|
+ :closeOnClickOverlay="true"></u-action-sheet>
|
92
|
93
|
</view>
|
93
|
94
|
</template>
|
94
|
95
|
|
95
|
|
-<script>
|
96
|
|
- import {
|
97
|
|
- getOssInitApi,
|
98
|
|
- getImgUrlApi,
|
99
|
|
- scoredetailUrl,
|
100
|
|
- putscoreappraisalApi
|
101
|
|
- } from '@/config/api.js';
|
102
|
|
-
|
|
96
|
+<script>
|
|
97
|
+ import {
|
|
98
|
+ getOssInitApi,
|
|
99
|
+ getImgUrlApi,
|
|
100
|
+ scoredetailUrl,
|
|
101
|
+ putscoreappraisalApi
|
|
102
|
+ } from '@/config/api.js';
|
|
103
|
+
|
103
|
104
|
export default {
|
104
|
105
|
data() {
|
105
|
|
- return {
|
106
|
|
- id: '',
|
|
106
|
+ return {
|
|
107
|
+ id: '',
|
107
|
108
|
qypf: '',
|
108
|
109
|
pf: '',
|
109
|
110
|
py: '',
|
...
|
...
|
@@ -121,54 +122,54 @@ |
121
|
122
|
ossInit: {},
|
122
|
123
|
maxCount: 9,
|
123
|
124
|
filemaxCount: 3,
|
124
|
|
- show: false,
|
125
|
|
- detailObj:{},
|
|
125
|
+ show: false,
|
|
126
|
+ detailObj: {},
|
126
|
127
|
comattachmentsFile: [],
|
127
|
128
|
}
|
128
|
129
|
},
|
129
|
130
|
|
130
|
|
- onLoad(e) {
|
|
131
|
+ onLoad(e) {
|
131
|
132
|
this.id = e.id
|
132
|
|
-
|
133
|
|
- getOssInitApi({
|
134
|
|
- "uploadFileType": "report"
|
135
|
|
- }).then(res => {
|
136
|
|
- this.ossInit = res
|
137
|
|
- })
|
138
|
|
-
|
|
133
|
+
|
|
134
|
+ getOssInitApi({
|
|
135
|
+ "uploadFileType": "report"
|
|
136
|
+ }).then(res => {
|
|
137
|
+ this.ossInit = res
|
|
138
|
+ })
|
|
139
|
+
|
139
|
140
|
this.loadData()
|
140
|
141
|
},
|
141
|
142
|
|
142
|
|
- methods: {
|
143
|
|
-
|
144
|
|
- loadData() {
|
145
|
|
- scoredetailUrl(this.id).then(res => {
|
146
|
|
- if (res) {
|
147
|
|
- this.detailObj = res;
|
148
|
|
- this.comhandleDataspdf()
|
149
|
|
- }
|
150
|
|
- })
|
151
|
|
- },
|
152
|
|
-
|
153
|
|
- comhandleDataspdf() {
|
154
|
|
- let a1 = []
|
155
|
|
- let a2 = []
|
156
|
|
- if (this.detailObj.companyAttachment) {
|
157
|
|
- a1 = JSON.parse(this.detailObj.companyAttachment)
|
158
|
|
- }
|
159
|
|
- if (this.detailObj.companyAttachmentFile) {
|
160
|
|
- a2 = JSON.parse(this.detailObj.companyAttachmentFile)
|
161
|
|
- }
|
162
|
|
- a1 = a1.concat(a2)
|
163
|
|
- this.comattachmentsFile = a1
|
|
143
|
+ methods: {
|
|
144
|
+
|
|
145
|
+ loadData() {
|
|
146
|
+ scoredetailUrl(this.id).then(res => {
|
|
147
|
+ if (res) {
|
|
148
|
+ this.detailObj = res;
|
|
149
|
+ this.comhandleDataspdf()
|
|
150
|
+ }
|
|
151
|
+ })
|
|
152
|
+ },
|
|
153
|
+
|
|
154
|
+ comhandleDataspdf() {
|
|
155
|
+ let a1 = []
|
|
156
|
+ let a2 = []
|
|
157
|
+ if (this.detailObj.companyAttachment) {
|
|
158
|
+ a1 = JSON.parse(this.detailObj.companyAttachment)
|
|
159
|
+ }
|
|
160
|
+ if (this.detailObj.companyAttachmentFile) {
|
|
161
|
+ a2 = JSON.parse(this.detailObj.companyAttachmentFile)
|
|
162
|
+ }
|
|
163
|
+ a1 = a1.concat(a2)
|
|
164
|
+ this.comattachmentsFile = a1
|
164
|
165
|
},
|
165
|
166
|
|
166
|
167
|
addPhotos() {
|
167
|
168
|
this.show = true
|
168
|
|
- },
|
169
|
|
-
|
170
|
|
- close() {
|
171
|
|
- this.show = false
|
|
169
|
+ },
|
|
170
|
+
|
|
171
|
+ close() {
|
|
172
|
+ this.show = false
|
172
|
173
|
},
|
173
|
174
|
|
174
|
175
|
chooseImg(index) {
|
...
|
...
|
@@ -245,34 +246,34 @@ |
245
|
246
|
},
|
246
|
247
|
|
247
|
248
|
submit() {
|
248
|
|
- var _this = this
|
249
|
|
- if (!this.qypf) {
|
250
|
|
- this.showToast("请输入企业评分")
|
251
|
|
- return;
|
|
249
|
+ var _this = this
|
|
250
|
+ if (!this.qypf) {
|
|
251
|
+ this.showToast("请输入企业评分")
|
|
252
|
+ return;
|
252
|
253
|
}
|
253
|
254
|
if (!this.pf) {
|
254
|
255
|
this.showToast("请输入学校评分")
|
255
|
256
|
return;
|
256
|
|
- }
|
257
|
|
- if (!this.py) {
|
258
|
|
- this.showToast("请输入学校评语")
|
259
|
|
- return;
|
260
|
|
- }
|
261
|
|
- if (Number(this.pf) < 0 || Number(this.pf) > 100) {
|
262
|
|
- uni.showToast({
|
263
|
|
- title: '评分范围1~100分',
|
264
|
|
- icon: 'none',
|
265
|
|
- duration: 1500
|
266
|
|
- });
|
267
|
|
- return
|
268
|
|
- }
|
269
|
|
- if (Number(this.qypf) < 0 || Number(this.qypf) > 100) {
|
270
|
|
- uni.showToast({
|
271
|
|
- title: '评分范围1~100分',
|
272
|
|
- icon: 'none',
|
273
|
|
- duration: 1500
|
274
|
|
- });
|
275
|
|
- return
|
|
257
|
+ }
|
|
258
|
+ if (!this.py) {
|
|
259
|
+ this.showToast("请输入学校评语")
|
|
260
|
+ return;
|
|
261
|
+ }
|
|
262
|
+ if (Number(this.pf) < 0 || Number(this.pf) > 100) {
|
|
263
|
+ uni.showToast({
|
|
264
|
+ title: '评分范围1~100分',
|
|
265
|
+ icon: 'none',
|
|
266
|
+ duration: 1500
|
|
267
|
+ });
|
|
268
|
+ return
|
|
269
|
+ }
|
|
270
|
+ if (Number(this.qypf) < 0 || Number(this.qypf) > 100) {
|
|
271
|
+ uni.showToast({
|
|
272
|
+ title: '评分范围1~100分',
|
|
273
|
+ icon: 'none',
|
|
274
|
+ duration: 1500
|
|
275
|
+ });
|
|
276
|
+ return
|
276
|
277
|
}
|
277
|
278
|
// if (this.picList.length == 0 && this.fileList.length == 0) {
|
278
|
279
|
// this.showToast("请添加至少一个附件")
|
...
|
...
|
@@ -314,21 +315,21 @@ |
314
|
315
|
uploadInfos() {
|
315
|
316
|
console.log("uploadInfos111...", JSON.stringify(this.attachments))
|
316
|
317
|
console.log("uploadInfos222...", JSON.stringify(this.attachmentsFile))
|
317
|
|
- let _this = this
|
318
|
|
- putscoreappraisalApi({
|
319
|
|
- id: _this.id,
|
320
|
|
- companyScore: _this.qypf,
|
321
|
|
- schoolScore: _this.pf,
|
322
|
|
- schoolComment: _this.py,
|
323
|
|
- schoolAttachment: JSON.stringify(_this.attachments),
|
324
|
|
- schoolAttachmentFile: JSON.stringify(_this.attachmentsFile),
|
325
|
|
- }).then(res => {
|
326
|
|
- uni.hideLoading();
|
327
|
|
- let pages = getCurrentPages();
|
328
|
|
- let prevPage = pages[pages.length - 2];
|
329
|
|
- uni.navigateBack({
|
330
|
|
- delta: 1
|
331
|
|
- });
|
|
318
|
+ let _this = this
|
|
319
|
+ putscoreappraisalApi({
|
|
320
|
+ id: _this.id,
|
|
321
|
+ companyScore: _this.qypf,
|
|
322
|
+ schoolScore: _this.pf,
|
|
323
|
+ schoolComment: _this.py,
|
|
324
|
+ schoolAttachment: JSON.stringify(_this.attachments),
|
|
325
|
+ schoolAttachmentFile: JSON.stringify(_this.attachmentsFile),
|
|
326
|
+ }).then(res => {
|
|
327
|
+ uni.hideLoading();
|
|
328
|
+ let pages = getCurrentPages();
|
|
329
|
+ let prevPage = pages[pages.length - 2];
|
|
330
|
+ uni.navigateBack({
|
|
331
|
+ delta: 1
|
|
332
|
+ });
|
332
|
333
|
})
|
333
|
334
|
},
|
334
|
335
|
|
...
|
...
|
@@ -391,21 +392,33 @@ |
391
|
392
|
// _this.uploadInfos();
|
392
|
393
|
// } else {}
|
393
|
394
|
// console.log('_this.ossInit...', _this.ossInit)
|
|
395
|
+ let formdata = {}
|
|
396
|
+ if (this.ossInit.uploadType == 'aliyun') {
|
|
397
|
+ formdata = {
|
|
398
|
+ 'key': `${_this.ossInit.dir}${new Date().getTime()}`,
|
|
399
|
+ 'action': `${_this.ossInit.host}`,
|
|
400
|
+ 'OSSAccessKeyId': _this.ossInit.accessId,
|
|
401
|
+ 'policy': _this.ossInit.policy,
|
|
402
|
+ 'signature': _this.ossInit.signature,
|
|
403
|
+ 'callback': _this.ossInit.callback,
|
|
404
|
+ }
|
|
405
|
+ } else {
|
|
406
|
+ formdata = {
|
|
407
|
+ 'bucket': _this.ossInit.bucket,
|
|
408
|
+ 'dir': _this.ossInit.dir,
|
|
409
|
+ 'fileName': `${_this.ossInit.dir}${new Date().getTime()}`,
|
|
410
|
+ 'accessId': _this.ossInit.accessId,
|
|
411
|
+ 'policy': _this.ossInit.policy
|
|
412
|
+ }
|
|
413
|
+ }
|
394
|
414
|
return new Promise((resolve, reject) => {
|
395
|
415
|
var gapLength = this.picList.length - this.attachments.length
|
396
|
416
|
for (var i = 0; i < gapLength; i++) {
|
397
|
417
|
uni.uploadFile({
|
398
|
|
- url: _this.vuex_ossUrl,
|
|
418
|
+ url: _this.ossInit.host,
|
399
|
419
|
filePath: _this.picList[_this.picList.length - gapLength + i],
|
400
|
420
|
name: 'file',
|
401
|
|
- formData: {
|
402
|
|
- 'key': `${_this.ossInit.dir}${new Date().getTime()}/` + '${filename}',
|
403
|
|
- 'action': `${_this.ossInit.host}`,
|
404
|
|
- 'OSSAccessKeyId': _this.ossInit.accessId,
|
405
|
|
- 'policy': _this.ossInit.policy,
|
406
|
|
- 'signature': _this.ossInit.signature,
|
407
|
|
- 'callback': _this.ossInit.callback,
|
408
|
|
- },
|
|
421
|
+ formData: formdata,
|
409
|
422
|
success: (uploadFileRes) => {
|
410
|
423
|
// console.log("--", _this.attachments, uploadFileRes)
|
411
|
424
|
// console.log("...",JSON.parse(uploadFileRes.data))
|
...
|
...
|
@@ -434,23 +447,34 @@ |
434
|
447
|
|
435
|
448
|
// }
|
436
|
449
|
// console.log("uploadFiles...", this.fileList, this.attachmentsFile)
|
|
450
|
+ let formdata = {}
|
|
451
|
+ if (this.ossInit.uploadType == 'aliyun') {
|
|
452
|
+ formdata = {
|
|
453
|
+ 'key': `${_this.ossInit.dir}${new Date().getTime()}`,
|
|
454
|
+ 'action': `${_this.ossInit.host}`,
|
|
455
|
+ 'OSSAccessKeyId': _this.ossInit.accessId,
|
|
456
|
+ 'policy': _this.ossInit.policy,
|
|
457
|
+ 'signature': _this.ossInit.signature,
|
|
458
|
+ 'callback': _this.ossInit.callback,
|
|
459
|
+ }
|
|
460
|
+ } else {
|
|
461
|
+ formdata = {
|
|
462
|
+ 'bucket': _this.ossInit.bucket,
|
|
463
|
+ 'dir': _this.ossInit.dir,
|
|
464
|
+ 'fileName': `${_this.ossInit.dir}${new Date().getTime()}`,
|
|
465
|
+ 'accessId': _this.ossInit.accessId,
|
|
466
|
+ 'policy': _this.ossInit.policy
|
|
467
|
+ }
|
|
468
|
+ }
|
437
|
469
|
return new Promise((resolve, reject) => {
|
438
|
470
|
var gapLength = this.fileList.length - this.attachmentsFile.length
|
439
|
471
|
for (var i = 0; i < gapLength; i++) {
|
440
|
472
|
uni.uploadFile({
|
441
|
|
- url: _this.vuex_ossUrl,
|
|
473
|
+ url: _this.ossInit.host,
|
442
|
474
|
filePath: _this.fileList[_this.fileList.length - gapLength + i].path,
|
443
|
475
|
// name: _this.fileList[_this.fileList.length - gapLength + i].name,
|
444
|
476
|
name: "file",
|
445
|
|
- formData: {
|
446
|
|
- 'key': `${_this.ossInit.dir}${new Date().getTime()}/` + _this.fileList[
|
447
|
|
- _this.fileList.length - gapLength + i].name,
|
448
|
|
- 'action': `${_this.ossInit.host}`,
|
449
|
|
- 'OSSAccessKeyId': _this.ossInit.accessId,
|
450
|
|
- 'policy': _this.ossInit.policy,
|
451
|
|
- 'signature': _this.ossInit.signature,
|
452
|
|
- 'callback': _this.ossInit.callback,
|
453
|
|
- },
|
|
477
|
+ formData: formdata,
|
454
|
478
|
success: (uploadFileRes) => {
|
455
|
479
|
// console.log("--", _this.attachmentsFile, uploadFileRes)
|
456
|
480
|
_this.attachmentsFile.push(JSON.parse(uploadFileRes.data))
|
...
|
...
|
@@ -500,56 +524,56 @@ |
500
|
524
|
title: res,
|
501
|
525
|
icon: "none"
|
502
|
526
|
})
|
503
|
|
- },
|
504
|
|
-
|
505
|
|
- openLink1(e) {
|
506
|
|
- var _this = this
|
507
|
|
-
|
508
|
|
- uni.showLoading({
|
509
|
|
- title: '努力加载中~',
|
510
|
|
- mask: true
|
511
|
|
- })
|
512
|
|
-
|
513
|
|
- getImgUrlApi({
|
514
|
|
- bucket: e.bucket,
|
515
|
|
- filePath: e.object
|
516
|
|
- }).then(data => {
|
517
|
|
- console.log("data...", data)
|
518
|
|
- if (e.mime_type.indexOf("image") != -1) {
|
519
|
|
- _this.openImage(data.url)
|
520
|
|
- } else {
|
521
|
|
- uni.downloadFile({
|
522
|
|
- url: data.url,
|
523
|
|
- success: function(res) {
|
524
|
|
- var filePath = res.tempFilePath;
|
525
|
|
- uni.openDocument({
|
526
|
|
- filePath: filePath,
|
527
|
|
- showMenu: true,
|
528
|
|
- success: function(res) {
|
529
|
|
- console.log('打开文档成功');
|
530
|
|
- },
|
531
|
|
- complete: function() {
|
532
|
|
- uni.hideLoading();
|
533
|
|
- }
|
534
|
|
- });
|
535
|
|
- }
|
536
|
|
- });
|
537
|
|
- }
|
538
|
|
- })
|
539
|
|
- },
|
540
|
|
- openImage(imgPath) {
|
541
|
|
- let array = new Array(1).fill(imgPath);
|
542
|
|
- uni.previewImage({
|
543
|
|
- urls: array,
|
544
|
|
- success(res) {
|
545
|
|
- uni.hideLoading();
|
546
|
|
- console.log('openImage success');
|
547
|
|
- },
|
548
|
|
- fail(res) {
|
549
|
|
- uni.hideLoading();
|
550
|
|
- console.log('openImage fail:', res);
|
551
|
|
- }
|
552
|
|
- });
|
|
527
|
+ },
|
|
528
|
+
|
|
529
|
+ openLink1(e) {
|
|
530
|
+ var _this = this
|
|
531
|
+
|
|
532
|
+ uni.showLoading({
|
|
533
|
+ title: '努力加载中~',
|
|
534
|
+ mask: true
|
|
535
|
+ })
|
|
536
|
+
|
|
537
|
+ getImgUrlApi({
|
|
538
|
+ bucket: e.bucket,
|
|
539
|
+ filePath: e.object
|
|
540
|
+ }).then(data => {
|
|
541
|
+ console.log("data...", data)
|
|
542
|
+ if (e.mime_type.indexOf("image") != -1) {
|
|
543
|
+ _this.openImage(data.url)
|
|
544
|
+ } else {
|
|
545
|
+ uni.downloadFile({
|
|
546
|
+ url: data.url,
|
|
547
|
+ success: function(res) {
|
|
548
|
+ var filePath = res.tempFilePath;
|
|
549
|
+ uni.openDocument({
|
|
550
|
+ filePath: filePath,
|
|
551
|
+ showMenu: true,
|
|
552
|
+ success: function(res) {
|
|
553
|
+ console.log('打开文档成功');
|
|
554
|
+ },
|
|
555
|
+ complete: function() {
|
|
556
|
+ uni.hideLoading();
|
|
557
|
+ }
|
|
558
|
+ });
|
|
559
|
+ }
|
|
560
|
+ });
|
|
561
|
+ }
|
|
562
|
+ })
|
|
563
|
+ },
|
|
564
|
+ openImage(imgPath) {
|
|
565
|
+ let array = new Array(1).fill(imgPath);
|
|
566
|
+ uni.previewImage({
|
|
567
|
+ urls: array,
|
|
568
|
+ success(res) {
|
|
569
|
+ uni.hideLoading();
|
|
570
|
+ console.log('openImage success');
|
|
571
|
+ },
|
|
572
|
+ fail(res) {
|
|
573
|
+ uni.hideLoading();
|
|
574
|
+ console.log('openImage fail:', res);
|
|
575
|
+ }
|
|
576
|
+ });
|
553
|
577
|
},
|
554
|
578
|
|
555
|
579
|
clickCentralize() {
|
...
|
...
|
@@ -566,129 +590,129 @@ |
566
|
590
|
</style>
|
567
|
591
|
|
568
|
592
|
<style lang="scss" scoped>
|
569
|
|
- .page {
|
570
|
|
-
|
571
|
|
- .qy {
|
572
|
|
- .gv {
|
573
|
|
- display: flex;
|
574
|
|
- align-items: center;
|
575
|
|
-
|
576
|
|
- .green {
|
577
|
|
- width: 3px;
|
578
|
|
- height: 10px;
|
579
|
|
- background: #0CB17A;
|
580
|
|
- }
|
581
|
|
-
|
582
|
|
- .title {
|
583
|
|
- margin-left: 10rpx;
|
584
|
|
- font-size: 16px;
|
585
|
|
- font-family: PingFangSC-Medium, PingFang SC;
|
586
|
|
- font-weight: 500;
|
587
|
|
- color: #000000;
|
588
|
|
- }
|
589
|
|
-
|
590
|
|
- }
|
591
|
|
-
|
592
|
|
- .list {
|
593
|
|
- margin-top: 9px;
|
594
|
|
-
|
595
|
|
- .item1 {
|
596
|
|
- font-size: 16px;
|
597
|
|
- font-family: PingFangSC-Light, PingFang SC;
|
598
|
|
- font-weight: 300;
|
599
|
|
- color: #646464;
|
600
|
|
- }
|
601
|
|
-
|
602
|
|
- .item2 {
|
603
|
|
- margin-left: 2px;
|
604
|
|
- font-size: 16px;
|
605
|
|
- font-family: PingFangSC-Light, PingFang SC;
|
606
|
|
- font-weight: 300;
|
607
|
|
- color: #121212;
|
608
|
|
- }
|
609
|
|
- }
|
610
|
|
-
|
611
|
|
- .listflex {
|
612
|
|
- margin-top: 9px;
|
613
|
|
- display: flex;
|
614
|
|
-
|
615
|
|
- .item1 {
|
616
|
|
- font-size: 16px;
|
617
|
|
- font-family: PingFangSC-Light, PingFang SC;
|
618
|
|
- font-weight: 300;
|
619
|
|
- color: #646464;
|
620
|
|
- }
|
621
|
|
-
|
622
|
|
- .list_flex_right {
|
623
|
|
- display: flex;
|
624
|
|
- flex-direction: column;
|
625
|
|
- margin-left: 2px;
|
626
|
|
- width: 80%;
|
627
|
|
-
|
628
|
|
- .pdffj {
|
629
|
|
- margin-bottom: 5px;
|
630
|
|
-
|
631
|
|
- .img {
|
632
|
|
- width: 24rpx;
|
633
|
|
- height: 24rpx;
|
634
|
|
- margin-right: 12rpx;
|
635
|
|
- }
|
636
|
|
-
|
637
|
|
- .look {
|
638
|
|
- width: 100%;
|
639
|
|
- display: -webkit-box;
|
640
|
|
- -webkit-box-orient: vertical;
|
641
|
|
- -webkit-line-clamp: 2;
|
642
|
|
- overflow: hidden;
|
643
|
|
- white-space: normal;
|
644
|
|
- word-break: break-all;
|
645
|
|
- word-wrap: break-word;
|
646
|
|
- font-size: 28rpx;
|
647
|
|
- font-family: PingFangSC-Regular, PingFang SC;
|
648
|
|
- font-weight: 400;
|
649
|
|
- color: #0CB17A;
|
650
|
|
- }
|
651
|
|
- }
|
652
|
|
-
|
653
|
|
- }
|
654
|
|
- }
|
655
|
|
-
|
656
|
|
- .list_item_top {
|
657
|
|
- margin-top: 10px;
|
658
|
|
- }
|
659
|
|
-
|
660
|
|
- .t {
|
661
|
|
- font-size: 16px;
|
662
|
|
- font-family: PingFangSC-Regular, PingFang SC;
|
663
|
|
- font-weight: 400;
|
664
|
|
- color: #121212;
|
665
|
|
- }
|
666
|
|
-
|
667
|
|
- .box {
|
668
|
|
- border-bottom: 1rpx solid #E5E5E6;
|
669
|
|
- }
|
|
593
|
+ .page {
|
|
594
|
+
|
|
595
|
+ .qy {
|
|
596
|
+ .gv {
|
|
597
|
+ display: flex;
|
|
598
|
+ align-items: center;
|
|
599
|
+
|
|
600
|
+ .green {
|
|
601
|
+ width: 3px;
|
|
602
|
+ height: 10px;
|
|
603
|
+ background: #0CB17A;
|
|
604
|
+ }
|
|
605
|
+
|
|
606
|
+ .title {
|
|
607
|
+ margin-left: 10rpx;
|
|
608
|
+ font-size: 16px;
|
|
609
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
610
|
+ font-weight: 500;
|
|
611
|
+ color: #000000;
|
|
612
|
+ }
|
|
613
|
+
|
|
614
|
+ }
|
|
615
|
+
|
|
616
|
+ .list {
|
|
617
|
+ margin-top: 9px;
|
|
618
|
+
|
|
619
|
+ .item1 {
|
|
620
|
+ font-size: 16px;
|
|
621
|
+ font-family: PingFangSC-Light, PingFang SC;
|
|
622
|
+ font-weight: 300;
|
|
623
|
+ color: #646464;
|
|
624
|
+ }
|
|
625
|
+
|
|
626
|
+ .item2 {
|
|
627
|
+ margin-left: 2px;
|
|
628
|
+ font-size: 16px;
|
|
629
|
+ font-family: PingFangSC-Light, PingFang SC;
|
|
630
|
+ font-weight: 300;
|
|
631
|
+ color: #121212;
|
|
632
|
+ }
|
|
633
|
+ }
|
|
634
|
+
|
|
635
|
+ .listflex {
|
|
636
|
+ margin-top: 9px;
|
|
637
|
+ display: flex;
|
|
638
|
+
|
|
639
|
+ .item1 {
|
|
640
|
+ font-size: 16px;
|
|
641
|
+ font-family: PingFangSC-Light, PingFang SC;
|
|
642
|
+ font-weight: 300;
|
|
643
|
+ color: #646464;
|
|
644
|
+ }
|
|
645
|
+
|
|
646
|
+ .list_flex_right {
|
|
647
|
+ display: flex;
|
|
648
|
+ flex-direction: column;
|
|
649
|
+ margin-left: 2px;
|
|
650
|
+ width: 80%;
|
|
651
|
+
|
|
652
|
+ .pdffj {
|
|
653
|
+ margin-bottom: 5px;
|
|
654
|
+
|
|
655
|
+ .img {
|
|
656
|
+ width: 24rpx;
|
|
657
|
+ height: 24rpx;
|
|
658
|
+ margin-right: 12rpx;
|
|
659
|
+ }
|
|
660
|
+
|
|
661
|
+ .look {
|
|
662
|
+ width: 100%;
|
|
663
|
+ display: -webkit-box;
|
|
664
|
+ -webkit-box-orient: vertical;
|
|
665
|
+ -webkit-line-clamp: 2;
|
|
666
|
+ overflow: hidden;
|
|
667
|
+ white-space: normal;
|
|
668
|
+ word-break: break-all;
|
|
669
|
+ word-wrap: break-word;
|
|
670
|
+ font-size: 28rpx;
|
|
671
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
672
|
+ font-weight: 400;
|
|
673
|
+ color: #0CB17A;
|
|
674
|
+ }
|
|
675
|
+ }
|
|
676
|
+
|
|
677
|
+ }
|
|
678
|
+ }
|
|
679
|
+
|
|
680
|
+ .list_item_top {
|
|
681
|
+ margin-top: 10px;
|
|
682
|
+ }
|
|
683
|
+
|
|
684
|
+ .t {
|
|
685
|
+ font-size: 16px;
|
|
686
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
687
|
+ font-weight: 400;
|
|
688
|
+ color: #121212;
|
|
689
|
+ }
|
|
690
|
+
|
|
691
|
+ .box {
|
|
692
|
+ border-bottom: 1rpx solid #E5E5E6;
|
|
693
|
+ }
|
670
|
694
|
}
|
671
|
695
|
|
672
|
|
- .bczl {
|
673
|
|
-
|
674
|
|
- .gv {
|
675
|
|
- display: flex;
|
676
|
|
- align-items: center;
|
677
|
|
-
|
678
|
|
- .green {
|
679
|
|
- width: 3px;
|
680
|
|
- height: 10px;
|
681
|
|
- background: #0CB17A;
|
682
|
|
- }
|
683
|
|
-
|
684
|
|
- .title {
|
685
|
|
- margin-left: 10rpx;
|
686
|
|
- font-size: 16px;
|
687
|
|
- font-family: PingFangSC-Medium, PingFang SC;
|
688
|
|
- font-weight: 500;
|
689
|
|
- color: #000000;
|
690
|
|
- }
|
691
|
|
-
|
|
696
|
+ .bczl {
|
|
697
|
+
|
|
698
|
+ .gv {
|
|
699
|
+ display: flex;
|
|
700
|
+ align-items: center;
|
|
701
|
+
|
|
702
|
+ .green {
|
|
703
|
+ width: 3px;
|
|
704
|
+ height: 10px;
|
|
705
|
+ background: #0CB17A;
|
|
706
|
+ }
|
|
707
|
+
|
|
708
|
+ .title {
|
|
709
|
+ margin-left: 10rpx;
|
|
710
|
+ font-size: 16px;
|
|
711
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
712
|
+ font-weight: 500;
|
|
713
|
+ color: #000000;
|
|
714
|
+ }
|
|
715
|
+
|
692
|
716
|
}
|
693
|
717
|
|
694
|
718
|
.t {
|
...
|
...
|
@@ -722,35 +746,35 @@ |
722
|
746
|
text-align: -webkit-center;
|
723
|
747
|
}
|
724
|
748
|
|
725
|
|
- }
|
726
|
|
-
|
727
|
|
- .delete {
|
728
|
|
- width: 40rpx;
|
729
|
|
- height: 40rpx;
|
730
|
|
- padding: 16rpx;
|
731
|
|
- position: absolute;
|
732
|
|
- top: -10rpx;
|
733
|
|
- right: -16rpx;
|
734
|
|
- z-index: 99;
|
735
|
|
- }
|
736
|
|
-
|
737
|
|
- .pdffj {
|
738
|
|
- display: flex;
|
739
|
|
- align-items: baseline;
|
740
|
|
-
|
741
|
|
- .img {
|
742
|
|
- width: 24rpx;
|
743
|
|
- height: 24rpx;
|
744
|
|
- margin-right: 10rpx;
|
745
|
|
- }
|
746
|
|
-
|
747
|
|
- .look {
|
748
|
|
- font-size: 28rpx;
|
749
|
|
- font-family: PingFangSC-Regular, PingFang SC;
|
750
|
|
- font-weight: 400;
|
751
|
|
- color: #0CB17A;
|
752
|
|
- margin-left: 8rpx;
|
753
|
|
- }
|
|
749
|
+ }
|
|
750
|
+
|
|
751
|
+ .delete {
|
|
752
|
+ width: 40rpx;
|
|
753
|
+ height: 40rpx;
|
|
754
|
+ padding: 16rpx;
|
|
755
|
+ position: absolute;
|
|
756
|
+ top: -10rpx;
|
|
757
|
+ right: -16rpx;
|
|
758
|
+ z-index: 99;
|
|
759
|
+ }
|
|
760
|
+
|
|
761
|
+ .pdffj {
|
|
762
|
+ display: flex;
|
|
763
|
+ align-items: baseline;
|
|
764
|
+
|
|
765
|
+ .img {
|
|
766
|
+ width: 24rpx;
|
|
767
|
+ height: 24rpx;
|
|
768
|
+ margin-right: 10rpx;
|
|
769
|
+ }
|
|
770
|
+
|
|
771
|
+ .look {
|
|
772
|
+ font-size: 28rpx;
|
|
773
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
774
|
+ font-weight: 400;
|
|
775
|
+ color: #0CB17A;
|
|
776
|
+ margin-left: 8rpx;
|
|
777
|
+ }
|
754
|
778
|
}
|
755
|
779
|
|
756
|
780
|
.botBtnV_centralize {
|
...
|
...
|
@@ -760,7 +784,7 @@ |
760
|
784
|
right: 0;
|
761
|
785
|
padding: 24rpx 32rpx;
|
762
|
786
|
// height: 144rpx;
|
763
|
|
- background-color: #FFFFFF;
|
|
787
|
+ background-color: #FFFFFF;
|
764
|
788
|
z-index: 999;
|
765
|
789
|
|
766
|
790
|
.botBtn {
|
...
|
...
|
|