|
@@ -249,17 +249,20 @@
|
|
|
agreeContentDialogRef.value.handleShow();
|
|
agreeContentDialogRef.value.handleShow();
|
|
|
};
|
|
};
|
|
|
const getUUid = (data) => {
|
|
const getUUid = (data) => {
|
|
|
- plus.device.getInfo({
|
|
|
|
|
- success: (res) => {
|
|
|
|
|
- // res.uuid 是设备的 UUID(iOS 下为 identifierForVendor)
|
|
|
|
|
- console.log('res', res);
|
|
|
|
|
- uuid.value = res.uuid;
|
|
|
|
|
- console.log('iOS 设备 UUID:', uuid.value);
|
|
|
|
|
- },
|
|
|
|
|
- fail: (err) => {
|
|
|
|
|
- console.error('获取设备信息失败:', err);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ const systemInfo = uni.getSystemInfoSync();
|
|
|
|
|
+ if (systemInfo.platform == 'ios') {
|
|
|
|
|
+ plus.device.getInfo({
|
|
|
|
|
+ success: (res) => {
|
|
|
|
|
+ // res.uuid 是设备的 UUID(iOS 下为 identifierForVendor)
|
|
|
|
|
+ console.log('res', res);
|
|
|
|
|
+ uuid.value = res.uuid;
|
|
|
|
|
+ console.log('iOS 设备 UUID:', uuid.value);
|
|
|
|
|
+ },
|
|
|
|
|
+ fail: (err) => {
|
|
|
|
|
+ console.error('获取设备信息失败:', err);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const handleAgreementChange = (event) => {
|
|
const handleAgreementChange = (event) => {
|
|
@@ -274,7 +277,7 @@
|
|
|
const systemInfo = uni.getSystemInfoSync();
|
|
const systemInfo = uni.getSystemInfoSync();
|
|
|
if (indexData.isAgreed === true) {
|
|
if (indexData.isAgreed === true) {
|
|
|
|
|
|
|
|
- if (!uuid.value) {
|
|
|
|
|
|
|
+ if (!uuid.value && systemInfo.platform == 'ios') {
|
|
|
toast("设备id丢失")
|
|
toast("设备id丢失")
|
|
|
getUUid()
|
|
getUUid()
|
|
|
return false
|
|
return false
|
|
@@ -377,7 +380,7 @@
|
|
|
// provider: 'weixin',
|
|
// provider: 'weixin',
|
|
|
// "onlyAuthorize": true, // 微信登录仅请求授权认证
|
|
// "onlyAuthorize": true, // 微信登录仅请求授权认证
|
|
|
// success: function (loginRes) {
|
|
// success: function (loginRes) {
|
|
|
- // console.log('loginRes',loginRes);
|
|
|
|
|
|
|
+ // console.log('loginRes',loginRes);
|
|
|
|
|
|
|
|
// }
|
|
// }
|
|
|
// });
|
|
// });
|