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

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

Loading…
Cancel
Save