Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
9895cc51
Commit
9895cc51
authored
May 16, 2019
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add entrance of activitycustomer
parent
d1e519c2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
306 deletions
+34
-306
index.js
business/pages/orgadsetting/index.js
+7
-0
index.wxml
business/pages/orgadsetting/index.wxml
+7
-2
index.wxss
business/pages/orgadsetting/index.wxss
+20
-2
index.js
business/pages/orgreceivingcustomerinfo/index.js
+0
-302
No files found.
business/pages/orgadsetting/index.js
View file @
9895cc51
...
...
@@ -16,6 +16,7 @@ import {
import
{
formIdCreate
}
from
'../../../service/common.js'
;
import
constants
from
'../../../constants/constants.js'
;
var
app
=
getApp
();
Page
({
data
:
{
...
...
@@ -379,5 +380,11 @@ Page({
wx
.
navigateTo
({
url
:
`/business/pages/orgpotentialcustomer/index?sid=
${
this
.
data
.
sid
}
&id=
${
this
.
data
.
id
}
`
})
},
goOrgActivityCustomer
()
{
let
tid
=
constants
.
activity
.
tid
;
wx
.
navigateTo
({
url
:
`/business/pages/activityconsumers/index?tid=
${
tid
}
`
})
}
})
\ No newline at end of file
business/pages/orgadsetting/index.wxml
View file @
9895cc51
...
...
@@ -78,8 +78,13 @@
<view class="example-img-title" hover-class="none" hover-stop-propagation="false">图示</view>
<image class="example-img" src="{{imageRoot}}2b/adsetting/example.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" bindtap="prevImg" data-imgsrc="{{imageRoot}}adsetting/example.png"></image>
</view>
<view class="viewCustomer" hover-class="none" hover-stop-propagation="false" bindtap="goOrgCustomer" wx:if="{{id != 0}}">
查看获客广告
<view class="bottom-fix-box">
<view class="viewCustomer" hover-class="none" hover-stop-propagation="false" bindtap="goOrgCustomer" wx:if="{{id != 0}}">
查看获客广告
</view>
<view class="viewCustomer" hover-class="none" hover-stop-propagation="false" bindtap="goOrgActivityCustomer" wx:if="{{id != 0}}">
查看领奖客户信息
</view>
</view>
</view>
<view class="info-sort-dia" hover-class="none" hover-stop-propagation="false" wx:if="{{sortSelectShow}}">
...
...
business/pages/orgadsetting/index.wxss
View file @
9895cc51
...
...
@@ -355,8 +355,8 @@
.select-box .answer-box .del {
width: 21rpx;
height: 24rpx;
}
.
viewCustomer
{
}
.
bottom-fix-box
{
position: fixed;
bottom: 0;
left: 0;
...
...
@@ -366,6 +366,24 @@
color: #6ABAF4;
font-size: 28rpx;
background-color: #fff;
display: flex;
}
.viewCustomer {
flex: 1;
position: relative;
}
.viewCustomer:after{
content: '';
width: 1px;
height: 37rpx;
background:rgba(222,222,224,1);
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%) scaleX(.5);
}
.viewCustomer:last-of-type:after{
display: none
}
.bannerselect {
white-space: nowrap;
...
...
business/pages/orgreceivingcustomerinfo/index.js
deleted
100644 → 0
View file @
d1e519c2
/*
time: 2018-10-31
author: wxl
*/
import
{
themeList
}
from
'../../../service/customer/circleindex.js'
;
import
{
formIdCreate
}
from
'../../../service/common.js'
;
import
{
LocalStorage
}
from
'../../../utilities/index.js'
;
import
{
wxPreviewImage
,
}
from
'../../../utilities/wxApi.js'
;
import
{
mineClassList
}
from
'../../../service/customer/circleindex.js'
;
var
app
=
getApp
();
Page
({
data
:
{
id
:
0
,
sid
:
0
,
imageRoot
:
app
.
globalData
.
imageRoot
,
imageVersion
:
app
.
globalData
.
imageVersion
,
localImageRoot
:
'../../../images/'
,
circleInfo
:
{},
themeList
:
[],
themeTotal
:
0
,
page
:
1
,
perPage
:
10
,
hasmore
:
true
,
emptyPage
:
false
,
posterBoxShow
:
false
,
canvasShow
:
false
,
mylogo
:
'clock-test/member/12186/2018-11-22/1003e9389385fea846ade074d6701974.png'
,
qrcodeGenerating
:
false
,
attentionAnim
:
{},
// 动画
guideShow
:
true
,
// 引导
backTopValue
:
false
,
listLoading
:
false
,
showcopybox
:
false
,
circlehasmore
:
true
,
circleperPage
:
10
,
circleTotal
:
''
,
circleList
:[],
circlepage
:
1
,
circlelistLoading
:
false
,
selectedcircle
:
0
,
//被选中复制主题到的班级
selectedtheme
:
''
,
//选中的主题
schoolInfo
:
''
,
from
:
0
,
// 1 机构首页 2 班级列表
classList
:
[],
classTotal
:
0
,
selectedClass
:
{},
classesShow
:
false
,
subjectType
:
1
,
},
onLoad
:
function
(
options
)
{
// Do some initialize when page load.
const
{
sid
}
=
options
;
this
.
setData
({
sid
});
wx
.
hideShareMenu
()
},
onReady
:
function
()
{
// Do something when page ready
},
onShow
:
function
()
{
// Do something when page show.
if
(
this
.
data
.
sid
==
0
)
{
return
;
}
this
.
setData
({
page
:
1
,
hasmore
:
true
,
circlepage
:
1
,
circlehasmore
:
true
,
})
},
onHide
:
function
()
{
// Do something when page hide.
},
onUnload
:
function
()
{
// Do something when page close.
// this.didAnimation();
},
onPullDownRefresh
:
function
()
{
// Do something when pull down.
this
.
setData
({
hasmore
:
true
,
page
:
1
,
})
this
.
themeListGet
(
'down'
)
},
onReachBottom
:
function
()
{
// Do something when page reach bottom.
this
.
themeListGet
(
'up'
)
},
onShareAppMessage
:
function
()
{
// return custom share data when user share.
},
onPageScroll
:
function
(
e
)
{
// Do something when page scroll
let
that
=
this
let
scrollTop
=
e
.
scrollTop
let
backTopValue
=
scrollTop
>
800
?
true
:
false
that
.
setData
({
backTopValue
:
backTopValue
})
},
subjectTypeShift
(
e
)
{
const
{
dataset
}
=
e
.
currentTarget
;
this
.
setData
({
subjectType
:
dataset
.
subjecttype
,
hasmore
:
true
,
page
:
1
,
themeTotal
:
0
,
themeList
:
[]
},
()
=>
{
this
.
themeListGet
(
'init'
)
})
},
getClassList
(
type
)
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
mineClassList
({
page
:
this
.
data
.
page
,
perPage
:
100
,
school_id
:
this
.
data
.
sid
// consumer_id: visitor && visitor.id,
}).
then
((
res
)
=>
{
const
{
code
,
data
}
=
res
;
if
(
code
!=
200
)
{
// 失败的处理
}
else
{
this
.
setData
({
classList
:
data
.
list
,
classTotal
:
data
.
total
})
if
(
this
.
data
.
classList
.
length
>
0
)
{
this
.
setData
({
selectedClass
:
this
.
data
.
classList
[
0
],
id
:
this
.
data
.
classList
[
0
].
id
})
this
.
themeListGet
(
'init'
);
}
}
}).
catch
((
e
)
=>
{
this
.
setData
({
listLoading
:
false
})
})
},
themeListGet
(
type
)
{
if
(
!
this
.
data
.
hasmore
)
{
return
;
}
if
(
this
.
data
.
listLoading
)
{
return
}
this
.
setData
({
listLoading
:
true
})
// wx.showLoading({
// title: '数据加载中'
// })
themeList
({
page
:
this
.
data
.
page
,
perPage
:
this
.
data
.
perPage
,
class_id
:
this
.
data
.
id
,
// school_id:this.data.sid,
subject_type
:
this
.
data
.
subjectType
}).
then
((
res
)
=>
{
const
{
code
,
data
}
=
res
;
this
.
setData
({
listLoading
:
false
})
if
(
code
!=
200
)
{
// 失败的处理
}
else
{
if
(
data
.
total
)
{
this
.
setData
({
themeTotal
:
data
.
total
})
}
switch
(
type
)
{
case
'init'
:
//页面进来第一次加载
this
.
setData
({
themeList
:
data
.
list
||
[]
},
()
=>
{
if
(
this
.
data
.
themeTotal
>
this
.
data
.
themeList
.
length
)
{
let
page
=
this
.
data
.
page
+
1
;
this
.
setData
({
page
,
})
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
})
}
})
break
;
case
'down'
:
// 页面下拉刷新
this
.
setData
({
themeList
:
data
.
list
||
[]
},
()
=>
{
if
(
this
.
data
.
themeTotal
>
this
.
data
.
themeList
.
length
)
{
let
page
=
this
.
data
.
page
+
1
;
this
.
setData
({
page
,
})
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
})
}
})
wx
.
stopPullDownRefresh
();
break
;
case
'up'
:
// 页面上拉刷新
let
list
=
this
.
data
.
themeList
;
let
_list
=
list
.
concat
(
data
.
list
);
this
.
setData
({
themeList
:
_list
},
()
=>
{
if
(
this
.
data
.
themeTotal
>
this
.
data
.
themeList
.
length
)
{
let
page
=
this
.
data
.
page
+
1
;
this
.
setData
({
page
,
})
}
else
{
// 没有更多了
this
.
setData
({
hasmore
:
false
})
}
})
break
;
default
:
break
;
}
if
(
this
.
data
.
themeList
.
length
==
0
)
{
this
.
setData
({
emptyPage
:
true
})
// this.doAnimation()
}
else
{
this
.
setData
({
emptyPage
:
false
})
// this.didAnimation()
}
}
}).
catch
((
e
)
=>
{
this
.
setData
({
listLoading
:
false
})
})
},
goCircleMember
()
{
wx
.
navigateTo
({
url
:
`/business/pages/circlemember/index?id=
${
this
.
data
.
id
}
&sid=
${
this
.
data
.
sid
}
`
})
},
goNormalClock
(
e
)
{
const
{
dataset
:
{
theme
}}
=
e
.
currentTarget
;
wx
.
navigateTo
({
url
:
`/src/pages/themeindex/index?id=
${
this
.
data
.
id
}
&tid=
${
theme
.
id
}
`
})
},
goRiliClock
(
e
)
{
const
{
dataset
:
{
theme
}}
=
e
.
currentTarget
;
wx
.
navigateTo
({
url
:
`/src/pages/calendarthemeindex/index?id=
${
this
.
data
.
id
}
&tid=
${
theme
.
id
}
`
})
},
prevImg
(
e
)
{
const
{
dataset
}
=
e
.
currentTarget
;
wxPreviewImage
({
urls
:
[
dataset
.
imgsrc
],
current
:
dataset
.
imgsrc
})
},
// 海报生成相关代码
closeposter
()
{
this
.
setData
({
posterBoxShow
:
false
})
},
// 海报生成相关代码
sharecallback
()
{
this
.
goConsumerCircleIndex
()
},
formIdCreate
(
e
)
{
const
{
formId
}
=
e
.
detail
;
formIdCreate
({
formId
})
},
})
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment