Commit 73993ac4 by 前端

Merge branch 'develop' into 'master'

新增隐私协议

See merge request !6
2 parents ab3bbb26 bda39052
# Windows
[Dd]esktop.ini
Thumbs.db
$RECYCLE.BIN/
# macOS
.DS_Store
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.svn
# Node.js
node_modules/
miniprogram_npm/
...@@ -66,6 +66,8 @@ ...@@ -66,6 +66,8 @@
], ],
"sitemapLocation": "sitemap.json", "sitemapLocation": "sitemap.json",
"usingComponents": { "usingComponents": {
"myMap": "components/myMap/myMap" "myMap": "components/myMap/myMap",
} "glsx-privacy": "glsx-applet-component/GlsxPrivacy/index"
},
"__usePrivacyCheck__": true
} }
\ No newline at end of file \ No newline at end of file
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"glsx-applet-component": {
"version": "1.1.25",
"resolved": "https://registry.npmmirror.com/glsx-applet-component/-/glsx-applet-component-1.1.25.tgz",
"integrity": "sha512-tE84hW6y+1YG6hFroDEUvP/0rC0Bsgk/Z+xkKfp2++V3qs/7xFtYvz15ShThMSemLd7lcZCi0aMh9Xp4QNytLA=="
}
}
}
{
"dependencies": {
"glsx-applet-component": "^1.1.25"
}
}
<button open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="onGotUserInfo">获取用户信息</button> <button open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="onGotUserInfo">获取用户信息</button>
<!-- 新增隐私协议弹框 开始 -->
<glsx-privacy appletName="虎哥e盾"></glsx-privacy>
<!-- 新增隐私协议弹框 end -->
...@@ -14,3 +14,7 @@ ...@@ -14,3 +14,7 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 新增隐私协议弹框 开始 -->
<glsx-privacy appletName="虎哥e盾"></glsx-privacy>
<!-- 新增隐私协议弹框 end -->
\ No newline at end of file \ No newline at end of file
...@@ -38,5 +38,8 @@ ...@@ -38,5 +38,8 @@
退出登录 退出登录
</view> </view>
</view> </view>
<!-- 新增隐私协议弹框 开始 -->
<glsx-privacy appletName="虎哥e盾"></glsx-privacy>
<!-- 新增隐私协议弹框 end -->
...@@ -7,7 +7,9 @@ Page({ ...@@ -7,7 +7,9 @@ Page({
*/ */
data: { data: {
url: '', url: '',
init: false init: false,
lat: '',
lng: ''
}, },
/** /**
...@@ -15,21 +17,9 @@ Page({ ...@@ -15,21 +17,9 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
var that = this; var that = this;
wx.getLocation({ this.setData({
success: function(res) { lng: options.lng,
/*that.setData({ lat: options.lat
url: `${WXRequest.domain}h5/dist/trace.html?originLat=${res.latitude}&originLng=${res.longitude}`
});*/
wx.openLocation({
latitude: Number(options.lat),
longitude: Number(options.lng)
});
},
fail(res){
console.log(res)
}
}) })
}, },
...@@ -44,9 +34,25 @@ Page({ ...@@ -44,9 +34,25 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
if(this.data.init){ let _this = this;
if (this.data.init) {
wx.navigateBack() wx.navigateBack()
return false;
} }
wx.getLocation({
success: function (res) {
/*that.setData({
url: `${WXRequest.domain}h5/dist/trace.html?originLat=${res.latitude}&originLng=${res.longitude}`
});*/
wx.openLocation({
latitude: Number(_this.data.lat),
longitude: Number(_this.data.lng)
});
},
fail(res) {
console.log(res)
}
})
}, },
/** /**
......
<!-- <web-view src="{{url}}"></web-view> --> <!-- <web-view src="{{url}}"></web-view> -->
<!-- 新增隐私协议弹框 开始 -->
<glsx-privacy appletName="虎哥e盾"></glsx-privacy>
<!-- 新增隐私协议弹框 end -->
\ No newline at end of file \ No newline at end of file
//const domain = 'https://e-shield.didihu.com.cn/otmini/'; //正式环境 //const domain = 'https://e-shield.didihu.com.cn/otmini/'; //正式环境
//const domain = 'https://e-shield.hhxtechnology.com/otmini/'; //正式环境 const domain = 'https://e-shield.hhxtechnology.com/otmini/'; //正式环境
const domain = 'https://devwx.glsx.com.cn/otmini/'; //开发环境 //const domain = 'https://devwx.glsx.com.cn/otmini/'; //开发环境
/* /*
新e盾找车 新e盾找车
*/ */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!