Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wandouchengzhang_coach
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
石盼盼
wandouchengzhang_coach
Commits
1b4985ea
Commit
1b4985ea
authored
Nov 27, 2020
by
吴颖
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wuying' into 'master'
Wuying See merge request
!48
parents
bfc7f369
5264b659
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
31 deletions
+63
-31
classDetail.wxml
pages/index/classDetail/classDetail.wxml
+1
-1
courseInstant.js
pages/index/courseInstant/courseInstant.js
+9
-2
courseInstant.wxml
pages/index/courseInstant/courseInstant.wxml
+53
-27
parents.js
pages/my/parents/parents.js
+0
-1
No files found.
pages/index/classDetail/classDetail.wxml
View file @
1b4985ea
...
...
@@ -26,7 +26,7 @@
<view class="status">
<view class="evaluation" data-id="{{item.child_id}}" data-class_single_id="{{item.class_single_id}}" catchtap="goperformance" wx:if="{{item.is_leave == 0 && item.sign_status == 1}}">运动评价</view>
<view class="leave" wx:else>已请假</view>
<
view class="unread" wx:if="{{ !item.class_moment }}"></view
>
<
!-- <view class="unread" wx:if="{{ !item.class_moment }}"></view> --
>
</view>
</view>
</view>
\ No newline at end of file
pages/index/courseInstant/courseInstant.js
View file @
1b4985ea
...
...
@@ -123,7 +123,6 @@ Page({
that
.
setData
({
imgBox
:
imgs
});
console
.
log
(
that
.
data
.
imgBox
)
})
},
fail
()
{
...
...
@@ -143,10 +142,14 @@ Page({
// 预览图片
previewImg
:
function
(
e
)
{
var
index
=
e
.
currentTarget
.
dataset
.
index
var
arr
=
[]
for
(
var
i
=
0
;
i
<
this
.
data
.
imgBox
.
length
;
i
++
)
{
arr
.
push
(
this
.
data
.
imgBox
[
i
].
url
)
}
var
imgs
=
this
.
data
.
imgBox
wx
.
previewImage
({
current
:
imgs
[
index
].
url
,
urls
:
this
.
data
.
imgBox
urls
:
arr
})
},
save
()
{
...
...
@@ -174,5 +177,9 @@ Page({
}
}
base
.
newRequest
(
params
)
},
paly
()
{
// 播放视频
}
})
\ No newline at end of file
pages/index/courseInstant/courseInstant.wxml
View file @
1b4985ea
<view class="video">
<view wx:if="{{type != 'check'}}">
<view class="video">
<view class="head">
<text class="title">运动工程</text>
</view>
<view class="imgBox flex-h">
<view class="img videoBox" wx:for="{{videoBox}}" wx:for-item="item" wx:key="idx">
<video src="{{item.url}}" data-index="{{index}}" bindplay='paly'></video>
</view>
</view>
</view>
<view class="video">
<view class="head">
<text class="title">精彩瞬间</text>
</view>
<view class="imgBox flex-h flex-hw">
<view class="img" wx:for="{{imgBox}}" wx:for-item="item" wx:key="idx">
<image src="{{item.url}}" data-index="{{index}}" mode="aspectFill" bindtap="previewImg"></image>
</view>
</view>
</view>
</view>
<view wx:else>
<view class="video">
<view class="head">
<text class="title">拍摄运动工程</text>
<text class="up">(可上传1个视频)</text>
...
...
@@ -14,8 +37,8 @@
<text class='iconfont iconshipin'></text>
</view>
</view>
</view>
<view class="video">
</view>
<view class="video">
<view class="head">
<text class="title">记录精彩瞬间</text>
<text class="up">(最多可上传9张照片)</text>
...
...
@@ -27,11 +50,14 @@
<text class='iconfont iconguanbi'></text>
</view>
</view>
<view class='addBox flex-h flex-vc flex-hc' bindtap="chooseImg" wx:if="{{imgBox.length < 9 && type != 'check' }}">
<view class='addBox flex-h flex-vc flex-hc' bindtap="chooseImg"
wx:if="{{imgBox.length < 9 && type != 'check' }}">
<text class='iconfont iconxiangji'></text>
</view>
</view>
</view>
<view class="button" wx:if="{{type != 'check'}}">
</view>
<view class="button" wx:if="{{type != 'check'}}">
<view class="submit" catchtap="save">提交</view>
</view>
</view>
\ No newline at end of file
pages/my/parents/parents.js
View file @
1b4985ea
...
...
@@ -24,7 +24,6 @@ Page({
let
params
=
{
url
:
'
coach/reply
'
,
data
:
{
// coach_id : 4,
coach_id
:
app
.
globalData
.
coach_id
},
callback
:
(
data
)
=>
{
...
...
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