-
+
@@ -158,20 +158,14 @@ export default {
}
},
saveConfirm() {
- let obj = {}
- obj.uid = this.info.uid
- obj.type = this.info.type
- obj.logo_bgcolor = this.tabColor.replace('#','')
- obj.link_btn_color = this.themeColor.replace('#','')
- obj.selected_nav_bgcolor = this.navColor.replace('#','')
-
- if(!this.sub_logo_file || !this.rep_logo_file){
- this.$message.warning(`请上传logo图`);
- return false;
- }
-
- obj.submit_logo = this.sub_logo_file
- obj.report_logo = this.rep_logo_file
+ let obj = new FormData()
+ obj.set('uid', this.info.uid)
+ obj.set('type', this.info.type)
+ if(this.tabColor) obj.set('logo_bgcolor', this.tabColor.replace('#',''))
+ if(this.themeColor) obj.set('link_btn_color', this.themeColor.replace('#',''))
+ if(this.navColor) obj.set('selected_nav_bgcolor', this.navColor.replace('#',''))
+ if(this.sub_logo_file) obj.set('submit_logo', this.sub_logo_file)
+ if(this.rep_logo_file) obj.set('report_logo', this.rep_logo_file)
const that = this
this.$http('POST', '/agentnew/ajax_update_service_style', obj).then(response => {
@@ -196,13 +190,18 @@ export default {
}
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 1321d3c..2991605 100755
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -51,7 +51,7 @@ const blackFooterList = [
const routes = [{
path: '/',
name: '首页',
- component: () => import( /* webpackChunkName: "register" */ '../views/agent/home.vue'),
+ component: () => import( /* webpackChunkName: "home" */ '../views/agent/home.vue'),
isFirst: true, //是否属于一级路由
meta: {
title: '首页', //面包屑名称(此页面确认不需要放置在面包屑可以不添加此属性;如果获取不到title 会自动 获取 name 作为面包屑名称)
@@ -61,7 +61,7 @@ const routes = [{
{
path: '/agent/supplyList',
name: '供货价格',
- component: () => import( /* webpackChunkName: "register" */ '../views/agent/supplyList.vue'),
+ component: () => import( /* webpackChunkName: "supplyList" */ '../views/agent/supplyList.vue'),
isFirst: true, //是否属于一级路由
meta: {
title: '供货价格', //面包屑名称(此页面确认不需要放置在面包屑可以不添加此属性;如果获取不到title 会自动 获取 name 作为面包屑名称)
@@ -72,7 +72,7 @@ const routes = [{
{
path: '/agent/domainList',
name: '域名列表',
- component: () => import( /* webpackChunkName: "register" */ '../views/agent/domainList.vue'),
+ component: () => import( /* webpackChunkName: "domainList" */ '../views/agent/domainList.vue'),
isFirst: true, //是否属于一级路由
meta: {
title: '首页', //面包屑名称(此页面确认不需要放置在面包屑可以不添加此属性;如果获取不到title 会自动 获取 name 作为面包屑名称)
@@ -82,7 +82,7 @@ const routes = [{
{
path: '/agent/noticeList',
name: '首页',
- component: () => import( /* webpackChunkName: "register" */ '../views/agent/noticeList.vue'),
+ component: () => import( /* webpackChunkName: "noticeList" */ '../views/agent/noticeList.vue'),
isFirst: true, //是否属于一级路由
meta: {
title: '系统通知', //面包屑名称(此页面确认不需要放置在面包屑可以不添加此属性;如果获取不到title 会自动 获取 name 作为面包屑名称)
@@ -116,7 +116,7 @@ const routes = [{
path: '/agent/checkOrderList',
name: '查重订单',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/checkOrderList.vue'),
+ component: () => import( /* webpackChunkName: "checkOrderList" */ '../views/agent/checkOrderList.vue'),
props: {
list_type: 'check',
},
@@ -130,7 +130,7 @@ const routes = [{
path: '/agent/aiOrderList',
name: 'AI写作订单',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/checkOrderList.vue'),
+ component: () => import( /* webpackChunkName: "aiOrderList" */ '../views/agent/checkOrderList.vue'),
props: {
list_type: 'ai',
},
@@ -144,7 +144,7 @@ const routes = [{
path: '/agent/ocpcList',
name: 'OCPC订单',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/ocpcList.vue'),
+ component: () => import( /* webpackChunkName: "ocpcList" */ '../views/agent/ocpcList.vue'),
meta: {
title: 'OCPC订单',
breadcrumbParent: '首页',
@@ -167,7 +167,7 @@ const routes = [{
name: '添加站点',
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteAdd.vue'),
+ component: () => import( /* webpackChunkName: "siteAdd" */ '../views/agent/siteAdd.vue'),
meta: {
title: '添加站点',
hideBreadcrumb: true, // 一级页面不显示面包屑
@@ -177,7 +177,7 @@ const routes = [{
path: '/agent/siteAddFinally',
name: '添加站点-添加服务',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteServiceAdd.vue'),
+ component: () => import( /* webpackChunkName: "siteAddFinally" */ '../views/agent/siteServiceAdd.vue'),
meta: {
title: '添加服务',
breadcrumbParent: '添加站点',
@@ -188,7 +188,7 @@ const routes = [{
path: '/agent/siteServiceList',
name: '服务列表',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteServiceList.vue'),
+ component: () => import( /* webpackChunkName: "siteServiceList" */ '../views/agent/siteServiceList.vue'),
meta: {
title: '服务列表',
breadcrumbParent: '站点列表',
@@ -199,7 +199,7 @@ const routes = [{
path: '/agent/siteServiceAdd',
name: '服务列表-添加',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteServiceAdd.vue'),
+ component: () => import( /* webpackChunkName: "siteServiceAdd" */ '../views/agent/siteServiceAdd.vue'),
meta: {
title: '添加服务',
breadcrumbParent: '服务列表',
@@ -210,7 +210,7 @@ const routes = [{
path: '/agent/siteServiceEdit',
name: '服务列表-修改',
isFirst: true,
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteServiceEdit.vue'),
+ component: () => import( /* webpackChunkName: "siteServiceEdit" */ '../views/agent/siteServiceEdit.vue'),
meta: {
title: '修改服务',
breadcrumbParent: '服务列表',
@@ -220,7 +220,7 @@ const routes = [{
{
path: '/agent/siteBaseSetting',
name: '站点基本设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteBaseSetting.vue'),
+ component: () => import( /* webpackChunkName: "siteBaseSetting" */ '../views/agent/siteBaseSetting.vue'),
meta: {
title: '站点设置',
breadcrumbParent: '站点列表' // 手动指定父级
@@ -232,7 +232,7 @@ const routes = [{
{
path: '/agent/siteMobileSetting',
name: '移动端设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteMobileSetting.vue'),
+ component: () => import( /* webpackChunkName: "siteMobileSetting" */ '../views/agent/siteMobileSetting.vue'),
meta: {
title: '站点设置',
breadcrumbParent: '站点列表' // 手动指定父级
@@ -244,7 +244,7 @@ const routes = [{
{
path: '/agent/siteSemSetting',
name: '营销推广',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteSemSetting.vue'),
+ component: () => import( /* webpackChunkName: "siteSemSetting" */ '../views/agent/siteSemSetting.vue'),
meta: {
title: '站点设置',
breadcrumbParent: '站点列表' // 手动指定父级
@@ -253,7 +253,7 @@ const routes = [{
{
path: '/agent/sitePersonalization',
name: '个性化设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/sitePersonalization.vue'),
+ component: () => import( /* webpackChunkName: "sitePersonalization" */ '../views/agent/sitePersonalization.vue'),
meta: {
title: '站点设置',
breadcrumbParent: '站点列表' // 手动指定父级
@@ -262,7 +262,7 @@ const routes = [{
{
path: '/agent/siteTemplate',
name: '个性化设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/siteTemplate.vue'),
+ component: () => import( /* webpackChunkName: "siteTemplate" */ '../views/agent/siteTemplate.vue'),
// meta: {
// title: '站点设置',
// breadcrumbParent: '站点列表' // 手动指定父级
@@ -275,7 +275,7 @@ const routes = [{
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/payList.vue'),
+ component: () => import( /* webpackChunkName: "payList" */ '../views/agent/payList.vue'),
meta: {
title: '收款方式',
breadcrumbParent: '首页',
@@ -285,7 +285,7 @@ const routes = [{
{
path: '/agent/payInfoSetting',
name: '收款方式设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/payInfoSetting.vue'),
+ component: () => import( /* webpackChunkName: "payInfoSetting" */ '../views/agent/payInfoSetting.vue'),
meta: {
title: '收款方式设置',
breadcrumbParent: '收款方式' // 手动指定父级
@@ -297,7 +297,7 @@ const routes = [{
{
path: '/agent/paySetting',
name: '收款方式设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/paySetting.vue'),
+ component: () => import( /* webpackChunkName: "paySetting" */ '../views/agent/paySetting.vue'),
meta: {
title: '收款方式设置',
breadcrumbParent: '收款方式' // 手动指定父级
@@ -309,7 +309,7 @@ const routes = [{
{
path: '/agent/payCertSetting',
name: '钱款交易设置',
- component: () => import( /* webpackChunkName: "siteList" */ '../views/agent/payCertSetting.vue'),
+ component: () => import( /* webpackChunkName: "payCertSetting" */ '../views/agent/payCertSetting.vue'),
meta: {
title: '钱款交易设置',
breadcrumbParent: '收款方式' // 手动指定父级
diff --git a/src/utils/common.js b/src/utils/common.js
index f2af514..a3a9bf8 100644
--- a/src/utils/common.js
+++ b/src/utils/common.js
@@ -8,11 +8,11 @@ export function setHighActive(dom) {
},1000)
}
-export function getServicePriceDesc(price, price_unit, unit_num) {
+export function getServicePriceDesc(price, price_unit, unit_num, unit_name) {
let unit = 0;
let unit_str = "";
- if (unit_num == 1) return price + price_unit +'/篇';
+ if (unit_num == 1) return price + price_unit +'/'+unit_name;
if (unit_num/10000 < 10) {
unit = Math.ceil(unit_num/10000);
@@ -27,6 +27,6 @@ export function getServicePriceDesc(price, price_unit, unit_num) {
unit_str = unit == 1 ? '百' : unit+'百';
}
- return price + price_unit + "/" +unit_str + "字符";
+ return price + price_unit + "/" +unit_str + unit_name;
}
diff --git a/src/views/agent/ocpcList.vue b/src/views/agent/ocpcList.vue
index 275e9d2..8e20658 100644
--- a/src/views/agent/ocpcList.vue
+++ b/src/views/agent/ocpcList.vue
@@ -12,7 +12,9 @@
-
+
@@ -60,7 +62,7 @@ export default {
siteList: [],
- searchUid: 0,
+ searchUid: '0',
searchSaleid: 0,
}
},
diff --git a/src/views/agent/siteAdd.vue b/src/views/agent/siteAdd.vue
index 2f7e46d..8b9712c 100644
--- a/src/views/agent/siteAdd.vue
+++ b/src/views/agent/siteAdd.vue
@@ -51,7 +51,7 @@
-
+
\ No newline at end of file
diff --git a/src/views/agent/siteList.vue b/src/views/agent/siteList.vue
index 119f5f5..0d48b73 100644
--- a/src/views/agent/siteList.vue
+++ b/src/views/agent/siteList.vue
@@ -12,7 +12,7 @@
:customStyle="{ fontSize: '14px', background: '#fff', borderRadius: '2px', borderColor: '#DFE2E6' }" />