Commit 75c7a749 authored by beisir's avatar beisir

feat:上线weapp

parent b88907fc
......@@ -223,7 +223,8 @@ export default {
const data = {
event: 'showShareView',
data: {
platform: ['weChat', 'timeLine', 'QQ', 'CopyLink', 'GeneratePoster'], //依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接
// , 'CopyLink'
platform: ['weChat', 'timeLine', 'QQ', 'GeneratePoster'], //依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接
shareDic: {
title,
desc,
......
......@@ -17,6 +17,7 @@
<script>
import wx from 'weixin-js-sdk';
import groupBuy from '@/api/groupBuy';
import config from '@/config';
export default {
name: 'Weapp',
props: {
......@@ -37,7 +38,8 @@ export default {
},
methods: {
async wxConfig() {
const [res] = await groupBuy.getWxConfig();
const route = this.$route;
const [res] = await groupBuy.getWxConfig(`${config.localHost}${route.fullPath}`);
wx.config({
debug: false,
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'], // 必填,需要使用的JS接口列表
......
......@@ -8,7 +8,7 @@ const TERMINAL = 'H5';
const VERSION = '7.9.00';
const kdspHost = 'https://kdsp-api.q-gp.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 shenceUrl = protocol + '//bn.xyqb.com/sa?project=production';
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