Merchant.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_assets = require("../../common/assets.js");
  4. const _sfc_main = {
  5. data() {
  6. return {
  7. hasShop: true
  8. // 模拟有无店铺
  9. };
  10. },
  11. onLoad() {
  12. },
  13. methods: {
  14. jump() {
  15. common_vendor.index.__f__("log", "at pages/mine/Merchant.vue:39", "123123");
  16. common_vendor.wx$1.navigateToMiniProgram({
  17. appId: "wx3d250e9c83ec74ee",
  18. // 必填,未发布小程序的AppID(开发版/体验版均可)
  19. path: "pages/index/index",
  20. // 选填,如:'pages/index/index'
  21. envVersion: "develop",
  22. // 选填,指定跳转环境:develop(开发版)、trial(体验版)、release(正式版),未发布时用'develop'
  23. success(res) {
  24. },
  25. fail(res) {
  26. }
  27. });
  28. },
  29. goToShopHome() {
  30. common_vendor.index.switchTab({
  31. url: "/pages/index/shopHome"
  32. });
  33. },
  34. onKefu() {
  35. common_vendor.index.showToast({ title: "客服功能待接入", icon: "none" });
  36. }
  37. }
  38. };
  39. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  40. return common_vendor.e({
  41. a: $data.hasShop
  42. }, $data.hasShop ? {
  43. b: common_assets._imports_0$4,
  44. c: common_vendor.o(($event) => $options.jump())
  45. } : {
  46. d: common_assets._imports_1$1
  47. }, {
  48. e: common_vendor.o((...args) => $options.goToShopHome && $options.goToShopHome(...args)),
  49. f: common_assets._imports_2,
  50. g: common_vendor.o((...args) => $options.onKefu && $options.onKefu(...args))
  51. });
  52. }
  53. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  54. wx.createPage(MiniProgramPage);
  55. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/Merchant.js.map