product.js 679 Bytes
import api from '@/api/api'
import {
	httpGet,
	httpPost
} from '@/api/fetch-api.js'

export default {
	data() {
		return {
			isFixTop: false,
			activity: "product"
		}
	},
	components: {},
	methods: {
		initData() { },
		checkBtnGroupFixed() {
			if (this.$refs.ruleBtnGroup) {
				let top = this.$refs.ruleBtnGroup.getBoundingClientRect().top;
				this.isFixTop = top < 0;
			}
		},
		toReservation() {
			this.$router.push({
				path: "/custom/service",
				query: {
					q: "m6"
				}
			});
		}
	},
	computed: {
		fixTop() {
			return this.isFixTop;
		}
	},
	mounted() {
		window.addEventListener("scroll", () => {
			this.checkBtnGroupFixed();
		});
	},
	created() { }
}