|
|
@@ -39,6 +39,11 @@ Page({
|
|
|
sumMoney: 0,
|
|
|
wsPunchClockId: null
|
|
|
},
|
|
|
+ toRule() {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: './clock-rule/clock-rule',
|
|
|
+ })
|
|
|
+ },
|
|
|
getLocation() {
|
|
|
return new Promise(reslove => {
|
|
|
wx.getLocation({
|
|
|
@@ -157,7 +162,7 @@ Page({
|
|
|
async load() {
|
|
|
const data = await this.location()
|
|
|
punchClockNeedInfo({ longitude: data.longitude, latitude: data.latitude }).then(data => {
|
|
|
- // punchClockNeedInfo({ longitude: 120.353312, latitude: 31.535582 }).then(data => {
|
|
|
+ // punchClockNeedInfo({ longitude: 120.353312, latitude: 31.535582 }).then(data => {
|
|
|
let {
|
|
|
authenticationStatus,
|
|
|
startPunch,
|