var vm = new Vue({ el: "#app", data: { tel: '', i: 2, tabI: 1, activeIndex: 2, solveSwiper: "", teleManaI: 1, info: { state: "true", sid: "wx0e54629b62273d87", code: 3, reurl: 'http://ceshi01.7x24cc.com', } }, created() { Vue.set(this.info, 'b'); }, mounted() { setInterval(this.putUrl(), 600000); if (screen.availWidth !== 1280 && window.devicePixelRatio !== 1.5) { AOS.init({ disable: "mobile", duration: 600, delay: 50, easing: 'ease-in-out' }) } else { AOS.init({ disable: true, duration: 600, delay: 50, easing: 'ease-in-out' }) } }, mixins: [mixins], methods: { solveTab: function (i) { this.i = i; var j = i - 1; this.solveSwiper.slideTo(j, 1000, false); }, teleMana: function (i) { this.teleManaI = i; }, putUrl() { axios.get('/api/weixin/hollychat_install.php').then(res => { console.log(res.data); vm.info.code = res.data; }) } } }); $(".guan-reg").click(function () { $.ajax({ type: "POST", dataType: "text", url: "/api/weixin/hollychat.php", success: function (result) { console.log(result); window.open("https://open.work.weixin.qq.com/3rdservice/wework/register?register_code=" + result, "_blank") }, error: function (e) { console.log(e.status); console.log(e.responseText); } }); })