Browse Source

Merge branch 'lzm_web'

lzm_web
Linzm 6 months ago
parent
commit
3b6430261e
  1. 4
      src/views/badge/index.vue
  2. 56
      src/views/badge/preview.vue

4
src/views/badge/index.vue

@ -110,10 +110,10 @@
</div> </div>
<div class="tag-change-box" v-if="orderStat.use_type == 2"> <div class="tag-change-box" v-if="orderStat.use_type == 2">
<div class="tag-change-item"> <div class="tag-change-item">
<div class="tag-change-item-title" :class="{ tagActive: prodId == 7 }" @click="prodId = 7"> <div class="tag-change-item-title" :class="{ tagActive: prodId == 7 }" @click="prodId = 7;picture = null">
人物主体 人物主体
</div> </div>
<div class="tag-change-item-title" :class="{ tagActive: prodId == 8 }" @click="prodId = 8"> <div class="tag-change-item-title" :class="{ tagActive: prodId == 8 }" @click="prodId = 8;picture = null">
宠物主体 宠物主体
</div> </div>
</div> </div>

56
src/views/badge/preview.vue

@ -117,6 +117,11 @@
<div class="address-item"> <div class="address-item">
<van-address-edit <van-address-edit
:area-list="areaList" :area-list="areaList"
show-delete
show-set-default
show-search-result
:search-result="searchResult"
:area-columns-placeholder="['请选择', '请选择', '请选择']"
@change="nameTelChange" @change="nameTelChange"
@change-area="changeArea" @change-area="changeArea"
@change-detail="onChangeDetail" @change-detail="onChangeDetail"
@ -190,28 +195,38 @@ function sureReload() {
return return
} }
isPreview.value = false isPreview.value = false
group.value = newGroup.value showConfirmDialog({
const params = { title: '再次生成',
pid: pid.value, message:
group: group.value, '请确认是否重新生成。',
prod_id: prodId.value })
} .then(() => {
badgeApi.putModeling(params).then((res: any) => { group.value = newGroup.value
console.log('putModeling', res) const params = {
imageUrl.value = ''; pid: pid.value,
imageList.value = [] group: group.value,
imgKey.value = ''; prod_id: prodId.value
createLog() }
}).catch((err) => { badgeApi.putModeling(params).then((res: any) => {
console.log('putModeling', err) console.log('putModeling', res)
showReload.value = false imageUrl.value = '';
showToast({ imageList.value = []
message: err.message, imgKey.value = '';
duration: 2000, createLog()
}).catch((err) => {
console.log('putModeling', err)
showReload.value = false
showToast({
message: err.message,
duration: 2000,
})
}).finally(() => {
showReload.value = false
}) })
}).finally(() => {
showReload.value = false
}) })
.catch(() => {
showReload.value = false
});
} }
@ -1318,6 +1333,7 @@ onUnmounted(() => {
z-index: 2; z-index: 2;
font-family: chinese; font-family: chinese;
overflow: hidden; overflow: hidden;
text-shadow: 1px 0px 1px #000000a1;
} }
.shape-item-image-round { .shape-item-image-round {
border-radius: 50%; border-radius: 50%;

Loading…
Cancel
Save