1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <<<<<<< HEAD
- //获取应用实例
- const app = getApp()
- const util = require('../../utils/util.js');
- const APIClient = require('../../utils/APIClient.js');
- const login = require('../../utils/loginSchedule.js');
- Page({
- data: {
- recommendData: {},
- },
- onLoad: function (options) {
-
- },
- onShow: function () {
- login.getOpenidSessionKey(res => {
- APIClient.getRecommendSchedule({
- uid: res.data.data.uid
- }).success(res => {
- //console.log(res.data)
- this.setData({
- recommendData: res.data.data,
- })
- })
- }, function() {
- wx.showModal({
- title: '提示',
- content: '需要获取您的公开信息(昵称、头像等),请从小程序列表删除小学王者班后再次扫码进入,允许授权后可正常使用',
- showCancel: false,
- success: function (res) {
- if (res.confirm) {
- console.log('用户点击确定')
- } else if (res.cancel) {
- console.log('用户点击取消')
- }
- }
- })
- });
- },
-
- =======
- // pages/recommend/recommend.js
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- recommendData: {
- type: Object,
- value: {}
- }
- },
- /**
- * 组件的初始数据
- */
- data: {
- imgUrls: [
- 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg',
- 'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg',
- 'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'
- ]
- },
- /**
- * 组件的方法列表
- */
- methods: {
-
- }
- >>>>>>> d311ba85855d9833139d43ef0f7038e08d5d9599
- })
|