Commit 6b1f1030 by yuzhenWang

修改分享路径

parent 3ab8ef48
......@@ -10,6 +10,7 @@
</template>
<script>
import {shareURL} from "@/environments/environment";
export default {
props: ['carouselList'],
data() {
......@@ -30,7 +31,7 @@
if (!url) {
return false
} else {
let index = url.indexOf('/appYdhomeoffice/pages/');
let index = url.indexOf(`${shareURL}/pages/`);
if (index != -1) {
uni.navigateTo({
url: url.substring(index + 16, url.length)
......
......@@ -30,7 +30,7 @@
<script>
export default {
name: "list-item",
name: "my-list-item",
props: {
title: {
type: Array,
......
const dev = {
base_url:'https://mdev.anjibao.cn',
api_url:'https://mdev.anjibao.cn/cffpApi',
cffp_url:'https://mdev.anjibao.cn/cffpApi/cffp'
cffp_url:'https://mdev.anjibao.cn/cffpApi/cffp',
share_url:'https://mdev.anjibao.cn/cffp',
}
const stage = {
base_url:'https://mstage.zuihuibi.cn',
api_url:'https://mstage.zuihuibi.cn/cffpApi',
cffp_url:'https://mstage.zuihuibi.cn/cffpApi/cffp'
cffp_url:'https://mstage.zuihuibi.cn/cffpApi/cffp',
share_url:'https://mstage.zuihuibi.cn/cffp',
}
const prod = {
base_url:'https://app.ydhomeoffice.cn',
api_url:'https://app.ydhomeoffice.cn/appApi',
cffp_url:'https://app.ydhomeoffice.cn/appApi/cffp'
cffp_url:'https://app.ydhomeoffice.cn/appApi/cffp',
share_url:'https://app.ydhomeoffice.cn/appYdhomeoffice',
}
let companyInfo = {
// companyType: '1',
......@@ -35,10 +39,12 @@ let env = 'dev';
let baseURL = config[env].base_url;
let apiURL = config[env].api_url;
let cffpURL = config[env].cffp_url;
let shareURL = config[env].share_url;
export{
baseURL,
apiURL,
cffpURL,
companyInfo
companyInfo,
shareURL
}
\ No newline at end of file
......@@ -164,7 +164,7 @@
import {hshare} from '@/util/fiveshare';
import {nanoid} from 'nanoid';
import common from '../../common/common';
import {baseURL,apiURL,cffpURL} from "@/environments/environment";
import {baseURL,apiURL,cffpURL,shareURL} from "@/environments/environment";
export default {
components: {
UniShareWx,
......@@ -361,7 +361,7 @@
//app分享
// #ifdef APP-PLUS
let dataWXform = {
href: baseURL + "/appYdhomeoffice/pages/courseDetail/courseDetail?fileId=" + this.fileId +
href: shareURL + "/pages/courseDetail/courseDetail?fileId=" + this.fileId +
'&coursesharing=1' + '&serialsNo=' + nanoid() + '&shareCode=' + shareCode + '&shareUserId=' +
this.userId + '&jumpUrl=' + jumptime + "&",
title: this.courseInfo.fileTitle,
......@@ -701,7 +701,7 @@
let data = {
title: this.courseInfo.fileTitle,
desc: '加入我们开启学习之旅',
link:"https://" + window.location.host + "/appYdhomeoffice/pages/courseDetail/courseDetail?fileId=" + this.fileId +
link: shareURL + "/pages/courseDetail/courseDetail?fileId=" + this.fileId +
'&coursesharing=1' + '&serialsNo=' + nanoid() + '&shareCode=' + shareCode + '&shareUserId=' +
this.userId + '&jumpUrl=' + jumptime + "&", //分享链接
imgUrl: this.courseInfo.displayImage, //图片
......@@ -764,7 +764,7 @@
userId: uni.getStorageSync('cffp_userId'),
businessType: '1', // 分享类型
businessId: this.fileId, // 课程Id
shareUrl: "https://" + window.location.host + "/appYdhomeoffice/pages/courseDetail/courseDetail?fileId=" + this.fileId +
shareUrl: shareURL + "/pages/courseDetail/courseDetail?fileId=" + this.fileId +
'&coursesharing=1' + '&serialsNo=' + nanoid() + '&shareCode=' + shareCode + '&shareUserId=' +
this.userId + '&jumpUrl=' + jumptime + "&", // 分享链接
shareType: '2', // 分享类型(1:图片分享; 2:链接分享)
......
......@@ -144,7 +144,7 @@
import api from "@/api/api"
import common from '../../common/common';
import {hshare } from '@/util/fiveshare';
import {baseURL,apiURL,cffpURL} from "@/environments/environment";
import {baseURL,apiURL,cffpURL,shareURL} from "@/environments/environment";
export default {
data() {
return {
......@@ -293,10 +293,10 @@
title: '银盾家办家庭财务策划师联盟邀您加入',
//desc: `我是家庭财务策划师${this.realName}正在使用银盾家办,点击即刻加入!`,
desc: `${this.realName}邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`,
link: "https://" + window.location.host +
"/appYdhomeoffice/pages/invitationRegister/invitationRegister?shareId=" +
link: shareURL +
"/pages/invitationRegister/invitationRegister?shareId=" +
this.shareId + '&invitationCode=' + this.invitationCode, //分享链接
imgUrl: `${baseURL}/appYdhomeoffice/static/yd_Logo.png`, //图片
imgUrl: `${shareURL}/static/yd_Logo.png`, //图片
//imgUrl: `${baseURL}/static/cffp_logo.jpg`, //图片
}
//安卓机型获取当前页面路径
......@@ -335,11 +335,11 @@
provider: "weixin",
scene: type === 1 ? "WXSceneSession" : "WXSceneTimeline",
type: 0,
href: `${baseURL}/appYdhomeoffice/pages/invitationRegister/invitationRegister?shareId=${this.shareId}&invitationCode=${this.invitationCode}`,
href: `${shareURL}/pages/invitationRegister/invitationRegister?shareId=${this.shareId}&invitationCode=${this.invitationCode}`,
title: "银盾家办家庭财务策划师联盟邀您加入",
//summary: `我是家庭财务策划师${this.realName}正在使用银盾家办,点击下载即刻加入!`,
summary: `${this.realName}邀您加入【家庭财策师联盟】,资源+伙伴,共赢未来!`,
imageUrl: `${baseURL}/appYdhomeoffice/static/yd_Logo.png`, //图片
imageUrl: `${shareURL}/static/yd_Logo.png`, //图片
//imageUrl: `${baseURL}/static/cffp_logo.jpg`,
success: function(res) {
console.log("success:" + JSON.stringify(res));
......
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