| 12345678910111213141516171819202122 |
- var app = new Vue({
- el: '#app',
- data: {
- info: {},
- },
- created: function () {
- this.getInfo();
- },
- methods: {
- // 获取信息
- getInfo: function(){
- var _this = this;
- $.post('/weixin/news/getAgree', {}, function (res) {
- if (res.code == 'success') {
- _this.info = res.data
- } else if (res.code == 'login') {
- login(res.data.url);
- }
- }, "json");
- },
- }
- });
|