telephone-clients 4.0.0-1-69 → 4.0.0-1-71

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.
@@ -1,115 +1,115 @@
1
- <template>
2
- <div>
3
- <div class="row">
4
- <button type="button" name="button" class="btn btn-primary" @click="takePic()">拍照</button>
5
- <button v-if="isxiangce == '是'" type="button" name="button" class="btn btn-primary" @click="takePic1()">相册</button>
6
- </div>
7
- <div class="row">
8
- <div class="col-xs-4 col-sm-3 col-md-2" v-for="img in model" v-if="img.imgpath == sutitle ">
9
- <android-img-self :src="getimgstr(img)" alt="维修照片" :width="150" :height="200"></android-img-self>
10
- <button type="button" name="button" class="btn btn-default" @click="remove(img)">-</button>
11
- </div>
12
- </div>
13
- </div>
14
- </template>
15
-
16
- <script>
17
- import Vue from 'vue'
18
- import * as Util from '../../components/Util'
19
-
20
- export default {
21
- props: {
22
- // 存放照片的数组
23
- model: {
24
- type: Array
25
- },
26
- sutitle:'维修照片',
27
- isxiangce:'否'
28
- },
29
- data () {
30
- return {
31
- // 拍照时的文件名
32
- fileName: '',
33
- is_has_jingweidu: this.$appdata.getSingleValue('照片水印加经纬度') || 'false',
34
-
35
- }
36
- },
37
- methods: {
38
- // 从图片中删除
39
- remove (row) {
40
- this.$androidUtil.delfile(row.android_file)
41
- let pos = this.model.findIndex((value) => {
42
- return value === row
43
- });
44
- this.model.splice(pos, 1)
45
- },
46
- // fileName: 回传文件名,传入的带安卓路径url
47
- // prop: 传入的字段名,没做改动
48
- cameraCallBack(prop, fileName) {
49
- // 当前this只能通过HostApp.__tis__获取
50
- let self = this.$androidUtil.getCallBack(this)
51
- if(typeof fileName == 'string'){
52
- // 添加新图片
53
- self.model.push({
54
- android_file: self.fileName,
55
- path: fileName,
56
- imgpath: this.sutitle
57
- })
58
- }else{
59
- if(fileName instanceof Array){
60
- fileName.forEach((row)=>{
61
- self.model.push({
62
- android_file: Util.guid() + '-valve-aofeng-' + prop + '.jpg',
63
- path: row,
64
- imgpath: this.sutitle
65
- })
66
- })
67
- }
68
- }
69
- console.log("callback!!!!!!!!!!!!!!!!!!--start")
70
- },
71
- takePic() {
72
- let jingweidu = ''
73
- if (this.is_has_jingweidu == 'true'){
74
- const obj = HostApp.getGpsDetailAddress()
75
- jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
76
- }
77
- let prop = 'repair'
78
- let idx = 'aofeng'
79
- this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
80
- this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName,this.sutitle+jingweidu)
81
- },
82
- takePic1() {
83
- let jingweidu = ''
84
- if (this.is_has_jingweidu == 'true') {
85
- const obj = HostApp.getGpsDetailAddress()
86
- jingweidu = '\t经度:' + obj.longitude + '\t纬度:' + obj.latitude
87
- }
88
- HostApp.__callback__ = this.cameraCallBack
89
- HostApp.__this__ = this
90
- let prop = 'repair'
91
- let idx = 'aofeng'
92
- this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
93
- HostApp._open_a_page({
94
- type: 'boomerang',
95
- page: 'com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity',
96
- param: {
97
- file: this.fileName,
98
- requestCode: 111,
99
- callback: 'javascript:HostApp.__callback__("' + prop + '", %s);',
100
- watermark: this.sutitle+jingweidu + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
101
- }
102
- })
103
- },
104
- getimgstr(val){
105
- if(!val){
106
- return ''
107
- }
108
- if(Vue.android){
109
- return val.path + '?' + Math.random()
110
- }
111
- return 'rs/file/getfile/' + val.imgid
112
- }
113
- },
114
- }
115
- </script>
1
+ <template>
2
+ <div>
3
+ <div class="row">
4
+ <button type="button" name="button" class="btn btn-primary" @click="takePic()">拍照</button>
5
+ <button v-if="isxiangce == '是'" type="button" name="button" class="btn btn-primary" @click="takePic1()">相册</button>
6
+ </div>
7
+ <div class="row">
8
+ <div class="col-xs-4 col-sm-3 col-md-2" v-for="img in model" v-if="img.imgpath == sutitle ">
9
+ <android-img-self :src="getimgstr(img)" alt="维修照片" :width="150" :height="200"></android-img-self>
10
+ <button type="button" name="button" class="btn btn-default" @click="remove(img)">-</button>
11
+ </div>
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+ <script>
17
+ import Vue from 'vue'
18
+ import * as Util from '../../components/Util'
19
+
20
+ export default {
21
+ props: {
22
+ // 存放照片的数组
23
+ model: {
24
+ type: Array
25
+ },
26
+ sutitle:'维修照片',
27
+ isxiangce:'否'
28
+ },
29
+ data () {
30
+ return {
31
+ // 拍照时的文件名
32
+ fileName: '',
33
+ is_has_jingweidu: this.$appdata.getSingleValue('照片水印加经纬度') || 'false',
34
+
35
+ }
36
+ },
37
+ methods: {
38
+ // 从图片中删除
39
+ remove (row) {
40
+ this.$androidUtil.delfile(row.android_file)
41
+ let pos = this.model.findIndex((value) => {
42
+ return value === row
43
+ });
44
+ this.model.splice(pos, 1)
45
+ },
46
+ // fileName: 回传文件名,传入的带安卓路径url
47
+ // prop: 传入的字段名,没做改动
48
+ cameraCallBack(prop, fileName) {
49
+ // 当前this只能通过HostApp.__tis__获取
50
+ let self = this.$androidUtil.getCallBack(this)
51
+ if(typeof fileName == 'string'){
52
+ // 添加新图片
53
+ self.model.push({
54
+ android_file: self.fileName,
55
+ path: fileName,
56
+ imgpath: this.sutitle
57
+ })
58
+ }else{
59
+ if(fileName instanceof Array){
60
+ fileName.forEach((row)=>{
61
+ self.model.push({
62
+ android_file: Util.guid() + '-valve-aofeng-' + prop + '.jpg',
63
+ path: row,
64
+ imgpath: this.sutitle
65
+ })
66
+ })
67
+ }
68
+ }
69
+ console.log("callback!!!!!!!!!!!!!!!!!!--start")
70
+ },
71
+ takePic() {
72
+ let jingweidu = ''
73
+ if (this.is_has_jingweidu == 'true'){
74
+ const obj = HostApp.getGpsDetailAddress()
75
+ jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
76
+ }
77
+ let prop = 'repair'
78
+ let idx = 'aofeng'
79
+ this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
80
+ this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName,this.sutitle+jingweidu)
81
+ },
82
+ takePic1() {
83
+ let jingweidu = ''
84
+ if (this.is_has_jingweidu == 'true') {
85
+ const obj = HostApp.getGpsDetailAddress()
86
+ jingweidu = '\t经度:' + obj.longitude + '\t纬度:' + obj.latitude
87
+ }
88
+ HostApp.__callback__ = this.cameraCallBack
89
+ HostApp.__this__ = this
90
+ let prop = 'repair'
91
+ let idx = 'aofeng'
92
+ this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
93
+ HostApp._open_a_page({
94
+ type: 'boomerang',
95
+ page: 'com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity',
96
+ param: {
97
+ file: this.fileName,
98
+ requestCode: 111,
99
+ callback: 'javascript:HostApp.__callback__("' + prop + '", %s);',
100
+ watermark: this.sutitle+jingweidu + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
101
+ }
102
+ })
103
+ },
104
+ getimgstr(val){
105
+ if(!val){
106
+ return ''
107
+ }
108
+ if(Vue.android){
109
+ return val.path + '?' + Math.random()
110
+ }
111
+ return 'rs/file/getfile/' + val.imgid
112
+ }
113
+ },
114
+ }
115
+ </script>
@@ -115,8 +115,8 @@
115
115
  <td style="margin: auto;text-align: center">
