order.js 835 B

12345678910111213141516171819202122232425262728293031323334
  1. let app = getApp()
  2. export function goShopDetail(item, uid) {
  3. return new Promise(resolve => {
  4. if (item.activity && item.activity.type === "1") {
  5. uni.navigateTo({
  6. url: `/pages/activity/goods_seckill_details/index?id=${item.activity.id}&time=${item.activity.time}&status=1`
  7. })
  8. } else if (item.activity && item.activity.type === "2") {
  9. uni.navigateTo({
  10. url: `/pages/activity/goods_bargain_details/index?id=${item.activity.id}&bargain=${uid}`
  11. })
  12. } else if (item.activity && item.activity.type === "3") {
  13. uni.navigateTo({
  14. url: `/pages/activity/goods_combination_details/index?id=${item.activity.id}`
  15. })
  16. } else {
  17. resolve(item);
  18. }
  19. });
  20. }
  21. export function goPage() {
  22. return new Promise(resolve => {
  23. if (app.globalData.isIframe == false) {
  24. resolve(true);
  25. }else{
  26. return false
  27. }
  28. });
  29. }