From 305d73e37a4cdb357cdd4f6dcb36639253cbad83 Mon Sep 17 00:00:00 2001 From: sjf1256754123 <33301030+sjf1256754123@users.noreply.github.com> Date: Mon, 24 Feb 2020 09:51:58 +0800 Subject: [PATCH] d --- pages/index/index.vue | 10 +++++----- utils/request.js | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 57edad0..6d9bf3e 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 104b701..b31b74b 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', -- 2.22.0