Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
Project
Project
Details
Activity
Releases
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
游洁
thinkApp
Commits
e564b053
Commit
e564b053
authored
Jun 01, 2022
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/youjie/thinkapp
parents
8feb3f06
ea0a030e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
71 deletions
+75
-71
commentDetails.vue
src/components/setComments/commentDetails.vue
+75
-71
No files found.
src/components/setComments/commentDetails.vue
View file @
e564b053
<
template
>
<
template
>
<view
class=
"commentDetailsList-box"
>
<view
class=
"commentDetailsList-box"
>
<view
class=
"commentDetailsList-add"
@
click=
"goAdd"
>
<view
class=
"commentDetailsList-add"
@
click=
"goAdd"
>
<van-icon
name=
"plus"
/><text>
增加评论
</text>
</view>
<van-icon
name=
"plus"
/>
<view
class=
"index-student-information"
>
<text>
增加评论
</text>
<view
class=
"commentDetailsList-content"
>
</view>
<view
class=
"commentDetailsList-list"
v-for=
"(item,index) in CourseCommentTimesList"
:key=
"index"
>
<view
class=
"index-student-information"
>
<!--
<view
class=
"commentDetailsList-cross"
@
click=
"deleteRules"
>
<view
class=
"commentDetailsList-content"
>
<view
class=
"commentDetailsList-list"
v-for=
"(item,index) in CourseCommentTimesList"
:key=
"index"
>
<!--
<view
class=
"commentDetailsList-cross"
@
click=
"deleteRules"
>
<van-icon
name=
"cross"
/>
<van-icon
name=
"cross"
/>
</view>
-->
</view>
-->
<view
class=
"commentDetailsList-img flex"
>
<view
class=
"commentDetailsList-img flex"
>
<view>
{{
item
.
StuName
}}
</view>
<view>
{{
item
.
StuName
}}
</view>
<view
class=
"flex"
>
<view
class=
"flex"
>
<text>
{{
item
.
ShowTypeStr
}}
</text>
<text>
{{
item
.
ShowTypeStr
}}
</text>
<van-image
@
click=
"editRules(item)"
class=
"img"
width=
"31rpx"
height=
"30rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653980151000_180.png"
/>
<van-image
@
click=
"editRules(item)"
class=
"img"
width=
"31rpx"
height=
"30rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653980151000_180.png"
/>
</view>
</view>
<view
class=
"Wire"
></view>
<view
class=
"Wire"
></view>
</view>
</view>
<view
class=
"commentDetailsList-comment"
>
<view
class=
"commentDetailsList-comment"
>
{{
item
.
Info
}}
{{
item
.
Info
}}
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"noData"
>
<view
class=
"noData"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653902791000_806.png"
mode=
"widthFix"
></image>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653902791000_806.png"
mode=
"widthFix"
></image>
<view>
暂无评论规则数据
</view>
<view>
暂无评论规则数据
</view>
</view>
</view>
</view>
</view>
<template
v-show=
"show"
>
<template
v-show=
"show"
>
<commentDetailsPopu
ref=
"getcommentPopup"
@
change=
"changeData"
></commentDetailsPopu>
<commentDetailsPopu
ref=
"getcommentPopup"
@
change=
"changeData"
></commentDetailsPopu>
</
template
>
</
template
>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
import
commentDetailsPopu
from
'@/components/setComments/commentDetailsPopu'
import
commentDetailsPopu
from
'@/components/setComments/commentDetailsPopu'
import
{
import
{
ref
,
ref
,
reactive
,
reactive
,
toRefs
,
toRefs
,
onMounted
,
onMounted
,
...
@@ -46,62 +47,66 @@
...
@@ -46,62 +47,66 @@
}
from
"vue"
;
}
from
"vue"
;
import
navbar
from
'../../components/navbar.vue'
import
navbar
from
'../../components/navbar.vue'
export
default
{
export
default
{
props
:
[
"CourseCommentTimesList"
],
props
:
[
"CourseCommentTimesList"
,
"qMsg"
],
emits
:
[
'refreshData'
],
emits
:
[
'refreshData'
],
components
:
{
components
:
{
navbar
,
navbar
,
commentDetailsPopu
commentDetailsPopu
},
},
setup
(
props
,
context
)
{
setup
(
props
,
context
)
{
let
{
refs
}
=
getCurrentInstance
();
let
{
refs
}
=
getCurrentInstance
();
let
{
let
{
proxy
proxy
}
=
getCurrentInstance
();
}
=
getCurrentInstance
();
let
data
=
reactive
({
let
data
=
reactive
({
dataList
:
[],
dataList
:
[],
show
:
false
show
:
false
});
});
let
methods
=
{
let
methods
=
{
goAdd
(){
goAdd
()
{
uni
.
navigateTo
({
let
url
=
'/pages/setComments/addComment?CourseId='
+
this
.
qMsg
.
CourseId
+
"&CommentTimes="
+
this
.
qMsg
.
CommentTimes
;
url
:
'/pages/setComments/addComment'
console
.
log
(
"url"
,
url
);
uni
.
navigateTo
({
url
:
url
})
})
},
},
back
()
{
back
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
})
})
},
},
addRules
(){
//添加规则
addRules
()
{
//添加规则
data
.
show
=
true
data
.
show
=
true
refs
.
getcommentPopup
.
$vm
.
showFun
()
refs
.
getcommentPopup
.
$vm
.
showFun
()
},
},
editRules
(
item
){
//编辑规则
editRules
(
item
)
{
//编辑规则
data
.
show
=
true
data
.
show
=
true
refs
.
getcommentPopup
.
$vm
.
showFun
(
item
)
refs
.
getcommentPopup
.
$vm
.
showFun
(
item
)
},
},
deleteRules
(){
//删除规则
deleteRules
()
{
//删除规则
uni
.
showModal
({
uni
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
'将删除该评价,是否继续'
,
content
:
'将删除该评价,是否继续'
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'---'
)
console
.
log
(
'---'
)
}
else
if
(
res
.
cancel
)
{
}
else
if
(
res
.
cancel
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'已取消'
,
title
:
'已取消'
,
icon
:
'none'
,
icon
:
'none'
,
duration
:
500
duration
:
500
})
})
}
}
}
}
});
});
},
},
clickOptionsShow
(
item
)
{
clickOptionsShow
(
item
)
{
item
.
optionsShow
=
!
item
.
optionsShow
;
item
.
optionsShow
=
!
item
.
optionsShow
;
},
},
//实在评价可见性
//实在评价可见性
clickoptions
(
item
,
subItem
)
{
clickoptions
(
item
,
subItem
)
{
let
showTypeMsg
=
{
let
showTypeMsg
=
{
CourseId
:
item
.
CourseId
,
CourseId
:
item
.
CourseId
,
Times
:
item
.
Times
,
Times
:
item
.
Times
,
...
@@ -109,24 +114,23 @@
...
@@ -109,24 +114,23 @@
};
};
proxy
.
$request
(
"/Teacher/SetStuCommentShowTypeByTimes"
,
showTypeMsg
).
then
(
res
=>
{
proxy
.
$request
(
"/Teacher/SetStuCommentShowTypeByTimes"
,
showTypeMsg
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
}
}
})
})
item
.
optionsShow
=
false
;
item
.
optionsShow
=
false
;
//调用父组件方法
//调用父组件方法
context
.
emit
(
'refreshData'
);
context
.
emit
(
'refreshData'
);
},
},
//刷新数据
//刷新数据
changeData
()
changeData
()
{
{
//调用父组件方法
//调用父组件方法
context
.
emit
(
'refreshData'
);
context
.
emit
(
'refreshData'
);
}
}
};
};
//监听属性数组
//监听属性数组
watch
(()
=>
props
[
"CourseCommentTimesList"
],
(
newValue
,
oldValue
)
=>
{
watch
(()
=>
props
[
"CourseCommentTimesList"
],
(
newValue
,
oldValue
)
=>
{
if
(
newValue
!=
oldValue
&&
newValue
&&
newValue
.
length
>
0
)
{
if
(
newValue
!=
oldValue
&&
newValue
&&
newValue
.
length
>
0
)
{
data
.
dataList
=
newValue
;
data
.
dataList
=
newValue
;
}
}
...
@@ -139,12 +143,12 @@
...
@@ -139,12 +143,12 @@
};
};
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
},
},
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.noData
{
.noData
{
text-align
:
center
;
text-align
:
center
;
flex
:
1
;
flex
:
1
;
width
:
100%
;
width
:
100%
;
...
...
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