Commit badcf62e by mamingqun

特殊字体,还没有完成

parent 792639e6
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
<script src="./libs/preloadjs.min.js"></script> <script src="./libs/preloadjs.min.js"></script>
<!-- jquery --> <!-- jquery -->
<script src="https://apps.bdimg.com/libs/jquery/1.6.4/jquery.min.js"></script> <script src="https://apps.bdimg.com/libs/jquery/1.6.4/jquery.min.js"></script>
<!-- 特殊字体 -->
<script type="text/javascript" src="https://cdn.webfont.youziku.com/wwwroot/js/wf/youziku.client.min.js"></script>
</head> </head>
<body> <body>
<noscript> <noscript>
......
...@@ -47,7 +47,6 @@ export default { ...@@ -47,7 +47,6 @@ export default {
var src = _this.keyFramesURL + idxstr + '.jpg' var src = _this.keyFramesURL + idxstr + '.jpg'
PRELOADARR.push(src) PRELOADARR.push(src)
} }
var loadingpro = $('#loading .progress')
_this.loadnum = 0 _this.loadnum = 0
_this.preloadImages(PRELOADARR) _this.preloadImages(PRELOADARR)
......
<template>
<div>
<h6>特殊字体输入</h6>
<input type="text" />
</div>
</template>
<script>
export default {
mounted() {
console.log($youzikuClient);
// this.show('0c72070490f34f07b97bdd1a19064531', e.target.value, '#text_zi')
},
methods: {
show: function (accesskey, content, Tag) {
var data = {
Tags: []
}
data.Tags.push({
AccessKey: accesskey,
Content: content,
Tag: Tag
})
Dassesskey = accesskey
$youzikuClient.getBatchFontFace(data, function (result) {
var length = result.FontfaceList.length
for (var i = 0; i < length; i++) {
console.log('Tag:' + result.FontfaceList[i].Tag)
console.log('AccessKey:' + result.FontfaceList[i].AccessKey)
console.log('FontFamily:' + result.FontfaceList[i].FontFamily)
console.log('ErrorMessage:' + result.FontfaceList[i].ErrorMessage)
console.log('Code:' + result.FontfaceList[i].Code)
}
})
},
}
}
</script>
<style lang="less" scoped>
</style>
\ No newline at end of file
<template> <template>
<div class="detail-wrap"> <div class="detail-wrap">
<h1>{{detailId}}</h1> <h1>detailId{{detailId}}</h1>
<div>Detail页面</div> <div>Detail页面</div>
<html2canvas /> <html2canvas />
</div> </div>
......
<template> <template>
<div class="home-wrap"> <div class="home-wrap">
<h6 class="gangbi">home页{{msg}}</h6> <h6 class="gangbi">钢笔字体~home页{{msg}}</h6>
<h6 class="gangbi">钢笔字体</h6>
<ul> <ul>
<li> <li>
<button @click="testJump">跳转详情生成海报</button> <button @click="testJump">跳转详情生成海报</button>
...@@ -15,6 +14,7 @@ ...@@ -15,6 +14,7 @@
</ul> </ul>
<Music /> <Music />
<ossExample /> <ossExample />
<specialFont />
</div> </div>
</template> </template>
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
// @ is an alias to /src // @ is an alias to /src
import Music from '@/components/Music.vue' import Music from '@/components/Music.vue'
import ossExample from '@/example/ossExample.vue' import ossExample from '@/example/ossExample.vue'
import specialFont from '@/example/specialFont.vue'
export default { export default {
name: 'home', name: 'home',
...@@ -43,7 +44,8 @@ export default { ...@@ -43,7 +44,8 @@ export default {
}, },
components: { components: {
Music, Music,
ossExample ossExample,
specialFont
} }
} }
</script> </script>
...@@ -54,7 +56,7 @@ export default { ...@@ -54,7 +56,7 @@ export default {
font-family: "gangbi"; font-family: "gangbi";
} }
.home-wrap{ .home-wrap {
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.2);
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment