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
e2e637b0
Commit
e2e637b0
authored
Nov 05, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
54628bff
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
500 additions
and
5 deletions
+500
-5
app.json
app.json
+2
-1
classdetail.wxss
business/pages/classservice/classdetail.wxss
+1
-0
influencelist.js
src/pages/myinfluence/influencelist.js
+101
-0
influencelist.json
src/pages/myinfluence/influencelist.json
+10
-0
influencelist.wxml
src/pages/myinfluence/influencelist.wxml
+125
-0
influencelist.wxss
src/pages/myinfluence/influencelist.wxss
+256
-0
reviewdetail.js
src/pages/papersquare/reviewdetail.js
+4
-3
reviewdetail.wxml
src/pages/papersquare/reviewdetail.wxml
+1
-1
No files found.
app.json
View file @
e2e637b0
...
...
@@ -250,7 +250,8 @@
"root"
:
"src/pages/myinfluence"
,
"name"
:
"myinfluence"
,
"pages"
:
[
"index"
"index"
,
"influencelist"
]
},
{
...
...
business/pages/classservice/classdetail.wxss
View file @
e2e637b0
...
...
@@ -1221,6 +1221,7 @@ page{
.select-student-dailog .dailog-content .student-list{
display: flex;
flex-wrap: wrap;
height: calc(80vh - 30px);
}
.select-student-dailog .dailog-content .student-list .student-item{
display: inline-block;
...
...
src/pages/myinfluence/influencelist.js
0 → 100644
View file @
e2e637b0
import
{
formIdCreate
,
getActivities
,
activityLog
}
from
'../../../service/common.js'
;
import
{
LocalStorage
,
}
from
'../../../utilities/index.js'
;
var
app
=
getApp
();
Page
({
/**
* 页面的初始数据
*/
data
:
{
imageRoot
:
app
.
globalData
.
imageRoot
,
imageVersion
:
app
.
globalData
.
imageVersion
,
titleBarHeight
:
app
.
globalData
.
titleBarHeight
,
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
tabList
:
[{
name
:
'好友查看'
,
index
:
0
},
{
name
:
'好友转发'
,
index
:
1
}
,{
name
:
'留下线索'
,
index
:
2
}],
acIndex
:
0
,
isExpend
:
false
,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
wx
.
setNavigationBarColor
({
frontColor
:
'#ffffff'
,
backgroundColor
:
'#FFD146'
,
animation
:
{
duration
:
0
,
timingFunc
:
'linear'
},
success
:
(
result
)
=>
{
},
fail
:
()
=>
{},
complete
:
()
=>
{}
});
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
:
function
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
:
function
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
:
function
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
:
function
()
{
},
tabHandle
(
e
){
const
{
index
}
=
e
.
currentTarget
.
dataset
;
if
(
index
==
this
.
data
.
acIndex
){
return
;
}
this
.
setData
({
acIndex
:
index
})
},
expendHandle
(
e
){
const
{
flag
}
=
e
.
currentTarget
.
dataset
;
this
.
setData
({
isExpend
:
flag
})
}
})
\ No newline at end of file
src/pages/myinfluence/influencelist.json
0 → 100644
View file @
e2e637b0
{
"usingComponents"
:
{
"list-loading"
:
"../../../components/listloading"
,
"activity-bar"
:
"../../../components/activitybar"
,
"sjdbottombar"
:
"../../../components/sjdbottombar"
,
"guidecollection"
:
"../../../components/guidecollection"
},
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"#FFD146"
}
\ No newline at end of file
src/pages/myinfluence/influencelist.wxml
0 → 100644
View file @
e2e637b0
<!--src/pages/myinfluence/influencelist.wxml-->
<wxs src="../../../filter/index.wxs" module="filter" />
<view class="container">
<view class="header-box">
<view class="back-box" style="padding-top: {{titleBarHeight+11}}px;"><image class="" src="{{imageRoot}}2c/optimize/icon_wxback.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /></view>
<view class="title">我的影响力</view>
<view class="tab-list">
<view class="tab-item {{index == acIndex? 'act-tab' :''}}" wx:for="{{tabList}}" wx:key="{{index}}" data-index="{{index}}" bindtap="tabHandle">{{item.name}}<view class="act-line" wx:if="{{index == acIndex}}"></view></view>
</view>
</view>
<view class="contnet-box" hidden="{{acIndex!=0}}">
<view class="list-item">
<view class="date-box">2019年6月30日</view>
<view class="outline-box" style="{{isExpend ? '':'padding-bottom:0;'}}">
<view class="count">632位好友查看</view>
<view class="avatar-box">
<image class="avatar" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}"></image>
</view>
<view class="getMore-btn" wx:if="{{!isExpend}}" bindtap="expendHandle" data-flag="{{true}}">展开访问明细<image class="" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /></view>
</view>
<view class="detail-box" wx:if="{{isExpend}}">
<view class="table-header">
<view class="name">好友微信昵称</view>
<view class="name">访问来源</view>
</view>
<view class="detail-list">
<view class="detail-item">
<view class="visitor-info">
<view class="visitor-avatar"><image class="" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /></view>
<view class="action">
<view class="nickname">张晓丽</view>
<view class="action-detail">
<text class="action-time" selectable="false" space="false" decode="false">2019.08.09 20:01</text>
<text class="action-text" selectable="false" space="false" decode="false">访问我的打卡详情</text>
</view>
</view>
<view class="access-content">
<image class="" src="" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
</view>
</view>
<view class="lately-log">
<view class="log-title"><image class="" src="{{imageRoot}}2b/common/ex-clock.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />最近访客记录</view>
<view class="log-item">20:01访问了「小星星英语培训班」张晓丽的打卡详情</view>
</view>
</view>
</view>
<view class="btn-box">
<view class="more-btn">点击加载更多</view>
<view class="retract-btn" bindtap="expendHandle" data-flag="{{false}}">收起明细<image class="" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /></view>
</view>
</view>
</view>
</view>
<view class="contnet-box" hidden="{{acIndex!=1}}">
<view class="list-item">
<view class="date-box">2019年6月30日</view>
<view class="outline-box" style="{{isExpend ? '':'padding-bottom:0;'}}">
<view class="count">632位好友查看</view>
<view class="avatar-box">
<image class="avatar" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}"></image>
</view>
<view class="getMore-btn" wx:if="{{!isExpend}}" bindtap="expendHandle" data-flag="{{true}}">展开访问明细<image class="" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /></view>
</view>
<view class="detail-box" wx:if="{{isExpend}}">
<view class="table-header">
<view class="name">好友微信昵称</view>
<view class="name">访问来源</view>
</view>
<view class="detail-list">
<view class="detail-item">
<view class="visitor-info">
<view class="visitor-avatar"><image class="" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /></view>
<view class="action">
<view class="nickname">张晓丽</view>
<view class="action-detail">
<text class="action-time" selectable="false" space="false" decode="false">2019.08.09 20:01</text>
<text class="action-text" selectable="false" space="false" decode="false">转发了你的打卡内容</text>
</view>
</view>
<view class="access-content">
<image class="" src="" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
</view>
</view>
<view class="lately-log">
<view class="log-title"><image class="" src="{{imageRoot}}2b/common/ex-clock.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />最近访客记录</view>
<view class="log-item">20:01访问了「小星星英语培训班」张晓丽的打卡详情</view>
</view>
</view>
</view>
<view class="btn-box">
<view class="more-btn">点击加载更多</view>
<view class="retract-btn" bindtap="expendHandle" data-flag="{{false}}">收起明细<image class="" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /></view>
</view>
</view>
</view>
</view>
<view class="contnet-box" hidden="{{acIndex!=2}}">
<view class="detail-list">
<view class="detail-item">
<view class="visitor-info">
<view class="visitor-avatar"><image class="" src="{{imageRoot}}common/empty/avatar_user.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /></view>
<view class="action">
<view class="nickname">张晓丽</view>
<view class="action-detail">
<text class="action-time" selectable="false" space="false" decode="false">2019.08.09 20:01</text>
<text class="action-text" selectable="false" space="false" decode="false">转发了你的打卡内容</text>
</view>
</view>
<view class="access-content">
<image class="" src="" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
</view>
</view>
<view class="lately-log">
<view class="log-title"><image class="" src="{{imageRoot}}2b/common/ex-clock.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />最近访客记录</view>
<view class="log-item">20:01访问了「小星星英语培训班」张晓丽的打卡详情</view>
</view>
</view>
</view>
</view>
</view>
src/pages/myinfluence/influencelist.wxss
0 → 100644
View file @
e2e637b0
/* src/pages/myinfluence/influencelist.wxss */
.container{
background:rgba(245,244,249,1);
min-height: 100vh;
}
.header-box{
width:100%;
height:422rpx;
background:linear-gradient(180deg,rgba(255,209,70,1) 0%,rgba(255,209,70,0) 100%);
}
.header-box .back-box {
padding-left: 24rpx;
}
.header-box .back-box image{
width:16rpx;
height:28rpx;
}
.header-box .title{
padding: 36rpx 0 64rpx 24rpx;
font-size:40rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(0,0,0,1);
line-height:1;
}
.tab-list{
display: flex;
}
.tab-list .tab-item{
flex: 1;
text-align: center;
font-size:26rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(0,0,0,.7);
line-height:1;
position: relative;
padding-bottom: 20rpx;
}
.tab-list .tab-item .act-line{
width:60rpx;
height:4rpx;
background:rgba(0,0,0,1);
border-radius:2rpx;
position: absolute;
bottom: 0;
left: 50%;
margin-left: -30rpx;
}
.tab-list .act-tab{
font-size:28rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(0,0,0,1);
}
.contnet-box{
position: relative;
top: -60rpx;
padding: 0 24rpx;
}
.contnet-box .list-item{
background:rgba(255,255,255,1);
border-radius:20rpx;
padding-bottom: 30rpx;
}
.contnet-box .list-item .date-box{
font-size:28rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(111,111,111,1);
line-height:1;
padding: 30rpx 0 0 22rpx;
}
.contnet-box .list-item .outline-box{
padding: 48rpx 20rpx 80rpx 22rpx;
}
.contnet-box .list-item .outline-box .count{
font-size:26rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(93,93,93,1);
line-height:1;
padding-bottom: 34rpx;
text-align: center;
}
.contnet-box .list-item .outline-box .avatar-box{
padding-bottom: 25rpx;
}
.contnet-box .list-item .outline-box .avatar-box image{
width:62rpx;
height:62rpx;
border-radius:31rpx;
margin: 0 5rpx 5rpx 0;
}
.contnet-box .list-item .outline-box .getMore-btn{
width:218rpx;
height:50rpx;
background:rgba(245,244,249,1);
border:1px solid rgba(237,237,237,1);
border-radius:10rpx;
display: flex;
align-items: center;
justify-content: center;
font-size:26rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(0,0,0,.5);
margin: 0 auto;
}
.contnet-box .list-item .outline-box .getMore-btn image{
width: 12rpx;
height: 21rpx;
transform: rotate(90deg);
margin-left: 14rpx;
}
.contnet-box .list-item .detail-box{
}
.contnet-box .list-item .detail-box .table-header{
height:70rpx;
background:rgba(255,255,255,1);
box-shadow:0px 4px 6px 0px rgba(0, 0, 0, 0.05);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 24rpx;
}
.contnet-box .list-item .detail-box .table-header .name{
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(108,122,151,1);
}
.contnet-box .list-item .detail-box .detail-list{
}
.contnet-box .list-item .detail-box .detail-list .detail-item{
padding: 30rpx 20rpx 10rpx 20rpx;
border-bottom: 1px solid rgba(0,0,0,.05);
}
.contnet-box .list-item .detail-box .detail-list .detail-item .visitor-info{
display: flex;
align-items: center;
}
.contnet-box .list-item .detail-box .detail-list .detail-item .visitor-info .visitor-avatar{
width:72rpx;
height:72rpx;
border-radius:50%;
margin-right: 21rpx;
}
.contnet-box .list-item .detail-box .detail-list .detail-item .visitor-info .visitor-avatar image{
width:72rpx;
height:72rpx;
border-radius:50%;
}
.contnet-box .list-item .detail-box .detail-list .detail-item .visitor-info .action{
flex: 1;
}
.contnet-box .list-item .detail-box .detail-list .detail-item .visitor-info .action .nickname{
font-size:26rpx;
font-family:PingFang SC;
font-weight:bold;
color:rgba(108,122,151,1);
line-height:1;
padding-bottom: 15rpx;
}
.contnet-box .list-item .detail-box .detail-list .detail-item .visitor-info .action .action-detail{
font-size:26rpx;
font-family:PingFang SC;
font-weight:400;
line-height: 1;
}
.contnet-box .list-item .detail-box .detail-list .detail-item .visitor-info .action .action-detail .action-time{
color: #8A8A8A;
}
.contnet-box .list-item .detail-box .detail-list .detail-item .visitor-info .action .action-detail .action-text{
color: #000000;
font-weight: bold;
}
.contnet-box .list-item .detail-box .detail-list .detail-item .access-content{
width:100rpx;
height:100rpx;
border-radius:6rpx;
margin-left: 18rpx;
}
.contnet-box .list-item .detail-box .detail-list .detail-item .access-content image{
width:100rpx;
height:100rpx;
border-radius:6rpx;
}
.lately-log{
padding-top: 30rpx;
}
.lately-log .log-title{
font-size:26rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(53,53,53,1);
line-height: 1;
padding-bottom: 20rpx;
}
.lately-log .log-title image{
width:31rpx;
height:31rpx;
margin-right: 16rpx;
}
.lately-log .log-item{
font-size:24rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(138,138,138,1);
line-height: 1;
padding-bottom: 18rpx;
padding-left: 40rpx;
}
.btn-box{
padding: 30rpx 100rpx 0 100rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.btn-box .more-btn{
width:180rpx;
height:50rpx;
background:rgba(255,255,255,1);
border:1px solid rgba(149,149,149,1);
border-radius:10rpx;
font-size:26rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(0,0,0,.5);
display: flex;
align-items: center;
justify-content: center;
}
.btn-box .retract-btn {
width:180rpx;
height:50rpx;
background:rgba(245,244,249,1);
border:1px solid rgba(237,237,237,1);
border-radius:10rpx;
border-radius:10rpx;
font-size:26rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(0,0,0,.5);
display: flex;
align-items: center;
justify-content: center;
}
.btn-box .retract-btn image{
width: 12rpx;
height: 21rpx;
transform: rotate(-90deg);
margin-left: 14rpx;
}
\ No newline at end of file
src/pages/papersquare/reviewdetail.js
View file @
e2e637b0
...
...
@@ -360,11 +360,12 @@ Page({
prevImg
(
e
)
{
const
{
dataset
}
=
e
.
currentTarget
;
const
current
=
dataset
.
src
;
const
comment
=
dataset
.
comment
||
''
;
const
images
=
this
.
data
.
reviewDetail
.
content
.
img
;
const
works
=
this
.
data
.
reviewDetail
.
works
;
let
_images
=
images
.
filter
((
ele
)
=>
ele
.
type
==
'image'
).
map
(
ele
=>
ele
.
src
);
let
_works
=
works
.
filter
((
ele
)
=>
ele
.
type
==
'image'
).
map
(
ele
=>
ele
.
src
);
wxPreviewImage
({
urls
:
_images
,
urls
:
_images
.
concat
(
_works
)
,
current
:
current
,
type
:
'clockitem'
})
...
...
@@ -550,5 +551,5 @@ Page({
wx
.
navigateTo
({
url
:
`/src/pages/papersquare/classreviewshare?sid=
${
sid
}
&cid=
${
id
}
&rid=
${
rid
}
&type=
${
type
}
`
})
}
}
,
})
\ No newline at end of file
src/pages/papersquare/reviewdetail.wxml
View file @
e2e637b0
...
...
@@ -63,7 +63,7 @@
</view>
<view class="img-box" wx:if="{{(reviewDetail.content.img && reviewDetail.content.img.length>0) || (reviewDetail.works && reviewDetail.works.length>0)}}">
<view class="bigimgbox" wx:for="{{reviewDetail.works}}" wx:for-item="video" wx:key="index" style="{{reviewDetail.content.img.length>0 ? 'margin-bottom: 20rpx' :''}}">
<view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}" style="{{video.students && video.students.length>0 ? 'border-radius: 8rpx 8rpx 0 0;' :''}}">
<view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}"
bindtap="prevImg"
style="{{video.students && video.students.length>0 ? 'border-radius: 8rpx 8rpx 0 0;' :''}}">
<image class="img" src="{{filter.imagify(video.src, 'image/resize,w_640/format,jpg/quality,q_80')}}" mode="widthFix" lazy-load="true" binderror="" bindload="" style="{{video.students && video.students.length>0 ? 'border-radius: 8rpx 8rpx 0 0;' :''}}"></image>
</view>
</view>
...
...
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