|
|
|
|
@ -1,4 +1,5 @@
@@ -1,4 +1,5 @@
|
|
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
|
|
|
|
const app = getApp<IAppOption>() |
|
|
|
|
let live_time: null | number = null |
|
|
|
|
|
|
|
|
|
@ -61,7 +62,8 @@ Page({
@@ -61,7 +62,8 @@ Page({
|
|
|
|
|
LAT: '', |
|
|
|
|
}) |
|
|
|
|
if (e.detail.index == 0) { |
|
|
|
|
} else if (e.detail.index == 1) { |
|
|
|
|
} |
|
|
|
|
else if (e.detail.index == 1) { |
|
|
|
|
} |
|
|
|
|
this.getList() |
|
|
|
|
}, |
|
|
|
|
@ -110,15 +112,17 @@ Page({
@@ -110,15 +112,17 @@ Page({
|
|
|
|
|
wx.getSetting({ |
|
|
|
|
success(res) { |
|
|
|
|
if ( |
|
|
|
|
res.authSetting['scope.userFuzzyLocation'] != undefined && |
|
|
|
|
res.authSetting['scope.userFuzzyLocation'] == true |
|
|
|
|
res.authSetting['scope.userFuzzyLocation'] != undefined |
|
|
|
|
&& res.authSetting['scope.userFuzzyLocation'] == true |
|
|
|
|
) { |
|
|
|
|
// 获取当前位置
|
|
|
|
|
that.getFuzzyLocation() |
|
|
|
|
} else if (res.authSetting['scope.userFuzzyLocation'] == undefined) { |
|
|
|
|
} |
|
|
|
|
else if (res.authSetting['scope.userFuzzyLocation'] == undefined) { |
|
|
|
|
// 获取当前位置
|
|
|
|
|
that.getFuzzyLocation() |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
wx.showModal({ |
|
|
|
|
title: '请求授权当前位置', |
|
|
|
|
content: '需要获取您的地理位置,请确认授权', |
|
|
|
|
@ -131,7 +135,8 @@ Page({
@@ -131,7 +135,8 @@ Page({
|
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 1000, |
|
|
|
|
}) |
|
|
|
|
} else if (res.confirm) { |
|
|
|
|
} |
|
|
|
|
else if (res.confirm) { |
|
|
|
|
// 确定授权,通过wx.openSetting发起授权请求
|
|
|
|
|
wx.openSetting({ |
|
|
|
|
success(res) { |
|
|
|
|
@ -143,7 +148,8 @@ Page({
@@ -143,7 +148,8 @@ Page({
|
|
|
|
|
// })
|
|
|
|
|
// 再次授权,调用wx.getLocation的API
|
|
|
|
|
that.getFuzzyLocation() |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
// wx.showToast({
|
|
|
|
|
// title: '授权失败',
|
|
|
|
|
// icon: 'none',
|
|
|
|
|
@ -158,7 +164,8 @@ Page({
@@ -158,7 +164,8 @@ Page({
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
that.setData({ |
|
|
|
|
LNG: '', |
|
|
|
|
LAT: '', |
|
|
|
|
@ -240,10 +247,4 @@ Page({
@@ -240,10 +247,4 @@ Page({
|
|
|
|
|
this.getList(page + 1) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onShareAppMessage() { |
|
|
|
|
return { |
|
|
|
|
title: '周三大咖说', |
|
|
|
|
path: '/patient/pages/live/index', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|