64 lines
2.1 KiB
PHP
64 lines
2.1 KiB
PHP
<?php
|
||
|
||
/**
|
||
* @author Any
|
||
* @description KISS
|
||
* @date 2020-11-4
|
||
* @version 1.0.0
|
||
*
|
||
* _____LOG_____
|
||
*
|
||
*/
|
||
$this->title = '控制台';
|
||
$this->params['breadcrumbs'][] = $this->title;
|
||
?>
|
||
|
||
<!--<div >
|
||
<div class="layui-card">
|
||
<div class="layui-card-header" align="center" style="padding: 30px">
|
||
<button type="button" class="layui-btn" onclick="download()">
|
||
<i class="layui-icon layui-icon-face-smile layui-icon-download-circle"></i>
|
||
下载设备客户端 .exe</button>
|
||
</div>
|
||
<div class="layui-card-body">
|
||
使用说明:
|
||
<br>
|
||
下载完安装包后,使用解压软件解开压缩包,进入文件目录
|
||
<br>
|
||
找到 golf.exe 双击即可运行
|
||
<br>
|
||
具体看软件上显示的状态是什么,有三种状态,1.未绑定店铺,2.未绑定用户,3.已绑定用户
|
||
<br>
|
||
如果是未绑定店铺,则需要让门店教练使用小程序扫码绑定一下,未绑定用户的情况下,才能让用户在小程序内去扫码绑定
|
||
<br>
|
||
<br>
|
||
<p>
|
||
windows自带安全系统拦截不让打开软件解决方式
|
||
:拦截页面中,左下方有个{显示更多}点击后有个运行按钮,点击即可
|
||
</p>
|
||
</div>
|
||
</div>
|
||
</div>-->
|
||
|
||
<script>
|
||
<?php $this->beginBlock('js_script_wrap') ?>
|
||
layui.config({
|
||
base: '/statics/layuiadmin/' //静态资源所在路径
|
||
}).extend({
|
||
index: 'lib/index', //主入口模块
|
||
}).use(['index','echarts'],function(){
|
||
|
||
});
|
||
|
||
var is_download = false
|
||
// 下载
|
||
function download(){
|
||
if(is_download){
|
||
return layer.msg('已点击过一次,请刷新页面再下载')
|
||
}
|
||
is_download = true
|
||
window.location.href = window.location.origin+"/golf/1.0.1.zip";
|
||
}
|
||
<?php $this->endBlock(); ?>
|
||
</script>
|
||
<?php $this->registerJs($this->blocks['js_script_wrap'],\yii\web\View::POS_END); ?>
|