@jx3box/jx3box-editor 1.6.7 → 1.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -137,7 +137,7 @@ export default {
|
|
|
137
137
|
this.setDecoration(JSON.parse(decoration_atcard))
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
|
-
getDecoration({using:1,user_id:this.uid}).then(data=>{
|
|
140
|
+
getDecoration({using:1,user_id:this.uid,type:'atcard'}).then(data=>{
|
|
141
141
|
let res=data.data.data
|
|
142
142
|
if(res.length==0){
|
|
143
143
|
//空 则为无主题,不再加载接口,界面设No
|
|
@@ -145,17 +145,8 @@ export default {
|
|
|
145
145
|
this.bg = ""
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
})
|
|
151
|
-
if(decoration.length>0){
|
|
152
|
-
sessionStorage.setItem('decoration_atcard'+this.uid,JSON.stringify(decoration[0]))
|
|
153
|
-
this.setDecoration(decoration[0])
|
|
154
|
-
}else{
|
|
155
|
-
//空 则为无主题,不再加载接口,界面设No
|
|
156
|
-
this.bg = ""
|
|
157
|
-
sessionStorage.setItem('decoration_atcard'+this.uid,'no')
|
|
158
|
-
}
|
|
148
|
+
sessionStorage.setItem('decoration_atcard'+this.uid,JSON.stringify(res[0]))
|
|
149
|
+
this.setDecoration(res[0])
|
|
159
150
|
})
|
|
160
151
|
},
|
|
161
152
|
setDecoration(decoration_sidebar){
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<el-dialog :visible.sync="visible" title="插入视频" :modal-append-to-body="false">
|
|
8
8
|
<a class="u-help" href="/tool/686/" target="_blank">💙 点击查看如何获取视频地址</a>
|
|
9
9
|
|
|
10
|
-
<el-input class="u-input"
|
|
10
|
+
<el-input class="u-input" placeholder="请输入BV号" v-model="videoUrl"></el-input>
|
|
11
11
|
|
|
12
12
|
<div slot="footer">
|
|
13
13
|
<el-button @click="cancel">取消</el-button>
|
|
@@ -35,10 +35,11 @@ export default {
|
|
|
35
35
|
this.videoUrl = "";
|
|
36
36
|
},
|
|
37
37
|
insert() {
|
|
38
|
-
const content = `<
|
|
38
|
+
const content = `<iframe class="w-player-bilibili" src="//player.bilibili.com/player.html?bvid=${this.videoUrl}" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="400" height="300"> </iframe>`;
|
|
39
39
|
|
|
40
40
|
this.$emit("insert", content);
|
|
41
41
|
|
|
42
|
+
|
|
42
43
|
this.videoUrl = "";
|
|
43
44
|
|
|
44
45
|
this.visible = false;
|