Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
6b1f1030
Commit
6b1f1030
authored
May 08, 2025
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分享路径
parent
3ab8ef48
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
16 deletions
+24
-16
components/carousel/carousel.vue
+2
-1
components/my-list-item/my-list-item.vue
+1
-1
environments/environment.ts
+11
-4
pages/courseDetail/courseDetail.vue
+4
-4
pages/inviteJoin/inviteJoin.vue
+6
-6
No files found.
components/carousel/carousel.vue
View file @
6b1f1030
...
...
@@ -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
)
...
...
components/my-list-item/my-list-item.vue
View file @
6b1f1030
...
...
@@ -30,7 +30,7 @@
<
script
>
export
default
{
name
:
"list-item"
,
name
:
"
my-
list-item"
,
props
:
{
title
:
{
type
:
Array
,
...
...
environments/environment.ts
View file @
6b1f1030
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
pages/courseDetail/courseDetail.vue
View file @
6b1f1030
...
...
@@ -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:链接分享)
...
...
pages/inviteJoin/inviteJoin.vue
View file @
6b1f1030
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment