Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 f3bd924f
authored
Dec 21, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
详情
1 parent
abe0f6b8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
15 deletions
api/entmicroApi.js
api/environment.js
components/proDetail/proDetail.js
packagesList/pages/productDetail/productDetail.js
api/entmicroApi.js
View file @
f3bd924
...
@@ -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
)
}
}
api/environment.js
View file @
f3bd924
...
@@ -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
,
...
...
components/proDetail/proDetail.js
View file @
f3bd924
...
@@ -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
...
...
packagesList/pages/productDetail/productDetail.js
View file @
f3bd924
...
@@ -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)
}
//
}
},
},
...
...
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