Skip to content

Commit 66c74a8

Browse files
committed
update: target-->detail
1 parent fcfbac3 commit 66c74a8

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

pages/API/background-audio/background-audio.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
this.playing = this.$backgroundAudioData.playing;
5353
this.playTime = this.$backgroundAudioData.playTime;
5454
this.formatedPlayTime = this.$backgroundAudioData.formatedPlayTime;
55-
55+
5656
let bgAudioMannager = uni.getBackgroundAudioManager();
5757
if(!bgAudioMannager.title){
5858
bgAudioMannager.title = '致爱丽丝';
@@ -99,7 +99,7 @@
9999
}
100100
},
101101
seek: function (e) {
102-
this.bgAudioMannager.seek(e.target.value);
102+
this.bgAudioMannager.seek(e.detail.value);
103103
},
104104
pause: function () {
105105
this.bgAudioMannager.pause();

pages/API/clipboard/clipboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
methods: {
2727
dataChange: function (e) {
28-
this.data = e.target.value
28+
this.data = e.detail.value
2929
},
3030
getClipboard: function () {
3131
uni.getClipboardData({

pages/API/image/image.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@
100100
},
101101
methods: {
102102
sourceTypeChange: function(e) {
103-
this.sourceTypeIndex = parseInt(e.target.value)
103+
this.sourceTypeIndex = parseInt(e.detail.value)
104104
},
105105
sizeTypeChange: function(e) {
106-
this.sizeTypeIndex = parseInt(e.target.value)
106+
this.sizeTypeIndex = parseInt(e.detail.value)
107107
},
108108
countChange: function(e) {
109-
this.countIndex = e.target.value;
109+
this.countIndex = e.detail.value;
110110
},
111111
chooseImage: async function() {
112112
// #ifdef APP-PLUS

pages/API/make-phone-call/make-phone-call.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
methods: {
2222
bindInput: function (e) {
23-
this.inputValue = e.target.value
23+
this.inputValue = e.detail.value
2424
if (this.inputValue.length > 0) {
2525
this.disabled = false
2626
} else {

pages/API/open-location/open-location.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
methods: {
5757
openLocation: function (e) {
5858
console.log(e)
59-
var value = e.target.value
59+
var value = e.detail.value
6060
uni.openLocation({
6161
longitude: Number(value.longitude),
6262
latitude: Number(value.latitude),

pages/API/save-media/save-media.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export default {
3131
},
3232
onLoad() {},
3333
methods: {
34-
videoErrorCallback: function(e) {
34+
videoErrorCallback: function() {
3535
uni.showModal({
36-
content: e.target.errMsg,
36+
content: '视频加载失败',
3737
showCancel: false
3838
});
3939
},

pages/API/storage/storage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
},
4242
methods: {
4343
keyChange: function (e) {
44-
this.key = e.target.value
44+
this.key = e.detail.value
4545
},
4646
dataChange: function (e) {
47-
this.data = e.target.value
47+
this.data = e.detail.value
4848
},
4949
getStorage: function () {
5050
var key = this.key,

pages/API/subnvue/subnvue.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@
7575
const subNVue = uni.getSubNVueById('popup')
7676
subNVue.show('slide-in-top', 250)
7777
},
78-
videoErrorCallback: function(e) {
78+
videoErrorCallback: function() {
7979
uni.showModal({
80-
content: e.target.errMsg,
80+
content: '视频加载失败',
8181
showCancel: false
8282
})
8383
},

pages/API/video/video.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@
6868
methods: {
6969
radioChange(evt) {
7070
for (let i = 0; i < this.cameraList.length; i++) {
71-
if (this.cameraList[i].value === evt.target.value) {
71+
if (this.cameraList[i].value === evt.detail.value) {
7272
this.cameraIndex = i;
7373
break;
7474
}
7575
}
7676
},
7777
sourceTypeChange: function(e) {
78-
this.sourceTypeIndex = parseInt(e.target.value)
78+
this.sourceTypeIndex = parseInt(e.detail.value)
7979
},
8080
chooseVideo: function() {
8181
uni.chooseVideo({

pages/component/input/input.nvue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,21 @@
126126
},
127127
methods: {
128128
onKeyInput: function(event) {
129-
this.inputValue = event.target.value
129+
this.inputValue = event.detail.value
130130
},
131131
replaceInput: function(event) {
132-
var value = event.target.value;
132+
var value = event.detail.value;
133133
if (value === '11') {
134134
this.changeValue = '2';
135135
}
136136
},
137137
hideKeyboard: function(event) {
138-
if (event.target.value === '123') {
138+
if (event.detail.value === '123') {
139139
uni.hideKeyboard();
140140
}
141141
},
142142
clearInput: function(event) {
143-
this.inputClearValue = event.target.value;
143+
this.inputClearValue = event.detail.value;
144144
if (event.detail.value.length > 0) {
145145
this.showClearIcon = true;
146146
} else {

0 commit comments

Comments
 (0)