116
116
  <div class="container" style="max-width: 550px;background: #FFFFFF">
117
117
  <div class="img" v-for="img in serviceall.imgs">
118
- <img-self-tel :list="serviceall.imgs" :src="'rs/image/file/'+img.android_file" style="float: left" width="150"
119
- height="200"></img-self-tel>
118
+ <tel-img-self-tel-plus :list="serviceall.imgs" :src="'rs/image/file/'+img.android_file" style="float: left" width="150"
119
+ height="200"></tel-img-self-tel-plus>
120
120
  </div>
121
121
  </div>
122
122
  </td>
@@ -133,7 +133,7 @@
133
133
  <td style="margin: auto;text-align: center">
134
134
  <div class="container" style="max-width: 500px;background: #FFFFFF">
135
135
  <div class="img" style="float: none">
136
- <img-self-tel :src="'rs/image/file/'+serviceall.f_signname" width="400" height="300"></img-self-tel>
136
+ <tel-img-self-tel-plus :src="'rs/image/file/'+serviceall.f_signname" width="400" height="300"></tel-img-self-tel-plus>
137
137
  </div>
138
138
  </div>
139
139
  </td>
@@ -233,7 +233,7 @@
233
233
  <!-- <div class="row" v-if="detail.f_first_imgname">
234
234
  <div class="container" style="max-width: 500px;background: #FFFFFF">
