| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import common from '../../utils/util';
- import main from '../../utils/main';
- const app = getApp();
- var id=0;
- var idchild=0;
- Page({
- data: {
- List: [],
- ImagePath: app.globalData.uploadImageUrl,
- },
- onLoad: function (options) {
- var that = this;
- id=options.id;
- idchild=options.idchild;
- var list = wx.getStorageSync("MiaoguoTipsList");
- that.setData({
- Containnerheight: main.getWindowHeight(),
- Item:list[options.id].List[options.idchild],
- IsShare:options.IsShare,
- });
- wx.setNavigationBarColor({
- frontColor: "#000000",
- backgroundColor: "#ffffff",
- });
-
- },
- goto: function (e) {
- if (this.data.IsShare==1){
- var url = e.currentTarget.dataset.url;
- wx.redirectTo({
- url: url,
- });
- }
- else{
- wx.navigateBack({
- delta: 1,
- });
- }
- },
- onShareAppMessage: function () {
- return {
- title: "《秒过学习法》小贴士",
- path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID + '&type=help&ID=' + id + '&IDChild=' + idchild,
- imageUrl: app.globalData.uploadImageUrl+'web/'+this.data.Item.Cover,
- }
- },
- })
|