Browse Source

bug修改

lzm_web
Linzm 6 months ago
parent
commit
0e231374e9
  1. 1
      components.d.ts
  2. 4
      src/views/badge/index.vue
  3. 50
      src/views/badge/preview.vue
  4. 2
      tsconfig.json

1
components.d.ts vendored

@ -22,7 +22,6 @@ declare module '@vue/runtime-core' {
Tensorflow: typeof import('./src/components/arFrame/tensorflow.vue')['default'] Tensorflow: typeof import('./src/components/arFrame/tensorflow.vue')['default']
VanActionSheet: typeof import('vant/es')['ActionSheet'] VanActionSheet: typeof import('vant/es')['ActionSheet']
VanAddressEdit: typeof import('vant/es')['AddressEdit'] VanAddressEdit: typeof import('vant/es')['AddressEdit']
VanArea: typeof import('vant/es')['Area']
VanDivider: typeof import('vant/es')['Divider'] VanDivider: typeof import('vant/es')['Divider']
VanField: typeof import('vant/es')['Field'] VanField: typeof import('vant/es')['Field']
VanIcon: typeof import('vant/es')['Icon'] VanIcon: typeof import('vant/es')['Icon']

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>

50
src/views/badge/preview.vue

@ -190,28 +190,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
});
} }

2
tsconfig.json

@ -21,7 +21,7 @@
"noUnusedLocals": true, "noUnusedLocals": true,
"noImplicitAny": false, "noImplicitAny": false,
"skipLibCheck": true, "skipLibCheck": true,
"verbatimModuleSyntax": true "importsNotUsedAsValues": "preserve"
}, },
"include": [ "include": [
"src/App.vue", "src/App.vue",

Loading…
Cancel
Save