diff --git a/src/components/AiCopyFromTemu.vue b/src/components/AiCopyFromTemu.vue index cd23a7b..62a699b 100644 --- a/src/components/AiCopyFromTemu.vue +++ b/src/components/AiCopyFromTemu.vue @@ -35,7 +35,7 @@
取 消 - 确定 + 确定
@@ -108,7 +108,8 @@ export default { }, goods: {}, sku: {}, - productDetail: {} + productDetail: {}, + isCopying: false } }, created () { @@ -120,6 +121,7 @@ export default { async addToDraft() { this.$refs.form.validate((valid) => { if (valid) { + this.isCopying = true this.$http.post('/api/copyProduct/check',null, {params: {type: 0}}).then(res => { if (res.code == 0) { let source @@ -134,8 +136,9 @@ export default { }).then((res) => { if (this.form.type == '1') { if (res.indexOf("rawData") == -1) { - Message.error("请检查地址是否正确,或者“TEMU”网站是否出现图形验证码") - return + this.isCopying = falses + Message.error("请检查地址是否正确,或者“TEMU”网站是否出现图形验证码") + return } let str = res.substring(res.indexOf("rawData")) str = str.substring(0, str.indexOf("<\/script>")) @@ -206,6 +209,8 @@ export default { })*/ } }) + } else { + this.isCopying = false } }) } @@ -219,6 +224,7 @@ export default { data: { catId: this.form.targetCatId[this.form.targetCatId.length - 1] }}).then((res) => { + this.isCopying = false if (res.errorCode == 1000000) { let draftId = res.result.productDraftId let content = data diff --git a/src/components/AiProductDropDown.vue b/src/components/AiProductDropDown.vue index 11f7c1b..0460783 100644 --- a/src/components/AiProductDropDown.vue +++ b/src/components/AiProductDropDown.vue @@ -46,12 +46,20 @@ export default { if (e.type == 'detail') { this.$emit('onGoDetail') } else if (e.type == 'copy') { - this.temuParams = {url: 'https://www.temu.com/' + e.url} + if (e.url.startsWith('http')) { + this.temuParams = {url: e.url} + } else { + this.temuParams = {url: 'https://www.temu.com/' + e.url} + } this.copyFromDlgShow = true } else if (e.type == 'goMall') { window.open('https://www.temu.com/mall.html?mall_id=' + e.mallId, '_blank'); } else if (e.type == 'goWeb') { - window.open('https://www.temu.com/' + e.url, '_blank'); + if (e.url.startsWith('http')) { + window.open(e.url, '_blank'); + } else { + window.open('https://www.temu.com/' + e.url, '_blank'); + } } }, beforeGoDetail(goodsId) { diff --git a/src/components/AiSpecialProductDetail.vue b/src/components/AiSpecialProductDetail.vue new file mode 100644 index 0000000..27716fa --- /dev/null +++ b/src/components/AiSpecialProductDetail.vue @@ -0,0 +1,81 @@ + + + diff --git a/src/manifest.production.json b/src/manifest.production.json index bd395c1..95f60c9 100644 --- a/src/manifest.production.json +++ b/src/manifest.production.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "TEMU助手", "description": "TEMU助手 - 自动化提高生产效率", - "version": "3.0.4", + "version": "3.0.5", "background": { "service_worker": "/background.js" }, diff --git a/src/router/index.js b/src/router/index.js index 7d4280e..1c386e9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -77,6 +77,11 @@ const router = new VueRouter({ name: 'keywordTrack', component: () => import('../view/selection/keywordtrack/Index.vue') }, + { + path: 'indexTrack', + name: 'indexTrack', + component: () => import('../view/selection/indextrack/Index.vue') + }, { path: 'message', diff --git a/src/view/Home.vue b/src/view/Home.vue index 6339c5c..40fcc20 100644 --- a/src/view/Home.vue +++ b/src/view/Home.vue @@ -75,6 +75,7 @@ 商品采集 店铺跟踪 关键字跟踪 + 首页商品跟踪 diff --git a/src/view/selection/indextrack/Index.vue b/src/view/selection/indextrack/Index.vue new file mode 100644 index 0000000..189ce2d --- /dev/null +++ b/src/view/selection/indextrack/Index.vue @@ -0,0 +1,57 @@ + + + + + + diff --git a/src/view/selection/indextrack/components/Detail.vue b/src/view/selection/indextrack/components/Detail.vue new file mode 100644 index 0000000..5e6b4b2 --- /dev/null +++ b/src/view/selection/indextrack/components/Detail.vue @@ -0,0 +1,212 @@ + + + + + diff --git a/src/view/selection/indextrack/components/List.vue b/src/view/selection/indextrack/components/List.vue new file mode 100644 index 0000000..474b6c3 --- /dev/null +++ b/src/view/selection/indextrack/components/List.vue @@ -0,0 +1,237 @@ + + + + + diff --git a/src/view/selection/keywordtrack/components/Detail.vue b/src/view/selection/keywordtrack/components/Detail.vue index 86ff29c..472b232 100644 --- a/src/view/selection/keywordtrack/components/Detail.vue +++ b/src/view/selection/keywordtrack/components/Detail.vue @@ -7,16 +7,31 @@ isShowBottomBorder isShowBack @onBackClick="cancel(false)">