优化功能
This commit is contained in:
@ -113,9 +113,17 @@
|
||||
<view>已预约</view>
|
||||
</view>
|
||||
</view>
|
||||
<mescroll-body @init="mescrollInit" @down="downCallback" :down="downOption" :up="upOption" @up="Room.upCallback">
|
||||
<room-list :is-reserve="tabIndexs === 0" :is-group-buying="tabIndexs === 1" :list="list"></room-list>
|
||||
</mescroll-body>
|
||||
|
||||
<view v-if="tab < 2">
|
||||
<mescroll-body @init="mescrollInit" @down="downCallback" :down="downOption" :up="upOption" @up="Room.upCallback">
|
||||
<room-list :is-reserve="tabIndexs === 0" :is-group-buying="tabIndexs === 1" :list="list"></room-list>
|
||||
</mescroll-body>
|
||||
</view>
|
||||
|
||||
<!-- 抖音兑换 -->
|
||||
<view v-if="storeType == StoreType.Direct && tab === 2">
|
||||
<dou-yin-excharge :store-id="teaRoomId" @success="Room.handleExchargeSuccess"/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -146,6 +154,7 @@
|
||||
import { useUserStore } from '@/store'
|
||||
import { router } from '@/utils/tools'
|
||||
import { StoreType } from '@/utils/tea'
|
||||
import DouYinExcharge from '@/bundle/components/DouYinExcharge.vue'
|
||||
|
||||
const rightPadding = inject('capsuleOffset')
|
||||
const OSS = inject('OSS')
|
||||
@ -372,23 +381,6 @@
|
||||
* tab切换获取index
|
||||
*/
|
||||
handleChangeTab: (item: { index: number }) => {
|
||||
console.log("🚀 ~ item.index:", item.index)
|
||||
if (item.index == 2) {
|
||||
uni.showLoading({ title: '跳转中...' })
|
||||
|
||||
// 直营店抖音兑换,强制切回第一个tab
|
||||
nextTick(() => {
|
||||
if (tabsRef.value && typeof tabsRef.value.setActive === 'function') {
|
||||
tabsRef.value.setActive(0, false, true)
|
||||
}
|
||||
})
|
||||
tab.value = 0
|
||||
tabIndexs.value = 0
|
||||
|
||||
router.navigateTo(`/bundle/order/douyin/excharge?storeId=${teaRoomId.value}`, 200)
|
||||
uni.hideLoading()
|
||||
return
|
||||
}
|
||||
tabIndexs.value = item.index
|
||||
list.value = []
|
||||
getMescroll().resetUpScroll()
|
||||
|
||||
Reference in New Issue
Block a user