| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import common from '../../utils/util';
- import server from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- ListProgram: [],
- },
- onLoad: function (options) {
- this.setData({
- ListProgram: server.getProgramList(),
- })
- },
- switchProgram: function (e) {
- wx.navigateToMiniProgram({
- appId: e.currentTarget.dataset.appid,
- path: e.currentTarget.dataset.path,
- extraData: {
- },
- success(res) {
- // 打开成功
- }
- });
- },
- onShareAppMessage: function () {
- return {
- title: '识字练习——让阅读赢在起点',
- path: 'pages/index/index',
- imageUrl: '../../images/07001.png',
- success: function (res) {
- },
- fail: function (err) {
- console.log(err);
- },
- complete: function (res) {
- console.log(res);
- },
- }
- },
- })
|