Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 350a71ef
authored
Dec 08, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
faet:添加跳转链接
1 parent
fcbeec46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
pages/viewProdBanner/index.js
pages/viewProdBanner/index.js
View file @
350a71e
...
@@ -4,6 +4,7 @@ import { IMG_URL } from "~/utils/constantData.js";
...
@@ -4,6 +4,7 @@ import { IMG_URL } from "~/utils/constantData.js";
import
{
senceData
}
from
"~/pages/tab/index/constant/data"
;
import
{
senceData
}
from
"~/pages/tab/index/constant/data"
;
import
USERAPI
from
'~/api/usersApi/index'
import
USERAPI
from
'~/api/usersApi/index'
import
utils
from
'~/utils/util.js'
import
utils
from
'~/utils/util.js'
import
{
getActiveApi
}
from
"~/api/viewprod"
Page
({
Page
({
/**
/**
...
@@ -52,6 +53,7 @@ Page({
...
@@ -52,6 +53,7 @@ Page({
* 分享出去,或扫码进来
* 分享出去,或扫码进来
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
getActiveApiFn
()
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
let
{
actNum
,
activeNavIdx
,
isShare
,
phone
}
=
options
let
{
actNum
,
activeNavIdx
,
isShare
,
phone
}
=
options
...
@@ -142,6 +144,15 @@ Page({
...
@@ -142,6 +144,15 @@ Page({
scrollTop: imgTopArr[index] + 5,
scrollTop: imgTopArr[index] + 5,
});
});
},
},
//获取配置url
async getActiveApiFn(){
let {code,data} = await getActiveApi()
if(code == 0){
this.setData({
activeUrl: data
})
}
},
onPageScroll: (function () {
onPageScroll: (function () {
let timer = null;
let timer = null;
return function (e) {
return function (e) {
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment