| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import common from '../../utils/util';
- import main from '../../utils/main';
- const app = getApp();
- Page({
- data: {
- },
- onLoad: function (options) {
- var that = this;
- if (options.url){
- that.setData({
- Url:options.url,
- });
- }
- else{
- that.setData({
- PageID:options.PageID,
- Url:"https://www.kylx365.com/webpage?PageID="+options.PageID,
- });
- }
- },
- onUnload:function(){
- },
- onShareAppMessage: function () {
-
- var imageUrl = app.globalData.uploadImageUrl +"web/program_screenshot_lesson_c0"+this.data.PageID+".png";
- console.log(imageUrl);
- var path = "/pages/index/index?type=webview&PageID="+this.data.PageID;
- var title ="课外课";
- if (this.data.PageID==="0"){
- imageUrl = app.globalData.uploadImageUrl +"web/program_screenshot_mustread.png";
- title="家长必读";
- }
- else if (this.data.PageID === "8"){
- imageUrl = app.globalData.uploadImageUrl + "web/program_screenshot_grouprule.png";
- title = "家长社群小组须知";
- }
- return {
- title: title,
- path: path,
- imageUrl: imageUrl,
- }
- },
- })
|