Commit 6b1f1030 by yuzhenWang

修改分享路径

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