Commit a5ec72ee by 无尘

add: 增加门店权限

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