235
235
  <div class="img" style="float: none">
236
- <img-self-tel :src="'rs/image/file/'+detail.f_first_imgname" width="400" height="300"></img-self-tel>
236
+ <tel-img-self-tel-plus :src="'rs/image/file/'+detail.f_first_imgname" width="400" height="300"></tel-img-self-tel-plus>
237
237
  </div>
238
238
 
239
239
  </div>
@@ -354,8 +354,8 @@
354
354
  <td style="margin: auto;text-align: center">
355
355
  <div class="container" style="max-width: 550px;background: #FFFFFF">
356
356
  <div class="img" v-for="img in serviceall.imgs">
357
- <img-self-tel :src="'rs/image/file/'+img.android_file" style="float: left" width="150"
358
- height="200"></img-self-tel>
357
+ <tel-img-self-tel-plus :src="'rs/image/file/'+img.android_file" style="float: left" width="150"
358
+ height="200"></tel-img-self-tel-plus>
359
359
  </div>
360
360
  </div>
361
361
  </td>
@@ -372,7 +372,7 @@
372
372
  <td style="margin: auto;text-align: center">
373
373
  <div class="container" style="max-width: 500px;background: #FFFFFF">
374
374
  <div class="img" style="float: none">
375
- <img-self-tel :src="'rs/image/file/'+serviceall.f_signname" width="400" height="300"></img-self-tel>
375
+ <tel-img-self-tel-plus :src="'rs/image/file/'+serviceall.f_signname" width="400" height="300"></tel-img-self-tel-plus>
376
376
  </div>
377
377
  </div>
378
378
  </td>
@@ -451,7 +451,7 @@
451
451
  <!-- <div class="row" v-if="detail.f_first_imgname">
452
452
  <div class="container" style="max-width: 500px;background: #FFFFFF">
453
453
  <div class="img" style="float: none">
454
- <img-self-tel :src="'rs/image/file/'+detail.f_first_imgname" width="400" height="300"></img-self-tel>
454
+ <tel-img-self-tel-plus :src="'rs/image/file/'+detail.f_first_imgname" width="400" height="300"></tel-img-self-tel-plus>
455
455
  </div>
456
456
 
457
457
  </div>
@@ -478,7 +478,7 @@
478
478
  <div class="from-group">
479
479
  <div class="row">
480
480
  <div class="col-md-6" v-for="item in showimgs">
481
- <img-self-tel :src="item" width="300" height="400"></img-self-tel>
481
+ <tel-img-self-tel-plus :src="item" width="300" height="400"></tel-img-self-tel-plus>
482
482
  </div>
483
483
  </div>
484
484
  </div>