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
a33dad75
Commit
a33dad75
authored
May 31, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
111
parents
4c4778f1
5ef2f509
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
932 additions
and
0 deletions
+932
-0
rulesPopup.vue
src/components/setComments/rulesPopup.vue
+428
-0
setComments.vue
src/components/setComments/setComments.vue
+125
-0
pages.json
src/pages.json
+5
-0
commentRulesList.vue
src/pages/setComments/commentRulesList.vue
+273
-0
setComments.vue
src/pages/setComments/setComments.vue
+101
-0
No files found.
src/components/setComments/rulesPopup.vue
0 → 100644
View file @
a33dad75
<
template
>
<view
class=
"rulesPopup-box"
>
<van-popup
:show=
"show"
:round=
"true"
@
close=
"closepopup"
>
<view
class=
"rulesPopup-popup-box"
>
<van-icon
class=
"rulesPopup-popup-closure"
name=
"cross"
@
click=
"closepopup"
/>
<view
class=
"rulesPopup-popup-title"
>
自定义评论规则
</view>
<view
class=
"rulesPopup-popup-content"
>
<input
v-model=
"uploadParm.ExamName"
class=
"rulesPopup-popup-name"
placeholder=
"请输入本组自定义规则名称"
/>
<view>
<text></text>
</view>
</view>
</view>
</van-popup>
</view>
</
template
>
<
script
>
import
{
reactive
,
toRefs
,
onMounted
,
getCurrentInstance
,
inject
,
watch
}
from
"vue"
;
import
{
uploadFile
}
from
"@/utils/index"
;
export
default
{
props
:
{
dataList
:[],
CourseId
:
0
},
components
:
{},
setup
(
props
,
ctx
)
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
userData
:{},
//用户信息
showPhone
:
false
,
showLogin
:
false
,
//多次点击
show
:
false
,
uploadParm
:
{
// Uid:726615,
// CourseId:44977497,
Uid
:
0
,
CourseId
:
props
.
CourseId
,
ExamName
:
''
},
fileList
:[],
Msg
:{
PageIndex
:
1
,
PageSize
:
10
,
ExamName
:
''
},
dataList
:
props
.
dataList
,
loading
:
false
,
});
let
methods
=
{
examDetails
(
item
){
uni
.
navigateTo
({
url
:
`/pages/index/examDetails?exam=
${
encodeURIComponent
(
JSON
.
stringify
(
item
))}
`
});
},
closepopup
(){
data
.
show
=
false
data
.
uploadParm
=
{
Uid
:
''
,
CourseId
:
''
,
ExamName
:
''
}
},
// 重新导入
clickReimport
(
item
){
uni
.
showModal
({
title
:
'提示'
,
content
:
'重新导入将要清除此考试数据,是否继续'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
that
.
DelExamInfo
(
item
)
}
else
if
(
res
.
cancel
)
{
uni
.
showToast
({
title
:
'已取消'
,
icon
:
'none'
,
duration
:
500
})
}
}
});
},
// 删除接口
DelExamInfo
(
item
){
let
Msg
=
{
ExamId
:
item
.
ExamId
}
proxy
.
$request
(
"/Exam/DelExamInfo"
,
Msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
uni
.
showToast
({
title
:
'删除成功'
,
icon
:
'none'
,
duration
:
500
})
data
.
show
=
true
;
proxy
.
$parent
.
getExamPageList
();
}
})
},
ImportInformation
(){
data
.
show
=
true
},
beforeRead
(
file
){
if
(
!
data
.
uploadParm
.
ExamName
){
uni
.
showToast
({
title
:
'请输入考试名称'
,
icon
:
'none'
,
duration
:
500
})
return
}
if
(
file
.
url
.
indexOf
(
'xls'
)
==-
1
||
file
.
url
.
indexOf
(
'xlsx'
)
==-
1
)
{
uni
.
showToast
({
title
:
'请上传 xls/xlsx 格式图片'
,
icon
:
'none'
,
duration
:
500
})
return
false
;
}
return
true
;
},
// 添加导入
customUpload
(
event
){
data
.
userData
=
uni
.
getStorageSync
(
'userInfo'
)
const
{
file
}
=
event
.
detail
;
that
.
uploadFileFun
(
file
)
// uploadFile(params, file, (res) => {
// uni.showModal({
// title:res.Message
// })
// });
// return
},
uploadFileFun
(
file
){
if
(
!
data
.
uploadParm
.
ExamName
){
uni
.
showToast
({
title
:
'请输入考试名称'
,
icon
:
'none'
,
duration
:
500
})
return
}
if
(
file
[
0
].
url
.
indexOf
(
'xls'
)
==-
1
||
file
[
0
].
url
.
indexOf
(
'xlsx'
)
==-
1
){
uni
.
showToast
({
title
:
'请上传xls、xlsx格式的文件'
,
icon
:
'none'
,
duration
:
500
})
return
}
let
host
=
''
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
host
=
'http://192.168.10.36:8082/api'
}
else
{
host
=
'https://eduapi.oytour.com/api'
}
data
.
userData
=
uni
.
getStorageSync
(
'userInfo'
)
data
.
uploadParm
=
{
Uid
:
data
.
userData
.
Id
,
CourseId
:
data
.
uploadParm
.
CourseId
,
ExamName
:
data
.
uploadParm
.
ExamName
}
data
.
loading
=
true
uni
.
uploadFile
({
url
:
host
+
'/Upload/UploadStuExamScore'
,
filePath
:
file
[
0
].
url
,
name
:
'file'
,
formData
:
{
myfile
:
file
[
0
],
params
:
JSON
.
stringify
(
data
.
uploadParm
)
},
success
(
res
)
{
if
(
res
.
Code
==
1
){
uni
.
showToast
({
title
:
'导入成功'
,
icon
:
'none'
,
duration
:
500
})
uni
.
hideLoading
();
data
.
uploadParm
=
{
Uid
:
''
,
CourseId
:
''
,
ExamName
:
''
}
data
.
loading
=
false
// ctx.emit('change')
}
else
{
uni
.
showToast
({
title
:
'导入失败'
,
icon
:
'none'
,
duration
:
500
})
uni
.
hideLoading
();
data
.
loading
=
false
}
},
fail
(
err
)
{
console
.
log
(
"uploadErr"
,
err
)
}
});
proxy
.
$parent
.
getExamPageList
();
}
};
let
that
=
methods
;
return
{
...
toRefs
(
data
),
...
methods
};
},
onLoad
(){
},
onShow
()
{
}
};
</
script
>
<
style
scoped
>
.rulesPopup-box
.noData
{
text-align
:
center
;
flex
:
1
;
width
:
100%
;
}
.rulesPopup-box
.noData
image
{
width
:
200
rpx
;
margin-bottom
:
40
rpx
;
}
.rulesPopup-box
.noData
view
{
font-size
:
24
rpx
;
color
:
#cecece
;
text-align
:
center
;
}
.rulesPopup-hint-right
view
{
padding
:
16
rpx
30
rpx
;
background
:
#C91727
;
border-radius
:
50
rpx
;
color
:
#FFFFFF
;
font-size
:
24
rpx
;
font-weight
:
bold
;
letter-spacing
:
1
rpx
;
}
.rulesPopup-hint-right
{
flex-shrink
:
0
;
margin-left
:
50
rpx
;
}
.rulesPopup-hint-left
view
{
background
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653648241000_545.png')
no-repeat
center
;
background-size
:
100%
100%
;
padding
:
11
rpx
0
11
rpx
30
rpx
;
}
.rulesPopup-hint-left
van-icon
{
font-size
:
42
rpx
;
margin-right
:
10
rpx
;
}
.rulesPopup-hint-left
{
font-size
:
22
rpx
;
color
:
#C91727
;
letter-spacing
:
1
rpx
;
align-items
:
center
;
}
.rulesPopup-center-hint
{
justify-content
:
space-between
;
padding
:
10
rpx
0
;
border-top
:
1
rpx
solid
#F6F6F6
;
align-items
:
center
;
}
.rulesPopup-popup-name
{
background-color
:
#F7F7F7
;
text-align
:
center
;
border
:
1px
solid
#F7F7F7
;
height
:
86
rpx
;
line-height
:
86
rpx
;
padding
:
0
10
rpx
;
border-radius
:
44
rpx
;
font-size
:
30
rpx
;
}
.rulesPopup-popup-title
{
width
:
100%
;
text-align
:
center
;
font-size
:
30
rpx
;
font-weight
:
500
;
margin-bottom
:
73
rpx
;
letter-spacing
:
1
rpx
;
}
.rulesPopup-popup-closure
{
position
:
absolute
;
right
:
31
rpx
;
top
:
31
rpx
;
color
:
#282828
;
font-size
:
38
rpx
;
}
.rulesPopup-popup-box
{
position
:
relative
;
width
:
548
rpx
;
padding
:
48
rpx
55
rpx
98
rpx
55
rpx
;
}
.homework-score-num
view
:last-child
{
font-size
:
23
rpx
;
margin-top
:
25
rpx
;
}
.homework-score-num
view
:first-child
{
margin-right
:
10
rpx
;
font-size
:
46
rpx
;
font-weight
:
800
;
}
.homework-score-num
{
font-weight
:
800
;
font-style
:
italic
;
font-size
:
36
rpx
;
}
.homework-score-title
{
font-size
:
20
rpx
;
margin-bottom
:
0
rpx
;
font-weight
:
400
;
letter-spacing
:
1px
;
margin-bottom
:
15
rpx
;
}
.homework-score
:last-child
{
margin-right
:
0
rpx
;
}
.homework-score
{
margin-right
:
16
rpx
;
flex-direction
:
column
;
justify-content
:
center
;
}
.rulesPopup-right
{
height
:
122
rpx
;
background
:
#FCEEEF
;
padding
:
23
rpx
37
rpx
15
rpx
37
rpx
;
border-radius
:
30
rpx
;
justify-content
:
space-between
;
flex-shrink
:
0
;
margin-left
:
11
rpx
;
color
:
#CE8086
;
}
.rulesPopup.activeOne
.rulesPopup-state-text
{
color
:
#BEBEBE
;
}
.rulesPopup-state-text
{
font-size
:
20
rpx
;
letter-spacing
:
2px
;
}
.rulesPopup-state
van-icon
{
color
:
#DADADA
;
font-size
:
24
rpx
;
margin-right
:
10
rpx
;
}
.rulesPopup-state
{
margin-top
:
35
rpx
;
font-size
:
20
rpx
;
}
.rulesPopup.activeOne
.rulesPopup-name
{
color
:
#282828
;
}
.rulesPopup-name
{
height
:
70
rpx
;
font-size
:
26
rpx
;
word-break
:
break-all
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
margin-top
:
9
rpx
;
letter-spacing
:
1px
;
font-weight
:
bold
;
}
.rulesPopup-left
{
flex-grow
:
1
;
}
.rulesPopup-center
{
justify-content
:
space-between
;
padding
:
0
0
20
rpx
0
;
}
.rulesPopup-center-line
{
width
:
4
rpx
;
height
:
23
rpx
;
background
:
#282828
;
position
:
absolute
;
left
:
0
;
top
:
46
rpx
;
}
.rulesPopup.activeOne
.rulesPopup-center-box
{
background
:
#FFFFFF
;
}
.rulesPopup-center-box
{
flex-grow
:
1
;
position
:
relative
;
border-radius
:
30
rpx
;
padding
:
31
rpx
40
rpx
0
22
rpx
;
margin-bottom
:
50
rpx
;
box-shadow
:
0px
6px
29px
0px
rgba
(
76
,
76
,
76
,
0.09
);
border-radius
:
30px
;
}
.rulesPopup
{
margin
:
0
50
rpx
;
}
.rulesPopup-import
text
{
margin-left
:
15
rpx
;
}
.rulesPopup-import
{
width
:
247
rpx
;
border
:
1
rpx
solid
#F2A1A8
;
background
:
#FFFFFF
;
line-height
:
54
rpx
;
padding
:
0
38
rpx
;
margin
:
auto
;
margin-bottom
:
48
rpx
;
border-radius
:
50
rpx
;
color
:
#F2A1A8
;
font-size
:
24
rpx
;
text-align
:
center
;
}
.rulesPopup-box
{
}
</
style
>
src/components/setComments/setComments.vue
View file @
a33dad75
...
@@ -118,6 +118,7 @@
...
@@ -118,6 +118,7 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
<<<<<<<
HEAD
.setComments-Evaluation
view
text
:first-child
{
.setComments-Evaluation
view
text
:first-child
{
border-right
:
1px
solid
#E5E5E5
;
border-right
:
1px
solid
#E5E5E5
;
padding
:
0
16
rpx
0
0
;
padding
:
0
16
rpx
0
0
;
...
@@ -261,6 +262,130 @@
...
@@ -261,6 +262,130 @@
.index-student-information
{
.index-student-information
{
min-height
:
800
rpx
;
min-height
:
800
rpx
;
=======
.setComments-Evaluation
view
text
:
first-child
{
border-right
:
1px
solid
#E5E5E5
;
padding
:
0
16
rpx
0
0
;
}
.setComments-Evaluation
view
text
:last-child
{
margin-left
:
16
rpx
;
}
.setComments-Evaluation
view
text
{
display
:
inline-block
;
letter-spacing
:
1
rpx
;
}
.setComments-Evaluation
view
{
float
:
right
;
margin-top
:
25
rpx
;
margin-bottom
:
27
rpx
;
font-size
:
24
rpx
;
font-weight
:
500
;
color
:
#CE8086
;
}
.setComments-Evaluation
{
height
:
85
rpx
;
border-top
:
1
rpx
solid
#E5E5E5
;
}
.setComments-source
{
font-size
:
20
rpx
;
color
:
#C2BCBA
;
font-weight
:
500
;
justify-content
:
space-between
;
padding
:
26
rpx
0
25
rpx
0
;
}
.point
{
width
:
8
rpx
;
height
:
8
rpx
;
background
:
#E64150
;
border-radius
:
50%
;
}
.setComments-options-title
,
.setComments-options-text
{
font-size
:
24
rpx
;
font-weight
:
500
;
color
:
#CE8086
;
text-align
:
center
;
font-weight
:
bold
;
}
.setComments-options-text
text
{
padding
:
5
rpx
0
;
}
.setComments-options-text
{
flex-direction
:
column
;
margin-top
:
10
rpx
;
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
35
rpx
;
background
:
#FCEEEF
;
padding
:
20
rpx
0
20
rpx
0
;
border-radius
:
0
0
25
rpx
25
rpx
;
}
.setComments-options-title
text
{
margin-right
:
10
rpx
;
margin-left
:
10
rpx
;
}
.setComments-options-title
{
justify-content
:
center
;
align-items
:
center
;
}
.setComments-options
{
flex-grow
:
1
;
border-radius
:
25
rpx
;
background
:
#FCEEEF
;
flex-direction
:
column
;
padding
:
14
rpx
17
rpx
15
rpx
17
rpx
;
letter-spacing
:
1
rpx
;
position
:
relative
;
}
.setComments-title-right
{
width
:
190
rpx
;
flex-shrink
:
0
;
}
.setComments-title-left
{
letter-spacing
:
1
rpx
;
flex-grow
:
1
;
color
:
#282828
;
font-size
:
26
rpx
;
font-weight
:
bold
;
margin-right
:
20
rpx
;
}
.center-line
{
position
:
absolute
;
left
:
0
;
top
:
30
rpx
;
width
:
4
rpx
;
height
:
23
rpx
;
background
:
#282828
;
}
.setComments-content
{
position
:
relative
;
background
:
#FFFFFF
;
padding
:
21
rpx
27
rpx
0
22
rpx
;
box-shadow
:
0
rpx
6
rpx
29
rpx
0
rpx
rgba
(
76
,
76
,
76
,
0.09
);
border-radius
:
30
rpx
;
}
.setComments-content-box
{
padding
:
0
50
rpx
;
}
.setComments-add
van-icon
{
font-size
:
25
rpx
;
margin-right
:
20
rpx
;
}
.setComments-add
{
width
:
190
rpx
;
margin
:
auto
;
border-radius
:
27
rpx
;
border
:
1
rpx
solid
#FB6087
;
color
:
#FB6087
;
font-size
:
24
rpx
;
letter-spacing
:
1
rpx
;
padding
:
10
rpx
0
;
margin-bottom
:
47
rpx
;
text-align
:
center
;
}
.index-student-information
{
min-height
:
800
rpx
;
>>>>>>>
5ef2f509125236dffc7e7eb3c1403abaca6832c1
background
:
#FFFFFF
;
background
:
#FFFFFF
;
border-radius
:
50
rpx
50
rpx
0
0
;
border-radius
:
50
rpx
50
rpx
0
0
;
padding
:
71
rpx
0
30
rpx
0
;
padding
:
71
rpx
0
30
rpx
0
;
...
...
src/pages.json
View file @
a33dad75
...
@@ -51,6 +51,11 @@
...
@@ -51,6 +51,11 @@
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},{
"path"
:
"pages/setComments/commentRulesList"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
}
}
],
],
...
...
src/pages/setComments/commentRulesList.vue
0 → 100644
View file @
a33dad75
<
template
>
<view
class=
"commentRulesList-box"
>
<navbar
class=
"navbarSticky"
bg=
"#FFFFFF"
>
<view
class=
"commentRulesList-header-box flex"
>
<van-icon
class=
"commentRulesList-header-left"
name=
"arrow-left"
@
click=
"back"
/>
<text
class=
"commentRulesList-header-title"
>
评论规则
</text>
</view>
</navbar>
<view
class=
"commentRulesList-content"
>
<view
class=
"commentRulesList-title flex"
>
<van-image
class=
"img"
width=
"35rpx"
height=
"40rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653980136000_413.png"
/>
<text>
默认评论规则
</text>
</view>
<view
class=
"commentRulesList-list"
>
<view
class=
"commentRulesList-cross"
@
click=
"deleteRules"
>
<van-icon
name=
"cross"
/>
</view>
<view
class=
"commentRulesList-img flex"
>
<view>
百分比: 0%-40%
</view>
<van-image
@
click=
"editRules"
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
class=
"commentRulesList-comment"
>
这位学员很优秀,平时课上的问题都
能积极回答,正确率非常高
。这次考试得分也很高,希望再接再厉
</view>
</view>
<view
class=
"noData"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653902791000_806.png"
mode=
"widthFix"
></image>
<view>
暂无评论规则数据
</view>
</view>
</view>
<view
class=
"commentRulesList-footer-box"
>
<view
class=
"commentRulesList-footer flex"
>
<view
class=
"add flex"
>
<text>
添加自定义规则
</text>
<view
class=
"Wire"
></view>
</view>
<view
class=
"save flex"
><text>
保存
</text></view>
</view>
</view>
<rulesPopup></rulesPopup>
</view>
</
template
>
<
script
>
import
rulesPopup
from
'@/components/setComments/rulesPopup'
import
setComments
from
'@/components/setComments/setComments'
import
{
reactive
,
toRefs
,
onMounted
,
getCurrentInstance
,
inject
}
from
"vue"
;
import
navbar
from
'../../components/navbar.vue'
export
default
{
props
:
{
},
components
:
{
navbar
,
setComments
,
rulesPopup
},
setup
()
{
let
{
proxy
}
=
getCurrentInstance
();
let
data
=
reactive
({
value
:
1
,
optionsList
:[
{
text
:
'部分可见'
,
value
:
0
},
{
text
:
'可见不可见'
,
value
:
1
},
{
text
:
'活动商品'
,
value
:
2
},
],
radioList
:[
{
name
:
'使用默认配置'
,
id
:
1
,
checked
:
true
},
{
name
:
'自定义评价'
,
id
:
2
}
],
checked
:
'1'
,
obj
:{},
Msg
:
{
HomeWorkId
:
''
,
},
showPhone
:
false
,
showLogin
:
true
,
//多次点击
HomeWorkId
:
''
,
jobDetails
:
{},
dataList
:[],
pageState
:
'more'
});
let
methods
=
{
back
(){
uni
.
navigateBack
({
delta
:
1
})
},
editRules
(){
//编辑规则
},
deleteRules
(){
//删除规则
uni
.
showModal
({
title
:
'提示'
,
content
:
'将删除该规则,是否继续'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'---'
)
}
else
if
(
res
.
cancel
)
{
uni
.
showToast
({
title
:
'已取消'
,
icon
:
'none'
,
duration
:
500
})
}
}
});
}
}
return
{
...
toRefs
(
data
),
...
methods
};
},
onLoad
(
option
)
{
this
.
Msg
.
HomeWorkId
=
option
.
HomeWorkId
},
};
</
script
>
<
style
scoped
>
.noData
{
text-align
:
center
;
flex
:
1
;
width
:
100%
;
}
.noData
image
{
width
:
200
rpx
;
margin-bottom
:
40
rpx
;
}
.noData
view
{
font-size
:
24
rpx
;
color
:
#cecece
;
text-align
:
center
;
}
.save
{
margin-left
:
24
rpx
;
}
.Wire
{
width
:
2
rpx
;
height
:
32
rpx
;
background
:
#DCDCDC
;
margin-left
:
24
rpx
;
flex-shrink
:
0
;
margin-top
:
25
rpx
;
}
.save
text
{
background
:
#D13A48
;
color
:
#FFFFFF
;
}
.add
text
{
background
:
#FFFFFF
;
color
:
#D13A48
;
}
.add
text
,
.save
text
{
line-height
:
88
rpx
;
flex-grow
:
2
;
border
:
1
rpx
solid
#D13A48
;
border-radius
:
44
rpx
;
text-align
:
center
;
font-weight
:
bold
;
font-size
:
30
rpx
;
letter-spacing
:
1
rpx
;
}
.add
,
.save
{
flex
:
0
0
50%
;
flex-shrink
:
0
;
}
.commentRulesList-footer
{
padding
:
29
rpx
70
rpx
;
align-items
:
center
;
}
.commentRulesList-footer-box
{
position
:
fixed
;
left
:
0
;
right
:
0
;
bottom
:
0
;
background
:
#FFFFFF
;
box-shadow
:
0
rpx
0
rpx
21
rpx
0
rpx
rgba
(
165
,
165
,
165
,
0.34
);
}
.commentRulesList-comment
{
font-size
:
30
rpx
;
font-weight
:
400
;
color
:
#282828
;
line-height
:
58
rpx
;
letter-spacing
:
1
rpx
;
}
.commentRulesList-img
.img
{
margin-top
:
5
rpx
;
flex-shrink
:
0
;
}
.commentRulesList-img
view
{
flex-grow
:
1
;
margin-right
:
15
rpx
;
}
.commentRulesList-img
{
justify-content
:
space-between
;
align-items
:
center
;
font-size
:
30
rpx
;
font-weight
:
bold
;
color
:
#D9868D
;
margin-bottom
:
34
rpx
;
}
.commentRulesList-cross
{
position
:
absolute
;
right
:
-12
rpx
;
top
:
-12
rpx
;
width
:
44
rpx
;
height
:
44
rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
rpx
0
rpx
21
rpx
0
rpx
rgba
(
165
,
165
,
165
,
0.34
);
border-radius
:
10
rpx
;
font-size
:
26
rpx
;
color
:
#D9868D
;
text-align
:
center
;
line-height
:
44
rpx
;
}
.commentRulesList-list
{
background
:
#FCEEEF
;
border-radius
:
30px
;
position
:
relative
;
padding
:
37
rpx
38
rpx
36
rpx
45
rpx
;
margin-bottom
:
40
rpx
;
min-height
:
290
rpx
;
}
.commentRulesList-title
.img
{
flex-shrink
:
0
;
display
:
inline-block
;
margin-top
:
5
rpx
;
}
.commentRulesList-title
text
{
font-size
:
40
rpx
;
font-weight
:
bold
;
color
:
#282828
;
margin-left
:
29
rpx
;
letter-spacing
:
1
rpx
;
}
.commentRulesList-title
{
align-items
:
center
;
margin-bottom
:
35
rpx
;
}
.commentRulesList-content
{
padding
:
0
50
rpx
;
margin-bottom
:
240
rpx
;
}
.commentRulesList-box
{
background
:
#FFFFFF
;
}
.commentRulesList-header-title
{
font-size
:
32
rpx
;
font-weight
:
500
;
color
:
#282828
;
flex
:
1
;
text-align
:
center
;
padding-right
:
40
rpx
;
}
.navbarSticky
{
display
:
sticky
;
top
:
0
;
z-index
:
9
;
}
</
style
>
src/pages/setComments/setComments.vue
View file @
a33dad75
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<text
class=
"setComments-index-header-title"
>
设置评语
</text>
<text
class=
"setComments-index-header-title"
>
设置评语
</text>
</view>
</view>
</navbar>
</navbar>
<<<<<<<
HEAD
<view
class=
"setComments-index-content"
>
<view
class=
"setComments-index-content"
>
<view
class=
"setComments-index-setType flex"
>
<view
class=
"setComments-index-setType flex"
>
<view
class=
"setComments-setType-left flex"
>
<view
class=
"setComments-setType-left flex"
>
...
@@ -28,6 +29,32 @@
...
@@ -28,6 +29,32 @@
</view>
</view>
<setComments
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"getCourseCommentTimes"
></setComments>
<setComments
:CourseCommentTimesList=
"courseTimeList"
@
refreshData=
"getCourseCommentTimes"
></setComments>
</view>
</view>
=======
<view
class=
"setComments-index-content"
>
<view
class=
"setComments-index-setType flex"
>
<view
class=
"setComments-setType-left flex"
>
<view>
<van-image
class=
"img"
width=
"29rpx"
height=
"29rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653977710000_475.png"
/>
</view>
<view
class=
"setComments-setType-text flex"
>
<text>
自定义评价
</text>
<view>
从自动评价规则进入修改
</view>
</view>
</view>
<view
class=
"setComments-setType-right flex"
@
click=
"goRules"
>
<view>
<text>
自动评价规则
</text>
<van-image
class=
"img"
width=
"14rpx"
height=
"13rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653977684000_601.png"
/>
</view>
</view>
</view>
<setComments></setComments>
</view>
>>>>>>> 5ef2f509125236dffc7e7eb3c1403abaca6832c1
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -88,6 +115,7 @@
...
@@ -88,6 +115,7 @@
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
})
})
<<<<<<<
HEAD
},
},
radioChange
(
e
)
{
radioChange
(
e
)
{
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
...
@@ -101,6 +129,15 @@
...
@@ -101,6 +129,15 @@
})
})
}
}
}
}
=======
},
goRules
(){
uni
.
navigateTo
({
url
:
'/pages/setComments/commentRulesList'
})
}
}
>>>>>>>
5
ef2f509125236dffc7e7eb3c1403abaca6832c1
return
{
return
{
...
toRefs
(
data
),
...
toRefs
(
data
),
...
methods
...
methods
...
@@ -114,6 +151,7 @@
...
@@ -114,6 +151,7 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
<<<<<<<
HEAD
.setComments-setType-right
view
text
{
.setComments-setType-right
view
text
{
margin-right
:
11
rpx
;
margin-right
:
11
rpx
;
}
}
...
@@ -186,6 +224,69 @@
...
@@ -186,6 +224,69 @@
}
}
.navbarSticky
{
.navbarSticky
{
=======
.setComments-setType-right
view
text{
margin-right
:
11
rpx
;
}
.setComments-setType-right
view
{
color
:
#D9868D
;
background
:
#F5DEE0
;
border-radius
:
25
rpx
;
width
:
200
rpx
;
height
:
50
rpx
;
line-height
:
50
rpx
;
text-align
:
center
;
letter-spacing
:
1
rpx
;
}
.setComments-setType-right
{
flex-shrink
:
0
;
font-size
:
24
rpx
;
font-weight
:
500
;
}
.setComments-setType-text
view
{
font-size
:
24
rpx
;
color
:
#AFAFAF
;
font-weight
:
400
;
margin-top
:
15
rpx
;
}
.setComments-setType-text
text
{
font-size
:
30
rpx
;
font-weight
:
bold
;
color
:
#282828
;
}
.setComments-setType-text
{
flex-direction
:
column
;
margin-left
:
26
rpx
;
letter-spacing
:
1
rpx
;
}
.setComments-setType-left
view
:first-child
{
flex-shrink
:
0
;
}
.setComments-setType-left
{
flex-grow
:
1
;
margin-right
:
32
rpx
;
}
.setComments-index-setType
{
background
:
#FCEEEF
;
box-shadow
:
0
rpx
6
rpx
52
rpx
0
rpx
rgba
(
230
,
65
,
80
,
0.19
);
border-radius
:
50
rpx
;
margin
:
55
rpx
50
rpx
50
rpx
50
rpx
;
padding
:
33
rpx
50
rpx
;
}
.setComments-index-box
{
background
:
#F6F6F6
;
}
.setComments-index-header-title
{
font-size
:
32
rpx
;
font-weight
:
500
;
color
:
#282828
;
flex
:
1
;
text-align
:
center
;
padding-right
:
40
rpx
;
}
.navbarSticky
{
>>>>>>>
5ef2f509125236dffc7e7eb3c1403abaca6832c1
display
:
sticky
;
display
:
sticky
;
top
:
0
;
top
:
0
;
z-index
:
9
;
z-index
:
9
;
...
...
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