Authored by 王水玲

Merge branch 'master' into feature/fashion-detail

import WidgetAvatarGroup from './widget-avatar-group';
import WidgetIconBtn from './widget-icon-btn';
import WidgetFav from './widget-fav';
import WidgetLike from './widget-like';
import WidgetShare from './widget-share';
... ... @@ -7,6 +8,7 @@ import WidgetAvatar from './widget-avatar';
export default [
WidgetAvatarGroup,
WidgetIconBtn,
WidgetFav,
WidgetLike,
WidgetShare,
... ...
<template>
<div class="avatar-list-wrap">
<div v-if="avatars" class="avatar-list-wrap">
<ul v-if="avatarList" class="avatar-list">
<li v-for="(item, index) in avatarList" :key="index" :style="item.style">
<ImageFormat :src="item.src"></ImageFormat>
<WidgetAvatar :src="item.src" width="100" height="100"></WidgetAvatar>
</li>
<li v-if="hasMore">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABUFBMVEXu7u7u7e7t7e3v7+/x8fHw8PDz8/Pr6+vg4ODe3t7k5eTy8vLi4uLh4eHl5eXf39/q6urDw8OYmJiJiYmIiIiOjo6srKzb29vT09Ojo6OLi4uKioqfn5/MzMyvr6+Pj4+Wlpa+vr7p6eno6OigoKB9fX2GhoaCgoKBgYHJycm4uLh+fn6EhISFhYV8fHyxsbHQ0NCHh4eXl5fj4+OoqKiMjIzX19fExMR6enqNjY16e3u9vb3d3d2AgIDs7OypqanIyMizs7PPz89/f3/s7e2qqqqlpaWDg4PW1tZ+f35/gIC6u7udnZ2np6fY2NjFxcW5ubnk5OTV1dXOzs6SkpLa2tqtra2QkJDn5+e2tra6urp5eXnS09J7e3vNzc2Tk5O7u7uAgYGbm5t/gH+ysrLt7u3Z2dmwsLCcnZykpKS8vLzHx8ecnJyurq7u7+////9BdulHAAAAAWJLR0RvVQhhgQAAAAd0SU1FB+MBHgIiD+UrRU8AAAImSURBVGje7ZVZW9NAFIbHM0tbBxBIYnFSFaVNI2ksVaNEaESi1B3BDXet4q7//9IU0iYtfXymF96d9/LLnPNmZjITQhAEQRAEQRAEQRAEQXQ4BgBjH/wjBzIZQBnjY6qAcMbImBySnE6kASIKxdJxxkaLQNKp0jQRoxpgbKZ0YlZQfQtwmJs3TOtkWY4UsYVTyrQrp/lwN5ClM2dNY/HceaZrAb5UrTm2bdTdC8MWvuw1bNv2LzbpUIFY8V3Dtlu1S5e1LfRKzVJJs8B2r+YsIK+thkGSK+v6Wj5n674ZHuTtaqQ5Ebni9Up6lkY1P8GZ0FCHD1SrmL0y8BtuWmDVNoTWVEDedAM7xcyagdhs9/Mw3hC3MrllpHlQv625XnSrowZFd2QmmbvblwT37mc5Kzv98cp/oLkn9OFAojqPcpLtTBKviUyy3sokFc09EY/jfjMj2OGDZnLXzZbrSSahS0/N1BK4Tam5J8/qabOw/Ty3xLQw7xw+UOaLveykgHzppbsSxgt6kqTo1esgUEqFDTXF85/wG88Me7n99l3+E+Z77+tWkgfhalP3nAChH+offafhLZaHaoBthp7v+HFr+JACm+7WOo7jfvoc0X09SWKRX75+637fnh15L5A7P6rdynJxZE2AFX5udX/93mUTXF5JNxZF9Oh9B1yQCMTRizMZG0VMTnbbJ6P/ENgfl1MyrtXB+El/KAiCIAiCIAiCIAiCIP+NvzEdRouqRtHcAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTAxLTI5VDE4OjM0OjE1KzA4OjAwBpTw+AAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wMS0yOVQxODozNDoxNSswODowMHfJSEQAAAAASUVORK5CYII=">
<img src="//img12.static.yhbimg.com/evidenceImages/2019/01/30/17/02fdbbddfc30f18868f91406eed8a70fb9.png?imageMogr2/thumbnail/130x130/extent/130x130/background/d2hpdGU=/position/center/quality/90">
</li>
</ul>
</div>
... ... @@ -34,7 +34,7 @@
computed: {
avatarList() {
let list = [];
let length = this.avatars.length;
let length = this.avatars && this.avatars.length;
if (this.option.maxDisplayNum > 0 && this.avatars.length > this.option.maxDisplayNum) {
length = this.option.maxDisplayNum;
... ... @@ -64,7 +64,9 @@
<style type="css">
.avatar-list-wrap {
display: inline-block;
vertical-align: middle;
}
.avatar-list {
display: flex;
... ...
<template>
<div></div>
<WidgetIconBtn type="fav" :text="num" :option="option"></WidgetIconBtn>
</template>
<script>
export default {
name: 'WidgetFav'
name: 'WidgetFav',
props: {
num: String,
option: Object
}
};
</script>
... ...
<template>
<div class="icon-btn" @click="onClick" :style="btnStyle">
<i class="iconfont" :class="iconClass" :style="iconStyle"></i>
<span v-if="text" class="icon-btn-text" :style="textStyle">{{text}}</span>
</div>
</template>
<script>
import { pxToRem } from '../../../utils/helpers.js';
const classMap = {
fav: {
default: 'icon-zan',
selected: 'icon-zan-fill'
},
star: {
default: 'icon-star',
selected: 'icon-star-fill'
},
share: {
default: 'icon-share'
},
msg: {
default: 'icon-msg'
}
};
const defaultOption = {
canSelect: true, // 是否支持选中
selected: false, // 初始选中状态(不受是否支持选中控制)
color: '#444', // btn字体颜色
selectedColor: '#444', // btn选中状态字体颜色(不设置默认与非选中一致)
iconFontSize: 48, // icon字号(单位px)
textFontSize: 20, // text字号(单位px)
textAlign: 'top', // text位置, 默认normal(支持normal, top, bottom)
textZoom: 0.9, // text缩放
textAutoChange: false, // text自动增减,只支持number类型(受是否支持选中控制)
emitName: '' // 点击触发事件名称
};
export default {
name: 'WidgetIconBtn',
props: {
type: {
type: String,
default: 'fav'
},
text: String,
option: {
type: Object,
default() {
return defaultOption;
}
}
},
data() {
return {
btnSelected: false,
actionClass: ''
}
},
computed: {
btnStyle() {
let color = this.option.color || defaultOption.color;
return `color: ${this.btnSelected ? (this.option.selectedColor || color) : color};`;
},
iconClass() {
if (this.actionClass) {
return this.actionClass;
}
if (!this.iconObj) {
this._icon = classMap[this.type] || classMap.fav;
}
if (this.option.selected) {
this.btnSelected = true;
return this._icon.selected || this._icon.default;
}
return this._icon.default;
},
iconStyle() {
return `font-size: ${pxToRem(this.option.iconFontSize || defaultOption.iconFontSize)};`;
},
textStyle() {
let style = `font-size: ${pxToRem(this.option.textFontSize || defaultOption.textFontSize)};`;
if (['top', 'bottom'].indexOf(this.option.textAlign) >= 0) {
style += ` vertical-align: ${this.option.textAlign};`;
}
if (Number(this.option.textZoom) !== NaN) {
style += `transform: scale(${this.option.textZoom}, ${this.option.textZoom});`
}
return style;
}
},
methods: {
onClick(evt) {
if (this.option.canSelect) {
this.btnSelected = !this.btnSelected;
if (Number(this.text) !== NaN) {
this.text = Number(this.text) + (this.btnSelected ? 1 : -1);
}
if (this._icon.selected) {
this.actionClass = this.btnSelected ? this._icon.selected : this._icon.default;
}
}
this.option.emitName && this.$emit(this.option.emitName, evt);
}
},
};
</script>
<style type="css">
.icon-btn {
display: inline-block;
line-height: 1;
vertical-align: middle;
> * {
display: inline-block;
vertical-align: middle;
}
.icon-btn-text {
line-height: 1.3;
}
}
</style>
... ...
<template>
<div></div>
<WidgetIconBtn type="star" :text="num" :option="option"></WidgetIconBtn>
</template>
<script>
export default {
name: 'WidgetLike'
name: 'WidgetLike',
props: {
num: String,
option: Object
}
};
</script>
... ...
<template>
<div></div>
<WidgetIconBtn type="share" :text="num" :option="option"></WidgetIconBtn>
</template>
<script>
export default {
name: 'WidgetShare'
name: 'WidgetShare',
props: {
num: String,
option: Object
}
};
</script>
... ...
@font-face {font-family: "iconfont";
src: url('iconfont.eot?t=1548748619946'); /* IE9 */
src: url('iconfont.eot?t=1548748619946#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAApUAAsAAAAAEtQAAAoHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFBgqVTJFCATYCJANMCygABCAFhG0HgUcb2Q8jknFWBdk/EmNjaU+FRNGFJeONkRf+P5XK9lQq5WIoJQ//v9+3fd+7XzXODJp+QtSTmIcKSTxRCjUcJLE6zPzjpv2fH1ZIAjUKbWm33EYNajJ7d+1UkYlRGqggPaCj8+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ntRn7Ar6GV57SaGQsy6ywAAA==') format('woff2'),
url('iconfont.woff?t=1548748619946') format('woff'),
url('iconfont.ttf?t=1548748619946') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('iconfont.svg?t=1548748619946#iconfont') format('svg'); /* iOS 4.1- */
src: url('iconfont.eot?t=1548818713468'); /* IE9 */
src: url('iconfont.eot?t=1548818713468#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAowAAsAAAAAEswAAAnjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFBgqVTJFCATYCJANMCygABCAFhG0HgUAb0g8RlaxnJPsygdtM4dO6wpDENXFLUAAFAN3sNAjYZrqmdzW/59JnhlLC82RXvarf0IB7jsiIdm92dgQ7hoKkTspneNrmv8dh3QEWggpWgd+FFcOZRawKWTWuud/cbU1YTS3DWAex6KYBCOB6D97cM+p84CW+fbsgPePEsgAL7Pm9a1bA2AozwhTuZO2xRZ+X/YsDDRQZwMHkvgECCCj+31qrYpJ00J+4Xmb39mRuULcoGjKJeObsYV5pPCoNGplQeJQcgbSzH2cxKdGBxbLaYNdGIRc9cZfxMy6GAgKqUR/VqUuxEDhjcZMp3m/WdNl44JzIwVL4K7x0BzFrXVVrgY2nlZSzwFbv69U3mipngMYWcLtUv+qcSUDw+P6TY4jCrmAUogBxfUWAaQkEqA9YoI6gJfuQgNT3aIAptpgFAEk8NE5dqrvNDrPH7DPH7HaSjlsceiffShTJu2ORhX/iOWgECxsXD5+AkIgESVKkyZAF5QCgEXf+nJVlhjkBUGC6AQ6YLQANZitAwGwDWGC2A2wwOwAumD0AD8w+gA+mFxCA6QOEYPoBEZiDgASYQ4AkmMOAFJgjgDSYo4AMmGM5ZLljTnNNoAVIL4A1hjnvoupOZd/Ya6KkeB8RT+MhOJG7e2AA1ReluXt5s1B6JHX2D+XxIC0llcpx8AhnQ3pEEAe6NNPpXBpd8UJLIgSl0E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xj7tj3yQp/hAVaklDZZodPT1zN5KFb7Hcw9alZzFWm5ux/kRq83jwppjcrRVkwbBfRN8q1dk3e2nFcjcX0haIUKaqyoSnur2lnN9ZAs1Rw5PWxSoZ7QcygmmVCNAXRtDStqOtKQHSKSdGIzzhWxFD3KkQ1BgSBueoZpNcS8JvqAidicbTOuVX5zf/xvNmX2Ki73If6Tc1VNbNen2DyhSHQbipXlOpSaVTIiyy4HZyCXrEcrOlHI61rXCDO64ycjpKAGvyMQVwtwFrcCoeufCZT7/GzTOmJcU054E/0GSdccnrUpDsP+gSpq2L0Oji8azBEU1EmMTIwiFIuB7iyEOV9WDoNgxJZpOjmpYTlHprv002f6UzTfj7XVzUSRZUTXdMC3bcT2fOw+emIGMz3nGqMs8dU1bpg+vK6FyqzrmeW59gpMqt4ytmjfJ5+yYUOk3y0W2fnJxm8QS5oEtY4aqK1PJzUpwBZVdTaBT8ToaAQ==') format('woff2'),
url('iconfont.woff?t=1548818713468') format('woff'),
url('iconfont.ttf?t=1548818713468') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('iconfont.svg?t=1548818713468#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont {
... ... @@ -23,15 +23,15 @@
content: "\e7af";
}
.icon-right-copy:before {
.icon-right:before {
content: "\e7b0";
}
.icon-zan-copy:before {
.icon-zan:before {
content: "\e7b1";
}
.icon-zan-fill-copy:before {
.icon-zan-fill:before {
content: "\e7b2";
}
... ... @@ -43,11 +43,11 @@
content: "\e7b3";
}
.icon-zanr:before {
.icon-grass:before {
content: "\e7b7";
}
.icon-zan:before {
.icon-grass-fill:before {
content: "\e7b9";
}
... ...
... ... @@ -26,13 +26,13 @@ Created by iconfont
<glyph glyph-name="left" unicode="&#59311;" d="M772.534857-2.3405709999999544A54.857143 54.857143 0 0 0 694.857143-79.87199999999996L269.750857 345.234286a54.857143 54.857143 0 0 0 0 77.531428l425.179429 425.179429a54.857143 54.857143 0 0 0 77.531428-77.531429L386.194286 384 772.534857-2.3405709999999544z" horiz-adv-x="1024" />
<glyph glyph-name="right-copy" unicode="&#59312;" d="M251.465143 770.340571A54.857143 54.857143 0 0 0 329.142857 847.872L754.249143 422.765714a54.857143 54.857143 0 0 0 0-77.531428l-425.179429-425.179429a54.857143 54.857143 0 0 0-77.531428 77.531429L637.805714 384 251.465143 770.340571z" horiz-adv-x="1024" />
<glyph glyph-name="right" unicode="&#59312;" d="M251.465143 770.340571A54.857143 54.857143 0 0 0 329.142857 847.872L754.249143 422.765714a54.857143 54.857143 0 0 0 0-77.531428l-425.179429-425.179429a54.857143 54.857143 0 0 0-77.531428 77.531429L637.805714 384 251.465143 770.340571z" horiz-adv-x="1024" />
<glyph glyph-name="zan-copy" unicode="&#59313;" d="M653.824 551.168h211.626667c60.672 0 94.549333-46.122667 94.506666-122.325333l-0.170666-2.048-44.288-370.218667c-0.256-66.389333-52.352-120.576-116.864-120.576H128a21.333333 21.333333 0 0 0-21.333333 21.333333V483.242667a21.333333 21.333333 0 0 0 21.333333 21.333333h189.866667c36.693333 109.952 64.554667 190.122667 77.482666 221.056 27.690667 66.218667 54.954667 93.738667 106.752 104.96a66.133333 66.133333 0 0 0 13.866667 1.408c38.144 0 86.357333-26.496 116.48-66.816 33.92-45.354667 47.274667-106.368 28.885333-182.741333l-4.864-20.352-2.645333-10.922667zM149.333333-21.33333300000004h649.301334c40.576 0 74.026667 34.816 74.368 80.512l44.330666 371.456v-0.512c0 53.674667-18.133333 78.378667-51.882666 78.378666H626.773333a21.333333 21.333333 0 0 0-20.778666 26.282667l8.96 37.333333 4.906666 20.309334c15.36 63.829333 4.821333 111.872-21.589333 147.2-22.4 29.994667-58.282667 49.706667-82.304 49.706666a23.978667 23.978667 0 0 1-4.864-0.426666c-36.394667-7.893333-53.632-25.258667-76.373333-79.744-12.928-30.848-42.666667-116.736-81.322667-232.917334a21.333333 21.333333 0 0 0-22.698667-14.421333 15.232 15.232 0 0 1-1.621333 0.085333H149.333333V-21.33333300000004zM298.666667 490.666667h42.666666V-42.66666699999996H298.666667z" horiz-adv-x="1024" />
<glyph glyph-name="zan" unicode="&#59313;" d="M653.824 551.168h211.626667c60.672 0 94.549333-46.122667 94.506666-122.325333l-0.170666-2.048-44.288-370.218667c-0.256-66.389333-52.352-120.576-116.864-120.576H128a21.333333 21.333333 0 0 0-21.333333 21.333333V483.242667a21.333333 21.333333 0 0 0 21.333333 21.333333h189.866667c36.693333 109.952 64.554667 190.122667 77.482666 221.056 27.690667 66.218667 54.954667 93.738667 106.752 104.96a66.133333 66.133333 0 0 0 13.866667 1.408c38.144 0 86.357333-26.496 116.48-66.816 33.92-45.354667 47.274667-106.368 28.885333-182.741333l-4.864-20.352-2.645333-10.922667zM149.333333-21.33333300000004h649.301334c40.576 0 74.026667 34.816 74.368 80.512l44.330666 371.456v-0.512c0 53.674667-18.133333 78.378667-51.882666 78.378666H626.773333a21.333333 21.333333 0 0 0-20.778666 26.282667l8.96 37.333333 4.906666 20.309334c15.36 63.829333 4.821333 111.872-21.589333 147.2-22.4 29.994667-58.282667 49.706667-82.304 49.706666a23.978667 23.978667 0 0 1-4.864-0.426666c-36.394667-7.893333-53.632-25.258667-76.373333-79.744-12.928-30.848-42.666667-116.736-81.322667-232.917334a21.333333 21.333333 0 0 0-22.698667-14.421333 15.232 15.232 0 0 1-1.621333 0.085333H149.333333V-21.33333300000004zM298.666667 490.666667h42.666666V-42.66666699999996H298.666667z" horiz-adv-x="1024" />
<glyph glyph-name="zan-fill-copy" unicode="&#59314;" d="M341.333333-55.63733300000001V496.776533a37.546667 37.546667 0 0 0 2.525867-0.2048c29.4912 88.610133 67.1744 199.611733 82.7392 236.885334 25.463467 60.962133 47.9232 83.626667 92.501333 93.252266A45.4656 45.4656 0 0 0 528.5888 827.733333c28.0576 0 71.543467-20.206933 100.420267-58.845866 22.664533-30.3104 45.4656-83.831467 25.531733-166.7072l-4.983467-20.548267-9.0112-37.6832h241.186134c47.786667 0 74.001067-35.771733 74.001066-100.7616v-0.8192l-44.919466-397.5168c-0.273067-55.364267-43.485867-100.352-96.597334-100.352L341.333333-55.705600000000004z m-68.266666 0l-137.0112-0.136534a34.133333 34.133333 0 0 0-34.133334 34.133334V462.506667a34.133333 34.133333 0 0 0 34.133334 34.133333L273.066667 496.776533v-552.482133z" horiz-adv-x="1024" />
<glyph glyph-name="zan-fill" unicode="&#59314;" d="M341.333333-55.63733300000001V496.776533a37.546667 37.546667 0 0 0 2.525867-0.2048c29.4912 88.610133 67.1744 199.611733 82.7392 236.885334 25.463467 60.962133 47.9232 83.626667 92.501333 93.252266A45.4656 45.4656 0 0 0 528.5888 827.733333c28.0576 0 71.543467-20.206933 100.420267-58.845866 22.664533-30.3104 45.4656-83.831467 25.531733-166.7072l-4.983467-20.548267-9.0112-37.6832h241.186134c47.786667 0 74.001067-35.771733 74.001066-100.7616v-0.8192l-44.919466-397.5168c-0.273067-55.364267-43.485867-100.352-96.597334-100.352L341.333333-55.705600000000004z m-68.266666 0l-137.0112-0.136534a34.133333 34.133333 0 0 0-34.133334 34.133334V462.506667a34.133333 34.133333 0 0 0 34.133334 34.133333L273.066667 496.776533v-552.482133z" horiz-adv-x="1024" />
<glyph glyph-name="share" unicode="&#59302;" d="M490.666667 725.333333a21.333333 21.333333 0 1 0 42.666666 0v-469.333333a21.333333 21.333333 0 1 0-42.666666 0V725.333333zM512 723.2L285.738667 496.896a21.333333 21.333333 0 0 0-30.165334 30.208l241.322667 241.322667a21.333333 21.333333 0 0 0 30.208 0l241.322667-241.322667a21.333333 21.333333 0 1 0-30.165334-30.208L512 723.2zM874.666667-10.922667000000047V341.33333300000004a21.333333 21.333333 0 1 0 42.666666 0v-373.589333a21.333333 21.333333 0 0 0-21.333333-21.333333H128a21.333333 21.333333 0 0 0-21.333333 21.333333V341.33333300000004a21.333333 21.333333 0 1 0 42.666666 0v-352.256h725.333334z" horiz-adv-x="1024" />
... ... @@ -41,10 +41,10 @@ Created by iconfont
<glyph glyph-name="share-blod" unicode="&#59315;" d="M554.666667 650.3679999999999V256a42.666667 42.666667 0 0 0-85.333334 0V650.3679999999999l-168.533333-168.533333a42.666667 42.666667 0 0 0-60.330667 60.330666l241.365334 241.365334a42.666667 42.666667 0 0 0 60.330666 0l241.365334-241.365334a42.666667 42.666667 0 0 0-60.330667-60.330666L554.666667 650.3679999999999z m298.666666-639.957333V341.33333300000004a42.666667 42.666667 0 0 0 85.333334 0v-373.589333a42.666667 42.666667 0 0 0-42.666667-42.666667H128a42.666667 42.666667 0 0 0-42.666667 42.666667V341.33333300000004a42.666667 42.666667 0 0 0 85.333334 0v-330.922666h682.666666z" horiz-adv-x="1024" />
<glyph glyph-name="zanr" unicode="&#59319;" d="M469.333333 213.333333h42.666667a298.666667 298.666667 0 0 1 298.666667 298.666667V554.666667h-42.666667a298.666667 298.666667 0 0 1-298.666667-298.666667v-42.666667z m298.666667 426.666667h102.4a25.6 25.6 0 0 0 25.6-25.6V512a384 384 0 0 0-384-384H384v128a384 384 0 0 0 384 384zM170.666667 725.333333v-42.666666a170.666667 170.666667 0 0 1 170.666666-170.666667h42.666667V554.666667a170.666667 170.666667 0 0 1-170.666667 170.666666H170.666667z m42.666666 85.333334a256 256 0 0 0 256-256v-128H341.333333a256 256 0 0 0-256 256V785.066667a25.6 25.6 0 0 0 25.6 25.6H213.333333zM469.333333 554.666667v-567.466667c0-56.874667-85.333333-56.874667-85.333333 0V554.666667c0 56.874667 85.333333 56.874667 85.333333 0z" horiz-adv-x="1024" />
<glyph glyph-name="grass" unicode="&#59319;" d="M469.333333 213.33333300000004h42.666667a298.666667 298.666667 0 0 1 298.666667 298.666667V554.666667h-42.666667a298.666667 298.666667 0 0 1-298.666667-298.666667v-42.666667z m298.666667 426.666667h102.4a25.6 25.6 0 0 0 25.6-25.6V512a384 384 0 0 0-384-384H384v128a384 384 0 0 0 384 384zM170.666667 725.333333v-42.666666a170.666667 170.666667 0 0 1 170.666666-170.666667h42.666667V554.666667a170.666667 170.666667 0 0 1-170.666667 170.666666H170.666667z m42.666666 85.333334a256 256 0 0 0 256-256v-128H341.333333a256 256 0 0 0-256 256V785.066667a25.6 25.6 0 0 0 25.6 25.6H213.333333zM469.333333 554.666667v-567.466667c0-56.874667-85.333333-56.874667-85.333333 0V554.666667c0 56.874667 85.333333 56.874667 85.333333 0z" horiz-adv-x="1024" />
<glyph glyph-name="zan" unicode="&#59321;" d="M469.333333 554.666667v-57.301334A383.274667 383.274667 0 0 0 768 640h102.4a25.6 25.6 0 0 0 25.6-25.6V512a384 384 0 0 0-384-384h-42.666667v-140.8c0-56.874667-85.333333-56.874667-85.333333 0V426.666667H341.333333a256 256 0 0 0-256 256V785.066667a25.6 25.6 0 0 0 25.6 25.6H213.333333a256 256 0 0 0 256-256z" horiz-adv-x="1024" />
<glyph glyph-name="grass-fill" unicode="&#59321;" d="M469.333333 554.666667v-57.301334A383.274667 383.274667 0 0 0 768 640h102.4a25.6 25.6 0 0 0 25.6-25.6V512a384 384 0 0 0-384-384h-42.666667v-140.8c0-56.874667-85.333333-56.874667-85.333333 0V426.666667H341.333333a256 256 0 0 0-256 256V785.066667a25.6 25.6 0 0 0 25.6 25.6H213.333333a256 256 0 0 0 256-256z" horiz-adv-x="1024" />
<glyph glyph-name="star" unicode="&#59325;" d="M686.24 283.54909124999995l12.21818156 9.25090875 219.75272719 166.77818156a20.94545438 20.94545438 0 0 1 6.4581825 8.29090969 22.69090875 22.69090875 0 0 1 1.87636312 9.16363594c0 11.82545437-8.77090875 21.07636406-19.11272718 21.07636406H619.34545438l-4.80000001 15.27272719-84.34909031 270.54545437A19.41818156 19.41818156 0 0 1 512 798.54545438c-8.20363594 0-15.62181844-5.84727281-18.28363594-15.01090876l-89.0181825-285.42545437H116.52363594c-10.34181844 0-19.11272719-9.25090875-19.11272719-21.12 0-7.11272719 3.18545437-13.48363594 8.29090969-17.36727281l232.01454562-176.07272719-4.58181844-14.6181825-84.65454562-271.4618175a22.99636406 22.99636406 0 0 1-1.09090875-6.9381825c0-11.86909125 8.81454562-21.07636406 19.11272719-21.07636313 3.92727281 0 7.54909125 1.30909125 10.77818156 3.70909032L512 151.28727281l13.17818156-10.03636406 221.54181844-168.08727281a17.54181844 17.54181844 0 0 1 10.73454563-3.70909032c10.29818156 0 19.11272719 9.20727281 19.11272718 21.07636313a23.04 23.04 0 0 1-1.09090875 6.98181844l-89.23636406 286.03636406z m50.79272719-16.27636406l80.11636406-256.75636313c2.00727281-6.41454563 3.05454563-13.09090875 3.05454469-19.98545531 0-35.52-27.88363594-64.71272719-62.74909031-64.71272719a61.09090875 61.09090875 0 0 0-37.17818157 12.61090969L512 96.43636405999996 303.76727281-61.52727281c-10.69090875-8.16-23.65090875-12.65454563-37.22181844-12.65454563-34.90909125 0-62.74909125 29.23636406-62.74909031 64.71272719 0 6.85090875 1.04727281 13.52727281 3.05454469 19.94181844l80.11636406 256.8-207.57818156 157.57090875A65.32363594 65.32363594 0 0 0 53.81818156 476.98909125c0 35.52 27.84 64.75636406 62.74909125 64.75636312h256.01454563l79.37454562 254.4A62.96727281 62.96727281 0 0 0 512 842.18181844a62.83636406 62.83636406 0 0 0 59.95636406-45.64363688l79.4618175-254.83636312h256.01454563c34.90909125 0 62.74909125-29.19272719 62.74909125-64.71272719 0-9.29454562-1.92-18.41454562-5.58545438-26.74909125a64.58181844 64.58181844 0 0 0-19.98545531-25.39636406l-207.57818156-157.52727188z" horiz-adv-x="1024" />
... ...
... ... @@ -131,5 +131,18 @@ module.exports = {
return dict[$0];
}).replace(/https?:/, '') + '/interlace/1' : '';
},
pxToRem: (px) => {
const rootValue = 40;
if (typeof px !== 'number') {
px = parseInt(`0${px}`);
}
if (px > 2) {
return (px / rootValue).toFixed(2) + 'rem';
} else {
return px + 'px';
}
}
};
... ...