12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // 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) {
- const page = this.$mp && this.$mp.page;
- uni.getSystemInfo({
- success: function (res) {
- if (page && page.route == "pages/pcWebViev/pcWebViev") return;
- if (res.windowWidth > 700) {
- uni.reLaunch({
- url: "/pages/pcWebViev/pcWebViev?path=" + page.route + "&query=" + JSON.stringify(optios),
- });
- }
- },
- });
- 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;
- }
- },
- },
- };
|