Commit 75c7a749 authored by beisir's avatar beisir

feat:上线weapp

parent b88907fc
...@@ -223,7 +223,8 @@ export default { ...@@ -223,7 +223,8 @@ export default {
const data = { const data = {
event: 'showShareView', event: 'showShareView',
data: { data: {
platform: ['weChat', 'timeLine', 'QQ', 'CopyLink', 'GeneratePoster'], //依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接 // , 'CopyLink'
platform: ['weChat', 'timeLine', 'QQ', 'GeneratePoster'], //依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接
shareDic: { shareDic: {
title, title,
desc, desc,
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<script> <script>
import wx from 'weixin-js-sdk'; import wx from 'weixin-js-sdk';
import groupBuy from '@/api/groupBuy'; import groupBuy from '@/api/groupBuy';
import config from '@/config';
export default { export default {
name: 'Weapp', name: 'Weapp',
props: { props: {
...@@ -37,7 +38,8 @@ export default { ...@@ -37,7 +38,8 @@ export default {
}, },
methods: { methods: {
async wxConfig() { async wxConfig() {
const [res] = await groupBuy.getWxConfig(); const route = this.$route;
const [res] = await groupBuy.getWxConfig(`${config.localHost}${route.fullPath}`);
wx.config({ wx.config({
debug: false, debug: false,
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'], // 必填,需要使用的JS接口列表 jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'], // 必填,需要使用的JS接口列表
......
...@@ -8,7 +8,7 @@ const TERMINAL = 'H5'; ...@@ -8,7 +8,7 @@ const TERMINAL = 'H5';
const VERSION = '7.9.00'; const VERSION = '7.9.00';
const kdspHost = 'https://kdsp-api.q-gp.com'; const kdspHost = 'https://kdsp-api.q-gp.com';
const opapiHost = `${protocol}//opapi.xyqb.com`; const opapiHost = `${protocol}//opapi.xyqb.com`;
// const localHost = 'https://mall.q-gp.com/group-buying'; // 正式环境页面地址 // const localHost = 'https://mall.q-gp.com'; // 正式环境页面地址
const localHost = 'https://group-buy-test1.liangkebang.net'; // 正式环境页面地址 const localHost = 'https://group-buy-test1.liangkebang.net'; // 正式环境页面地址
const shenceUrl = protocol + '//bn.xyqb.com/sa?project=production'; const shenceUrl = protocol + '//bn.xyqb.com/sa?project=production';
const openLink = 'https://mall.q-gp.com'; const openLink = 'https://mall.q-gp.com';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment