5437d8ab by 张猛

订单列表

1 parent 134cad71
......@@ -239,11 +239,11 @@ const tabs = computed(() => {
} else if (dt === 2) {
console.log('返回3个tab: 单位会员、段位考试、越段考试');
return [
// { name: '单位会员', type: '1' },
{name: '单位会员', type: '1'},
{name: '段位考试', type: '3'},
{name: '越段考试', type: '4'}
];
} else {
} else if (dt === 1) {
console.log('返回默认5个tab, dt值为:', dt);
return [
{name: '个人会员', type: '0'},
......@@ -252,6 +252,10 @@ const tabs = computed(() => {
{name: '段位考试', type: '3'},
{name: '越段考试', type: '4'}
];
} else {
return [
{name: '单位会员', type: '1'},
];
}
});
const currentTab = ref('0');
......@@ -417,20 +421,20 @@ const confirmDel = async () => {
const goToDetail = (item) => {
console.log("goToDetail:", item);
console.log("currentTab.value", currentTab.value);
console.log("currentTab.value", currentTab.value);
const form = encodeURIComponent(JSON.stringify(item))
switch (currentTab.value) {
case '1':
uni.navigateTo({ url: `/group/groupOrderDetail?form=${form}` });
uni.navigateTo({url: `/group/groupOrderDetail?form=${form}`});
break;
case '2':
case '3':
case '4':
uni.navigateTo({ url: `/pages/rank/applyDetail?examId=${item.sourceId || item.id}&type=${queryParams.type}` });
uni.navigateTo({url: `/pages/rank/applyDetail?examId=${item.sourceId || item.id}&type=${queryParams.type}`});
break;
case '0':
default:
uni.navigateTo({ url: `/personalVip/orderDetail?rangeId=${item.sourceId || item.id}&type=${queryParams.type}` });
uni.navigateTo({url: `/personalVip/orderDetail?rangeId=${item.sourceId || item.id}&type=${queryParams.type}`});
break;
}
// uni.navigateTo({url: `/pages/rank/applyDetail?examId=${item.sourceId || item.id}&type=${queryParams.type}`});
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!