Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
ee0465ce
Commit
ee0465ce
authored
Oct 22, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
44467c9c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
8 deletions
+53
-8
chooseApplet.vue
src/pages/teacher/components/chooseApplet.vue
+4
-2
addimageText.vue
src/pages/teacher/contribution/addimageText.vue
+2
-1
imageTextlist.vue
src/pages/teacher/contribution/imageTextlist.vue
+40
-2
contributionUE.vue
src/pages/teacher/contribution/ue/contributionUE.vue
+7
-3
No files found.
src/pages/teacher/components/chooseApplet.vue
View file @
ee0465ce
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<!-- 选择文件 -->
<!-- 选择文件 -->
<q-dialog
title=
"选择文件"
v-model=
"getImgChoice"
width=
"1200px"
>
<q-dialog
title=
"选择文件"
v-model=
"getImgChoice"
width=
"1200px"
>
<ChooseImg
@
SelectId=
"SelectId"
:type=
"
0
"
@
closeDia=
"getImgChoice=false"
></ChooseImg>
<ChooseImg
@
SelectId=
"SelectId"
:type=
"
ChooseImgtype
"
@
closeDia=
"getImgChoice=false"
></ChooseImg>
</q-dialog>
</q-dialog>
</div>
</div>
...
@@ -103,7 +103,8 @@
...
@@ -103,7 +103,8 @@
appletmsg
:
null
appletmsg
:
null
},
},
AppletList
:
[],
AppletList
:
[],
getImgChoice
:
false
getImgChoice
:
false
,
ChooseImgtype
:
0
}
}
},
},
created
()
{
created
()
{
...
@@ -147,6 +148,7 @@
...
@@ -147,6 +148,7 @@
},
},
SelectId
(
obj
)
{
SelectId
(
obj
)
{
this
.
msg
.
imgUrl
=
obj
[
0
].
ImageUrl
this
.
msg
.
imgUrl
=
obj
[
0
].
ImageUrl
console
.
log
(
this
.
msg
.
imgUrl
)
this
.
getImgChoice
=
false
;
this
.
getImgChoice
=
false
;
},
},
getroute
(
e
)
{
//选择了小程序 路径赋值
getroute
(
e
)
{
//选择了小程序 路径赋值
...
...
src/pages/teacher/contribution/addimageText.vue
View file @
ee0465ce
...
@@ -375,7 +375,6 @@
...
@@ -375,7 +375,6 @@
this
.
$refs
.
UE_cb
.
hyperlinks
(
data
)
this
.
$refs
.
UE_cb
.
hyperlinks
(
data
)
},
},
getcontnet
(
data
,
length
)
{
getcontnet
(
data
,
length
)
{
console
.
log
(
length
)
if
(
this
.
addMsg
.
Type
==
2
)
{
if
(
this
.
addMsg
.
Type
==
2
)
{
this
.
addMsg
.
Description
=
data
this
.
addMsg
.
Description
=
data
}
else
{
}
else
{
...
@@ -433,6 +432,8 @@
...
@@ -433,6 +432,8 @@
},
},
getapplet
(){
//小程序弹窗
getapplet
(){
//小程序弹窗
this
.
getappletChoice
=
true
this
.
getappletChoice
=
true
let
a
=
"<mp-miniprogram data-miniprogram-appid=
\"
wxacd9f8cc3480d29e
\"
data-miniprogram-path=
\"
pages
\
/index
\
/index
\"
data-miniprogram-nickname=
\"
赞羊
\"
data-miniprogram-avatar=
\"
http:
\
/
\
/mmbiz.qpic.cn
\
/mmbiz_png
\
/vDPDsxyFvjJ09nKK5HDicbSibuyWIx8l7S3icxkc0kwtJApsYc1hicVSTxbCakhRAuMLpxGibmxH6MeC4kSibBwl3GSQ
\
/640?wx_fmt=png&wxfrom=200
\"
data-miniprogram-title=
\"
飞哥地方给对方
\"
data-miniprogram-imageurl=
\"
http:
\
/
\
/mmbiz.qpic.cn
\
/mmbiz_jpg
\
/iamUJ3Ot9utFjb5RP6Fr0ECTbQDnicewkS38JbPCsoFZPUzibXuIj6IhaHOPudWSG0ZxldLIj70QtHVSbwrBaP85g
\
/0?wx_fmt=jpeg
\"
data-miniprogram-type=
\"
card
\"
data-miniprogram-servicetype=
\"
0
\"
><
\
/mp-miniprogram>"
console
.
log
(
a
)
},
},
getresult
(
data
){
//选择小程序的结果
getresult
(
data
){
//选择小程序的结果
console
.
log
(
data
)
console
.
log
(
data
)
...
...
src/pages/teacher/contribution/imageTextlist.vue
View file @
ee0465ce
...
@@ -47,8 +47,23 @@
...
@@ -47,8 +47,23 @@
class=
"q-mr-xs"
label=
"详情"
@
click=
"viewDetails(props.row)"
/>
-->
class=
"q-mr-xs"
label=
"详情"
@
click=
"viewDetails(props.row)"
/>
-->
<q-btn
flat
size=
"xs"
icon=
"edit"
style=
"font-weight:400;color: #3FC4FF"
class=
"q-mr-xs"
<q-btn
flat
size=
"xs"
icon=
"edit"
style=
"font-weight:400;color: #3FC4FF"
class=
"q-mr-xs"
label=
"编辑"
@
click=
"goedit(props.row)"
/>
label=
"编辑"
@
click=
"goedit(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
class=
"q-mr-xs"
label=
"删除"
@
click=
"goDetailed(props.row)"
/>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"更多"
style=
"margin-left: 10px"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"tijiaosh(props.row)"
>
<q-item-section
v-if=
"props.row.AuditState==0"
>
<q-item-label>
提交审核
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"goDetailed(props.row)"
>
<q-item-section>
<q-item-label>
删除
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
...
@@ -217,6 +232,29 @@
...
@@ -217,6 +232,29 @@
});
});
},
},
tijiaosh
(
row
){
//提交审核
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
'是否将素材提交审核?'
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
setContributeInfoState
({
ContributeId
:
row
.
Id
,
Type
:
1
}).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
'top'
})
this
.
getList
()
})
}).
onCancel
(()
=>
{
});
},
goedit
(
row
){
//编辑
goedit
(
row
){
//编辑
this
.
OpenNewUrl
(
"/teacher/contribution/addimageText"
,
{
this
.
OpenNewUrl
(
"/teacher/contribution/addimageText"
,
{
type
:
row
.
Type
,
type
:
row
.
Type
,
...
...
src/pages/teacher/contribution/ue/contributionUE.vue
View file @
ee0465ce
...
@@ -169,13 +169,17 @@
...
@@ -169,13 +169,17 @@
applet(data){
applet(data){
let html = '';
let html = '';
if(data.type==1){//文字小程序
if(data.type==1){//文字小程序
html += `<p><a data-miniprogram-appid="${data.appletmsg.AppID}" data-miniprogram-path="${data.
appletmsg.Pag
e}" href="">${data.title}</a></p>`;
html += `<p><a data-miniprogram-appid="${data.appletmsg.AppID}" data-miniprogram-path="${data.
rout
e}" href="">${data.title}</a></p>`;
}else if(data.type==2){//图片小程序
}else if(data.type==2){//图片小程序
html+=`<p><a data-miniprogram-appid="${data.appletmsg.AppID}" data-miniprogram-path="${data.
appletmsg.Pag
e}" href=""><img src="${data.imgUrl}" alt="" data-width="null" ></a></p>`
html+=`<p><a data-miniprogram-appid="${data.appletmsg.AppID}" data-miniprogram-path="${data.
rout
e}" href=""><img src="${data.imgUrl}" alt="" data-width="null" ></a></p>`
}else if(data.type==3){
}else if(data.type==3){
html+=`<mp-miniprogram data-miniprogram-appid="${data.appletmsg.AppID}" data-miniprogram-path="${data.appletmsg.Page}" data-miniprogram-title="${data.title}" data-miniprogram-imageurl="${data.imgUrl}"></mp-miniprogram>`
html+=`<mp-miniprogram data-miniprogram-appid="${data.appletmsg.AppID}" data-miniprogram-path="${data.route}" data-miniprogram-nickname="${data.appletmsg.Name}" data-miniprogram-avatar="${data.imgUrl}" data-miniprogram-title="${data.title}" data-miniprogram-imageurl="${data.imgUrl}" data-miniprogram-type="card" data-miniprogram-servicetype="0"></mp-miniprogram>`
let a=`<mp-miniprogram data-miniprogram-appid="wxacd9f8cc3480d29e" data-miniprogram-path="pages/index/index" data-miniprogram-nickname="赞羊" data-miniprogram-avatar="http://mmbiz.qpic.cn/mmbiz_png/vDPDsxyFvjJ09nKK5HDicbSibuyWIx8l7S3icxkc0kwtJApsYc1hicVSTxbCakhRAuMLpxGibmxH6MeC4kSibBwl3GSQ/640?wx_fmt=png&wxfrom=200" data-miniprogram-title="飞哥地方给对方" data-miniprogram-imageurl="http://mmbiz.qpic.cn/mmbiz_jpg/iamUJ3Ot9utFjb5RP6Fr0ECTbQDnicewkS38JbPCsoFZPUzibXuIj6IhaHOPudWSG0ZxldLIj70QtHVSbwrBaP85g/0?wx_fmt=jpeg" data-miniprogram-type="card" data-miniprogram-servicetype="0"></mp-miniprogram>`
console.log(html)
console.log(a)
}
}
if (html && html != '') {
if (html && html != '') {
this.ue.execCommand('
inserthtml
', html);
this.ue.execCommand('
inserthtml
', html);
}
}
...
...
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