diff --git a/pages/index/index.vue b/pages/index/index.vue index 57edad0e4b446102aac5ff28097b1e0b49d4ca64..6d9bf3e66f739399c78efc729c9706b25afe083c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -59,6 +59,11 @@ }; }, onLoad: function(option) { + wx.showShareMenu({ + withShareTicket: true + }) + }, + onShow() { let that = this // #ifdef MP-WEIXIN wx.login({ @@ -73,11 +78,6 @@ }) // #endif }, - onShow() { - if(this.$store.state.user.userInfo.idCard){ - this.getUserInfo(code) - } - }, methods: { leader(){ uni.navigateTo({ diff --git a/utils/request.js b/utils/request.js index 104b701a050429a6e0a21dbd9bfd86e0e94d4cfe..b31b74b82e29d7ce6d4e30f3651ba07a20095b19 100644 --- a/utils/request.js +++ b/utils/request.js @@ -10,8 +10,8 @@ import store from '../store' export default class Request { config = { - // baseUrl: 'https://health.sh-sict.com/ncov-api', - baseUrl: 'https://health.sh-sict.com/ncov-test-api', + baseUrl: 'https://health.sh-sict.com/ncov-api', + // baseUrl: 'https://health.sh-sict.com/ncov-test-api', // baseUrl: 'http://139.9.163.126/ncov-api', header: { 'content-type': 'application/json;charset=UTF-8',