Commit 350a71ef by luyt

faet:添加跳转链接

1 parent fcbeec46
......@@ -4,6 +4,7 @@ import { IMG_URL } from "~/utils/constantData.js";
import { senceData } from "~/pages/tab/index/constant/data";
import USERAPI from '~/api/usersApi/index'
import utils from '~/utils/util.js'
import {getActiveApi} from "~/api/viewprod"
Page({
/**
......@@ -52,6 +53,7 @@ Page({
* 分享出去,或扫码进来
*/
onLoad(options) {
this.getActiveApiFn()
if (!options || utils.isEmptyObj(options)) return
let { actNum, activeNavIdx, isShare,phone } = options
......@@ -142,6 +144,15 @@ Page({
scrollTop: imgTopArr[index] + 5,
});
},
//获取配置url
async getActiveApiFn(){
let {code,data} = await getActiveApi()
if(code == 0){
this.setData({
activeUrl: data
})
}
},
onPageScroll: (function () {
let timer = null;
return function (e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!