Commit f3bd924f by chenwq

详情

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