Commit badcf62e by mamingqun

特殊字体,还没有完成

parent 792639e6
......@@ -12,6 +12,8 @@
<script src="./libs/preloadjs.min.js"></script>
<!-- jquery -->
<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>
<body>
<noscript>
......
......@@ -47,7 +47,6 @@ export default {
var src = _this.keyFramesURL + idxstr + '.jpg'
PRELOADARR.push(src)
}
var loadingpro = $('#loading .progress')
_this.loadnum = 0
_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>
<div class="detail-wrap">
<h1>{{detailId}}</h1>
<h1>detailId{{detailId}}</h1>
<div>Detail页面</div>
<html2canvas />
</div>
......
<template>
<div class="home-wrap">
<h6 class="gangbi">home页{{msg}}</h6>
<h6 class="gangbi">钢笔字体</h6>
<h6 class="gangbi">钢笔字体~home页{{msg}}</h6>
<ul>
<li>
<button @click="testJump">跳转详情生成海报</button>
......@@ -15,6 +14,7 @@
</ul>
<Music />
<ossExample />
<specialFont />
</div>
</template>
......@@ -22,6 +22,7 @@
// @ is an alias to /src
import Music from '@/components/Music.vue'
import ossExample from '@/example/ossExample.vue'
import specialFont from '@/example/specialFont.vue'
export default {
name: 'home',
......@@ -43,7 +44,8 @@ export default {
},
components: {
Music,
ossExample
ossExample,
specialFont
}
}
</script>
......@@ -54,7 +56,7 @@ export default {
font-family: "gangbi";
}
.home-wrap{
.home-wrap {
background: rgba(0, 0, 0, 0.2);
}
</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