This commit is contained in:
liushiwei
2023-09-27 09:00:28 +08:00
parent 0a33fe480f
commit 317a22179e
5 changed files with 47 additions and 32 deletions

View File

@@ -88,8 +88,9 @@
title="用户激活"
:visible="$store.state.activeDlgShow"
:close-on-click-modal="false"
width="30%"
width="1200"
:before-close="handleClose">
<ai-payment/>
<span slot="footer" class="dialog-footer">
<el-button @click="setActiveDlgShow(false)"> </el-button>
<el-button type="primary" @click="active"> </el-button>

View File

@@ -32,7 +32,6 @@
</div>
</ai-card>
</div>
<ai-payment/>
<ai-card title="常用工具" v-if="false">
<div class="">
dsad
@@ -59,11 +58,9 @@
</template>
<script>
import AiPayment from "@/components/AiPayment.vue";
export default {
name: 'AdminHome',
components: {AiPayment},
data () {
return {
noticeList: [],

View File

@@ -60,9 +60,10 @@
<el-form-item label="商品来源:" v-show="false" style="width: 100%;" prop="type" :rules="[{ required: true, message: '请选择商品来源', trigger: 'blur' }]">
<el-radio-group v-model="form.type" size="medium">
<el-radio :label="1">TEMU</el-radio>
<el-radio :label="2">速卖通</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="TEMU商品地址:" style="width: 100%;" prop="url" :rules="[{ required: true, message: '请输入TEMU商品地址', trigger: 'blur' }]">
<el-form-item label="商品地址:" style="width: 100%;" prop="url" :rules="[{ required: true, message: '请输入商品地址', trigger: 'blur' }]">
<el-input type="textarea" v-model="form.url"></el-input>
</el-form-item>
<el-form-item label="店铺:" style="width: 100%;" prop="targetMallId" :rules="[{ required: true, message: '请选择店铺', trigger: 'blur' }]">
@@ -461,19 +462,7 @@ const ImageEditor = require('tui-image-editor')
}}).then((res) => {
if (res.errorCode == 1000000) {
Message.success("成功添加到草稿箱")
let mallInfo = this.$store.state.mallList.filter(item => {
return item.mallId == this.form.targetMallId
})
this.$http.post('/api/copyProduct/add', {
mallId: mallInfo[0].mallId,
mallName: mallInfo[0].mallName,
url: this.form.url,
type: this.form.type
}).then(res1 => {
if (res1.code == 0) {
this.getList()
}
})
this.saveInfo()
} else {
setTimeout(() => {
this.createProduct(content)
@@ -496,6 +485,22 @@ const ImageEditor = require('tui-image-editor')
this.getSpecId(data)
}
})
},
saveInfo() {
let mallInfo = this.$store.state.mallList.filter(item => {
return item.mallId == this.form.targetMallId
})
this.$http.post('/api/copyProduct/add', {
mallId: mallInfo[0].mallId,
mallName: mallInfo[0].mallName,
url: this.form.url,
type: this.form.type
}).then(res1 => {
if (res1.code == 0) {
this.$store.dispatch('getUserInfo')
this.getList()
}
})
}
}
}