@dcloudio/uni-app-plus 2.0.1-alpha-34220220310002 → 2.0.1-alpha-34320220401001
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.
- package/dist/index.js +4 -4
- package/dist/index.v3.js +35 -19
- package/dist/view.umd.min.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2082,10 +2082,10 @@ function parsePage$1 (vuePageOptions) {
|
|
|
2082
2082
|
return pageOptions
|
|
2083
2083
|
}
|
|
2084
2084
|
|
|
2085
|
-
function createPage (vuePageOptions) {
|
|
2086
|
-
{
|
|
2087
|
-
return Component(parsePage$1(vuePageOptions))
|
|
2088
|
-
}
|
|
2085
|
+
function createPage (vuePageOptions) {
|
|
2086
|
+
{
|
|
2087
|
+
return Component(parsePage$1(vuePageOptions))
|
|
2088
|
+
}
|
|
2089
2089
|
}
|
|
2090
2090
|
|
|
2091
2091
|
function createComponent (vueOptions) {
|
package/dist/index.v3.js
CHANGED
|
@@ -5756,14 +5756,14 @@ var serviceContext = (function () {
|
|
|
5756
5756
|
class Page {
|
|
5757
5757
|
constructor (webview) {
|
|
5758
5758
|
this.webview = webview;
|
|
5759
|
-
}
|
|
5759
|
+
}
|
|
5760
5760
|
|
|
5761
5761
|
sendMessage (data) {
|
|
5762
|
-
const message = {
|
|
5762
|
+
const message = JSON.parse(JSON.stringify(({
|
|
5763
5763
|
__message: {
|
|
5764
5764
|
data
|
|
5765
5765
|
}
|
|
5766
|
-
};
|
|
5766
|
+
})));
|
|
5767
5767
|
const id = this.webview.id;
|
|
5768
5768
|
if (BroadcastChannel_) {
|
|
5769
5769
|
const channel = new BroadcastChannel_(id);
|
|
@@ -5771,7 +5771,7 @@ var serviceContext = (function () {
|
|
|
5771
5771
|
} else {
|
|
5772
5772
|
plus_.webview.postMessageToUniNView(message, id);
|
|
5773
5773
|
}
|
|
5774
|
-
}
|
|
5774
|
+
}
|
|
5775
5775
|
|
|
5776
5776
|
close () {
|
|
5777
5777
|
this.webview.close();
|
|
@@ -5810,7 +5810,8 @@ var serviceContext = (function () {
|
|
|
5810
5810
|
animationType: 'pop-in',
|
|
5811
5811
|
animationDuration: 200,
|
|
5812
5812
|
uniNView: {
|
|
5813
|
-
|
|
5813
|
+
// eslint-disable-next-line
|
|
5814
|
+
path: `${typeof VUE_APP_TEMPLATE_PATH === 'string' ? VUE_APP_TEMPLATE_PATH : ''}/${url}.js`,
|
|
5814
5815
|
defaultFontSize: 16,
|
|
5815
5816
|
viewport: plus_.screen.resolutionWidth
|
|
5816
5817
|
}
|
|
@@ -6847,11 +6848,11 @@ var serviceContext = (function () {
|
|
|
6847
6848
|
},
|
|
6848
6849
|
popGesture: 'close',
|
|
6849
6850
|
backButtonAutoControl: 'close'
|
|
6850
|
-
},
|
|
6851
|
-
onClose () {
|
|
6852
|
-
invoke$1(callbackId, {
|
|
6853
|
-
errMsg: 'openLocation:fail cancel'
|
|
6854
|
-
});
|
|
6851
|
+
},
|
|
6852
|
+
onClose () {
|
|
6853
|
+
invoke$1(callbackId, {
|
|
6854
|
+
errMsg: 'openLocation:fail cancel'
|
|
6855
|
+
});
|
|
6855
6856
|
}
|
|
6856
6857
|
});
|
|
6857
6858
|
return {
|
|
@@ -7976,7 +7977,8 @@ var serviceContext = (function () {
|
|
|
7976
7977
|
function login (params, callbackId, plus = true) {
|
|
7977
7978
|
const provider = params.provider || 'weixin';
|
|
7978
7979
|
const errorCallback = warpErrorCallback(callbackId, 'login', plus);
|
|
7979
|
-
const
|
|
7980
|
+
const isAppleLogin = provider === 'apple';
|
|
7981
|
+
const authOptions = isAppleLogin
|
|
7980
7982
|
? { scope: 'email' }
|
|
7981
7983
|
: params.univerifyStyle
|
|
7982
7984
|
? { univerifyStyle: univerifyButtonsClickHandling(params.univerifyStyle, errorCallback) }
|
|
@@ -7997,16 +7999,18 @@ var serviceContext = (function () {
|
|
|
7997
7999
|
}
|
|
7998
8000
|
service.login(res => {
|
|
7999
8001
|
const authResult = res.target.authResult;
|
|
8002
|
+
const appleInfo = res.target.appleInfo;
|
|
8000
8003
|
_invoke(callbackId, {
|
|
8001
8004
|
code: authResult.code,
|
|
8002
8005
|
authResult: authResult,
|
|
8006
|
+
appleInfo,
|
|
8003
8007
|
errMsg: 'login:ok'
|
|
8004
8008
|
});
|
|
8005
8009
|
}, errorCallback, authOptions);
|
|
8006
8010
|
}
|
|
8007
8011
|
// 先注销再登录
|
|
8008
8012
|
// apple登录logout之后无法重新触发获取email,fullname;一键登录无logout
|
|
8009
|
-
if (
|
|
8013
|
+
if (isAppleLogin || provider === 'univerify') {
|
|
8010
8014
|
login();
|
|
8011
8015
|
} else {
|
|
8012
8016
|
service.logout(login, login);
|
|
@@ -8336,7 +8340,10 @@ var serviceContext = (function () {
|
|
|
8336
8340
|
imageUrl,
|
|
8337
8341
|
mediaUrl: media,
|
|
8338
8342
|
scene,
|
|
8339
|
-
miniProgram
|
|
8343
|
+
miniProgram,
|
|
8344
|
+
openCustomerServiceChat,
|
|
8345
|
+
corpid,
|
|
8346
|
+
customerUrl: url
|
|
8340
8347
|
} = args;
|
|
8341
8348
|
|
|
8342
8349
|
if (typeof imageUrl === 'string' && imageUrl) {
|
|
@@ -8357,7 +8364,10 @@ var serviceContext = (function () {
|
|
|
8357
8364
|
miniProgram,
|
|
8358
8365
|
extra: {
|
|
8359
8366
|
scene
|
|
8360
|
-
}
|
|
8367
|
+
},
|
|
8368
|
+
openCustomerServiceChat,
|
|
8369
|
+
corpid,
|
|
8370
|
+
url
|
|
8361
8371
|
};
|
|
8362
8372
|
if (provider === 'weixin' && (type === 1 || type === 2)) {
|
|
8363
8373
|
delete sendMsg.thumbs;
|
|
@@ -8369,12 +8379,18 @@ var serviceContext = (function () {
|
|
|
8369
8379
|
|
|
8370
8380
|
const sendShareMsg = function (service, params, callbackId, method = 'share') {
|
|
8371
8381
|
const errorCallback = warpPlusErrorCallback(callbackId, method);
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8382
|
+
const serviceMethod = params.openCustomerServiceChat ? 'openCustomerServiceChat' : 'send';
|
|
8383
|
+
try {
|
|
8384
|
+
service[serviceMethod](params, () => {
|
|
8385
|
+
invoke$1(callbackId, {
|
|
8386
|
+
errMsg: method + ':ok'
|
|
8387
|
+
});
|
|
8388
|
+
}, errorCallback);
|
|
8389
|
+
} catch (error) {
|
|
8390
|
+
errorCallback({
|
|
8391
|
+
message: `${params.provider} ${serviceMethod} 方法调用失败`
|
|
8376
8392
|
});
|
|
8377
|
-
}
|
|
8393
|
+
}
|
|
8378
8394
|
};
|
|
8379
8395
|
|
|
8380
8396
|
function shareAppMessageDirectly ({
|