order.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2021 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}&spid=${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. resolve(true);
  33. });
  34. }