1.修改打包H5 配置文件

yj-dev
杨杰 4 years ago
parent 86b0f1233f
commit 3e88aed859
  1. 10
      components/Authorize.vue
  2. 7
      manifest.json

@ -11,13 +11,14 @@
<!-- #ifdef APP-PLUS --> <!-- #ifdef APP-PLUS -->
<!-- <button class='item grant' @click="setUserInfo">去授权</button> --> <!-- <button class='item grant' @click="setUserInfo">去授权</button> -->
<!-- #endif --> <!-- #endif -->
<!-- #ifdef H5 -->
<button class='item grant' @click="setUserInfo">去授权</button>
<!-- #endif -->
<!-- #ifdef MP --> <!-- #ifdef MP -->
<button class='item grant' type="primary" @click="getuserinfo" lang="zh_CN" <button class='item grant' type="primary" @click="getuserinfo" lang="zh_CN"
withCredentials="true">去授权</button> withCredentials="true">去授权</button>
<!-- #endif --> <!-- #endif -->
<!-- #ifdef H5 -->
<button class='item grant' type="primary" @click="getH5userinfo" lang="zh_CN"
withCredentials="true">微信授权</button>
<!-- #endif -->
</view> </view>
</view> </view>
<view class='mask' v-if='isShowAuth' @click='close'></view> <view class='mask' v-if='isShowAuth' @click='close'></view>
@ -125,6 +126,9 @@
// }) // })
that.isShowAuth = false that.isShowAuth = false
}, },
getH5userinfo(){
console.log('[=========]')
},
close() { close() {
uni.reLaunch({ uni.reLaunch({
url: '/pages/tabBar/home/home' url: '/pages/tabBar/home/home'

@ -82,12 +82,13 @@
}, },
"title" : "嗨森逛", "title" : "嗨森逛",
"router" : { "router" : {
"mode" : "history" "mode" : "hash"
}, },
"devServer" : { "devServer" : {
"port" : "", "port" : "",
"https" : true "https" : false
}, },
"domain" : "https://hsg.dctpay.com" "domain" : "https://hsg.dctpay.com",
"template" : ""
} }
} }

Loading…
Cancel
Save