index.vue 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993
  1. <template>
  2. <!-- 广告服务 -->
  3. <div>
  4. <!-- 广告页面头部 -->
  5. <AdvertisingHead></AdvertisingHead>
  6. <div class="advertising">
  7. <div class="inner">
  8. <!-- 左侧tab导航 -->
  9. <ul class="nav">
  10. <li class="current" @click="goBuyAd">广告购买</li>
  11. <li @click="goOrderList">工单列表</li>
  12. </ul>
  13. <!-- 广告购买 -->
  14. <div id="buyAd" v-show="adCurrent">
  15. <!-- <AdvertisingBuyAD></AdvertisingBuyAD> -->
  16. <div class="buyAD">
  17. <div class="inner">
  18. <!-- tab栏标题 -->
  19. <div class="tabTitle">
  20. <span class="title">
  21. <span class="number">1</span>
  22. 填写广告信息
  23. </span>
  24. <span class="title">
  25. <span class="icon">
  26. <el-icon>
  27. <DArrowRight />
  28. </el-icon>
  29. </span>
  30. <span class="number">2</span>
  31. 选择相应网站
  32. </span>
  33. <span class="title">
  34. <span class="icon">
  35. <el-icon>
  36. <DArrowRight />
  37. </el-icon>
  38. </span>
  39. <span class="number">3</span>
  40. 提交工单信息
  41. </span>
  42. </div>
  43. <!-- 填写广告信息内容 -->
  44. <div class="textOne" v-show="ad == 1">
  45. <p>
  46. <label for="adName">广告名称:</label>
  47. <el-input id="adName" v-model="adName" style="width: 980px;height: 44px;"
  48. placeholder="请输入广告名称" />
  49. <span v-show="!adName">请输入广告名称。</span>
  50. </p>
  51. <p>
  52. <label for="adLink">广告链接:</label>
  53. <el-input class="adLink" v-model="adLink" style="width: 980px;height: 44px;"
  54. placeholder="请输入广告链接" />
  55. <span v-show="!adLink">请输入广告链接。</span>
  56. </p>
  57. <p>
  58. <label>广告持续时间:</label>
  59. <el-date-picker v-model="startTime" type="date" placeholder="请选择开始时间"
  60. @change=changeStartTime :size="size" />
  61. <strong>至</strong>
  62. <el-date-picker v-model="endTime" type="date" placeholder="请选择结束时间"
  63. @change=changeEndTime :size="size" />
  64. <span v-show="!endTime">请选择广告开始时间和结束时间</span>
  65. </p>
  66. <p>
  67. <label>广告尺寸:</label>
  68. <el-select v-model="adSize" placeholder="请选择广告尺寸" style="width: 975px" size="large"
  69. @change="change">
  70. <el-option v-for="item in options" :key="item.id" :label="item.size"
  71. :value="item.id" :disabled="item.disabled" />
  72. </el-select>
  73. <!-- <el-radio-group v-model="adSize" :size="size">
  74. <el-radio :value="1"> 1200 x 90px </el-radio>
  75. <el-radio :value="2"> 420 x 560px </el-radio>
  76. </el-radio-group> -->
  77. <span v-if="!adSize">请选择广告尺寸。</span>
  78. </p>
  79. <p>
  80. <label>广告图:</label>
  81. <el-upload class="avatar-uploader"
  82. action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
  83. :show-file-list="false" :on-success="handleAvatarSuccess"
  84. :before-upload="beforeAvatarUpload">
  85. <img v-if="imageUrl" :src="imageUrl" class="avatar" />
  86. <el-icon v-else class="avatar-uploader-icon">
  87. <Plus />
  88. </el-icon>
  89. </el-upload>
  90. <!-- <el-upload class="upload-demo" action="http://192.168.1.118:9501"
  91. :on-success="handleUploadSuccess" :on-error="handleUploadError" drag multiple>
  92. <el-icon class="el-icon--upload">
  93. <Plus />
  94. </el-icon>
  95. <div class="el-upload__text">
  96. 选择图片
  97. </div>
  98. </el-upload> -->
  99. <!-- <span >请添加广告图,不大于500k。</span> -->
  100. </p>
  101. </div>
  102. <!-- 选择相应网站的内容 -->
  103. <div class="textTwo" v-show="ad == 2">
  104. <div class="inner">
  105. <!-- 搜索部分 -->
  106. <div class="pageTop">
  107. <div class="left">
  108. 网站:
  109. <el-select v-model="adWeb" placeholder="请选择网站名称" size="large"
  110. style="width: 244px; height: 44px;">
  111. <el-option v-for="item in adWebList" :key="item.id"
  112. :label="item.website_name" :value="item.website_name"
  113. @click="chooseweb(item.id)" />
  114. </el-select>
  115. <a href="#">查看示意图</a>
  116. </div>
  117. <div class="right">
  118. <button class="reset" @click="goReset">重置</button>
  119. <button class="search" @click="goSearch">搜索</button>
  120. </div>
  121. </div>
  122. <!-- 表格部分 -->
  123. <div class="pageTable">
  124. <el-table :data="tableData" border @selection-change="handleSelectionChange"
  125. select-on-indeterminate style="width: 100%"
  126. :header-row-style="{ height: '60px' }" :row-style="{ height: '74px' }"
  127. :header-cell-style="{ backgroundColor: '#fafafa', color: '#666' }">
  128. <el-table-column type="selection" width="152" align="center" />
  129. <el-table-column prop="website_name" label="网站" width="240" />
  130. <el-table-column prop="name" label="广告位名称" width="240" />
  131. <el-table-column prop="size" label="广告尺寸" width="268" />
  132. <el-table-column prop="price" label="金额 (元) / 天" />
  133. </el-table>
  134. </div>
  135. <!-- 页码部分 -->
  136. <div class="pagination">
  137. <HomePagination></HomePagination>
  138. </div>
  139. </div>
  140. </div>
  141. <!-- 提交工单信息 -->
  142. <div class="submit" v-show="ad == 3">
  143. <div class="inner">
  144. <h1>广告信息已提交成功,请等待审核......</h1>
  145. <p>
  146. 工单编号:
  147. <span>{{ orderInformation.$ordernum }}</span>
  148. </p>
  149. <div class="btn">
  150. <button class="check" @click="lookOrder">查看工单</button>
  151. <button class="apply" @click="reapply">再次申请</button>
  152. </div>
  153. <span>如有疑问,可联系客服人员。</span>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. <!-- 工单列表 -->
  160. <div id="orderList" v-show="!adCurrent">
  161. <AdvertisingOrderList></AdvertisingOrderList>
  162. </div>
  163. </div>
  164. <div class="bottom" v-show="ad != 3 && adCurrent">
  165. <div class="inner">
  166. <!-- 总金额 -->
  167. <div class="amount" v-show="ad == 2">
  168. 总金额:
  169. <span>243,210,910</span>
  170. </div>
  171. <!-- 按钮 -->
  172. <button class="btn" @click="nextStep">{{ ad == 1 ? '下一步' : '提交工单' }}</button>
  173. </div>
  174. </div>
  175. </div>
  176. <!-- 广告页面底部 -->
  177. <AdvertisingFoot></AdvertisingFoot>
  178. </div>
  179. </template>
  180. <script setup>
  181. import { ref, onMounted, watch } from 'vue'
  182. import { ElDatePicker, ElInput, ElUpload, ElIcon, ElSelect, ElOption, ElTable, ElTableColumn, ElMessage } from 'element-plus'
  183. import { Plus, DArrowRight } from '@element-plus/icons-vue'
  184. // axios请求
  185. const nuxtApp = useNuxtApp();
  186. const axios = nuxtApp.$axios;
  187. // 通过变量ad控制tab栏标题的颜色及每一步下的不同的内容
  188. let ad = useState("ad", () => 1)
  189. let adCurrent = useState("adCurrent", () => true)
  190. const size = ref < 'default' | 'large' | 'small' > ('default')
  191. let adName = useState("adName", () => "")
  192. let adLink = useState("adLink", () => "")
  193. let startTime = useState("startTime", () => "")
  194. let endTime = useState("endTime", () => "")
  195. let adSize = useState("adSize", () => "")
  196. let adImg = useState("adImg", () => '')
  197. let tableData = useState("tableData", () => [])
  198. let processedData = useState("processedData", () => [])
  199. let pids = useState("pids", () => "")
  200. let orderInformation = useState("orderInformation", () => "")
  201. let adWeb = useState("adWeb", () => "")
  202. let adWebId = useState("adWebId", () => "")
  203. let adWebList = useState("adWebList", () => "")
  204. // 分页
  205. let total = useState('total', () => "")
  206. let pageSize = useState("pageSize", () => 10)
  207. let page = useState("page", () => 1)
  208. // let order = useState('order', () => "")
  209. // let order_ad = useState('order_ad', () => "")
  210. const value = ref('')
  211. let adListSize = ref('')
  212. const options = ref([])
  213. // 获取开始时间
  214. let changeStartTime = (val) => {
  215. startTime.value = `${val.getFullYear()}-${val.getMonth() + 1}-${val.getDate()}`
  216. console.log(startTime.value);
  217. }
  218. // 获取结束时间
  219. let changeEndTime = (val) => {
  220. endTime.value = `${val.getFullYear()}-${val.getMonth() + 1}-${val.getDate()}`
  221. console.log(endTime.value);
  222. }
  223. //获取图片地址
  224. let handleUploadSuccess = (response, file, fileList) => {
  225. // 假设服务器返回的响应中包含文件地址
  226. console.log(file.name);
  227. const fileUrl = response.fileUrl;
  228. // console.log('上传成功,文件地址为:', fileUrl);
  229. }
  230. //选择的广告位
  231. let handleSelectionChange = (selectedRows) => {
  232. let selectedpids = [];
  233. selectedRows.forEach(row => {
  234. selectedpids.push(row.pid);
  235. });
  236. // console.log('选中行的 pid:', selectedpids);
  237. pids.value = selectedpids.join(",")
  238. // console.log(pids.value);
  239. }
  240. //搜索前选择网站
  241. let chooseweb = (id) => {
  242. console.log("id", id);
  243. adWebId.value = id
  244. }
  245. // 点击搜索按钮
  246. let goSearch = () => {
  247. console.log(1);
  248. let adData = {
  249. ad_size_id: adSize.value,
  250. starttime: startTime.value,
  251. endtime: endTime.value,
  252. pageSize: pageSize.value,
  253. page: page.value,
  254. website_id: adWebId.value
  255. }
  256. // 搜索按钮接口
  257. axios.post("/order/getWebsiteAd", adData).then(response => {
  258. console.log(response.data);
  259. console.log(response.data.rows);
  260. tableData.value = response.data.rows
  261. for (let item of tableData.value) {
  262. item.size = item.width + ' * ' + item.height + ' px '
  263. }
  264. })
  265. }
  266. //点击重置
  267. let goReset = () => {
  268. adWeb.value = ''
  269. adSizeList()
  270. }
  271. //获取广告尺寸列表
  272. let adSizeList = () => {
  273. // 搜索按钮接口
  274. axios.post("/order/getAD").then(response => {
  275. options.value = response.data
  276. for (let item of options.value) {
  277. console.log(111);
  278. item.size = item.width + ' * ' + item.height + ' px '
  279. }
  280. console.log(options.value);
  281. })
  282. }
  283. //查看工单
  284. let lookOrder = () => {
  285. navigateTo({
  286. path: "/advertising/adDetail",
  287. })
  288. }
  289. //挂载成功
  290. onMounted(() => {
  291. adSizeList()
  292. })
  293. let change = (val) => {
  294. console.log(val);
  295. console.log(adSize.value);
  296. }
  297. // 点击下一步与提交工单按钮
  298. let nextStep = () => {
  299. if (adName.value == '') {
  300. ElMessage({
  301. message: '请输入广告名称',
  302. type: 'error',
  303. })
  304. return
  305. }
  306. if (adLink.value == '') {
  307. ElMessage({
  308. message: '请输入广告链接',
  309. type: 'error',
  310. })
  311. return
  312. }
  313. if (adName.value == '') {
  314. ElMessage({
  315. message: '请选择广告持续时间!',
  316. type: 'error',
  317. })
  318. return
  319. }
  320. if (adName.value == '') {
  321. ElMessage({
  322. message: '请选择广告尺寸',
  323. type: 'error',
  324. })
  325. return
  326. }
  327. // if (adImg.value == '') {
  328. // ElMessage({
  329. // message: '请添加广告图',
  330. // type: 'error',
  331. // })
  332. // return
  333. // }
  334. ad.value++
  335. let icon = document.querySelectorAll(".icon")
  336. let number = document.querySelectorAll(".number")
  337. let title = document.querySelectorAll(".title")
  338. // 点击下一步
  339. if (ad.value == 2) {
  340. icon[0].classList.add('color')
  341. number[1].classList.add('bgc')
  342. title[1].classList.add('color')
  343. //获取网站名称需要传递的参数
  344. let data = {
  345. starttime: startTime.value,
  346. endtime: endTime.value,
  347. pageSize: pageSize.value,
  348. page: page.value,
  349. ad_size_id: adSize.value,
  350. }
  351. //网站名称
  352. axios.post("/order/getWebsiteAd", data).then(response => {
  353. console.log("网站名称", response.data.rows);
  354. adWebList.value = response.data.rows
  355. }).catch(error => {
  356. console.log(error);
  357. })
  358. // 获取广告位需要传递的参数
  359. let adData = {
  360. starttime: startTime.value,
  361. endtime: endTime.value,
  362. pageSize: pageSize.value,
  363. page: page.value,
  364. ad_size_id: adSize.value,
  365. }
  366. //获取广告位
  367. axios.post("/order/getAD", adData).then(response => {
  368. console.log("广告位信息", response.data.rows);
  369. tableData.value = response.data.rows
  370. for (let item of tableData.value) {
  371. item.size = item.width + ' * ' + item.height + ' px '
  372. }
  373. console.log(tableData.value);
  374. }).catch(error => {
  375. console.log(error);
  376. })
  377. }
  378. // 点击提交工单信息
  379. if (ad.value >= 3) {
  380. // 获取广告位需要传递的参数
  381. let orderData = {
  382. name: adName.value,
  383. ad_size_id: adSize.value,
  384. starttime: startTime.value,
  385. endtime: endTime.value,
  386. imgurl: adLink.value,
  387. imgsrc: "11111",
  388. pid: pids.value
  389. }
  390. //提交工单
  391. axios.post("/order/addAD", orderData).then(response => {
  392. console.log("提交工单", response);
  393. if (response.code == 0) {
  394. ElMessage({
  395. message: response.message,
  396. type: 'error'
  397. })
  398. return
  399. } else if (response.code)
  400. // tableData.value = response.data.rows
  401. orderInformation.value = response.data
  402. ad.value = 3
  403. icon[1].classList.add('color')
  404. number[2].classList.add('bgc')
  405. title[2].classList.add('color')
  406. }).catch(error => {
  407. console.log(error);
  408. })
  409. }
  410. }
  411. // 点击广告购买标签的事件驱动函数
  412. let goBuyAd = () => {
  413. adCurrent.value = true
  414. let lis = document.querySelectorAll('.nav>li')
  415. lis[0].classList.add('current')
  416. lis[1].classList.remove('current')
  417. }
  418. // 点击工单列表标签的事件驱动函数
  419. let goOrderList = () => {
  420. adCurrent.value = false
  421. let lis = document.querySelectorAll('.nav>li')
  422. lis[0].classList.remove('current')
  423. lis[1].classList.add('current')
  424. }
  425. let handleUploadError = () => {
  426. }
  427. watch(adSize, (newval) => {
  428. console.log('newval', newval);
  429. adSize.value = newval
  430. }, {
  431. deep: true,
  432. immediate: true
  433. })
  434. </script>
  435. <style lang="less" scoped>
  436. .advertising {
  437. width: 100%;
  438. overflow: hidden;
  439. .inner {
  440. width: 1520px;
  441. // height: 900px;
  442. overflow: hidden;
  443. position: relative;
  444. // 左侧tab导航
  445. .nav {
  446. width: 120px;
  447. height: 80px;
  448. position: absolute;
  449. top: 54px;
  450. left: 0;
  451. border-right: 1px solid #d9d9d9;
  452. >li {
  453. width: 120px;
  454. height: 30px;
  455. font-family: Microsoft YaHei, Microsoft YaHei;
  456. font-weight: 400;
  457. font-size: 20px;
  458. color: #333333;
  459. line-height: 26px;
  460. text-align: left;
  461. font-style: normal;
  462. text-transform: none;
  463. margin-bottom: 20px;
  464. }
  465. .current {
  466. font-weight: bold;
  467. color: #333;
  468. border-right: 2px solid #139602;
  469. }
  470. // >li:hover {
  471. // font-weight: bold;
  472. // color: #333;
  473. // border-right: 2px solid #139602;
  474. // }
  475. }
  476. // 广告购买
  477. #buyAd {
  478. width: 1200px;
  479. margin: 0 auto;
  480. .buyAD {
  481. width: 1200px;
  482. overflow: hidden;
  483. .inner {
  484. width: 1200px;
  485. overflow: hidden;
  486. position: relative;
  487. // 填写信息页tab标题
  488. .tabTitle {
  489. width: 1100px;
  490. height: 80px;
  491. padding-top: 26px;
  492. margin: 0 auto;
  493. box-sizing: border-box;
  494. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  495. .icon,
  496. .title {
  497. font-family: Microsoft YaHei, Microsoft YaHei;
  498. font-weight: bold;
  499. font-size: 16px;
  500. color: #D5D5D5;
  501. text-align: center;
  502. font-style: normal;
  503. text-transform: none;
  504. }
  505. .number {
  506. display: inline-block;
  507. width: 32px;
  508. height: 32px;
  509. line-height: 32px;
  510. color: #ffffff;
  511. background-color: #d5d5d5;
  512. border-radius: 50%;
  513. }
  514. .bgc {
  515. background-color: #139602;
  516. }
  517. .color {
  518. color: #139602;
  519. }
  520. // 填写广告信息字体及背景颜色
  521. .title:first-child {
  522. color: #139602;
  523. }
  524. .title:first-child .number {
  525. background-color: #139602;
  526. }
  527. // 图标>>
  528. .icon {
  529. padding: 0 165px;
  530. }
  531. }
  532. // 1.填写信息内容
  533. .textOne {
  534. width: 1100px;
  535. height: 515px;
  536. margin-top: 30px;
  537. margin-left: 50px;
  538. /deep/.el-radio-group {
  539. height: 55px;
  540. }
  541. >p {
  542. width: 1110px;
  543. height: 75px;
  544. strong {
  545. font-weight: 500;
  546. color: #333333;
  547. padding: 0 14px;
  548. }
  549. label {
  550. display: inline-block;
  551. width: 125px;
  552. text-align: right;
  553. padding-right: 10px;
  554. box-sizing: border-box;
  555. font-family: Microsoft YaHei, Microsoft YaHei;
  556. font-weight: 400;
  557. font-size: 16px;
  558. color: #333333;
  559. line-height: 19px;
  560. font-style: normal;
  561. text-transform: none;
  562. }
  563. >label::before {
  564. content: "*";
  565. display: inline-block;
  566. width: 10px;
  567. height: 2px;
  568. color: #fe0101;
  569. }
  570. span {
  571. color: #fe0101;
  572. display: block;
  573. padding-left: 135px;
  574. height: 30px;
  575. }
  576. .upload-demo {
  577. display: inline-block;
  578. width: 112px;
  579. height: 112px;
  580. vertical-align: -93px;
  581. }
  582. //上传图片相关样式
  583. .avatar-uploader .el-upload {
  584. border: 1px dashed var(--el-border-color);
  585. border-radius: 6px;
  586. cursor: pointer;
  587. position: relative;
  588. overflow: hidden;
  589. transition: var(--el-transition-duration-fast);
  590. }
  591. .avatar-uploader .el-upload:hover {
  592. border-color: var(--el-color-primary);
  593. }
  594. .el-icon.avatar-uploader-icon {
  595. font-size: 28px;
  596. color: #8c939d;
  597. width: 178px;
  598. height: 178px;
  599. text-align: center;
  600. }
  601. //上传图片相关样式 end
  602. /deep/.el-input__wrapper.is-focus {
  603. box-shadow: 0 0 0 1px #c0c4cc;
  604. }
  605. /deep/.el-date-editor.el-input,
  606. .el-date-editor.el-input__wrapper {
  607. height: 44px;
  608. width: 470px;
  609. }
  610. /deep/.el-input__inner {
  611. font-size: 16px;
  612. }
  613. /deep/.el-upload-dragger {
  614. padding: 0;
  615. margin: 0;
  616. border: 1px solid #ededed;
  617. }
  618. /deep/.el-upload-dragger .el-icon--upload {
  619. font-size: 67px;
  620. line-height: 50px;
  621. padding: 0;
  622. margin: 0;
  623. }
  624. /deep/.el-upload-dragger .el-upload__text {
  625. font-size: 18px;
  626. font-weight: 400;
  627. color: #999;
  628. text-align: center;
  629. margin-bottom: 14px;
  630. margin-top: 5px;
  631. }
  632. /deep/.el-icon svg {
  633. width: 34px;
  634. height: 34px;
  635. }
  636. }
  637. }
  638. // 2.选择相应网站
  639. .textTwo {
  640. width: 1200px;
  641. overflow: hidden;
  642. // 页面头部搜索和按钮
  643. .pageTop {
  644. width: 1150px;
  645. height: 44px;
  646. margin: 30px 0 40px 50px;
  647. >.left {
  648. font-family: Microsoft YaHei, Microsoft YaHei;
  649. font-weight: 400;
  650. font-size: 16px;
  651. color: #333333;
  652. line-height: 19px;
  653. >a {
  654. width: 80px;
  655. height: 21px;
  656. padding-left: 30px;
  657. font-family: Microsoft YaHei, Microsoft YaHei;
  658. font-weight: 400;
  659. font-size: 16px;
  660. color: #47ACFF;
  661. line-height: 19px;
  662. text-align: left;
  663. font-style: normal;
  664. text-transform: none;
  665. }
  666. /deep/.el-select__wrapper.is-focused {
  667. box-shadow: 0 0 0 1px var(--el-border-color) inset;
  668. }
  669. }
  670. >.right {
  671. button {
  672. width: 94px;
  673. height: 36px;
  674. line-height: 36px;
  675. font-family: Microsoft YaHei, Microsoft YaHei;
  676. font-weight: 400;
  677. font-size: 16px;
  678. color: #33B023;
  679. line-height: 19px;
  680. text-align: center;
  681. border: none;
  682. border-radius: 7px;
  683. }
  684. .reset {
  685. border: 1px solid #33B023;
  686. color: #33B023;
  687. background-color: #fff;
  688. margin-right: 25px;
  689. }
  690. .search {
  691. background-color: #33B023;
  692. color: #ffffff;
  693. }
  694. }
  695. }
  696. // 页面中的表格
  697. .pageTable {
  698. width: 100%;
  699. overflow: hidden;
  700. padding-bottom: 60px;
  701. /deep/.el-checkbox__input.is-checked .el-checkbox__inner {
  702. background-color: #333;
  703. border-color: #333;
  704. }
  705. /deep/.el-table tr {
  706. background-color: #fafafa;
  707. height: 74px;
  708. }
  709. /deep/.el-table .cell {
  710. text-align: center;
  711. box-sizing: border-box;
  712. height: 23px;
  713. line-height: 23px;
  714. overflow-wrap: break-word;
  715. padding: 0 12px;
  716. text-overflow: ellipsis;
  717. white-space: normal;
  718. font-family: Microsoft YaHei, Microsoft YaHei;
  719. font-weight: 400;
  720. font-size: 16px;
  721. color: #333333;
  722. line-height: 19px;
  723. font-style: normal;
  724. text-transform: none;
  725. }
  726. }
  727. // 页码
  728. .pagination {
  729. height: 34px;
  730. text-align: center;
  731. padding-bottom: 90px;
  732. }
  733. }
  734. // 3.提交工单信息
  735. .submit {
  736. width: 1200px;
  737. overflow: hidden;
  738. text-align: center;
  739. .inner {
  740. width: 1100px;
  741. padding-left: 50px;
  742. padding-bottom: 130px;
  743. font-family: Microsoft YaHei, Microsoft YaHei;
  744. font-style: normal;
  745. text-transform: none;
  746. // 标题
  747. >h1 {
  748. margin-top: 80px;
  749. margin-bottom: 30px;
  750. font-weight: bold;
  751. font-size: 26px;
  752. color: #333333;
  753. line-height: 30px;
  754. text-align: center;
  755. }
  756. // 工单编号
  757. >p {
  758. margin-bottom: 257px;
  759. font-weight: 400;
  760. font-size: 22px;
  761. color: #333333;
  762. text-align: center;
  763. }
  764. // 按钮
  765. >.btn {
  766. margin-bottom: 30px;
  767. button {
  768. width: 134px;
  769. height: 50px;
  770. border: none;
  771. font-weight: 400;
  772. font-size: 16px;
  773. text-align: center;
  774. border-radius: 7px;
  775. }
  776. .check {
  777. background-color: #fff;
  778. color: #33B023;
  779. border: 1px solid #33B023;
  780. margin-right: 160px;
  781. }
  782. .apply {
  783. background-color: #33B023;
  784. color: #fff;
  785. }
  786. }
  787. // 提示文字
  788. >span {
  789. font-weight: 400;
  790. font-size: 14px;
  791. color: #999999;
  792. }
  793. }
  794. }
  795. }
  796. }
  797. }
  798. //工单列表
  799. #orderList {
  800. width: 1200px;
  801. margin: 0 auto;
  802. }
  803. }
  804. //广告页面底部部分
  805. .bottom {
  806. width: 100%;
  807. height: 145px;
  808. background-color: #ecf5ee;
  809. // display: none;
  810. .inner {
  811. width: 1200px;
  812. height: 145px;
  813. padding: 0;
  814. .amount {
  815. float: left;
  816. padding-top: 52px;
  817. font-family: Microsoft YaHei, Microsoft YaHei;
  818. font-weight: 400;
  819. font-size: 16px;
  820. color: #333333;
  821. line-height: 19px;
  822. text-align: left;
  823. font-style: normal;
  824. text-transform: none;
  825. span {
  826. padding: 0 15px 0 25px;
  827. font-family: Microsoft YaHei, Microsoft YaHei;
  828. font-weight: bold;
  829. font-size: 24px;
  830. color: #028E21;
  831. line-height: 28px;
  832. text-align: left;
  833. font-style: normal;
  834. text-transform: none;
  835. }
  836. }
  837. .btn {
  838. float: right;
  839. width: 115px;
  840. height: 40px;
  841. font-size: 16px;
  842. background-color: #028e21;
  843. color: #ffffff;
  844. border: none;
  845. border-radius: 6px;
  846. margin: 53px 0;
  847. }
  848. }
  849. }
  850. }
  851. </style>