Commit 6177a4fa by xiaohai Committed by 无尘

.

parent 2243a433
...@@ -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" @click="toIndex">登录</el-button> <el-button type="primary">登录</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -73,22 +73,22 @@ export default { ...@@ -73,22 +73,22 @@ export default {
// 企业列表 // 企业列表
enterpriseList:[ enterpriseList:[
{ {
id: '1233', id: '1231',
src: require("../../assets/logo.png"), src: require("../../assets/logo.png"),
name: '达摩网络' name: '达摩网络'
}, },
{ {
id: '123354', id: '1232',
src: require("../../assets/logo.png"), src: require("../../assets/logo.png"),
name: '达摩网络2' name: '达摩网络2'
}, },
{ {
id: '12353', id: '1233',
src: require("../../assets/logo.png"), src: require("../../assets/logo.png"),
name: '达摩网络' name: '达摩网络'
}, },
{ {
id: '123634', id: '1234',
src: require("../../assets/logo.png"), src: require("../../assets/logo.png"),
name: '达摩网络2' name: '达摩网络2'
} }
...@@ -113,11 +113,9 @@ export default { ...@@ -113,11 +113,9 @@ export default {
}, },
methods: { methods: {
/** // 处理路由跳转
* 处理路由跳转
*/
toRouterView(val) { toRouterView(val) {
const that = this; var that = this;
// 模拟检查数据 // 模拟检查数据
// //有两个参数 // //有两个参数
//{ //{
...@@ -129,21 +127,15 @@ export default { ...@@ -129,21 +127,15 @@ export default {
path: val.path path: val.path
}) })
}, },
// 折叠事件
/**
* 折叠事件
*/
collapseTag(val){ collapseTag(val){
const that = this; var that = this;
console.log(val); console.log(val);
that.collapseFlag = val that.collapseFlag = val
}, },
/**
* 生成二维码
*/
qrcode (text) { qrcode (text) {
const that = this; var that = this;
that.qrcodeCase = new QRCode('qrcode', that.qrcodeCase = new QRCode('qrcode',
{ {
width: 210, width: 210,
...@@ -157,35 +149,25 @@ export default { ...@@ -157,35 +149,25 @@ export default {
console.log(that.qrcodeCase) console.log(that.qrcodeCase)
}, },
/** // 刷新二维码
* 刷新二维码
*/
refreshCode() { refreshCode() {
const that = this; var 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() {
const that = this var 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