转移到PC
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="merit-button-group" :style="{bottom: tabHeight + 'px'}">
|
||||
<button class="merit-button" @click="randVisible = true">随喜功德</button>
|
||||
<button class="merit-button" @click="openBox">随喜功德</button>
|
||||
</div>
|
||||
</div>
|
||||
<random-money :value.sync="randVisible" @change="onRandNext"></random-money>
|
||||
@@ -44,7 +44,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getMeritBox } from "@/api";
|
||||
import { getMeritBox, getOrderCompare } from '@/api';
|
||||
import { swiper, swiperSlide } from 'vue-awesome-swiper';
|
||||
|
||||
|
||||
@@ -55,8 +55,9 @@ export default {
|
||||
},
|
||||
inject: ['screenHeight', 'root'],
|
||||
data(){
|
||||
const { query } = this.$route;
|
||||
return {
|
||||
query: this.$route.query,
|
||||
query,
|
||||
width: 0,
|
||||
randVisible: false,
|
||||
type_id: 1,
|
||||
@@ -93,8 +94,14 @@ export default {
|
||||
this.width = window.innerWidth;
|
||||
this.containerHeight = this.$refs.swiper.$el.offsetHeight;
|
||||
this.getMeritBox();
|
||||
if(this.query.open_box){
|
||||
this.openBox()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openBox(){
|
||||
this.randVisible = true
|
||||
},
|
||||
onSwiper(swiper){
|
||||
console.log('on swiper', swiper)
|
||||
},
|
||||
@@ -116,11 +123,19 @@ export default {
|
||||
if(!this.$route.query.temple_id){
|
||||
history.pushState('', '', location.href + query)
|
||||
}
|
||||
|
||||
this.wechatReady({
|
||||
title: `${this.info.unit_name} - 在线功德箱 | 已有 ${this.total} 人广种福田`,
|
||||
desc: '随缘布施,广种福田,喜结善缘',
|
||||
imgUrl: 'https://temple-h5.oss-cn-hangzhou.aliyuncs.com/uploads/common/merit_box.png',
|
||||
link: location.href
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
onListBy(n, index){
|
||||
this.type_id = n.id;
|
||||
this.swiper.slideTo(index, 300, false)
|
||||
this.getMeritBox();
|
||||
},
|
||||
loadMore(){
|
||||
console.log('加载更多')
|
||||
|
||||
Reference in New Issue
Block a user