Commit a5ec72ee by 无尘

add: 增加门店权限

parent eb6609e9
......@@ -46,7 +46,7 @@
<div class="swiper-button-next" slot="button-next"><i class="el-icon-arrow-right"></i></div>
</swiper>
</div>
<el-button type="primary">登录</el-button>
<el-button type="primary" @click="toIndex">登录</el-button>
</div>
</div>
</div>
......@@ -73,22 +73,22 @@ export default {
// 企业列表
enterpriseList:[
{
id: '1231',
id: '1233',
src: require("../../assets/logo.png"),
name: '达摩网络'
},
{
id: '1232',
id: '123354',
src: require("../../assets/logo.png"),
name: '达摩网络2'
},
{
id: '1233',
id: '12353',
src: require("../../assets/logo.png"),
name: '达摩网络'
},
{
id: '1234',
id: '123634',
src: require("../../assets/logo.png"),
name: '达摩网络2'
}
......@@ -113,9 +113,11 @@ export default {
},
methods: {
// 处理路由跳转
/**
* 处理路由跳转
*/
toRouterView(val) {
var that = this;
const that = this;
// 模拟检查数据
// //有两个参数
//{
......@@ -127,15 +129,21 @@ export default {
path: val.path
})
},
// 折叠事件
/**
* 折叠事件
*/
collapseTag(val){
var that = this;
const that = this;
console.log(val);
that.collapseFlag = val
},
/**
* 生成二维码
*/
qrcode (text) {
var that = this;
const that = this;
that.qrcodeCase = new QRCode('qrcode',
{
width: 210,
......@@ -149,25 +157,35 @@ export default {
console.log(that.qrcodeCase)
},
// 刷新二维码
/**
* 刷新二维码
*/
refreshCode() {
var that = this;
const that = this;
document.getElementById("qrcode").innerHTML = '';
that.qrcodeCase.clear(); // 先清除原有的
that.qrcode(5666315956663159)
that.expiredFlag = false; //隐藏过期遮罩层
},
/**
* 登录
*/
toIndex() {
const that = this
that.$router.push('/index')
}
},
mounted() {
var that = this
const that = this
/**
*生成二维码
*/
that.qrcode(55555566767)
// that.qrcode(55555566767)
},
components: {
swiper,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment