优化功能
This commit is contained in:
@ -28,9 +28,9 @@
|
||||
<wd-img width="64rpx" height="64rpx" :src="`${OSS}icon/icon_sc.png`"></wd-img>
|
||||
</template>
|
||||
</view> -->
|
||||
<view @click="showServicePopup = true" class="flex items-center">
|
||||
<!-- <view @click="showServicePopup = true" class="flex items-center">
|
||||
<wd-img width="64rpx" height="64rpx" :src="`${OSS}icon/icon_kefu.png`"></wd-img>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</template>
|
||||
</navbar>
|
||||
@ -39,7 +39,7 @@
|
||||
<view class="mt-20rpx mx-30rpx swiper">
|
||||
<view>
|
||||
<wd-swiper value-key="image" height="320rpx"
|
||||
:indicator="{ type: 'dots-bar' }" :list="swiperList" v-model:current="current" mode="aspectFit">
|
||||
:indicator="{ type: 'dots-bar' }" :list="swiperList" v-model:current="current" mode="aspectFit" @click="Room.handlePreviewImage">
|
||||
</wd-swiper>
|
||||
</view>
|
||||
<view class="mt-38rpx flex justify-between">
|
||||
@ -122,7 +122,7 @@
|
||||
|
||||
<!-- 抖音兑换 -->
|
||||
<view v-if="storeType == StoreType.Direct && tab === 2">
|
||||
<dou-yin-excharge :store-id="teaRoomId" @success="Room.handleExchargeSuccess"/>
|
||||
<dou-yin-excharge :store-id="teaRoomId" @success=""/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -152,7 +152,7 @@
|
||||
import type { ITeaRoomDetailResult } from '@/api/types/tea-room'
|
||||
import type {IUserInfoVo } from '@/api/types/login'
|
||||
import { useUserStore } from '@/store'
|
||||
import { router } from '@/utils/tools'
|
||||
import { router, previewImage } from '@/utils/tools'
|
||||
import { StoreType } from '@/utils/tea'
|
||||
import DouYinExcharge from '@/bundle/components/DouYinExcharge.vue'
|
||||
|
||||
@ -401,6 +401,13 @@
|
||||
router.navigateBack().catch(err => {
|
||||
router.switchTab('/pages/index/index')
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 预览图片
|
||||
*/
|
||||
handlePreviewImage: (e: {index: number, item: any}) => {
|
||||
previewImage(swiperList.value[e.index], swiperList.value)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user