12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import { FreeButton, Reports } from "@/config/api.js";
- export default {
- data() {
- return {
- isShowFree: false, //免费标签的隐现
- isHorzMobile: false, //手机号是否是弘则的
- globalBgAudioManager: uni.getBackgroundAudioManager(), //背景音频
- navBarStyle: {
- height: 60 + "px",
- paddingTop: 40 + "px",
- paddingBottom: "4px",
- },
- searchPlaceholderList: {},
- wholeShowListData: {}, //
- };
- },
- 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 Reports.reportIsShow();
- if (res.Ret === 200) {
- this.wholeShowListData = res.Data;
- this.isShowFree = res.Data.IsShowFreeButton;
- this.searchPlaceholderList = res.Data.SearchTxtList;
- }
- },
- //判断手机号是否是弘则的
- async userIsShowShare() {
- const res = await FreeButton.userIsShowShare();
- if (res.Ret === 200) {
- this.isHorzMobile = res.Data.IsShow;
- }
- },
- },
- };
|