Browse Source

字体替换

lzm_web
Linzm 4 months ago
parent
commit
90b34b6dad
  1. 2
      src/assets/font/font.css
  2. BIN
      src/assets/font/jingnan-Bold.ttf
  3. 6
      src/views/badge/index.vue
  4. 8
      src/views/badge/preview.vue

2
src/assets/font/font.css

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
@font-face {
font-family: "chinese";
src: url('jingnan-Nunito.ttf');
src: url('jingnan-Bold.ttf');
}

BIN
src/assets/font/jingnan-Bold.ttf

Binary file not shown.

6
src/views/badge/index.vue

@ -176,8 +176,10 @@ @@ -176,8 +176,10 @@
<h5-cropper :option="option" @getbase64Data="getbase64Data" @imgorigoinf="imgorigoinf"></h5-cropper>
</div>
</div>
<div style="font-size: 12px; color: red; margin-top: 16px; text-align: center;" v-if="prodId == 7 || prodId == 1">温馨提示请上传只有{{ prop == '3D真人肖像' ? '1' : '1-3' }}人的照片</div>
<div style="font-size: 12px; color: red; margin-top: 16px; text-align: center;" v-if="prodId == 8 || prodId == 2">温馨提示请上传只有1-3只宠物的照片</div>
<div v-if="typeId != 4">
<div style="font-size: 12px; color: red; margin-top: 16px; text-align: center;" v-if="prodId == 7 || prodId == 1">温馨提示请上传只有{{ prop == '3D真人肖像' ? '1' : '1-3' }}人的照片</div>
<div style="font-size: 12px; color: red; margin-top: 16px; text-align: center;" v-if="prodId == 8 || prodId == 2">温馨提示请上传只有1-3只宠物的照片</div>
</div>
<div style="height: 120px;"></div>
<div class="design-action-bar">
<div class="design-left">

8
src/views/badge/preview.vue

@ -232,7 +232,7 @@ function sureReload() { @@ -232,7 +232,7 @@ function sureReload() {
group.value = newGroup.value
const params = {
pid: pid.value,
group: group.value,
group: 1,
prod_id: prodId.value,
type_id: typeId.value
}
@ -272,7 +272,7 @@ const changeImage = (item: any) => { @@ -272,7 +272,7 @@ const changeImage = (item: any) => {
const createLog = () => {
badgeApi.createLog({
pid: pid.value,
group: group.value,
group: 1,
prod_id: prodId.value,
type_id: typeId.value
}).then((res: any) => {
@ -305,7 +305,7 @@ const style_name = ref('') @@ -305,7 +305,7 @@ const style_name = ref('')
function getCompareImage() {
badgeApi.getCompareImage({
pid: pid.value,
group: group.value,
group: 1,
prod_id: prodId.value,
type_id: typeId.value
}).then((res: any) => {
@ -590,7 +590,7 @@ const isPreview = ref(false) @@ -590,7 +590,7 @@ const isPreview = ref(false)
const getImageList = () => {
badgeApi.getImageList({
pid: pid.value,
group: group.value,
group: 1,
prod_id: prodId.value
}).then((res: any) => {
console.log('getImageList', res)

Loading…
Cancel
Save