5437d8ab by 张猛

订单列表

1 parent 134cad71
...@@ -239,11 +239,11 @@ const tabs = computed(() => { ...@@ -239,11 +239,11 @@ const tabs = computed(() => {
239 } else if (dt === 2) { 239 } else if (dt === 2) {
240 console.log('返回3个tab: 单位会员、段位考试、越段考试'); 240 console.log('返回3个tab: 单位会员、段位考试、越段考试');
241 return [ 241 return [
242 // { name: '单位会员', type: '1' }, 242 {name: '单位会员', type: '1'},
243 {name: '段位考试', type: '3'}, 243 {name: '段位考试', type: '3'},
244 {name: '越段考试', type: '4'} 244 {name: '越段考试', type: '4'}
245 ]; 245 ];
246 } else { 246 } else if (dt === 1) {
247 console.log('返回默认5个tab, dt值为:', dt); 247 console.log('返回默认5个tab, dt值为:', dt);
248 return [ 248 return [
249 {name: '个人会员', type: '0'}, 249 {name: '个人会员', type: '0'},
...@@ -252,6 +252,10 @@ const tabs = computed(() => { ...@@ -252,6 +252,10 @@ const tabs = computed(() => {
252 {name: '段位考试', type: '3'}, 252 {name: '段位考试', type: '3'},
253 {name: '越段考试', type: '4'} 253 {name: '越段考试', type: '4'}
254 ]; 254 ];
255 } else {
256 return [
257 {name: '单位会员', type: '1'},
258 ];
255 } 259 }
256 }); 260 });
257 const currentTab = ref('0'); 261 const currentTab = ref('0');
...@@ -417,20 +421,20 @@ const confirmDel = async () => { ...@@ -417,20 +421,20 @@ const confirmDel = async () => {
417 421
418 const goToDetail = (item) => { 422 const goToDetail = (item) => {
419 console.log("goToDetail:", item); 423 console.log("goToDetail:", item);
420 console.log("currentTab.value", currentTab.value); 424 console.log("currentTab.value", currentTab.value);
421 const form = encodeURIComponent(JSON.stringify(item)) 425 const form = encodeURIComponent(JSON.stringify(item))
422 switch (currentTab.value) { 426 switch (currentTab.value) {
423 case '1': 427 case '1':
424 uni.navigateTo({ url: `/group/groupOrderDetail?form=${form}` }); 428 uni.navigateTo({url: `/group/groupOrderDetail?form=${form}`});
425 break; 429 break;
426 case '2': 430 case '2':
427 case '3': 431 case '3':
428 case '4': 432 case '4':
429 uni.navigateTo({ url: `/pages/rank/applyDetail?examId=${item.sourceId || item.id}&type=${queryParams.type}` }); 433 uni.navigateTo({url: `/pages/rank/applyDetail?examId=${item.sourceId || item.id}&type=${queryParams.type}`});
430 break; 434 break;
431 case '0': 435 case '0':
432 default: 436 default:
433 uni.navigateTo({ url: `/personalVip/orderDetail?rangeId=${item.sourceId || item.id}&type=${queryParams.type}` }); 437 uni.navigateTo({url: `/personalVip/orderDetail?rangeId=${item.sourceId || item.id}&type=${queryParams.type}`});
434 break; 438 break;
435 } 439 }
436 // uni.navigateTo({url: `/pages/rank/applyDetail?examId=${item.sourceId || item.id}&type=${queryParams.type}`}); 440 // 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!