order.js 707 B

123456789101112131415161718192021222324
  1. export function goShopDetail(item,uid) {
  2. return new Promise(resolve => {
  3. if (item.product_type === 1) {
  4. uni.navigateTo({
  5. url: `/pages/activity/goods_seckill_details/index?id=${item.product_id}&time=${item.stop_time}`
  6. })
  7. } else if (item.product_type === 2) {
  8. uni.navigateTo({
  9. url: `/pages/activity/presell_details/index?id=${item.activity_id}`
  10. })
  11. } else if (item.product_type === 0) {
  12. uni.navigateTo({
  13. url: `/pages/goods_details/index?id=${item.product_id}`
  14. })
  15. }else if (item.product_type === 4) {
  16. uni.navigateTo({
  17. url: `/pages/activity/combination_details/index?id=${item.activity_id}`
  18. })
  19. }
  20. else {
  21. resolve(item);
  22. }
  23. });
  24. }