移动端微信JSSKD相关封装
封装JSSDKimport wx from 'weixin-js-sdk' import { wechatAuthSign } from '@/api/wxApi.js' import { isWeixin } from '@/utils/function/platform.js' // 配置微信jsApiList export const setWeixinJsApiList = async
封装JSSDKimport wx from 'weixin-js-sdk' import { wechatAuthSign } from '@/api/wxApi.js' import { isWeixin } from '@/utils/function/platform.js' // 配置微信jsApiList export const setWeixinJsApiList = async
// 手机型号 export function getMobileType() { return !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) == true ? 'ios' : 'android' } // 是否微信内 export function isWeixin() { return (window.na
index.html<!DOCTYPE html> <html lang="zh-CN"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="C
如果用户手机字体调整太大或者太小会影响到页面布局;这时需要禁止用户调整字体大小,自适应;app.vue<script> import { isIos, isAndroid } from "@/utils/appUtils.js"; export default { name: "App", data() { return {