兼容异常,并给出示例

This commit is contained in:
aixianling
2024-04-23 15:10:24 +08:00
parent 482391d6d3
commit 45f727ed7e
4 changed files with 20 additions and 8 deletions

View File

@@ -69,8 +69,7 @@
<script>
import AiCopyFromAliExpress from "@/components/AiCopyFromAliExpress.vue";
import {sendChromeAPIMessage} from '@/api/chromeApi'
import {getImageMd5} from "@/utils/image.js"
import {sendAliexpressAPIMessage} from '@/api/chromeApi'
export default {
name: 'NiubiCopy',
@@ -138,7 +137,7 @@ export default {
upload_sign: res4.result.signature
}
}))*/
this.$http.post('/api/copyProduct/myPage', null, {
params: {
...this.search
@@ -154,11 +153,22 @@ export default {
handleClose() {
this.copyFromDlgShow = false
},
getAliexpressGoodsList() {
sendAliexpressAPIMessage({
type: "aliexpress",
url: "https://seller-acs.aliexpress.com/h5/mtop.global.merchant.self.product.manager.render.list/1.0/?jsv=2.7.2&appKey=30267743&v=1.0&timeout=15000&H5Request=true&url=mtop.global.merchant.self.product.manager.render.list&__channel-id__=701301&api=mtop.global.merchant.self.product.manager.render.list&type=originaljson&dataType=json&valueType=original&x-i18n-regionID=AE&data=%7B%22channelId%22%3A%22701301%22%2C%22jsonBody%22%3A%22%7B%5C%22tab%5C%22%3A%5C%22online_product%5C%22%2C%5C%22sort%5C%22%3A%7B%7D%2C%5C%22filter%5C%22%3A%7B%5C%22queryCategory%5C%22%3Anull%2C%5C%22lowerPrice%5C%22%3Anull%2C%5C%22upperPrice%5C%22%3Anull%2C%5C%22status%5C%22%3A%5C%220%5C%22%2C%5C%22productId%5C%22%3Anull%7D%2C%5C%22pagination%5C%22%3A%7B%5C%22pageSize%5C%22%3A10%2C%5C%22current%5C%22%3A2%7D%7D%22%2C%22from%22%3A%22SELF%22%2C%22bizParam%22%3A%22%7B%5C%22version%5C%22%3A%5C%22simple%5C%22%7D%22%7D"
}).then(res => {
console.log(res)
})
},
// 添加模板成功
handleSuccess() {
this.copyFromDlgShow = false
this.getList()
}
},
mounted() {
this.getAliexpressGoodsList()
}
}
</script>