12345678910111213141516171819202122232425262728293031 |
- "use strict";
- var common_vendor = require("../../common/vendor.js");
- var core_config_index = require("../config/index.js");
- var share = {
- data() {
- return {
- share: {
- title: core_config_index.config.get("name"),
- path: `/pages/home/index`,
- imageUrl: core_config_index.config.getResource("logo.png")
- }
- };
- },
- onShareAppMessage(res) {
- let shareInfo = common_vendor.index.getStorageSync("shareInfo");
- return {
- title: shareInfo.title || this.share.title,
- imageUrl: shareInfo.imgUrl || this.share.imageUrl,
- path: shareInfo.path || this.share.path
- };
- },
- onShareTimeline(res) {
- let shareInfo = common_vendor.index.getStorageSync("shareInfo");
- return {
- title: shareInfo.title || this.share.title,
- imageUrl: shareInfo.imgUrl || this.share.imageUrl,
- path: shareInfo.path || this.share.path
- };
- }
- };
- exports.share = share;
|