|
|
@@ -31,6 +31,9 @@ |
|
|
|
<view style="color: #666;"> |
|
|
|
{{postData.ClockPlace}} |
|
|
|
</view> |
|
|
|
<view class="wifiCard" v-if="info.AttendanceType != 5"> |
|
|
|
定位不精准?<span @click="isInternalNetwork">WIFI信息打卡</span> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="footer"> |
|
|
@@ -314,6 +317,19 @@ |
|
|
|
toAttendanceCardTeacher() { |
|
|
|
this.JUMP_TO('/pages/AttendanceCardTeacher/list', {},true) |
|
|
|
}, |
|
|
|
// 判断是否学校网络 |
|
|
|
isInternalNetwork(){ |
|
|
|
this.LOADING() |
|
|
|
this.requestBase("https://mp.weixin.qq.com/intp/getuserclientip").then(res=>{ |
|
|
|
this.HIDE_LOADING() |
|
|
|
if(res.data&&['1.190.222.35','1.190.222.34'].inlcudes(res.data.client_ip)){ |
|
|
|
let postData = {AIsOut:0,ClockPlace:'已连接校园网'} |
|
|
|
this.NAV_TO(`./single_zc`,postData,true) |
|
|
|
}else{ |
|
|
|
this.TOAST('未检测到校园网连接') |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
destroyed() { |
|
|
|
// let scirpt = document.getElementById('baiduScript') |
|
|
@@ -431,4 +447,13 @@ |
|
|
|
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); |
|
|
|
filter: gray; |
|
|
|
} |
|
|
|
|
|
|
|
.wifiCard{ |
|
|
|
margin-top: 6px; |
|
|
|
font-size: 14px; |
|
|
|
text-align: center; |
|
|
|
span{ |
|
|
|
color: #0c86d8; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |