index.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <div id="app" v-cloak>
  2. <el-card shadow="never" style="border:0;min-width: 1200px;" body-style="background-color: #f3f3f3;padding: 10px 0 0;">
  3. <div slot="header">
  4. <span>导入分类</span>
  5. <div style="float: right; margin: -5px 0">
  6. <el-button type="primary" size="small" :disabled="btnLoading" v-loading="btnLoading" @click="onSubmit">
  7. {{btnLoading ? '导入中...' : '导入分类'}}
  8. </el-button>
  9. </div>
  10. </div>
  11. </el-card>
  12. </div>
  13. <script>
  14. const app = new Vue({
  15. el: '#app',
  16. data: {
  17. loading: false,
  18. activeName: '-1',
  19. btnLoading: false,
  20. },
  21. mounted() {},
  22. methods: {
  23. onSubmit() {
  24. this.btnLoading = true
  25. request({
  26. method: 'post',
  27. params: {
  28. r: 'qi-shang-tong/category/import',
  29. },
  30. }).then(e => {
  31. this.btnLoading = false;
  32. if (e.data.code === 0) {
  33. this.$message.success(e.data.msg);
  34. } else {
  35. this.$message.error(e.data.msg);
  36. }
  37. }).catch(e => {
  38. this.btnLoading = false;
  39. });
  40. },
  41. },
  42. });
  43. </script>
  44. <style>
  45. .set-el-button {
  46. padding: 0 !important;
  47. border: 0;
  48. margin: 0 5px;
  49. }
  50. .sort-input {
  51. width: 100%;
  52. background-color: #F3F5F6;
  53. height: 32px;
  54. }
  55. .sort-input span {
  56. height: 32px;
  57. width: 100%;
  58. line-height: 32px;
  59. display: inline-block;
  60. padding: 0 10px;
  61. font-size: 13px;
  62. }
  63. .sort-input .el-input__inner {
  64. height: 32px;
  65. line-height: 32px;
  66. background-color: #F3F5F6;
  67. float: left;
  68. padding: 0 10px;
  69. border: 0;
  70. }
  71. .table-body {
  72. padding: 20px;
  73. background-color: #fff;
  74. }
  75. .table-info .el-button {
  76. padding: 0 !important;
  77. border: 0;
  78. margin: 0 5px;
  79. }
  80. .input-item {
  81. margin: 0 0 20px;
  82. }
  83. .input-item-name {
  84. margin-right: 5px;
  85. }
  86. .input-search {
  87. margin-right: 30px;
  88. }
  89. .input-item .el-input-group__append {
  90. background-color: #fff;
  91. border-left: 0;
  92. width: 10%;
  93. padding: 0;
  94. }
  95. .input-item .el-input-group__append .el-button {
  96. padding: 0;
  97. }
  98. .input-item .el-input-group__append .el-button {
  99. margin: 0;
  100. }
  101. .data-pop-info {
  102. /* padding: 18px 15px 30px; */
  103. color: #333;
  104. }
  105. .data-pop-mode {
  106. background: #F8F8F8;
  107. border-radius: 4px;
  108. margin-bottom: 10px;
  109. }
  110. .data-pop-top {
  111. height: 90px;
  112. }
  113. .data-price {
  114. width: 200px;
  115. flex-direction: column;
  116. border-right: 1px solid #E5E5E5;
  117. }
  118. .data-info {
  119. flex: 1;
  120. padding: 22px 15px;
  121. font-size: 16px;
  122. }
  123. .data-info-name {
  124. display: inline-block;
  125. text-align: end;
  126. }
  127. .data-pop-detail {
  128. padding: 15px 18px;
  129. }
  130. .data-detail-mode {
  131. min-width: 33%;
  132. flex-shrink: 0;
  133. text-align: center;
  134. margin-top: 16px;
  135. line-height: 26px;
  136. font-size: 16px;
  137. }
  138. .share-pop-model {
  139. margin-top: 20px;
  140. }
  141. .share-name {
  142. width: 90px;
  143. display: inline-block;
  144. margin-right: 18px;
  145. text-align: end;
  146. }
  147. .flex-y-center {
  148. display: -webkit-box;
  149. display: -webkit-flex;
  150. display: flex;
  151. -webkit-box-align: center;
  152. -webkit-align-items: center;
  153. -ms-flex-align: center;
  154. -ms-grid-row-align: center;
  155. align-items: center;
  156. }
  157. </style>
  158. <style>
  159. .el-tabs__header {
  160. font-size: 16px;
  161. }
  162. .table-body {
  163. padding: 20px;
  164. background-color: #fff;
  165. }
  166. .table-body .el-button {
  167. padding: 0 !important;
  168. border: 0;
  169. margin: 0 5px;
  170. }
  171. .input-item {
  172. width: 250px;
  173. margin: 0 0 20px;
  174. display: inline-block;
  175. }
  176. .input-item .el-input__inner {
  177. border-right: 0;
  178. }
  179. .input-item .el-input__inner:hover {
  180. border: 1px solid #dcdfe6;
  181. border-right: 0;
  182. outline: 0;
  183. }
  184. .input-item .el-input__inner:focus {
  185. border: 1px solid #dcdfe6;
  186. border-right: 0;
  187. outline: 0;
  188. }
  189. .input-item .el-input-group__append {
  190. background-color: #fff;
  191. border-left: 0;
  192. width: 10%;
  193. padding: 0;
  194. }
  195. .input-item .el-input-group__append .el-button {
  196. padding: 0;
  197. }
  198. .input-item .el-input-group__append .el-button {
  199. margin: 0;
  200. }
  201. .batch {
  202. margin: 0 0 20px;
  203. display: inline-block;
  204. }
  205. .batch .el-button {
  206. padding: 9px 15px !important;
  207. }
  208. .item-box {
  209. margin-right: 20px;
  210. }
  211. .item-box .label {
  212. margin-right: 8px;
  213. }
  214. .item-box .symbol {
  215. margin: 0 6px;
  216. }
  217. .form-nickname {
  218. width: 180px;
  219. white-space: nowrap;
  220. overflow: hidden;
  221. text-overflow: ellipsis;
  222. }
  223. .index-video-url {
  224. width: 300px;
  225. }
  226. .index-video-url video {
  227. width: 100%;
  228. }
  229. .index-related-info {
  230. width: 500px;
  231. }
  232. .video-top {
  233. width: 100%;
  234. display: flex;
  235. align-items: flex-start;
  236. box-sizing: border-box;
  237. padding: 20px;
  238. /* opacity: .5; */
  239. background-color: #FFFFFF;
  240. }
  241. .video-top .top-right {
  242. line-height: 26px;
  243. }
  244. .video-top .top-right .top-title {
  245. font-size: 18px;
  246. white-space: nowrap;
  247. overflow: hidden;
  248. text-overflow: ellipsis;
  249. width: 360px;
  250. }
  251. .video-top .top-right .wrapper {
  252. display: flex;
  253. /* align-items: flex-start; */
  254. }
  255. .video-top .top-right .wrapper .to-copy {
  256. /* color: #03C5FF; */
  257. margin-left: 20px;
  258. }
  259. .video-top .top-right .detail-price {
  260. color: #BC0100;
  261. font-size: 18px;
  262. font-family: Microsoft YaHei;
  263. font-weight: bold;
  264. }
  265. /* .atooltip {
  266. background: #FFFFFF !important;
  267. border: none !important;
  268. } */
  269. .el-table th>.cell {
  270. color: #333;
  271. font-weight: bold;
  272. font-size: 14px;
  273. }
  274. .el-table__footer-wrapper,
  275. .el-table__header-wrapper {
  276. border-bottom: 1.4px solid #D6D6D6;
  277. }
  278. .price_col {
  279. color: #FF5D05;
  280. }
  281. </style>