123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- // import freeCharge from '@/components/freeCharge'
- import { FreeButton } from "@/config/api.js";
- export default {
- // components: {
- // freeCharge
- // },
- data() {
- return {
- isShowFree: false, //免费标签的隐现
- isHorzMobile: null, //手机号是否是弘则的
- };
- },
- onShow() {
- this.isShowFreeButton();
- },
- onLoad(optios) {
- // console.log(optios,'kankan===============================');
- // const page = this.$mp && this.$mp.page;
- // console.log(page.route);
- // uni.getSystemInfo({
- // success: function (res) {
- // if (page.route == "pages/pcWebViev/pcWebViev") return
- // if (res.windowWidth > 700) {
- // uni.reLaunch({
- // url: "/pages/pcWebViev/pcWebViev?path=" + optios.path + "&query=" + JSON.stringify(optios.query),
- // });
- // }
- // },
- // });
- this.userIsShowShare();
- },
- methods: {
- //免费标签的隐现
- async isShowFreeButton() {
- const res = await FreeButton.userIsShowFreeButton();
- if (res.Ret === 200) {
- this.isShowFree = res.Data.IsShow;
- }
- },
- //判断手机号是否是弘则的
- async userIsShowShare() {
- const res = await FreeButton.userIsShowShare();
- if (res.Ret === 200) {
- this.isHorzMobile = res.Data.IsShow;
- }
- },
- },
- };
|