diff --git a/src/assets/home/kf.png b/src/assets/home/kf.png new file mode 100644 index 0000000..a3a895b Binary files /dev/null and b/src/assets/home/kf.png differ diff --git a/src/assets/home/supplyPrice1.png b/src/assets/home/supplyPrice1.png deleted file mode 100644 index 3e0541b..0000000 Binary files a/src/assets/home/supplyPrice1.png and /dev/null differ diff --git a/src/assets/home/supplyPrice2.png b/src/assets/home/supplyPrice2.png deleted file mode 100644 index 42ef214..0000000 Binary files a/src/assets/home/supplyPrice2.png and /dev/null differ diff --git a/src/assets/home/supplyPrice3.png b/src/assets/home/supplyPrice3.png deleted file mode 100644 index 86c4320..0000000 Binary files a/src/assets/home/supplyPrice3.png and /dev/null differ diff --git a/src/views/agent/home.vue b/src/views/agent/home.vue index 883285c..de9657f 100644 --- a/src/views/agent/home.vue +++ b/src/views/agent/home.vue @@ -19,16 +19,37 @@

- 销售统计 2024–10-28数据 + 销售统计 {{ saleStats.date }}数据 查看全部

-
- +
+
-

{{ item.num }}

- {{ item.label }} +

{{ saleStats.income }}

+ 销售金额 +
+
+
+ +
+

{{ saleStats.cost }}

+ 成本支出 +
+
+
+ +
+

{{ saleStats.check_num }}

+ 查重订单量 +
+
+
+ +
+

{{ saleStats.ai_num }}

+ AIGC订单量
@@ -44,7 +65,7 @@
详情
-
+

{{ veritem.name }}

@@ -60,16 +81,27 @@

-
- 账户余额  4560 元 - 展开 +
+
含冻结金额 {{ walletList?.pub?.forzen_money }} 元
+
+ 账户余额  {{ walletList?.pub?.remain }} 元 + {{ isShowSpec ? '收起' : '展开' }} +
+
+
+

{{ item.verdesc }} : {{ item.remain }}

+

重要提醒

-
-

淘宝账号即将过期

-
查看
+
+

淘宝应用即将过期

+
查看详情
+
+
+

SSL证书(https)即将过期

+
查看详情

请尽快建立站点,开始售卖

@@ -105,7 +137,7 @@

联系客服

