Commit f3bd924f by chenwq

详情

1 parent abe0f6b8
......@@ -40,5 +40,17 @@ module.exports = {
method: `entmicro.api.business.activityRecord.detail`,
...data
})
}
}
\ No newline at end of file
},
//获取活动配置
getActiveApi(data) {
return api.post(
{
method: 'scrm.api.busassistant.activity.getActivityUrl',
...data
},
true
)
}
}
......@@ -55,6 +55,7 @@ const pathEnum = {
sso: "/rop-scrm-sso/",
wechat: "/rop-scrm-wechat/",
business: "/rop-scrm-entmicro/",
busassistant: '/rop-scrm-busassistant/'
};
module.exports = {
index,
......
......@@ -108,6 +108,14 @@ Component({
// console.log('imgTopArr',this.data.imgTopArr)
// },500)
},
// 1.3查看活动详情按钮
checkActive() {
// 跳转
// console.log('跳转')
let { activeUrl } = this.data
wx.$router.jumpH5(activeUrl);
},
onClickTab(event) {
// console.log('event: ', event);
let { index } = event.detail
......
......@@ -11,7 +11,7 @@ import {
} from "~/pages/tab/index/constant/senceData"
// import USERAPI from '~/api/usersApi/index'
import utils from '~/utils/util'
// import {getActiveApi} from "~/api/viewprod"
import {entmicroApi} from "~/api/api"
Page({
......@@ -140,7 +140,7 @@ Page({
//获取配置url
async getActiveApiFn(){
let {code,data} = await getActiveApi()
let {code,data} = await entmicroApi.getActiveApi()
if(code == 0){
this.setData({
activeUrl: data
......@@ -150,18 +150,18 @@ Page({
// 是否已经查看详情
isgetAuthphone(){
let authphone = wx.$storage.get("authphone");
if(authphone){
// 显示后面的内容
setTimeout(() => {
this.getImgHeight()
},300)
// if(authphone){
// // 显示后面的内容
// setTimeout(() => {
// this.getImgHeight()
// },300)
this.setData({
showLeft: true
})
//触发浏览埋点
// this.onLoad(null)
}
// this.setData({
// showLeft: true
// })
// //触发浏览埋点
// // this.onLoad(null)
// }
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!