Commit 350a71ef by luyt

faet:添加跳转链接

1 parent fcbeec46
...@@ -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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!