setting.php 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. <?php
  2. /**
  3. * @link:http://www.gdqijianshi.com/
  4. * @copyright: Copyright (c) 2020 广东七件事集团
  5. * Created by PhpStorm
  6. * Author: lun
  7. * Date: 2021-09-15
  8. * Time: 12:36
  9. */
  10. use common\helpers\ComponentHelper;
  11. ComponentHelper::loadComponentView('com-image');
  12. ?>
  13. <style lang="scss">
  14. .nav-box {
  15. width: 220px;
  16. height: 45px;
  17. line-height: 45px;
  18. border: 1px solid #000000;
  19. text-align: center;
  20. }
  21. .bottom-icon {
  22. width: 80px;
  23. height: 80px;
  24. margin-right: 10px;
  25. border: 1px solid #eeeeee;
  26. cursor: move;
  27. }
  28. .nav-action {
  29. cursor: pointer;
  30. }
  31. .nav-icon {
  32. width: 30px;
  33. height: 30px;
  34. }
  35. .nav-add {
  36. border: 1px dashed #eeeeee;
  37. cursor: pointer;
  38. }
  39. .nav-add-icon {
  40. font-size: 50px;
  41. color: #eeeeee;
  42. }
  43. .form-body {
  44. padding: 20px 0;
  45. background-color: #fff;
  46. margin-bottom: 20px;
  47. }
  48. .theme-box {
  49. gap: 0 10px;
  50. }
  51. .theme-color {
  52. padding: 4px;
  53. border: 1px solid #e6e6e6;
  54. border-radius: 4px;
  55. font-size: 0;
  56. position: relative;
  57. cursor: pointer;
  58. .theme-color-inner {
  59. background-color: #F54B4A;
  60. width: 57px;
  61. height: 22px;
  62. color: #FFF;
  63. }
  64. }
  65. .theme-color.active {
  66. border-color: #F10009;
  67. }
  68. .button-item {
  69. padding: 9px 25px;
  70. }
  71. .mobile {
  72. width: 404px;
  73. height: 736px;
  74. border-radius: 30px;
  75. background-color: #fff;
  76. padding: 33px 12px;
  77. margin-right: 10px;
  78. }
  79. .screen {
  80. border: 2px solid #F3F5F6;
  81. height: 670px;
  82. width: 380px;
  83. margin: 0 auto;
  84. position: relative;
  85. background-color: #F7F7F7;
  86. }
  87. .screen .head {
  88. position: absolute;
  89. top: 0;
  90. left: 0;
  91. width: 376px;
  92. height: 60px;
  93. line-height: 60px;
  94. font-size: 18px;
  95. font-weight: bolder;
  96. text-align: center;
  97. }
  98. .screen .foot {
  99. position: absolute;
  100. bottom: 0;
  101. left: 0;
  102. width: 376px;
  103. /*padding: 5px 25px;*/
  104. height: 45px;
  105. /*display: flex;*/
  106. /*text-align: center;*/
  107. /*justify-content: space-between;*/
  108. /*font-size: 11px;*/
  109. }
  110. .screen .foot .nav-icon {
  111. height: 20px;
  112. width: 20px;
  113. }
  114. .screen .foot .nav-icon+div {
  115. margin-top: -10px;
  116. }
  117. .title {
  118. padding: 18px 20px;
  119. border-bottom: 1px solid #F3F3F3;
  120. background-color: #fff;
  121. }
  122. .mall-bg {
  123. position: absolute;
  124. top: 50px;
  125. width: 100%;
  126. height: 180px;
  127. background-size: 100%;
  128. background-repeat: no-repeat;
  129. }
  130. .el-color-picker__trigger {
  131. border-radius: 50%;
  132. padding: 3px;
  133. }
  134. .el-color-picker__color {
  135. border-radius: 50%;
  136. }
  137. .el-color-picker__color-inner {
  138. border-radius: 50%;
  139. }
  140. .el-color-picker__icon {
  141. display: none;
  142. }
  143. .preview_box {
  144. padding: 0 25px 30px;
  145. flex-wrap: wrap;
  146. }
  147. .preview_common {
  148. width: 282px;
  149. height: 590px;
  150. margin-right: 50px;
  151. position: relative;
  152. }
  153. .goodsDetail_box {
  154. background: url('resources/img/mall/globalSet/goodsDetail.png');
  155. }
  156. .goodsDetail_price {
  157. font-weight: 600;
  158. font-size: 15px;
  159. position: absolute;
  160. top: 328px;
  161. left: 10px;
  162. align-items: center;
  163. }
  164. .goodsDetail_coupon {
  165. font-size: 12px;
  166. position: absolute;
  167. top: 416px;
  168. left: 37px;
  169. }
  170. .btn_capsule {
  171. position: absolute;
  172. bottom: 13px;
  173. right: 3px;
  174. font-size: 12px;
  175. text-align: center;
  176. line-height: 28px;
  177. }
  178. .btn_capsule_left {
  179. width: 80px;
  180. height: 28px;
  181. border-radius: 30px 0 0 30px;
  182. }
  183. .btn_capsule_right {
  184. width: 80px;
  185. height: 28px;
  186. color: #fff;
  187. border-radius: 0px 30px 30px 0px;
  188. }
  189. .sku_box {
  190. background: url('resources/img/mall/globalSet/sku.png');
  191. }
  192. .sku_price {
  193. position: absolute;
  194. top: 255px;
  195. left: 93px;
  196. }
  197. .sku_item {
  198. width: 75px;
  199. height: 26px;
  200. border-radius: 4px;
  201. position: absolute;
  202. text-align: center;
  203. line-height: 24px;
  204. top: 355px;
  205. left: 12px;
  206. font-size: 12px;
  207. }
  208. .sure_btn {
  209. position: absolute;
  210. bottom: 6px;
  211. left: 50%;
  212. transform: translateX(-50%);
  213. width: 250px;
  214. height: 25px;
  215. color: #fff;
  216. border-radius: 40px;
  217. text-align: center;
  218. line-height: 25px;
  219. font-size: 12px;
  220. letter-spacing: 1px;
  221. }
  222. .tab_box {
  223. background: url('resources/img/mall/globalSet/tab.png');
  224. }
  225. .tab_item {
  226. position: absolute;
  227. left: 69px;
  228. top: 79px;
  229. font-size: 11px;
  230. transform: scale(0.8);
  231. }
  232. .tab_line {
  233. position: absolute;
  234. width: 25px;
  235. height: 1px;
  236. bottom: -6px;
  237. left: 50%;
  238. transform: translateX(-50%);
  239. }
  240. .coupon_box {
  241. background: url('resources/img/mall/globalSet/coupon.png');
  242. }
  243. .coupon_item {
  244. position: absolute;
  245. top: 402px;
  246. left: 50%;
  247. transform: translateX(-50%);
  248. width: 270px;
  249. height: 80px;
  250. border-radius: 5px;
  251. background-size: cover !important;
  252. }
  253. .coupon_item2 {
  254. top: 490px;
  255. }
  256. .coupon_left {
  257. width: 108px;
  258. flex-direction: column;
  259. color: #fff;
  260. }
  261. .coupon_right {
  262. flex: 1;
  263. font-size: 12px;
  264. flex-direction: column;
  265. padding-left: 5px;
  266. }
  267. .receive_coupon {
  268. border: 1px solid #bc0100;
  269. border-radius: 30px;
  270. padding: 1px 12px;
  271. color: #bc0100;
  272. margin-right: 3px;
  273. }
  274. /* 公共样式 */
  275. .flex {
  276. display: -webkit-box;
  277. display: -webkit-flex;
  278. /* #ifndef APP-NVUE */
  279. display: flex;
  280. /* #endif */
  281. }
  282. .flex-x-center {
  283. display: -webkit-box;
  284. display: -webkit-flex;
  285. /* #ifndef APP-NVUE */
  286. display: flex;
  287. /* #endif */
  288. -webkit-box-pack: center;
  289. -webkit-justify-content: center;
  290. -ms-flex-pack: center;
  291. justify-content: center;
  292. }
  293. .flex-x-between {
  294. display: -webkit-box;
  295. display: -webkit-flex;
  296. /* #ifndef APP-NVUE */
  297. display: flex;
  298. /* #endif */
  299. -webkit-box-pack: space-between;
  300. -webkit-justify-content: space-between;
  301. -ms-flex-pack: space-between;
  302. justify-content: space-between;
  303. }
  304. .flex-y-center {
  305. display: -webkit-box;
  306. display: -webkit-flex;
  307. /* #ifndef APP-NVUE */
  308. display: flex;
  309. /* #endif */
  310. -webkit-box-align: center;
  311. -webkit-align-items: center;
  312. -ms-flex-align: center;
  313. -ms-grid-row-align: center;
  314. align-items: center;
  315. }
  316. /* 溢出隐藏 */
  317. .over1 {
  318. text-overflow: -o-ellipsis-lastline;
  319. overflow: hidden;
  320. text-overflow: ellipsis;
  321. display: -webkit-box;
  322. -webkit-line-clamp: 1;
  323. -webkit-box-orient: vertical;
  324. }
  325. .over2 {
  326. text-overflow: -o-ellipsis-lastline;
  327. overflow: hidden;
  328. text-overflow: ellipsis;
  329. display: -webkit-box;
  330. -webkit-line-clamp: 2;
  331. -webkit-box-orient: vertical;
  332. }
  333. </style>
  334. <div id="app" v-cloak>
  335. <el-card shadow="never" style="border:0" body-style="background-color: #f3f3f3;padding: 10px 0 0;" v-loading="cardLoading">
  336. <div slot="header">
  337. <div>
  338. <span>全局颜色设置</span>
  339. </div>
  340. </div>
  341. <div style="display: flex;">
  342. <div style="width: 100%;">
  343. <el-form :model="ruleForm" size="small" ref="ruleForm" label-width="120px">
  344. <div class="title">全局设置</div>
  345. <el-row class='form-body'>
  346. <el-col>
  347. <div class="flex">
  348. <el-form-item label="全局文字颜色" prop="color">
  349. <el-color-picker color-format="hex" size="mini" v-model="ruleForm.global_text_color" :predefine="predefineColors"></el-color-picker>
  350. <!-- <div class="flex theme-box">
  351. <div class="theme-color" :class="ruleForm.global_text_color == item && 'active'" v-for="item in themeStyleList" @click="changeTheme(item)">
  352. <div class="theme-color-inner" :style="`background-color:${item}`" >{{item}}</div>
  353. </div>
  354. </div> -->
  355. </el-form-item>
  356. <div style="margin: 6px 0 0 30px;color:#C5C8CE;font-size:13px">建议:自定义风格不要设置成白色!</div>
  357. </div>
  358. <div class="flex">
  359. <el-form-item label="按需DIY">
  360. <el-col :span="12">
  361. <el-switch v-model="ruleForm.global_goods_need" :active-value="1" :inactive-value="0"></el-switch>
  362. </el-col>
  363. </el-form-item>
  364. <!-- <div style="margin: 6px 0 0 20px;color:#C5C8CE;font-size:13px">开启之后,商品信息将默认不展示领券、库存、服务、规格等选择框</div>-->
  365. </div>
  366. <div class="preview_box flex">
  367. <div class="goodsDetail_box preview_common">
  368. <div class="goodsDetail_price flex flex-x-bottom" :style="{color:ruleForm.global_text_color}">
  369. &yen;2899<span style="font-size: 12px;display:inline-block;transform:scale(0.9);margin-top:3px">起</span>
  370. </div>
  371. <div class='goodsDetail_coupon'>
  372. <div class="flex flex-y-center" :style="{color:ruleForm.global_text_color}">
  373. <i style="font-size: 16px;" class="iconfont icon-youhuiquan"></i>
  374. <div style="transform: scale(0.85);">满10减1</div>
  375. </div>
  376. </div>
  377. <div class='btn_capsule flex'>
  378. <div class='btn_capsule_left' :style="{color:ruleForm.global_text_color,border:'1px solid'+ruleForm.global_text_color}">加入购物车</div>
  379. <div class="btn_capsule_right" :style="{background:ruleForm.global_text_color}">立即购买</div>
  380. </div>
  381. </div>
  382. <!-- 多规格 -->
  383. <div class="sku_box preview_common">
  384. <div class='sku_price' :style="{color:ruleForm.global_text_color}">&yen;2988.00</div>
  385. <div class='sku_item' :style="{color:ruleForm.global_text_color,border:'1px solid'+ruleForm.global_text_color}">黑色</div>
  386. <div class='sure_btn' :style="{background:ruleForm.global_text_color}">确定</div>
  387. </div>
  388. <!-- 订单 -->
  389. <div class="tab_box preview_common">
  390. <div class='tab_item' :style="{color:ruleForm.global_text_color}">
  391. 待付款
  392. <div class="tab_line" :style="{background:ruleForm.global_text_color}"></div>
  393. </div>
  394. </div>
  395. </div>
  396. <!-- <el-form-item label="优惠券图片" prop="coupon_pic_url">-->
  397. <!-- <com-attachment :multiple="false" :max="1" @selected="couponPicUrl">-->
  398. <!-- <el-tooltip class="item" effect="dark" content="建议尺寸:691*196" placement="top">-->
  399. <!-- <el-button size="mini">选择文件</el-button>-->
  400. <!-- </el-tooltip>-->
  401. <!-- </com-attachment>-->
  402. <!-- <com-image width="80px" height="80px" mode="aspectFill" :src="ruleForm.coupon_pic_url"></com-image>-->
  403. <!-- </el-form-item>-->
  404. <!-- <div class="preview_box flex">-->
  405. <!-- <div class="coupon_box preview_common">-->
  406. <!-- <div class="coupon_item flex" :style="{background:'url('+(ruleForm.coupon_pic_url || 'resources/img/mall/globalSet/couponBg.png')+')'}">-->
  407. <!-- <div class='coupon_left flex flex-y-center flex-x-center'>-->
  408. <!-- <div style="margin-bottom: 4px;">-->
  409. <!-- &yen;<span style="font-size: 19px;font-weight:600">1.00</span>-->
  410. <!-- </div>-->
  411. <!-- <div style="font-size: 12px;">满100.00元可用</div>-->
  412. <!-- </div>-->
  413. <!-- <div class="coupon_right flex flex-x-center">-->
  414. <!-- <div style="margin-bottom: 10px;font-size:14px">满10减1</div>-->
  415. <!-- <div class='flex flex-x-between flex-y-center'>-->
  416. <!-- <div>领取1天后过期</div>-->
  417. <!-- <div class='receive_coupon'>领取</div>-->
  418. <!-- </div>-->
  419. <!-- </div>-->
  420. <!-- </div>-->
  421. <!-- <div class="coupon_item coupon_item2 flex" :style="{background:'url('+(ruleForm.coupon_pic_url || 'resources/img/mall/globalSet/couponBg.png')+')'}">-->
  422. <!-- <div class='coupon_left flex flex-y-center flex-x-center'>-->
  423. <!-- <div style="margin-bottom: 4px;">-->
  424. <!-- &yen;<span style="font-size: 19px;font-weight:600">1.00</span>-->
  425. <!-- </div>-->
  426. <!-- <div style="font-size: 12px;">满100.00元可用</div>-->
  427. <!-- </div>-->
  428. <!-- <div class="coupon_right flex flex-x-center">-->
  429. <!-- <div style="margin-bottom: 10px;font-size:14px">满10减1</div>-->
  430. <!-- <div class='flex flex-x-between flex-y-center'>-->
  431. <!-- <div></div>-->
  432. <!-- <div class='receive_coupon'>领取</div>-->
  433. <!-- </div>-->
  434. <!-- </div>-->
  435. <!-- </div>-->
  436. <!-- </div>-->
  437. <!-- </div>-->
  438. </el-col>
  439. </el-row>
  440. <!-- <el-form-item label="首页显示状态栏">-->
  441. <!-- <el-switch v-model="ruleForm.is_show_statusbar" active-value="1" inactive-value="0" active-text="是" inactive-text="否">-->
  442. <!-- </el-switch>-->
  443. <!-- </el-form-item>-->
  444. <el-button class="button-item" :loading="btnLoading" type="primary" @click="store('ruleForm')" size="small">保存
  445. </el-button>
  446. <el-button class="button-item" :loading="btnLoading" size="small" plain @click="restoreDefault">
  447. 恢复默认
  448. </el-button>
  449. <div style="height: 30px;"></div>
  450. </el-form>
  451. </div>
  452. </div>
  453. </el-card>
  454. </div>
  455. <!-- <script src="//cdn.jsdelivr.net/npm/sortablejs@1.8.3/Sortable.min.js"></script> -->
  456. <script src="/resources/js/Sortable.min.js"></script>
  457. <!-- CDNJS :: Vue.Draggable (https://cdnjs.com/) -->
  458. <script src="<?= Yii::$app->request->baseUrl ?>/resources/unpkg/vuedraggable@2.18.1/dist/vuedraggable.umd.min.js"></script>
  459. <script>
  460. const app = new Vue({
  461. el: '#app',
  462. data() {
  463. return {
  464. ruleForm: {
  465. coupon_pic_url: '',
  466. global_text_color: '#F54B4A',//#bc0100
  467. global_goods_need:0
  468. // is_show_statusbar: 0
  469. },
  470. predefineColors: ['#F54B4A','#4985E9','#AA4DF1','#1EB83D','#FF508C'],
  471. btnLoading: false,
  472. cardLoading: false,
  473. activeName: 'first',
  474. isNavAction: false, //编辑删除框是否显示
  475. navIconIndex: -1, //控制导航编辑隐藏显示
  476. navEditIndex: -1, //当前编辑的导航索引
  477. dialogFormVisible: false,
  478. dialogRuleForm: {
  479. active_color: '#ff4544',
  480. active_icon: '',
  481. color: '#888',
  482. text: '',
  483. icon: '',
  484. url: '',
  485. params: [],
  486. },
  487. default_setting: {
  488. global_text_color: '#F54B4A',
  489. // is_show_statusbar: 0,
  490. coupon_pic_url: '',
  491. global_goods_need:0
  492. },
  493. themeStyleList: ['#F54B4A','#4985E9','#AA4DF1','#1EB83D','#FF508C']
  494. };
  495. },
  496. methods: {
  497. changeTheme(theme){
  498. this.ruleForm.global_text_color = theme
  499. },
  500. store(formName) {
  501. this.$refs[formName].validate((valid) => {
  502. let self = this;
  503. if (valid) {
  504. self.btnLoading = true;
  505. request({
  506. params: {
  507. r: 'mall/decorate/setting'
  508. },
  509. method: 'post',
  510. data: {
  511. form: self.ruleForm,
  512. }
  513. }).then(e => {
  514. self.btnLoading = false;
  515. if (e.data.code == 0) {
  516. self.$message.success(e.data.msg);
  517. } else {
  518. self.$message.error(e.data.msg);
  519. }
  520. }).catch(e => {
  521. self.$message.error(e.data.msg);
  522. self.btnLoading = false;
  523. });
  524. } else {
  525. console.log('error submit!!');
  526. return false;
  527. }
  528. });
  529. },
  530. getDetail() {
  531. let self = this;
  532. self.cardLoading = true;
  533. request({
  534. params: {
  535. r: 'mall/decorate/setting',
  536. },
  537. method: 'get',
  538. }).then(e => {
  539. self.cardLoading = false;
  540. if (e.data.code == 0) {
  541. if (!isEmpty(e.data.data)) self.ruleForm = e.data.data;
  542. } else {
  543. self.$message.error(e.data.msg);
  544. }
  545. }).catch(e => {
  546. console.log(e);
  547. });
  548. },
  549. handleClick(tab, event) {
  550. console.log(tab, event);
  551. },
  552. // 鼠标移入事件
  553. navIconEnter(index) {
  554. this.navIconIndex = index;
  555. },
  556. // 鼠标离开事件
  557. navIconAway() {
  558. this.navIconIndex = -1;
  559. },
  560. // 导航图标编辑
  561. navIconEdit(index) {
  562. this.dialogFormVisible = true;
  563. if (index != -1) {
  564. this.navEditIndex = index;
  565. this.dialogRuleForm = this.ruleForm.navs[index]
  566. }
  567. },
  568. // 弹框关闭事件回调
  569. dialogColse() {
  570. this.navEditIndex = -1;
  571. this.clearDialogData();
  572. },
  573. clearDialogData() {
  574. this.dialogRuleForm = {
  575. active_color: '#ff4544',
  576. active_icon: '',
  577. color: '#888',
  578. text: '',
  579. icon: '',
  580. url: '',
  581. params: [],
  582. };
  583. },
  584. // 导航图标删除
  585. navIconDestroy(index) {
  586. this.ruleForm.navs.splice(index, 1)
  587. },
  588. dialogFormSubmit(formName) {
  589. this.$refs[formName].validate((valid) => {
  590. let self = this;
  591. if (valid) {
  592. self.dialogFormVisible = false;
  593. if (self.navEditIndex != -1) {
  594. self.ruleForm.navs[self.navEditIndex] = self.dialogRuleForm;
  595. } else {
  596. self.ruleForm.navs.push(self.dialogRuleForm)
  597. }
  598. self.navEditIndex = -1;
  599. this.clearDialogData();
  600. } else {
  601. console.log('error submit!!');
  602. return false;
  603. }
  604. });
  605. },
  606. // 添加图标
  607. iconUrl(e) {
  608. if (e.length) {
  609. this.dialogRuleForm.icon = e[0].url
  610. this.$refs.dialogRuleForm.validateField('icon');
  611. }
  612. },
  613. couponPicUrl(e) {
  614. if (e.length) {
  615. // this.ruleForm.coupon_pic_url = e[0].url;
  616. this.$set(this.ruleForm, 'coupon_pic_url', e[0].url);
  617. console.log(e[0].url, 'e[0].url')
  618. this.$refs.ruleForm.validateField('coupon_pic_url');
  619. }
  620. },
  621. // 添加选择状态图标
  622. activeIconUrl(e) {
  623. if (e.length) {
  624. this.dialogRuleForm.active_icon = e[0].url
  625. this.$refs.dialogRuleForm.validateField('active_icon');
  626. }
  627. },
  628. // 导航链接选择
  629. selectNavUrl(e) {
  630. let self = this;
  631. e.forEach(function(item, index) {
  632. self.dialogRuleForm.url = item.new_link_url;
  633. self.dialogRuleForm.open_type = !item.open_type || item.open_type === 'navigate' ? 'redirect' : item.open_type;
  634. self.dialogRuleForm.params = item.params;
  635. })
  636. },
  637. // 恢复默认
  638. restoreDefault() {
  639. let self = this;
  640. self.$confirm('恢复默认, 是否继续?', '提示', {
  641. confirmButtonText: '确定',
  642. cancelButtonText: '取消',
  643. type: 'warning'
  644. }).then(() => {
  645. self.btnLoading = true;
  646. request({
  647. params: {
  648. r: 'mall/decorate/setting',
  649. },
  650. method: 'post',
  651. data: {
  652. form: self.default_setting
  653. }
  654. }).then(e => {
  655. self.btnLoading = false;
  656. if (e.data.code === 0) {
  657. self.$message.success(e.data.msg);
  658. self.getDetail();
  659. } else {
  660. self.$message.error(e.data.msg);
  661. }
  662. }).catch(e => {
  663. console.log(e);
  664. });
  665. }).catch(() => {
  666. self.$message.info('已取消')
  667. });
  668. },
  669. navClick(index) {
  670. this.navCurrent = index
  671. }
  672. },
  673. mounted: function() {
  674. this.getDetail();
  675. }
  676. });
  677. </script>