commonLoad.js 481 B

12345678910111213141516171819202122
  1. import shareAppMessage from './shareAppMessage.js';
  2. import Vue from "vue";
  3. const onload = function (options = null) {
  4. //页面onload调
  5. // #ifdef H5
  6. let setting = Vue.prototype.$store.getters["mallConfig/getSetting"];
  7. let {mall_logo_pic} = setting;
  8. console.log(mall_logo_pic);
  9. shareAppMessage({
  10. title: '',
  11. imageUrl: mall_logo_pic,
  12. path: '',
  13. desc: '',
  14. params: {}
  15. }, false);
  16. // #endif
  17. };
  18. export {
  19. onload
  20. }