diff --git a/package.json b/package.json index 9e7628087e02ac0e3b3adbdfc7c8b72db958c8f3..3c90effd7c9493c4a1d02d8bcddaa22816e071a9 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "ace-builds": "^1.4.11", "axios": "^0.19.2", "babel-polyfill": "^6.26.0", - "codemirror": "^5.45.0", + "codemirror": "^5.58.2", "compression-webpack-plugin": "^6.0.2", "echarts": "^4.8.0", "echarts-liquidfill": "^2.0.6", @@ -29,6 +29,7 @@ "svg-sprite-loader": "^4.2.6", "thread-loader": "^3.0.0", "vue": "^2.6.10", + "vue-codemirror": "^4.0.6", "vue-cropper": "^0.5.2", "vue-echarts": "^5.0.0-beta.0", "vue-i18n": "^8.17.7", diff --git a/src/assets/css/index.css b/src/assets/css/index.css index 3738387094219f0a78524041d324ad722984af72..71351b91f008f91dd88bdc2564ea719918a184e9 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -268,7 +268,7 @@ div { } .el-tabs__nav-scroll .el-tabs__item { - line-height: 30px !important; + line-height: 38px !important; height: 44px !important; } diff --git a/src/assets/imgs/demo_logo.png b/src/assets/imgs/demo_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..a2ce2353f273cbda4cc6de145f86062ff039a1d2 Binary files /dev/null and b/src/assets/imgs/demo_logo.png differ diff --git a/src/assets/imgs/home_tool_ic_sscj.png b/src/assets/imgs/home_tool_ic_sscj.png new file mode 100644 index 0000000000000000000000000000000000000000..437816487b3b7dc35b4bfaf62462c306f80c5515 Binary files /dev/null and b/src/assets/imgs/home_tool_ic_sscj.png differ diff --git a/src/assets/imgs/ic_banbenhao.png b/src/assets/imgs/ic_banbenhao.png new file mode 100644 index 0000000000000000000000000000000000000000..c179d9c11dbc3e7134754255968085e06e3fde75 Binary files /dev/null and b/src/assets/imgs/ic_banbenhao.png differ diff --git a/src/assets/imgs/tool_ic_shili.png b/src/assets/imgs/tool_ic_shili.png new file mode 100644 index 0000000000000000000000000000000000000000..6caf2b6856b7d30d9f5842063495f1352c924fdf Binary files /dev/null and b/src/assets/imgs/tool_ic_shili.png differ diff --git a/src/assets/imgs/tool_ic_tips.png b/src/assets/imgs/tool_ic_tips.png new file mode 100644 index 0000000000000000000000000000000000000000..ef54b892a7c09e2878789a537c61b7b2a9c7bfa0 Binary files /dev/null and b/src/assets/imgs/tool_ic_tips.png differ diff --git a/src/assets/imgs/wdjb_ic_czbs.png b/src/assets/imgs/wdjb_ic_czbs.png new file mode 100644 index 0000000000000000000000000000000000000000..ebf6bfa13bd3f3a498b70c814b049c588795d1d1 Binary files /dev/null and b/src/assets/imgs/wdjb_ic_czbs.png differ diff --git a/src/assets/imgs/wdjb_ic_zhye.png b/src/assets/imgs/wdjb_ic_zhye.png new file mode 100644 index 0000000000000000000000000000000000000000..2cf30054e30ce53ad2b8691abe5fd76fad1b477a Binary files /dev/null and b/src/assets/imgs/wdjb_ic_zhye.png differ diff --git a/src/components/doc-width-nav.vue b/src/components/doc-width-nav.vue new file mode 100644 index 0000000000000000000000000000000000000000..a60ab7dc944a482aacb4dceb4f045822c08f1535 --- /dev/null +++ b/src/components/doc-width-nav.vue @@ -0,0 +1,241 @@ + + + + + diff --git a/src/components/general/upload_file.vue b/src/components/general/upload_file.vue index 4cc80c2ac2bb56589cf8a0eba42ca767f917e7d4..a30354a7773a08e449c80afbc6f99dc2c469568d 100644 --- a/src/components/general/upload_file.vue +++ b/src/components/general/upload_file.vue @@ -114,6 +114,19 @@ export default { }, watch: { list(value) { + this.getFileArray(value); + }, + }, + created() { + if (!this.unique) { + this.anotherData.uniqueCode = this.unique; + } + }, + mounted() { + this.getFileArray(this.list); + }, + methods: { + getFileArray(value) { var getListImg = []; if (value && value.length != 0) { for (var i = 0; i < value.length; i++) { @@ -126,13 +139,6 @@ export default { this.fileArray = [...getListImg]; this.hideUpload = this.fileArray.length >= this.max; }, - }, - created() { - if (!this.unique) { - this.anotherData.uniqueCode = this.unique; - } - }, - methods: { beforeAvatarUpload(file) { if (this.type == "mp3") { const isMP3 = file.type === "audio/mp3"; diff --git a/src/components/new-com/inlineForm.vue b/src/components/new-com/inlineForm.vue index 1498e7fd33365ab4ab3ea3ff87ee2ccd30f26718..e326ed5bf1666ca404811e436f31804a8ab1d6f1 100644 --- a/src/components/new-com/inlineForm.vue +++ b/src/components/new-com/inlineForm.vue @@ -107,20 +107,20 @@ export default { .from_content1 .el-input__inner { background-color: #f7f8f9; } -.el-date-editor.el-range-editor .el-range-input { +.from_content1 .el-date-editor.el-range-editor .el-range-input { background-color: #f7f8f9; width: 80px; } -.el-date-editor.el-range-editor .el-range-separator { +.from_content1 .el-date-editor.el-range-editor .el-range-separator { width: 40px; position: relative; top: 2px; } -.el-date-editor.el-range-editor { +.from_content1 .el-date-editor.el-range-editor { width: 260px; padding: 3px 10px 3px 15px; } -.el-date-editor .el-range__icon { +.from_content1 .el-date-editor .el-range__icon { margin-right: 8px; } \ No newline at end of file diff --git a/src/components/shopping-cart/shopping-cart-cell.vue b/src/components/shopping-cart/shopping-cart-cell.vue index 5807e44023ffe02a461cab74fcec56288cca2e60..51e06e9e5c6848f30d7b18b84acb2b3d0d9ea757 100644 --- a/src/components/shopping-cart/shopping-cart-cell.vue +++ b/src/components/shopping-cart/shopping-cart-cell.vue @@ -125,7 +125,7 @@ - +
- + +
+ +
+
+ 服务信息 规格 - 购买时长 - 操作 + 购买时长 + 小计 + 操作
-

- 技术支持 / 问答中心 / 问答列表 / - 详情 -

+
+ + + 技术支持 + + + 问答中心 + + + 问答列表 + + 详情 + +

{{ question.title }}

@@ -49,34 +59,36 @@
回复
-
-
-
- -
-
-

- {{it.username}} 回复{{it.answered_user}} - - {{deal_time(it.created)}} - -

-
-
回复
-
-
- -
-
-
回复
-
+
还有{{item.children.length-5}}条回复,点击查看
@@ -124,130 +136,7 @@ export default { 'video' ], editstr:'', - answer: [ - { - id: 4, - username: "普通neo", - created: "2020-10-21T15:30:13+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "", - children: [ - { - id: 5, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - { - id: 6, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - { - id: 7, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - { - id: 5, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - { - id: 6, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - { - id: 7, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - ], - }, - { - id: 4, - username: "普通neo", - created: "2020-10-21T15:30:13+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "", - children: [ - { - id: 5, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - { - id: 6, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - { - id: 7, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - { - id: 5, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - { - id: 6, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - { - id: 7, - username: "普通neo", - created: "2020-10-21T15:34:20+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "我是超级管理员", - children: null, - }, - ], - }, - { - id: 4, - username: "普通neo", - created: "2020-10-21T15:30:13+08:00", - content: "这个问题我知道,详情请参见http://www.baidu.com/abc", - answered_user: "", - children: null, - }, - ], + answer: [], }; }, watch: {}, @@ -348,50 +237,43 @@ export default { }) },100) }, - deal_time(time){ - console.log(time); - return time.split('+')[0].replace("T"," ") - }, - showinput(...arg){ - console.log(arg); + deal_time(time){ + console.log(time); + return time.split('+')[0].replace("T"," ") + }, + showinput(...arg){ + console.log(arg); + this.answer_count=[] + this.answer_index='' + this.back_info = '' + if(!arg[1]&&arg[1]!==0){ + this.answer_index = arg[0] + this.$nextTick(()=>{ + var temp = 'input'+arg[0] + this.$refs[temp][0].$refs.input.focus() + }) + }else{ + this.answer_count=arg + this.$nextTick(()=>{ + this.$refs['input'+arg[0]+arg[1]][0].$refs.input.focus(); + }) + + } + }, + clear_index(){ + setTimeout(()=>{ this.answer_count=[] this.answer_index='' this.back_info = '' - if(!arg[1]&&arg[1]!==0){ - this.answer_index = arg[0] - this.$nextTick(()=>{ - var temp = 'input'+arg[0] - this.$refs[temp][0].$refs.input.focus() - }) - }else{ - this.answer_count=arg - this.$nextTick(()=>{ - this.$refs['input'+arg[0]+arg[1]][0].$refs.input.focus(); - }) - - } - }, - clear_index(){ - setTimeout(()=>{ - this.answer_count=[] - this.answer_index='' - this.back_info = '' - },500) - } + },500) + } }, }; + diff --git a/src/pages/technical-support/doc-manage/index.vue b/src/pages/technical-support/doc-manage/index.vue index c654ca63e2dd40314abfa0ea811ce6a2ded07c1b..32002eef0168c7b00feac541d6c4af98627743bc 100644 --- a/src/pages/technical-support/doc-manage/index.vue +++ b/src/pages/technical-support/doc-manage/index.vue @@ -23,11 +23,6 @@ export default { data: () => ({ navList: [], }), - watch: { - "$route.fullPath"(path) { - this.initNavList(); - }, - }, methods: { initNavList() { this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => { diff --git a/src/pages/technical-support/doc/detail.vue b/src/pages/technical-support/doc/detail.vue index a3dc274bdccd24441a27e14828a4be606c15f80e..aab4f7bb6e0b317cf6e8583a4178cc039ec86771 100644 --- a/src/pages/technical-support/doc/detail.vue +++ b/src/pages/technical-support/doc/detail.vue @@ -14,51 +14,28 @@
-
-
-

- {{ title || typeText }} - 更新时间:{{ update_time }} -

-
-
- -
+
@@ -189,102 +96,5 @@ export default { } .main_container { height: calc(100% - 53px); - display: flex; - justify-content: flex-start; - align-items: stretch; -} -.main_container > .part { - background-color: #fff; - border-radius: 10px; - padding-bottom: 20px; - box-sizing: border-box; - box-sizing: 0; -} -.main_container > .part + .part { - margin-left: 20px; -} -.doc_part { - flex-grow: 1; -} -.nav_part { - width: 270px; - flex-shrink: 0; -} -.part_title { - padding: 10px 20px; - position: relative; - display: flex; - justify-content: space-between; - align-items: center; -} -.part_title::after { - content: ""; - position: absolute; - right: 0; - left: 0; - bottom: 0; - border-bottom: 1px solid #e3e5ef; -} -.part_title > span:nth-child(1) { - font-size: 18px; - font-weight: bold; - line-height: 36px; - color: #58617a; - position: relative; - padding-left: 15px; -} -.part_title > span:nth-child(1)::before { - content: ""; - width: 4px; - height: 18px; - background-color: #515fe7; - border-radius: 2px; - position: absolute; - top: 10px; - left: 0; -} -.part_title > span:nth-child(2) { - font-size: 14px; - line-height: 24px; - color: #8890a7; - padding-left: 20px; - background-image: url("../../../assets/imgs/shop_ic_updatetime.png"); - background-repeat: no-repeat; - background-position: left center; -} -.part_content { - height: calc(100% - 76px); - margin-top: 20px; - box-sizing: border-box; - overflow: auto; -} -.doc_content { - padding: 0 20px; -} -.nav_content { - padding-left: 20px; -} -.nav_content > li > a { - display: block; - height: 30px; - padding: 0 20px; - font-size: 14px; - line-height: 30px; - color: #58617a; - text-decoration: none; - cursor: pointer; -} -.nav_content > li.level_1 > a { - color: #242c43; -} -.nav_content > li.level_2 > a { - text-indent: 2em; -} -.nav_content > li.level_3 > a { - text-indent: 4em; -} -.nav_content > li.current > a { - background-color: #e6ebfe; - color: #515fe7; } diff --git a/src/pages/technical-support/sdk-manage/index.vue b/src/pages/technical-support/sdk-manage/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..40b299cdd21654bf92022fd8ce84ef61ae47ee58 --- /dev/null +++ b/src/pages/technical-support/sdk-manage/index.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/pages/technical-support/sdk-manage/list.vue b/src/pages/technical-support/sdk-manage/list.vue new file mode 100644 index 0000000000000000000000000000000000000000..37749dc1ff1c0c7067db8b5bfcdeadaf0ecb9bbf --- /dev/null +++ b/src/pages/technical-support/sdk-manage/list.vue @@ -0,0 +1,432 @@ + + + + + + + diff --git a/src/pages/technical-support/sdk-manage/type/index.vue b/src/pages/technical-support/sdk-manage/type/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..5872e2022611d4b21bf2aa68deb4f4cd49ffa1da --- /dev/null +++ b/src/pages/technical-support/sdk-manage/type/index.vue @@ -0,0 +1,121 @@ + + + diff --git a/src/pages/technical-support/sdk/detail.vue b/src/pages/technical-support/sdk/detail.vue new file mode 100644 index 0000000000000000000000000000000000000000..a27aa76c2195f820baf99c15b06485125864c7b5 --- /dev/null +++ b/src/pages/technical-support/sdk/detail.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/pages/technical-support/sdk/index.vue b/src/pages/technical-support/sdk/index.vue new file mode 100644 index 0000000000000000000000000000000000000000..3ec268d939ceb1ef8b65acf77a3ac88d531dfb13 --- /dev/null +++ b/src/pages/technical-support/sdk/index.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/pages/user/my-coin.vue b/src/pages/user/my-coin.vue new file mode 100644 index 0000000000000000000000000000000000000000..9d3c536333f097956210773f5050ab1443498a73 --- /dev/null +++ b/src/pages/user/my-coin.vue @@ -0,0 +1,377 @@ + + + + + + + \ No newline at end of file diff --git a/src/pages/user/questions-answers/community.vue b/src/pages/user/questions-answers/community.vue index 11f3d6b149d758d2d9ff118a72c3f1877a6c9c6f..ef737ecf91b2327d9fdcc82d3c23957dc21f7141 100644 --- a/src/pages/user/questions-answers/community.vue +++ b/src/pages/user/questions-answers/community.vue @@ -35,7 +35,7 @@ 我的提问

{{ helper.numberFormat(user_info.question_num) - }} + }} + 万 +

-

我的提问

+

我的回答

{{ helper.numberFormat(user_info.answer_num) - }} + }} + 万 +

-

我的提问

+

浏览数

{{ helper.numberFormat(user_info.view_num) - }} + }} + 万 +

@@ -77,11 +77,9 @@ {{ item.content.replace(/<[^<>]+>/g, "") }}

- 删除时间:{{ - helper.dateStringTransform(item.deleted_time) - }} + + 删除时间:{{ helper.dateStringTransform(item.deleted_time) }} + 删除人:{{ item.delete_user }} 删除理由:{{ item.reason }}

diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 7dc225a3964f67c607f705a51eec43fc8c59d61c..0b81c0b41531ce49457d72c079363289c3f42d23 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -1,12 +1,12 @@