123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453 |
- <template>
- <div class="content">
- <div class="home-img" id="home-img">
- <div class="homeBg" style=" background-size: auto 930px;
- height: 930px;">
- <div class="list">
- <div
- class="itme"
- :class="{ active: item.id == active }"
- v-for="item in list"
- :style="item.style"
- :key="item.id"
- @click.stop="handleItem(item)"
- >
- <div class="itmeText">{{ item.title }}</div>
- <div class="mypopup" :style="{top: item.title == '宝林道场'?'125px':''}">
- <div class="popupImg">
- <div class="but">可打卡</div>
- <img
- width="209px"
- height="131px"
- radius="10"
- :src="item.img"
- ></img>
- <div class="title">{{ item.title }}</div>
- </div>
- <div
- class="flex justify-evenly butList content-center items-center"
- style="line-height: 24px; color: #fff"
- >
- <div class="flex justify-around content-center items-center" @click="handleRoam(item.m)">
- <img src="https://4dscene.4dage.com/new4dkk/deng/static/img/icon_3d@2x.png" />
- 漫游
- </div>
- <!-- <div class="border"></div>
- <div class="flex justify-around content-center items-center">
- <img src="https://4dscene.4dage.com/new4dkk/deng/static/img/icon_navigator@2x.png" />
- 导航
- </div> -->
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- <tabbar /> -->
- <!-- <div class="fixed bottom-40 flex w-full justify-around" style="">
- <div class="text-center">
- 点亮祈福
- <u-icon
- class="text-center flex-col-reverse"
- name="scan"
- color="#2979ff"
- size="28"
- ></u-icon>
- </div>
- <div class="text-center">
- 扫码打卡
- <u-icon
- class="text-center flex-col-reverse"
- name="scan"
- color="#2979ff"
- size="28"
- ></u-icon>
- </div>
- </div> -->
- <!-- <tabbar></tabbar> -->
- <!-- <van-popup
- closeIconPos="bottom-right"
- :show="show"
- mode="center"
- round="10"
- :closeable="true"
- @close="close"
- @open="open"
- >
- <div>
- <div class="text">
- <img
- src="https://4dscene.4dage.com/new4dkk/v2/lang/images/solutions/government/survey1.png"
- ></img>
- <text mt-10>出淤泥而不染,濯清涟而不妖</text>
- </div>
- <div class="butList flex justify-around my-10">
- <u-button
- @click="handleRoam"
- style="width: 60px"
- type="primary"
- plain
- icon="car"
- size="small"
- shape="circle"
- text="漫游"
- ></u-button>
- <u-button
- @click="handleMap"
- style="width: 60px"
- type="primary"
- plain
- icon="map"
- size="small"
- shape="circle"
- text="祈愿地图"
- ></u-button>
- <u-button
- style="width: 60px"
- type="primary"
- plain
- icon="map"
- size="small"
- shape="circle"
- text="导航"
- ></u-button>
- </div>
- </div>
- </van-popup> -->
- </div>
- </template>
- <script>
- import tabbar from "@/components/tabbar/index.vue";
- import { Toast } from 'vant';
- export default {
- components: {
- tabbar,
- },
- data() {
- return {
- title: 'Hello',
- show: false,
- codeList: [],
- active: null,
- list: [
- {
- id: 6,
- title: '憨山大师系列',
- m: 'SG-GadEtPyVUvN',
- img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m2/06.png',
- style: {
- left: '315px',
- top: '211px',
- height: '145px',
- paddingTop: '10px'
- }
- },{
- id: 7,
- title: '六祖坛经',
- m: 'SG-5eNn5iZnzej',
- img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m2/07.png',
- style: {
- left: '373px',
- top: '145px',
- }
- },
- {
- id: 8,
- title: '菩提本无树',
- img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m2/08.png',
- m: 'SG-McyGGua70BH',
- style: {
- left: '265px',
- top: '380px',
- height: '125px',
- paddingTop: '10px'
- }
- },
- {
- id: 4,
- title: '琉璃光如来',
- m: 'SG-CU5JTIjXXs0',
- img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m2/04.png',
- style: {
- left: '317px',
- top: '455px'
- }
- },
- {
- id: 3,
- title: '祈福长廊',
- m: 'SG-E3S63H7X7QI',
- img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m2/03.png',
- style: {
- left: '354px',
- top: '545px'
- }
- },
- {
- id: 5,
- title: '典藏罗汉像',
- m: 'SG-nfYaok3HBhG',
- img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m2/05.png',
- style: {
- left: '349px',
- top: '340px',
- height: '125px',
- }
- },
- // {
- // id: 6,
- // title: '宝林道场',
- // img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m/07.png',
- // m: 'SG-QHk73u8zRxD',
- // style: {}
- // },
- {
- id: 9,
- title: '文化长廊',
- m: 'SG-RWc2zM63H5g',
- img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m2/09.png',
- style: {
- left: '531px',
- top: '353px',
- }
- },
- {
- id: 1,
- title: '一花五叶',
- m: 'SG-PHP2F5mD35e',
- img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m2/01.png',
- style: {
- left: '353px',
- top: '683px'
- }
- },
- {
- id: 2,
- title: '智药三藏寻源',
- m: 'SG-SBAYwluXbtk',
- img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m2/02.png',
- style: {
- left: '323px',
- top: '635px',
- height: '145px',
- paddingTop: '10px'
- }
- },
- {
- id: 10,
- title: '繁花似锦',
- m: 'SG-pfZwK63KEQZ',
- img: 'https://4dscene.4dage.com/new4dkk/deng/static/img/m2/10.png',
- style: {
- left: '353px',
- top: '790px',
- height: '110px',
- paddingTop: '10px'
- }
- },
- ]
- }
- },
- onLoad() {},
- created() {
- this.getRequest('/api/wx/getCode').then((res) => {
- this.codeList = res.data || []
- })
- },
- mounted() {
- // document.getElementById('d1').scrollTop=100;//通过scrollTop设置滚动到100位置
- document.getElementById('home-img').scrollLeft=150;//通过scrollTop设置滚动到200位置
- document.getElementById('home-img').scrollTop=30;//通过scrollTop设置滚动到200位置
- },
- methods: {
- handleMap() {
- // uni.$u.route("/pages/home/map");
- },
- handleRoam(m) {
- // Toast('功能开发中~');url
- this.$router.replace('/url?m=' + m)
- // uni.$u.route("/pages/home/roam");
- },
- handleItem(item) {
- // Toast('功能开发中~');
- this.active = item.id
- },
- close() {
- this.show = false
- // console.log('close');
- },
- open() {},
- handleDaka(param) {
- this.getRequest('/api/wx/clockIn', {code: param.m}).then((res) => {
- Toast('打卡成功');
- this.codeList.push(param.m)
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .content {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- height: 100vh;
- }
- .home-img {
- width: 100vw;
- height: 859px;
- overflow-x: scroll;
- overflow-y: scroll;
- // position: absolute;
- // left: 0;
- // right: 0;
- // top: 0;
- // bottom: 0;
- .homeBg {
- width: 200.33333vw;
- background-image: url(https://4dscene.4dage.com/new4dkk/deng/static/img/homebg2.jpg);
- background-size: 900px 930px;
- height: 930px;
- background-repeat: no-repeat;
- position: relative;
- .list {
- width: 100%;
- height: 100%;
- .itme {
- background-image: url(https://4dscene.4dage.com/new4dkk/deng/static/img/tab_normal1@2x.png);
- background-size: 100% 100%;
- background-repeat: no-repeat;
- position: absolute;
- top: 50%;
- left: 50%;
- // border-radius: 50%;
- text-align: center;
- line-height: 30px;
- width: 27px;
- height: 108px;
- font-weight: 400;
- font-size: 14px;
- color: #fff;
- // color: #5B472E;
- line-height: 17px;
- text-align: center;
- // letter-spacing: 10px;
- // vertical-align: middle;
- .bg {
- width: 100%;
- height: 100%;
- position: absolute;
- z-index: -1;
- }
- .itmeText {
- writing-mode: vertical-rl;
- position: relative;
- left: 5px;
- top: 22px;
- // letter-spacing: normal;
- // display: table-cell;
- // vertical-align: middle;
- }
- .mypopup {
- display: none;
- width: 230px;
- height: 162px;
- position: absolute;
- bottom: 108px;
- background: url(https://4dscene.4dage.com/new4dkk/deng/static/img/pop3@2x.png) 100% 100% no-repeat;
- background-size: 100%;
- // background: linear-gradient(158deg, rgba(193, 149, 97, 0.85) 0%, #5b472e 100%);
- // border: 1px solid;
- left: -95px;
- border-radius: 15px;
- z-index: 10;
- .popupImg {
- letter-spacing: 0;
- width: 209px;
- height: 131px;
- margin: 0 auto;
- position: relative;
- top: -10px;
- border-radius: 10px;
- overflow: hidden;
- .title {
- font-weight: bold;
- font-size: 14px;
- color: #ffffff;
- line-height: 16px;
- text-align: center;
- position: absolute;
- bottom: 10px;
- left: 20px;
- }
- img {
- width: 100%;
- height: 131px;
- object-fit: cover;
- border-radius: 10px;
- }
- .but {
- width: 63px;
- height: 25px;
- position: absolute;
- right: 10px;
- top: 10px;
- border-radius: 20px 20px 20px 20px;
- border: 1px solid #fff9b6;
- text-align: center;
- color: #fff9b6;
- line-height: 25px;
- font-weight: 400;
- font-size: 12px;
- color: #fff9b6;
- z-index: 1;
- }
- }
- .butList {
- .border {
- width: 1px;
- height: 26px;
- border-radius: 0px 0px 0px 0px;
- border-left: 1px solid;
- border-image: linear-gradient(
- 180deg,
- rgba(255, 255, 255, 0),
- rgba(255, 255, 255, 1),
- rgba(255, 255, 255, 0)
- )
- 1 1;
- }
- img {
- width: 24px;
- height: 24px;
- }
- }
- }
- }
- .active {
- background-image: url(https://4dscene.4dage.com/new4dkk/deng/static/img/tab_active@2x.png);
- color: #5b472e;
- .mypopup {
- display: block;
- }
- }
- }
- .img {
- height: calc(100vh - 81px);
- position: relative;
- z-index: -1;
- overflow-x: auto;
- width: 700px;
- img {
- height: 100%;
- position: relative;
- z-index: -1;
- }
- }
- }
- }
- </style>
|