瀏覽代碼

微信分享地址前缀变量

pzc 4 年之前
父節點
當前提交
4af15a75af
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/shortVideo/ShortVideo.vue

+ 2 - 1
src/views/shortVideo/ShortVideo.vue

@@ -59,6 +59,7 @@ import { Swiper, SwiperSlide } from "vue-awesome-swiper";
 import videos from "../../components/shortVideo/Videos";
 import infoBar from "../../components/shortVideo/InfoBar";
 import comment from "../../components/shortVideo/Comment";
+var host2 = process.env.VUE_APP_Url; // 获取不同环境下不同的api路径
 import {
   searchVideoList,
   addFollow,
@@ -190,7 +191,7 @@ export default {
         wx.onMenuShareAppMessage({
           title: "亮健优医", // 分享标题
           desc: that.videoList[that.page - 1].videoTitle, // 分享描述
-          link: `https://mem.360lj.com/ym/ymallWechat/code?redirectCode=oneVideoPlayer?id=${
+          link: host2+`/ymallWechat/code?redirectCode=oneVideoPlayer?id=${
             that.videoList[that.page - 1].id
           }`, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
           imgUrl: