提交 692d11c3 编写于 作者: fxy060608's avatar fxy060608

Merge branch 'dev' of https://github.com/dcloudio/uni-app into alpha

...@@ -484,13 +484,6 @@ class Util { ...@@ -484,13 +484,6 @@ class Util {
t: getTime(), t: getTime(),
p: this.statData.p p: this.statData.p
}; };
if (getPlatformName() === 'n' && this.statData.p === 'a') {
setTimeout(() => {
this.request(options);
}, 200);
return
}
this.request(options); this.request(options);
} }
...@@ -511,12 +504,6 @@ class Util { ...@@ -511,12 +504,6 @@ class Util {
t: getTime(), t: getTime(),
p: this.statData.p p: this.statData.p
}; };
if (getPlatformName() === 'n' && this.statData.p === 'a') {
setTimeout(() => {
this.request(options, type);
}, 200);
return
}
this.request(options, type); this.request(options, type);
} }
_sendEventRequest({ _sendEventRequest({
...@@ -642,31 +629,39 @@ class Util { ...@@ -642,31 +629,39 @@ class Util {
this.imageRequest(optionsData); this.imageRequest(optionsData);
return return
} }
uni.request({ if (getPlatformName() === 'n' && this.statData.p === 'a') {
url: STAT_URL, setTimeout(() => {
method: 'POST', this._sendRequest(optionsData);
// header: { }, 200);
// 'content-type': 'application/json' // 默认值 return
// }, }
data: optionsData, this._sendRequest(optionsData);
success: () => { }
// if (process.env.NODE_ENV === 'development') { _sendRequest(optionsData){
// console.log('stat request success'); uni.request({
// } url: STAT_URL,
}, method: 'POST',
fail: (e) => { // header: {
// if (process.env.NODE_ENV === 'development') { // 'content-type': 'application/json' // 默认值
// console.log('stat request fail', e); // },
// } data: optionsData,
if (++this._retry < 3) { success: () => {
setTimeout(() => { // if (process.env.NODE_ENV === 'development') {
this.request(data); // console.log('stat request success');
}, 1000); // }
} },
} fail: (e) => {
}); // if (process.env.NODE_ENV === 'development') {
// console.log('stat request fail', e);
// }
if (++this._retry < 3) {
setTimeout(() => {
this.request(data);
}, 1000);
}
}
});
} }
/** /**
* h5 请求 * h5 请求
......
...@@ -219,13 +219,6 @@ class Util { ...@@ -219,13 +219,6 @@ class Util {
t: getTime(), t: getTime(),
p: this.statData.p p: this.statData.p
} }
if (getPlatformName() === 'n' && this.statData.p === 'a') {
setTimeout(() => {
this.request(options);
}, 200)
return
}
this.request(options); this.request(options);
} }
...@@ -246,12 +239,6 @@ class Util { ...@@ -246,12 +239,6 @@ class Util {
t: getTime(), t: getTime(),
p: this.statData.p p: this.statData.p
} }
if (getPlatformName() === 'n' && this.statData.p === 'a') {
setTimeout(() => {
this.request(options, type)
}, 200)
return
}
this.request(options, type) this.request(options, type)
} }
_sendEventRequest({ _sendEventRequest({
...@@ -377,31 +364,39 @@ class Util { ...@@ -377,31 +364,39 @@ class Util {
this.imageRequest(optionsData) this.imageRequest(optionsData)
return return
} }
uni.request({ if (getPlatformName() === 'n' && this.statData.p === 'a') {
url: STAT_URL, setTimeout(() => {
method: 'POST', this._sendRequest(optionsData);
// header: { }, 200)
// 'content-type': 'application/json' // 默认值 return
// }, }
data: optionsData, this._sendRequest(optionsData)
success: () => { }
// if (process.env.NODE_ENV === 'development') { _sendRequest(optionsData){
// console.log('stat request success'); uni.request({
// } url: STAT_URL,
}, method: 'POST',
fail: (e) => { // header: {
// if (process.env.NODE_ENV === 'development') { // 'content-type': 'application/json' // 默认值
// console.log('stat request fail', e); // },
// } data: optionsData,
if (++this._retry < 3) { success: () => {
setTimeout(() => { // if (process.env.NODE_ENV === 'development') {
this.request(data); // console.log('stat request success');
}, 1000); // }
} },
} fail: (e) => {
}); // if (process.env.NODE_ENV === 'development') {
// console.log('stat request fail', e);
// }
if (++this._retry < 3) {
setTimeout(() => {
this.request(data);
}, 1000);
}
}
});
} }
/** /**
* h5 请求 * h5 请求
......
<template> <template>
<uni-input v-on="$listeners"> <uni-input
@change.stop
v-on="$listeners">
<div <div
ref="wrapper" ref="wrapper"
class="uni-input-wrapper"> class="uni-input-wrapper">
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
:cursor="cursorNumber" :cursor="cursorNumber"
:selection-start="selectionStartNumber" :selection-start="selectionStartNumber"
:selection-end="selectionEndNumber" :selection-end="selectionEndNumber"
@change.stop
v-on="$listeners" v-on="$listeners"
> >
<div class="uni-textarea-wrapper"> <div class="uni-textarea-wrapper">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册