|
|
|
@ -36,12 +36,12 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { Autoplay, FreeMode, Pagination } from 'swiper' |
|
|
|
import { Swiper, SwiperSlide } from 'swiper/vue' |
|
|
|
import 'swiper/css' |
|
|
|
import 'swiper/css/free-mode' |
|
|
|
|
|
|
|
import { useStatisticsModel } from '@/composables/useStatistics' |
|
|
|
// import { Autoplay, FreeMode, Pagination } from 'swiper' |
|
|
|
// import { Swiper, SwiperSlide } from 'swiper/vue' |
|
|
|
// import 'swiper/css' |
|
|
|
// import 'swiper/css/free-mode' |
|
|
|
// const modules = [Autoplay, FreeMode, Pagination] |
|
|
|
// import { useStatisticsModel } from '@/composables/useStatistics' |
|
|
|
import activityDetail from '@/components/ActivityDetail/ActivityDetail.vue' |
|
|
|
import ScrollView from '@/base/ScrollView/ScrollView.vue' |
|
|
|
import memberItem from './MemberItem.vue' |
|
|
|
@ -49,12 +49,6 @@ import { getMemberBenefits, getMemberQRCodes, getMemberServices } from '@/http/a |
|
|
|
import { nextTick, ref } from 'vue' |
|
|
|
import switchTab from '@/components/SwitchTab/SwitchTab.vue' |
|
|
|
import PictureText from '@/components/PictureText/PictureText.vue' |
|
|
|
|
|
|
|
import { useSwitchLanguage } from '@/composables/useSwitchLanguage' |
|
|
|
|
|
|
|
const { switchLanguage } = useSwitchLanguage() |
|
|
|
const modules = [Autoplay, FreeMode, Pagination] |
|
|
|
|
|
|
|
const list = [ |
|
|
|
{ |
|
|
|
name: '会员权益', |
|
|
|
@ -71,8 +65,8 @@ const list = [ |
|
|
|
] |
|
|
|
|
|
|
|
const memberServiceList = ref<Activity[]>([]) //服务 |
|
|
|
const memberQRCodeList = ref<MmeberQRCode[]>([]) //会员二维码 |
|
|
|
const memberBenefitList = ref<MmeberBenefit[]>([]) //会员权益 |
|
|
|
const memberQRCodeList = ref<Qr[]>([]) //会员二维码 |
|
|
|
const memberBenefitList = ref<PicText[]>([]) //会员权益 |
|
|
|
const switchIdx = ref(0) |
|
|
|
|
|
|
|
const currentItem = ref<Activity>() |
|
|
|
@ -116,15 +110,13 @@ function getData() { |
|
|
|
} |
|
|
|
}) |
|
|
|
getMemberQRCodes().then(res => { |
|
|
|
for (let t = 0; t < res.data.length; t++) { |
|
|
|
const ele = res.data[t] |
|
|
|
memberQRCodeList.value.push({ id: ele.id, ...ele.content }) |
|
|
|
if (res.code === 200) { |
|
|
|
memberQRCodeList.value = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
getMemberBenefits().then(res => { |
|
|
|
for (let t = 0; t < res.data.length; t++) { |
|
|
|
const ele = res.data[t] |
|
|
|
memberBenefitList.value.push({ id: ele.id, ...ele.content }) |
|
|
|
if (res.code === 200) { |
|
|
|
memberBenefitList.value = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|