order.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. let app = getApp()
  11. export function goShopDetail(item, uid) {
  12. return new Promise(resolve => {
  13. if (item.activity && item.activity.type === "1") {
  14. uni.navigateTo({
  15. url: `/pages/activity/goods_seckill_details/index?id=${item.activity.id}&time=${item.activity.time}&status=1`
  16. })
  17. } else if (item.activity && item.activity.type === "2") {
  18. uni.navigateTo({
  19. url: `/pages/activity/goods_bargain_details/index?id=${item.activity.id}&bargain=${uid}`
  20. })
  21. } else if (item.activity && item.activity.type === "3") {
  22. uni.navigateTo({
  23. url: `/pages/activity/goods_combination_details/index?id=${item.activity.id}`
  24. })
  25. } else {
  26. resolve(item);
  27. }
  28. });
  29. }
  30. export function goPage() {
  31. return new Promise(resolve => {
  32. if (app.globalData.isIframe == false) {
  33. resolve(true);
  34. }else{
  35. return false
  36. }
  37. });
  38. }