You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
909 B
37 lines
909 B
3 months ago
|
|
||
|
|
||
|
let app = getApp()
|
||
|
|
||
|
export function goShopDetail(item, uid) {
|
||
|
return new Promise((resolve,reject) => {
|
||
|
if(item.is_presale_product){
|
||
|
uni.navigateTo({
|
||
|
url: `/pages/activity/goods_details/index?id=${item.id}&type=6`
|
||
|
})
|
||
|
}else{
|
||
|
if (item.activity && item.activity.type == 1) {
|
||
|
uni.navigateTo({
|
||
|
url: `/pages/activity/goods_details/index?id=${item.activity.id}&type=1&time_id=${item.activity.time}&status=1`
|
||
|
})
|
||
|
} else if (item.activity && item.activity.type == 2) {
|
||
|
uni.navigateTo({
|
||
|
url: `/pages/activity/goods_bargain_details/index?id=${item.activity.id}&spid=${uid}`
|
||
|
})
|
||
|
} else if (item.activity && item.activity.type == 3) {
|
||
|
uni.navigateTo({
|
||
|
url: `/pages/activity/goods_details/index?id=${item.activity.id}&type=3`
|
||
|
})
|
||
|
} else {
|
||
|
reject(item);
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
export function goPage() {
|
||
|
return new Promise(resolve => {
|
||
|
resolve(true);
|
||
|
});
|
||
|
}
|