- +
@@ -131,6 +163,14 @@ export default { supplyPriceList: [], serviceList: [], + saleStats: [], + + expireServices: [], + + walletList: [], + + isShowSpec: false, + preferredMarketList: [ { @@ -138,40 +178,22 @@ export default { label: '多端系统' }, { - desc: '电脑版、小程序、微信H5', + desc: '基于成交量的推广支持', label: 'OCPC推广' }, { - desc: '电脑版、小程序、微信H5', + desc: '二级、裂变分销,发展代理网络', label: '多级分销' }, { - desc: '电脑版、小程序、微信H5', + desc: '在报告或网页中嵌入广告', label: '嵌入广告' }, { - desc: '电脑版、小程序、微信H5', + desc: '自定义次数卡券或微信代金券', label: '发放卡券' }, ], - salesList: [ - { - num: 4560, - label: '销售金额' - }, - { - num: 1000, - label: '成本支出' - }, - { - num: 20, - label: '查重订单量' - }, - { - num: 60, - label: 'AIGC订单量' - }, - ], systemList: [ { desc: 'AI中文范文2万字版、AI中文范文万字版已整合到AI中文范文内(可选3000/5000AI中文范文2万字版、AI中文范文万字版已整合到AI中文范文内(可选3000/5000/8000/10000/15000/000000/10000/…', @@ -182,93 +204,6 @@ export default { label: 'AI范文整合的通知' }, ], - supplyList1: [ - '查重服务', - 'AIGC服务', - '写作辅助', - ], - supplyList: [ - { - name: '万方系统', - list: [ - { - name: '万方硕博版', - word: '千字符', - price: 2.4 - }, - { - name: '万方硕博版', - word: '千字符', - price: 2.4 - }, - { - name: '万方硕博版', - word: '千字符', - price: 2.4 - }, - ] - - }, - { - name: '维普系统', - list: [ - { - name: '维普硕博版', - word: '千字符', - price: 2.4 - }, - { - name: '维普系统硕博版', - word: '千字符', - price: 2.4 - }, - { - name: '维普系统硕博版', - word: '千字符', - price: 2.4 - }, - ] - - }, - { - name: 'PaperPass旗舰版', - list: [ - { - name: '万方硕博版', - word: '千字符', - price: 2.4 - }, - ] - - }, - { - name: '学术不端', - list: [ - { - name: '硕博预审版', - word: '篇', - price: 2.4 - }, - { - name: '期刊小论文小篇幅版', - word: '篇', - price: 2.4 - }, - { - name: '期刊小论文小篇幅版', - word: '篇', - price: 2.4 - }, - { - name: '期刊小论文小篇幅版', - word: '篇', - price: 2.4 - }, - ] - - }, - ] - } }, components: { @@ -277,10 +212,12 @@ export default { }, mounted() { this.getSupplyServiceList() + this.getSaleStats() + this.getExpireServices() + this.getWalletList() }, methods: { getSupplyServiceList() { - this.tableLoading = true const that = this that.serviceList = [] @@ -298,15 +235,63 @@ export default { this.serviceClassifications = response.data.service_classification; this.serviceClassificationServices = response.data.service_classification_services; this.supplyPriceList = response.data.supply_price; - console.log(this.supplyPriceList[2].price) - console.log(this.supplyPriceList[2].unit_format) }) }).catch(error => { console.error(error, 'error') }) }, - lookTaoBaoNum() { + getSaleStats() { + this.$http('POST', '/agentnew/ajax_get_sale_stats', { + + },{ + headers:{ + 'Auth': this.token + } + }).then(response => { + this.$nextTick(() => { + this.saleStats = response.data + }) + }).catch(error => { + console.error(error, 'error') + }) + }, + getExpireServices() { + this.$http('POST', '/agentnew/ajax_get_expire_services', { + + },{ + headers:{ + 'Auth': this.token + } + }).then(response => { + this.$nextTick(() => { + this.expireServices = response.data + }) + }).catch(error => { + console.error(error, 'error') + }) + }, + getWalletList() { + this.$http('POST', '/agentnew/ajax_get_wallet', { + + },{ + headers:{ + 'Auth': this.token + } + }).then(response => { + this.$nextTick(() => { + this.walletList = response.data + }) + }).catch(error => { + console.error(error, 'error') + }) + }, + lookTaoBaoExpire() { + // 查看淘宝账号 + location.href = '/agent/payList' + }, + lookSslExpire() { // 查看淘宝账号 + location.href = '/agent/' }, lookTaoBaoNum1() { // 查看淘宝账号 @@ -326,6 +311,26 @@ a { color: #006AFF; } +.mt-24 { + margin-top: 24px; +} +.mb-16 { + margin-bottom: 16px; +} +.red { + color: #FF4D4F; +} + +.specMoney { + font-family: Microsoft YaHei UI; + font-size: 14px; + font-weight: normal; + line-height: 22px; + letter-spacing: 0.08em; + color: #626573; + +} + .home-wrap { padding: 12px; @@ -654,6 +659,30 @@ a { width: 100%; } } + .reminder3 { + border-radius: 4px; + background: linear-gradient(256deg, #FBE7D7 1%, #FEF7EC 53%); + padding: 14px 8px; + border: 1px solid transparent; + margin-top: 20px; + transition: all .3s; + + &:hover { + transition: all .3s; + border-radius: 4px; + background: linear-gradient(256deg, #FBE7D7 1%, #FEF7EC 53%); + /* main/main_erro */ + border: 1px solid #FB832D; + } + + div { + display: flex; + justify-content: flex-end; + color: #FB832D; + margin-top: 10px; + width: 100%; + } + } } .carouselImage {