Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d23e83f1
authored
Sep 05, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新
1 parent
6ed60ea4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
89 additions
and
82 deletions
api/env/index.js
miniprogram_npm/glsx-applet-component/GlsxPrivacy/index.js
miniprogram_npm/glsx-applet-component/GlsxPrivacy/index.js.map
miniprogram_npm/glsx-applet-component/GlsxPrivacy/index.wxml
miniprogram_npm/glsx-applet-component/GlsxPrivacy/index.wxss
miniprogram_npm/glsx-map-sdk/index.js
miniprogram_npm/number-precision/index.js
node_modules/glsx-applet-component/dist/GlsxPrivacy/index.js
node_modules/glsx-applet-component/dist/GlsxPrivacy/index.js.map
node_modules/glsx-applet-component/dist/GlsxPrivacy/index.wxml
node_modules/glsx-applet-component/dist/GlsxPrivacy/index.wxss
node_modules/glsx-applet-component/package.json
node_modules/glsx-applet-component/src/GlsxPrivacy/index.js
node_modules/glsx-applet-component/src/GlsxPrivacy/index.wxml
node_modules/glsx-applet-component/src/GlsxPrivacy/index.wxss
package-lock.json
package.json
pages/Login/Login.js
pages/tab/index/components/customer/customer.wxml
api/env/index.js
View file @
d23e83f
import
{
preReleaseAppId
}
from
'~/config'
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
let
index
=
3
let
index
=
2
/**
*
...
...
miniprogram_npm/glsx-applet-component/GlsxPrivacy/index.js
View file @
d23e83f
...
...
@@ -97,13 +97,14 @@ var privacyHandler = void 0;
var
privacyResolves
=
new
Set
();
var
closeOtherPagePopUpHooks
=
new
Set
();
wx
.
onNeedPrivacyAuthorization
(
function
(
resolve
)
{
console
.
log
(
resolve
,
'-=-=-=-=-=-'
);
if
(
typeof
privacyHandler
===
'function'
)
{
privacyHandler
(
resolve
);
}
});
if
(
wx
.
onNeedPrivacyAuthorization
)
{
wx
.
onNeedPrivacyAuthorization
(
function
(
resolve
)
{
console
.
log
(
resolve
,
'-=-=-=-=-=-'
);
if
(
typeof
privacyHandler
===
'function'
)
{
privacyHandler
(
resolve
);
}
});
}
var
closeOtherPagePopUp
=
function
closeOtherPagePopUp
(
closePopUp
)
{
closeOtherPagePopUpHooks
.
forEach
(
function
(
hook
)
{
if
(
closePopUp
!==
hook
)
{
...
...
@@ -117,18 +118,17 @@ Component({
appletName
:
{
type
:
String
,
value
:
''
},
text
:
{
type
:
String
,
value
:
''
}
},
data
:
{
title
:
'用户隐私保护提示'
,
desc1
:
'感谢您使用本游戏,您使用本游戏前应当阅井同意'
,
urlTitle
:
'《用户隐私保护指引》'
,
desc2
:
'当您点击同意并开始时用产品服务时,即表示你已理解并同息该条款内容,该条款将对您产生法律约束力。如您拒绝,将无法进入游戏。'
,
showPrivacy
:
false
,
height
:
0
showPrivacy
:
false
},
l
ifetimes
:
{
attached
:
function
attached
()
{
pageL
ifetimes
:
{
show
:
function
show
()
{
var
_this
=
this
;
var
closePopUp
=
function
closePopUp
()
{
...
...
@@ -144,7 +144,7 @@ Component({
this
.
closePopUp
=
closePopUp
;
},
detached
:
function
detached
()
{
hide
:
function
hide
()
{
closeOtherPagePopUpHooks
.
delete
(
this
.
closePopUp
);
}
},
...
...
@@ -172,6 +172,7 @@ Component({
this
.
triggerEvent
(
'disagreeClick'
);
},
popUp
:
function
popUp
()
{
console
.
log
(
'showPrivacy'
,
this
.
data
.
showPrivacy
);
if
(
this
.
data
.
showPrivacy
===
false
)
{
this
.
setData
({
showPrivacy
:
true
...
...
miniprogram_npm/glsx-applet-component/GlsxPrivacy/index.js.map
View file @
d23e83f
This diff is collapsed.
Click to expand it.
miniprogram_npm/glsx-applet-component/GlsxPrivacy/index.wxml
View file @
d23e83f
<view
wx:if="{{
showPrivacy}}">
<view
hidden="{{!
showPrivacy}}">
<view class="pop-wrapper">
<view class="pop-box">
<view class="pop-content">
<view class="pop-title">{{appletName ? appletName : '隐私协议'}}</view>
<view class="pop-text">
在您使用{{appletName}}服务之前,请仔细阅读《隐私协议》和《服务使用协议》。如您同意协议内容,请点击“同意”开始使用{{appletName}}。
</view>
<view class="pop-text">
{{ text ? text : '在您使用' + appletName + '服务之前,请仔细阅读《用户隐私保护指引》。如您同意协议内容,请点击“同意”开始使用' + appletName + '。' }}
</view>
<view class="pop-privacy" bindtap="handleOpenPrivacyContract">《用户隐私保护指引》</view>
</view>
<view class="pop-bottom">
...
...
miniprogram_npm/glsx-applet-component/GlsxPrivacy/index.wxss
View file @
d23e83f
...
...
@@ -5,7 +5,7 @@
left: 0;
right: 0;
bottom: 0;
z-index: 99;
z-index: 99
999999
;
}
.pop-box {
position: absolute;
...
...
@@ -63,6 +63,7 @@
border-right: 2rpx solid #ededed;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
color: #000 !important;
}
.agree-btn {
border-top-left-radius: 0;
...
...
miniprogram_npm/glsx-map-sdk/index.js
View file @
d23e83f
...
...
@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
var
__REQUIRE__
=
function
(
modId
,
source
)
{
if
(
!
__MODS__
[
modId
])
return
require
(
source
);
if
(
!
__MODS__
[
modId
].
status
)
{
var
m
=
__MODS__
[
modId
].
m
;
m
.
_exports
=
m
.
_tempexports
;
var
desp
=
Object
.
getOwnPropertyDescriptor
(
m
,
"exports"
);
if
(
desp
&&
desp
.
configurable
)
Object
.
defineProperty
(
m
,
"exports"
,
{
set
:
function
(
val
)
{
if
(
typeof
val
===
"object"
&&
val
!==
m
.
_exports
)
{
m
.
_exports
.
__proto__
=
val
.
__proto__
;
Object
.
keys
(
val
).
forEach
(
function
(
k
)
{
m
.
_exports
[
k
]
=
val
[
k
];
});
}
m
.
_tempexports
=
val
},
get
:
function
()
{
return
m
.
_tempexports
;
}
});
__MODS__
[
modId
].
status
=
1
;
__MODS__
[
modId
].
func
(
__MODS__
[
modId
].
req
,
m
,
m
.
exports
);
}
return
__MODS__
[
modId
].
m
.
exports
;
};
var
__REQUIRE_WILDCARD__
=
function
(
obj
)
{
if
(
obj
&&
obj
.
__esModule
)
{
return
obj
;
}
else
{
var
newObj
=
{};
if
(
obj
!=
null
)
{
for
(
var
k
in
obj
)
{
if
(
Object
.
prototype
.
hasOwnProperty
.
call
(
obj
,
k
))
newObj
[
k
]
=
obj
[
k
];
}
}
newObj
.
default
=
obj
;
return
newObj
;
}
};
var
__REQUIRE_DEFAULT__
=
function
(
obj
)
{
return
obj
&&
obj
.
__esModule
?
obj
.
default
:
obj
;
};
__DEFINE__
(
1693
791796469
,
function
(
require
,
module
,
exports
)
{
__DEFINE__
(
1693
894085372
,
function
(
require
,
module
,
exports
)
{
/*
* @Descripttion: api封装类
* @version: 1.0.0
...
...
@@ -225,8 +225,8 @@ class GlMapApi {
}
if
(
!
exports
.
__esModule
)
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
default
=
GlMapApi
;
},
function
(
modId
)
{
var
map
=
{
"./request"
:
1693
791796470
};
return
__REQUIRE__
(
map
[
modId
],
modId
);
})
__DEFINE__
(
1693
791796470
,
function
(
require
,
module
,
exports
)
{
},
function
(
modId
)
{
var
map
=
{
"./request"
:
1693
894085373
};
return
__REQUIRE__
(
map
[
modId
],
modId
);
})
__DEFINE__
(
1693
894085373
,
function
(
require
,
module
,
exports
)
{
/*
* @Descripttion: 定义一个Request类,用于封装请求高德地图API的方法
* @version: 1.0.0
...
...
@@ -340,8 +340,8 @@ class Request {
}
if
(
!
exports
.
__esModule
)
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
default
=
Request
;
},
function
(
modId
)
{
var
map
=
{
"./lib/md5"
:
1693
791796471
,
"./lib/qs"
:
1693791796472
,
"./constants"
:
1693791796473
,
"./helper"
:
1693791796474
};
return
__REQUIRE__
(
map
[
modId
],
modId
);
})
__DEFINE__
(
1693
791796471
,
function
(
require
,
module
,
exports
)
{
},
function
(
modId
)
{
var
map
=
{
"./lib/md5"
:
1693
894085374
,
"./lib/qs"
:
1693894085375
,
"./constants"
:
1693894085376
,
"./helper"
:
1693894085377
};
return
__REQUIRE__
(
map
[
modId
],
modId
);
})
__DEFINE__
(
1693
894085374
,
function
(
require
,
module
,
exports
)
{
(
function
()
{
...
...
@@ -1017,7 +1017,7 @@ __DEFINE__(1693791796471, function(require, module, exports) {
}
})();
},
function
(
modId
)
{
var
map
=
{};
return
__REQUIRE__
(
map
[
modId
],
modId
);
})
__DEFINE__
(
1693
791796472
,
function
(
require
,
module
,
exports
)
{
__DEFINE__
(
1693
894085375
,
function
(
require
,
module
,
exports
)
{
(
function
(
f
){
if
(
typeof
exports
===
"object"
&&
typeof
module
!==
"undefined"
){
module
.
exports
=
f
()}
else
if
(
typeof
define
===
"function"
&&
define
.
amd
){
define
([],
f
)}
else
{
var
g
;
if
(
typeof
window
!==
"undefined"
){
g
=
window
}
else
if
(
typeof
global
!==
"undefined"
){
g
=
global
}
else
if
(
typeof
self
!==
"undefined"
){
g
=
self
}
else
{
g
=
this
}
g
.
Qs
=
f
()}})(
function
(){
var
define
,
module
,
exports
;
return
(
function
(){
function
r
(
e
,
n
,
t
){
function
o
(
i
,
f
){
if
(
!
n
[
i
]){
if
(
!
e
[
i
]){
var
c
=
"function"
==
typeof
require
&&
require
;
if
(
!
f
&&
c
)
return
c
(
i
,
!
0
);
if
(
u
)
return
u
(
i
,
!
0
);
var
a
=
new
Error
(
"Cannot find module '"
+
i
+
"'"
);
throw
a
.
code
=
"MODULE_NOT_FOUND"
,
a
}
var
p
=
n
[
i
]
=
{
exports
:{}};
e
[
i
][
0
].
call
(
p
.
exports
,
function
(
r
){
var
n
=
e
[
i
][
1
][
r
];
return
o
(
n
||
r
)},
p
,
p
.
exports
,
r
,
e
,
n
,
t
)}
return
n
[
i
].
exports
}
for
(
var
u
=
"function"
==
typeof
require
&&
require
,
i
=
0
;
i
<
t
.
length
;
i
++
)
o
(
t
[
i
]);
return
o
}
return
r
})()({
1
:[
function
(
require
,
module
,
exports
){
...
...
@@ -1658,7 +1658,7 @@ module.exports = {
});
},
function
(
modId
)
{
var
map
=
{};
return
__REQUIRE__
(
map
[
modId
],
modId
);
})
__DEFINE__
(
1693
791796473
,
function
(
require
,
module
,
exports
)
{
__DEFINE__
(
1693
894085376
,
function
(
require
,
module
,
exports
)
{
/*
* @Descripttion: 常量类
* @version: 1.0.0
...
...
@@ -1671,7 +1671,7 @@ __DEFINE__(1693791796473, function(require, module, exports) {
if
(
!
exports
.
__esModule
)
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
MAP_OPTIONS
=
exports
.
MAP_OPTIONS
=
{
domain
:
'https://restapi.amap.com'
,
KEY
:
'373bd88fa36ebc0247d60281386b6cec'
,
SECRET
:
'a2a93fa04721a36819d86b71cb31fe41'
};
},
function
(
modId
)
{
var
map
=
{};
return
__REQUIRE__
(
map
[
modId
],
modId
);
})
__DEFINE__
(
1693
791796474
,
function
(
require
,
module
,
exports
)
{
__DEFINE__
(
1693
894085377
,
function
(
require
,
module
,
exports
)
{
/*
* @Descripttion:帮助类
* @version: 1.0.0
...
...
@@ -1684,7 +1684,7 @@ __DEFINE__(1693791796474, function(require, module, exports) {
if
(
!
exports
.
__esModule
)
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
isMiniprogram
=
exports
.
isMiniprogram
=
!
window
;
},
function
(
modId
)
{
var
map
=
{};
return
__REQUIRE__
(
map
[
modId
],
modId
);
})
return
__REQUIRE__
(
1693
791796469
);
return
__REQUIRE__
(
1693
894085372
);
})()
//miniprogram-npm-outsideDeps=["./stringify","./parse","./formats","./utils"]
//# sourceMappingURL=index.js.map
\ No newline at end of file
miniprogram_npm/number-precision/index.js
View file @
d23e83f
...
...
@@ -4,7 +4,7 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport
var
__REQUIRE__
=
function
(
modId
,
source
)
{
if
(
!
__MODS__
[
modId
])
return
require
(
source
);
if
(
!
__MODS__
[
modId
].
status
)
{
var
m
=
__MODS__
[
modId
].
m
;
m
.
_exports
=
m
.
_tempexports
;
var
desp
=
Object
.
getOwnPropertyDescriptor
(
m
,
"exports"
);
if
(
desp
&&
desp
.
configurable
)
Object
.
defineProperty
(
m
,
"exports"
,
{
set
:
function
(
val
)
{
if
(
typeof
val
===
"object"
&&
val
!==
m
.
_exports
)
{
m
.
_exports
.
__proto__
=
val
.
__proto__
;
Object
.
keys
(
val
).
forEach
(
function
(
k
)
{
m
.
_exports
[
k
]
=
val
[
k
];
});
}
m
.
_tempexports
=
val
},
get
:
function
()
{
return
m
.
_tempexports
;
}
});
__MODS__
[
modId
].
status
=
1
;
__MODS__
[
modId
].
func
(
__MODS__
[
modId
].
req
,
m
,
m
.
exports
);
}
return
__MODS__
[
modId
].
m
.
exports
;
};
var
__REQUIRE_WILDCARD__
=
function
(
obj
)
{
if
(
obj
&&
obj
.
__esModule
)
{
return
obj
;
}
else
{
var
newObj
=
{};
if
(
obj
!=
null
)
{
for
(
var
k
in
obj
)
{
if
(
Object
.
prototype
.
hasOwnProperty
.
call
(
obj
,
k
))
newObj
[
k
]
=
obj
[
k
];
}
}
newObj
.
default
=
obj
;
return
newObj
;
}
};
var
__REQUIRE_DEFAULT__
=
function
(
obj
)
{
return
obj
&&
obj
.
__esModule
?
obj
.
default
:
obj
;
};
__DEFINE__
(
1693
791796475
,
function
(
require
,
module
,
exports
)
{
__DEFINE__
(
1693
894085378
,
function
(
require
,
module
,
exports
)
{
Object
.
defineProperty
(
exports
,
'__esModule'
,
{
value
:
true
});
...
...
@@ -171,7 +171,7 @@ exports.enableBoundaryChecking = enableBoundaryChecking;
exports
[
'default'
]
=
index
;
},
function
(
modId
)
{
var
map
=
{};
return
__REQUIRE__
(
map
[
modId
],
modId
);
})
return
__REQUIRE__
(
1693
791796475
);
return
__REQUIRE__
(
1693
894085378
);
})()
//miniprogram-npm-outsideDeps=[]
//# sourceMappingURL=index.js.map
\ No newline at end of file
node_modules/glsx-applet-component/dist/GlsxPrivacy/index.js
View file @
d23e83f
...
...
@@ -97,13 +97,14 @@ var privacyHandler = void 0;
var
privacyResolves
=
new
Set
();
var
closeOtherPagePopUpHooks
=
new
Set
();
wx
.
onNeedPrivacyAuthorization
(
function
(
resolve
)
{
console
.
log
(
resolve
,
'-=-=-=-=-=-'
);
if
(
typeof
privacyHandler
===
'function'
)
{
privacyHandler
(
resolve
);
}
});
if
(
wx
.
onNeedPrivacyAuthorization
)
{
wx
.
onNeedPrivacyAuthorization
(
function
(
resolve
)
{
console
.
log
(
resolve
,
'-=-=-=-=-=-'
);
if
(
typeof
privacyHandler
===
'function'
)
{
privacyHandler
(
resolve
);
}
});
}
var
closeOtherPagePopUp
=
function
closeOtherPagePopUp
(
closePopUp
)
{
closeOtherPagePopUpHooks
.
forEach
(
function
(
hook
)
{
if
(
closePopUp
!==
hook
)
{
...
...
@@ -117,18 +118,17 @@ Component({
appletName
:
{
type
:
String
,
value
:
''
},
text
:
{
type
:
String
,
value
:
''
}
},
data
:
{
title
:
'用户隐私保护提示'
,
desc1
:
'感谢您使用本游戏,您使用本游戏前应当阅井同意'
,
urlTitle
:
'《用户隐私保护指引》'
,
desc2
:
'当您点击同意并开始时用产品服务时,即表示你已理解并同息该条款内容,该条款将对您产生法律约束力。如您拒绝,将无法进入游戏。'
,
showPrivacy
:
false
,
height
:
0
showPrivacy
:
false
},
l
ifetimes
:
{
attached
:
function
attached
()
{
pageL
ifetimes
:
{
show
:
function
show
()
{
var
_this
=
this
;
var
closePopUp
=
function
closePopUp
()
{
...
...
@@ -144,7 +144,7 @@ Component({
this
.
closePopUp
=
closePopUp
;
},
detached
:
function
detached
()
{
hide
:
function
hide
()
{
closeOtherPagePopUpHooks
.
delete
(
this
.
closePopUp
);
}
},
...
...
@@ -172,6 +172,7 @@ Component({
this
.
triggerEvent
(
'disagreeClick'
);
},
popUp
:
function
popUp
()
{
console
.
log
(
'showPrivacy'
,
this
.
data
.
showPrivacy
);
if
(
this
.
data
.
showPrivacy
===
false
)
{
this
.
setData
({
showPrivacy
:
true
...
...
node_modules/glsx-applet-component/dist/GlsxPrivacy/index.js.map
View file @
d23e83f
This diff is collapsed.
Click to expand it.
node_modules/glsx-applet-component/dist/GlsxPrivacy/index.wxml
View file @
d23e83f
<view
wx:if="{{
showPrivacy}}">
<view
hidden="{{!
showPrivacy}}">
<view class="pop-wrapper">
<view class="pop-box">
<view class="pop-content">
<view class="pop-title">{{appletName ? appletName : '隐私协议'}}</view>
<view class="pop-text">
在您使用{{appletName}}服务之前,请仔细阅读《隐私协议》和《服务使用协议》。如您同意协议内容,请点击“同意”开始使用{{appletName}}。
</view>
<view class="pop-text">
{{ text ? text : '在您使用' + appletName + '服务之前,请仔细阅读《用户隐私保护指引》。如您同意协议内容,请点击“同意”开始使用' + appletName + '。' }}
</view>
<view class="pop-privacy" bindtap="handleOpenPrivacyContract">《用户隐私保护指引》</view>
</view>
<view class="pop-bottom">
...
...
node_modules/glsx-applet-component/dist/GlsxPrivacy/index.wxss
View file @
d23e83f
...
...
@@ -5,7 +5,7 @@
left: 0;
right: 0;
bottom: 0;
z-index: 99;
z-index: 99
999999
;
}
.pop-box {
position: absolute;
...
...
@@ -63,6 +63,7 @@
border-right: 2rpx solid #ededed;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
color: #000 !important;
}
.agree-btn {
border-top-left-radius: 0;
...
...
node_modules/glsx-applet-component/package.json
View file @
d23e83f
{
"_from"
:
"glsx-applet-component"
,
"_id"
:
"glsx-applet-component@1.1.2
1
"
,
"_from"
:
"glsx-applet-component
@latest
"
,
"_id"
:
"glsx-applet-component@1.1.2
4
"
,
"_inBundle"
:
false
,
"_integrity"
:
"sha512-
ufv3skaj+ungg0eO6DvFNuCjK1Kwg8D/H1MBu9i8hHJToYtvXEJrblAk6LT3NYUOddtIDhVs+p3DgpXUg2WtPQ
=="
,
"_integrity"
:
"sha512-
3XTG9J99rgKVJpcC7aKS/+N7CaS+MNYdy5qmWH8siFaRFiSo1PeBRDaprfjCazaud/c31RvpoDFUof/fxNkxjw
=="
,
"_location"
:
"/glsx-applet-component"
,
"_phantomChildren"
:
{},
"_requested"
:
{
"type"
:
"tag"
,
"registry"
:
true
,
"raw"
:
"glsx-applet-component"
,
"raw"
:
"glsx-applet-component
@latest
"
,
"name"
:
"glsx-applet-component"
,
"escapedName"
:
"glsx-applet-component"
,
"rawSpec"
:
""
,
"rawSpec"
:
"
latest
"
,
"saveSpec"
:
null
,
"fetchSpec"
:
"latest"
},
...
...
@@ -19,9 +19,9 @@
"#USER"
,
"/"
],
"_resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.2
1
.tgz"
,
"_shasum"
:
"
5b9529b7b4b7374d72674b0dee1949a361e98154
"
,
"_spec"
:
"glsx-applet-component"
,
"_resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.2
4
.tgz"
,
"_shasum"
:
"
636e5eb6b29bd2d63c3055de439295f81557de0c
"
,
"_spec"
:
"glsx-applet-component
@latest
"
,
"_where"
:
"D:
\\
2023
\\
08
\\
0831-hmd"
,
"author"
:
{
"name"
:
"jack"
...
...
@@ -98,5 +98,5 @@
"test-debug"
:
"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --bail"
,
"watch"
:
"gulp watch --develop --watch"
},
"version"
:
"1.1.2
1
"
"version"
:
"1.1.2
4
"
}
node_modules/glsx-applet-component/src/GlsxPrivacy/index.js
View file @
d23e83f
...
...
@@ -2,13 +2,14 @@ let privacyHandler
const
privacyResolves
=
new
Set
()
const
closeOtherPagePopUpHooks
=
new
Set
()
wx
.
onNeedPrivacyAuthorization
(
resolve
=>
{
console
.
log
(
resolve
,
'-=-=-=-=-=-'
)
if
(
typeof
privacyHandler
===
'function'
)
{
privacyHandler
(
resolve
)
}
})
if
(
wx
.
onNeedPrivacyAuthorization
)
{
wx
.
onNeedPrivacyAuthorization
(
resolve
=>
{
console
.
log
(
resolve
,
'-=-=-=-=-=-'
)
if
(
typeof
privacyHandler
===
'function'
)
{
privacyHandler
(
resolve
)
}
})
}
const
closeOtherPagePopUp
=
(
closePopUp
)
=>
{
closeOtherPagePopUpHooks
.
forEach
(
hook
=>
{
if
(
closePopUp
!==
hook
)
{
...
...
@@ -22,18 +23,17 @@ Component({
appletName
:
{
type
:
String
,
value
:
''
},
text
:
{
type
:
String
,
value
:
''
}
},
data
:
{
title
:
'用户隐私保护提示'
,
desc1
:
'感谢您使用本游戏,您使用本游戏前应当阅井同意'
,
urlTitle
:
'《用户隐私保护指引》'
,
desc2
:
'当您点击同意并开始时用产品服务时,即表示你已理解并同息该条款内容,该条款将对您产生法律约束力。如您拒绝,将无法进入游戏。'
,
showPrivacy
:
false
,
height
:
0
,
},
l
ifetimes
:
{
attached
:
function
()
{
pageL
ifetimes
:
{
show
:
function
()
{
const
closePopUp
=
()
=>
{
this
.
disPopUp
()
}
...
...
@@ -47,7 +47,7 @@ Component({
this
.
closePopUp
=
closePopUp
},
detached
:
function
()
{
hide
:
function
()
{
closeOtherPagePopUpHooks
.
delete
(
this
.
closePopUp
)
}
},
...
...
@@ -75,6 +75,7 @@ Component({
this
.
triggerEvent
(
'disagreeClick'
)
},
popUp
()
{
console
.
log
(
'showPrivacy'
,
this
.
data
.
showPrivacy
);
if
(
this
.
data
.
showPrivacy
===
false
)
{
this
.
setData
({
showPrivacy
:
true
...
...
node_modules/glsx-applet-component/src/GlsxPrivacy/index.wxml
View file @
d23e83f
<view
wx:if="{{
showPrivacy}}">
<view
hidden="{{!
showPrivacy}}">
<view class="pop-wrapper">
<view class="pop-box">
<view class="pop-content">
<view class="pop-title">{{appletName ? appletName : '隐私协议'}}</view>
<view class="pop-text">
在您使用{{appletName}}服务之前,请仔细阅读《隐私协议》和《服务使用协议》。如您同意协议内容,请点击“同意”开始使用{{appletName}}。
</view>
<view class="pop-text">
{{ text ? text : '在您使用' + appletName + '服务之前,请仔细阅读《用户隐私保护指引》。如您同意协议内容,请点击“同意”开始使用' + appletName + '。' }}
</view>
<view class="pop-privacy" bindtap="handleOpenPrivacyContract">《用户隐私保护指引》</view>
</view>
<view class="pop-bottom">
...
...
node_modules/glsx-applet-component/src/GlsxPrivacy/index.wxss
View file @
d23e83f
...
...
@@ -5,7 +5,7 @@
left: 0;
right: 0;
bottom: 0;
z-index: 99;
z-index: 99
999999
;
}
.pop-box {
position: absolute;
...
...
@@ -64,6 +64,7 @@
border-right: 2rpx solid #ededed;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
color: #000 !important;
}
.agree-btn {
border-top-left-radius: 0;
...
...
package-lock.json
View file @
d23e83f
...
...
@@ -5,9 +5,9 @@
"requires"
:
true
,
"dependencies"
:
{
"glsx-applet-component"
:
{
"version"
:
"1.1.2
1
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.2
1
.tgz"
,
"integrity"
:
"sha512-
ufv3skaj+ungg0eO6DvFNuCjK1Kwg8D/H1MBu9i8hHJToYtvXEJrblAk6LT3NYUOddtIDhVs+p3DgpXUg2WtPQ
=="
"version"
:
"1.1.2
4
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.2
4
.tgz"
,
"integrity"
:
"sha512-
3XTG9J99rgKVJpcC7aKS/+N7CaS+MNYdy5qmWH8siFaRFiSo1PeBRDaprfjCazaud/c31RvpoDFUof/fxNkxjw
=="
},
"glsx-map-sdk"
:
{
"version"
:
"0.2.0"
,
...
...
package.json
View file @
d23e83f
...
...
@@ -3,7 +3,7 @@
"version"
:
"1.0.0"
,
"main"
:
"app.js"
,
"dependencies"
:
{
"glsx-applet-component"
:
"^1.1.2
1
"
,
"glsx-applet-component"
:
"^1.1.2
4
"
,
"glsx-map-sdk"
:
"^0.2.0"
,
"number-precision"
:
"^1.6.0"
},
...
...
pages/Login/Login.js
View file @
d23e83f
...
...
@@ -140,6 +140,7 @@ Page({
}
=
this
.
data
try
{
if
(
detail
.
errMsg
.
includes
(
'deny'
))
return
if
(
detail
.
errMsg
.
includes
(
'authorized'
))
return
if
(
!
detail
?.
code
)
throw
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
if
(
!
isAgree
)
throw
'请同意以下用户协议'
wx
.
p
.
wxApi
.
showLoading
()
...
...
pages/tab/index/components/customer/customer.wxml
View file @
d23e83f
...
...
@@ -38,4 +38,4 @@
</view>
</block>
<authorize scopeType="writePhotosAlbum" isShowCheck="{{false}}" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
<authorize scopeType="writePhotosAlbum" isShowCheck="{{false}}" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment