index.vue 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676
  1. <template>
  2. <!-- 广告服务 -->
  3. <div>
  4. <!-- 广告页面头部 -->
  5. <div class="head">
  6. <div class="inner">
  7. <div class="headLogo left">
  8. <img src="../../static/images/image 36.png" alt="" @click="goBack">
  9. <span>广告服务</span>
  10. </div>
  11. <!-- <div class="right">
  12. <span>
  13. <em class="home"></em>
  14. 设为首页
  15. </span>
  16. <span>
  17. <em class="collection"></em>
  18. 加入收藏
  19. </span>
  20. </div> -->
  21. </div>
  22. </div>
  23. <div class="tips">
  24. <div class="inner">
  25. <p v-if="activeName == '1'">注意:广告购买需提交信息,用户与商务人员进行线下金额交易,交易成功后由商务人员后台审核。审核通过,即广告投放成功。</p>
  26. </div>
  27. </div>
  28. <div class="advertising">
  29. <div class="inner">
  30. <el-tabs v-model="activeName" :tab-position="tabPosition" class="demo-tabs" @tab-change="goOrderList">
  31. <!-- {{ ad }} -->
  32. <el-tab-pane label="广告购买" name="1" @click="goBuyAd">
  33. <!-- 广告购买 -->
  34. <div id="buyAd">
  35. <div class="buyAD">
  36. <div class="inner">
  37. <!-- tab栏标题 -->
  38. <div class="tabTitle" v-if="ad == 1">
  39. <span class="title">
  40. <span class="number">1</span>
  41. 填写广告信息
  42. </span>
  43. <span class="title">
  44. <span class="icon">
  45. <el-icon>
  46. <DArrowRight />
  47. </el-icon>
  48. </span>
  49. <span class="number">2</span>
  50. 选择相应网站
  51. </span>
  52. <span class="title">
  53. <span class="icon">
  54. <el-icon>
  55. <DArrowRight />
  56. </el-icon>
  57. </span>
  58. <span class="number">3</span>
  59. 提交工单信息
  60. </span>
  61. </div>
  62. <div class="tabTitle" v-if="ad == 2">
  63. <span class="title">
  64. <span class="number">1</span>
  65. 填写广告信息
  66. </span>
  67. <span class="title color">
  68. <span class="icon color">
  69. <el-icon>
  70. <DArrowRight />
  71. </el-icon>
  72. </span>
  73. <span class="number bgc">2</span>
  74. 选择相应网站
  75. </span>
  76. <span class="title">
  77. <span class="icon">
  78. <el-icon>
  79. <DArrowRight />
  80. </el-icon>
  81. </span>
  82. <span class="number">3</span>
  83. 提交工单信息
  84. </span>
  85. </div>
  86. <div class="tabTitle" v-if="ad == 3">
  87. <span class="title">
  88. <span class="number">1</span>
  89. 填写广告信息
  90. </span>
  91. <span class="title color">
  92. <span class="icon color">
  93. <el-icon>
  94. <DArrowRight />
  95. </el-icon>
  96. </span>
  97. <span class="number bgc">2</span>
  98. 选择相应网站
  99. </span>
  100. <span class="title color">
  101. <span class="icon color">
  102. <el-icon>
  103. <DArrowRight />
  104. </el-icon>
  105. </span>
  106. <span class="number bgc">3</span>
  107. 提交工单信息
  108. </span>
  109. </div>
  110. <!-- 填写广告信息内容 -->
  111. <div class="textOne" v-if="ad == 1">
  112. <el-form ref="ruleFormRef" :model="ruleForm" :rules="rules" label-width="110"
  113. class="demo-ruleForm" :size="formSize" status-icon>
  114. <el-form-item label="广告名称:" prop="adName">
  115. <el-input v-model="ruleForm.adName" placeholder="请输入广告名称" />
  116. </el-form-item>
  117. <el-form-item label="广告链接:" prop="adLink">
  118. <el-input v-model="ruleForm.adLink" placeholder="请输入广告链接" />
  119. </el-form-item>
  120. <el-form-item label="广告持续时间:" required>
  121. <el-config-provider :locale="zhCn">
  122. <el-date-picker v-model="ruleForm.time" type="daterange"
  123. range-separator="至" start-placeholder="请选择开始时间"
  124. end-placeholder="请选择结束时间" :size="size" @change="changeStartTime" :disabled-date="disabledStartTime"/>
  125. </el-config-provider>
  126. <!-- <el-col :span="11">
  127. <el-form-item prop="startTime">
  128. <el-config-provider :locale="zhCn">
  129. <el-date-picker v-model="ruleForm.startTime" type="date"
  130. placeholder="请选择开始时间" @change="changeStartTime"
  131. :disabled-date="disabledStartTime" style="width: 100%">
  132. </el-date-picker>
  133. </el-config-provider>
  134. <el-date-picker v-model="ruleForm.startTime" type="date"
  135. placeholder="请选择开始时间" @change="changeStartTime"
  136. :disabled-date="disabledStartTime" style="width: 100%">
  137. </el-date-picker>
  138. </el-form-item>
  139. </el-col>
  140. <el-col class="text-center" :span="2">
  141. <span class="text-gray-500">至</span>
  142. </el-col>
  143. <el-col :span="11">
  144. <el-form-item prop="endTime">
  145. <el-config-provider :locale="zhCn">
  146. <el-date-picker v-model="ruleForm.endTime" unlink-panels
  147. type="date" placeholder="请选择结束时间"
  148. @change="changeEndTime" :disabled-date="disabledEndTime"
  149. style="width: 100%">
  150. </el-date-picker>
  151. </el-config-provider>
  152. <el-date-picker v-model="ruleForm.endTime"
  153. type="date" placeholder="请选择结束时间" @change="changeEndTime"
  154. :disabled-date="disabledEndTime" style="width: 100%">
  155. </el-date-picker>
  156. </el-form-item>
  157. </el-col> -->
  158. </el-form-item>
  159. <el-form-item label="广告尺寸:" prop="adSize">
  160. <el-radio-group v-model="ruleForm.adSize">
  161. <el-radio :value="item.id" v-for="item in options" :key="item.id">{{
  162. item.size }}</el-radio>
  163. </el-radio-group>
  164. <!-- 因为下拉列表与时间选择器有冲突 所以换成了单选按钮 -->
  165. <!-- <el-select v-model="ruleForm.adSize" placeholder="请选择广告尺寸"
  166. @change="change">
  167. <el-option v-for="item in options" :key="item.id" :label="item.size"
  168. :value="item.id" :disabled="item.disabled">
  169. </el-option>
  170. </el-select> -->
  171. </el-form-item>
  172. <el-form-item label="广告图:" prop="adImg">
  173. <el-upload class="avatar-uploader" action="#" :show-file-list="false"
  174. :on-success="handleAvatarSuccess"
  175. :before-upload="beforeAvatarUpload">
  176. <img v-if="imageUrl" :src="imageUrl" class="avatar" />
  177. <div v-else>
  178. <el-icon class="avatar-uploader-icon">
  179. <Plus></Plus>
  180. <div class="chooseImgDiv">选择图片</div>
  181. </el-icon>
  182. </div>
  183. </el-upload>
  184. </el-form-item>
  185. </el-form>
  186. </div>
  187. <!-- 选择相应网站的内容 -->
  188. <div class="textTwo" v-if="ad == 2">
  189. <div class="inner">
  190. <!-- 搜索部分 -->
  191. <div class="pageTop">
  192. <div class="left">
  193. 网站:
  194. <el-select v-model="adWeb" placeholder="请选择网站名称" size="large"
  195. style="width: 244px; height: 44px;">
  196. <el-option v-for="item in adWebList" :key="item.id"
  197. :label="item.website_name" :value="item.id"
  198. @click="chooseweb(item.id)" />
  199. </el-select>
  200. <a @click="goPhoto">查看示意图</a>
  201. </div>
  202. <div class="right">
  203. <button class="reset" @click="goReset">重置</button>
  204. <button class="search" @click="goSearch">搜索</button>
  205. </div>
  206. </div>
  207. <!-- 示意图弹框 -->
  208. <el-dialog v-model="dialogTableVisible" :show-close="false" width="60%"
  209. :close-on-click-modal="false">
  210. <template #header="{ close, titleId, titleClass }">
  211. <div class="my-header">
  212. <h4 :id="titleId" :class="titleClass" class="left">示意图类型</h4>
  213. <el-button type="danger" @click="close" class="right">
  214. <el-icon class="el-icon--left">
  215. <CircleCloseFilled />
  216. </el-icon>
  217. 关闭
  218. </el-button>
  219. </div>
  220. </template>
  221. <ul class="graph">
  222. <li>
  223. <span>广告尺寸图A: 1200x90</span>
  224. <img src="../../static/ad/01.png" alt="">
  225. </li>
  226. <li>
  227. <span>广告尺寸图B: 600x150</span>
  228. <img src="../../static/ad/02.png" alt="">
  229. </li>
  230. <li>
  231. <span>广告尺寸图C: 300x150</span>
  232. <img src="../../static//ad/03.png" alt="">
  233. </li>
  234. </ul>
  235. </el-dialog>
  236. <!-- 表格部分 -->
  237. <div class="pageTable">
  238. <el-table :data="tableData" border ref="multipleTable"
  239. @selection-change="handleSelectionChange" style="width: 100%"
  240. :header-row-style="{ height: '60px' }"
  241. :row-style="{ height: '74px' }"
  242. :header-cell-style="{ backgroundColor: '#fafafa', color: '#666' }">
  243. <!-- <el-table-column type="selection" :reserve-selection="true"
  244. width="152" align="center" /> -->
  245. <el-table-column width="152" align="center">
  246. <template #default="{ row }">
  247. <el-checkbox v-model="row.selected"
  248. @change="toggleRowSelection(row)">
  249. </el-checkbox>
  250. </template>
  251. </el-table-column>
  252. <el-table-column prop="website_name" label="网站" width="240" />
  253. <el-table-column prop="name" label="广告位名称" width="240" />
  254. <el-table-column prop="size" label="广告尺寸" width="268" />
  255. <el-table-column prop="price" label="金额 (元) / 天" />
  256. </el-table>
  257. </div>
  258. <!-- 页码部分 -->
  259. <div class="pagination">
  260. <el-pagination background layout="prev, pager, next" :total="total"
  261. prev-text="上一页" next-text="下一页" :default-page-size="pageSize"
  262. v-model:current-page="page" @change="changePage" />
  263. </div>
  264. </div>
  265. </div>
  266. <!-- 提交工单信息 -->
  267. <div class="submit" v-if="ad == 3">
  268. <div class="inner">
  269. <h1>广告信息已提交成功,请等待审核......</h1>
  270. <p>
  271. 工单编号:
  272. <span>{{ orderInformation }}</span>
  273. </p>
  274. <div class="btn">
  275. <button class="check" @click="lookOrder">查看工单</button>
  276. <button class="apply" @click="reapply">再次申请</button>
  277. </div>
  278. <span>如有疑问,可联系客服人员。</span>
  279. </div>
  280. </div>
  281. </div>
  282. </div>
  283. </div>
  284. </el-tab-pane>
  285. <el-tab-pane label="工单列表" name="2">
  286. <!-- 工单列表 -->
  287. <AdvertisingOrderList @childData="handleChildData"></AdvertisingOrderList>
  288. </el-tab-pane>
  289. </el-tabs>
  290. </div>
  291. <div class="bottom" v-if="ad != 3 && activeName == '1'" :key="ad">
  292. <div class="inner">
  293. <!-- 总金额 -->
  294. <div class="amount" v-if="ad == 2">
  295. 总金额:
  296. <span>{{ priceTotal == '' ? 0 : priceTotal }}</span>
  297. </div>
  298. <!-- 按钮 -->
  299. <div class="btn">
  300. <button class="btn1" @click="prevStep" v-if="ad == 2">上一步</button>
  301. <button class="btn2" @click="nextStep" v-if="ad == 1">下一步</button>
  302. <button class="btn2" @click="submitStep" v-if="ad == 2"> 提交工单</button>
  303. </div>
  304. </div>
  305. </div>
  306. </div>
  307. <!-- 广告页面底部 -->
  308. <AdvertisingFoot></AdvertisingFoot>
  309. </div>
  310. </template>
  311. <script setup>
  312. import { ref, onMounted, watch, reactive } from 'vue'
  313. // import { ElCheckbox, ElRadio, ElRadioGroup, ElDatePicker, ElInput, ElUpload, ElPagination, ElIcon, ElSelect, ElOption, ElTabs, ElTabPane, ElTable, ElTableColumn, ElMessage, ElForm, ElFormItem, ElCol, valueEquals } from 'element-plus'
  314. import { ElCheckbox, ElRadio, ElRadioGroup, ElDatePicker, ElInput, ElUpload, ElPagination, ElIcon, ElSelect, ElOption, ElTabs, ElTabPane, ElTable, ElTableColumn, ElMessage, ElForm, ElFormItem, ElCol, valueEquals, ElConfigProvider } from 'element-plus'
  315. import { ElButton, ElDialog } from 'element-plus'
  316. import { CircleCloseFilled } from '@element-plus/icons-vue'
  317. import { Plus, DArrowRight, Edit, Picture, UploadFilled } from '@element-plus/icons-vue'
  318. import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
  319. import { useRoute } from 'vue-router'
  320. const route = useRoute()
  321. // axios请求
  322. const nuxtApp = useNuxtApp();
  323. const axios = nuxtApp.$axios;
  324. // 通过变量ad控制tab栏标题的颜色及每一步下的不同的内容
  325. let ad = useState("ad", () => 1)
  326. let dialogTableVisible = useState("dialogTableVisible", () => false)//示意图弹框
  327. let activeName = useState("activeName", () => "1")
  328. let startTime = useState("startTime", () => new Date())
  329. let adSize = useState("adSize", () => "")
  330. let tableData = useState("tableData", () => [])
  331. let processedData = useState("processedData", () => [])
  332. let pid = useState("pid", () => [])
  333. let pids = useState("pids", () => [])
  334. let pidArr = useState("pidArr", () => [])
  335. let orderInformation = useState("orderInformation", () => "")
  336. let adWeb = useState("adWeb", () => "")
  337. let adWebId = useState("adWebId", () => "")
  338. let adWebList = useState("adWebList", () => [])
  339. let priceTotal = useState("priceTotal", () => '')//总金额
  340. let orderId = useState("orderId", () => "")
  341. let options = useState('options', () => [])
  342. const multipleTable = ref('');
  343. let shopCode = useState('shopCode', () => '')
  344. // 分页
  345. let total = useState('total', () => 0)
  346. let pageSize = useState("pageSize", () => 10)
  347. let page = useState("page", () => 1)
  348. //ruleForm
  349. let logoUrl = ref('');
  350. const formSize = ref('default');
  351. const ruleFormRef = ref();
  352. const ruleForm = reactive({
  353. adName: '',
  354. adLink: '',
  355. time: '',
  356. startTime: '',
  357. endTime: '',
  358. adSize: '',
  359. adImg: '',
  360. });
  361. const rules = reactive({
  362. adName: [{ required: true, message: '请输入广告名称', trigger: 'blur' }],
  363. adLink: [{ required: true, message: '请输入广告链接', trigger: 'change' }],
  364. startTime: [{ required: true, message: '请输入开始时间', trigger: 'change' }],
  365. endTime: [{ required: true, message: '请输入结束时间', trigger: 'change' }],
  366. adSize: [{ required: true, message: '请选择广告尺寸', trigger: 'change' }],
  367. adImg: [{ required: true, message: '请选择广告图', trigger: 'change' }],
  368. });
  369. const tabPosition = ref('left')
  370. // 获取开始时间
  371. let changeStartTime = (val) => {
  372. console.log('11111111111111111111122222',val);
  373. ruleForm.startTime = `${val[0].getFullYear()}-${val[0].getMonth() + 1}-${val[0].getDate()}`
  374. ruleForm.endTime = `${val[1].getFullYear()}-${val[1].getMonth() + 1}-${val[1].getDate()}`
  375. console.log(ruleForm.startTime);
  376. console.log(ruleForm.endTime);
  377. }
  378. let disabledStartTime = (time) => {
  379. return time.getTime() <= (Date.now() + 3600 * 1000 * 24);
  380. }
  381. // 获取结束时间
  382. let changeEndTime = (val) => {
  383. ruleForm.endTime = `${val.getFullYear()}-${val.getMonth() + 1}-${val.getDate()}`
  384. console.log(ruleForm.endTime);
  385. }
  386. let disabledEndTime = (time) => {
  387. // console.log('时间',time);
  388. // console.log("time.getTime()",time.getTime());
  389. if (ruleForm.startTime == '') {
  390. return true;
  391. } else {
  392. const targetDate = new Date(ruleForm.startTime);// 这里设置禁用日期为2024年1月1日之前的日期
  393. return time.getTime() < targetDate.getTime() + 3600 * 1000 * 24;
  394. }
  395. }
  396. const imageUrl = ref('');
  397. const handleAvatarSuccess = (response, uploadFile) => {
  398. imageUrl.value = URL.createObjectURL(uploadFile.raw);
  399. };
  400. const bb = (item) => {
  401. console.log("===", item)
  402. navigateTo({
  403. path: "/advertising/addetail",
  404. query: {
  405. id: item
  406. }
  407. })
  408. }
  409. //获取图片地址
  410. const beforeAvatarUpload = (file) => {
  411. console.log('file', file);
  412. if (!file) return;
  413. const isJPG = file.type === 'image/jpeg';
  414. const isPNG = file.type === 'image/png';
  415. const isLt2M = file.size / 1024 / 1024 < 2;
  416. if (!isJPG && !isPNG) {
  417. ElMessage.error('上传图片只能是 JPG 或 PNG 格式!');
  418. return;
  419. }
  420. if (!isLt2M) {
  421. ElMessage.error('上传图片大小不能超过 2MB!');
  422. return;
  423. }
  424. const data = new FormData();
  425. data.append('file', file);
  426. axios.post("/public/uploadFile", data).then(res => {
  427. console.log(res);
  428. logoUrl.value = res.data.imgUrl;
  429. ruleForm.adImg = res.data.imgUrl;
  430. }).catch(() => {
  431. ElMessage({
  432. type: 'info',
  433. message: '网络错误,请重试!'
  434. });
  435. });
  436. };
  437. let goPhoto = () => {
  438. dialogTableVisible.value = true
  439. }
  440. //选择的广告位
  441. let handleSelectionChange = (selectedRows) => {
  442. pidArr.value = selectedRows.map(row => row.pid);
  443. console.log("选中的广告位llllllllll", pidArr.value);
  444. // getPrice() //获取总金额
  445. let aa = JSON.parse(JSON.stringify(pidArr.value))
  446. console.log("pids", aa);
  447. for (let item = 0; item <= aa.length - 1; item++) {
  448. console.log('pidArr.value', aa[item]);
  449. pids.value = aa[item]
  450. }
  451. }
  452. pidArr.value.forEach((item) => {
  453. const index = tableData.findIndex((row) => row.id === item);
  454. if (index !== -1) {
  455. tableData[index].selected = true;
  456. }
  457. });
  458. let toggleRowSelection = (row) => {
  459. console.log('11111', row.pid);
  460. console.log('类型', typeof (row.pid));
  461. // 判断 row.pid 是否已经存在于 pid.value 数组中
  462. const isExist = pid.value.includes(row.pid);
  463. console.log('判断当前选择的id是否已被选择', isExist); // 输出: true
  464. if (isExist) {
  465. //删除购物车中的广告位
  466. let data = {
  467. shopping_id: shopCode.value,
  468. pid: row.pid,
  469. }
  470. //删除购物车接口
  471. axios.post('/order/delShoppingCartAD', data).then(data => {
  472. console.log('删除购物车广告位--------------', data);
  473. if (data.code == 200) {
  474. getShoppingCartAD()
  475. }
  476. })
  477. } else {
  478. //添加购物车中的广告位
  479. let data = {
  480. shopping_id: shopCode.value,
  481. pid: row.pid,
  482. }
  483. //添加购物车接口
  484. axios.post('/order/addShoppingCartAD', data).then(data => {
  485. console.log('添加购物车广告位--------------', data);
  486. if (data.code == 200) {
  487. getShoppingCartAD()
  488. }
  489. })
  490. }
  491. };
  492. onMounted(() => {
  493. tableData.value.forEach((row) => {
  494. console.log(row);
  495. if (row.selected) {
  496. multipleTable.value.toggleRowSelection(row, true);
  497. }
  498. });
  499. });
  500. //搜索前选择网站
  501. let chooseweb = (id) => {
  502. console.log("id", id);
  503. adWebId.value = id
  504. }
  505. // 点击搜索按钮
  506. let goSearch = () => {
  507. console.log(1);
  508. let adData = {
  509. ad_size_id: ruleForm.adSize,
  510. starttime: ruleForm.startTime,
  511. endtime: ruleForm.endTime,
  512. pageSize: pageSize.value,
  513. page: page.value,
  514. website_id: adWebId.value
  515. }
  516. // 搜索按钮接口
  517. axios.post("/order/getWebsiteAd", adData).then(response => {
  518. console.log(response.data);
  519. console.log(response.data.rows);
  520. tableData.value = response.data.rows
  521. for (let item of tableData.value) {
  522. item.size = item.size_width + ' * ' + item.size_height + ' px '
  523. }
  524. })
  525. }
  526. //点击重置
  527. let goReset = () => {
  528. adWeb.value = ''
  529. priceTotal.value = 0
  530. pidArr.value = []
  531. getDate()
  532. }
  533. let getDate = () => {
  534. // 获取广告位需要传递的参数
  535. let adData = {
  536. ad_size_id: ruleForm.adSize,
  537. starttime: ruleForm.startTime,
  538. endtime: ruleForm.endTime,
  539. pageSize: pageSize.value,
  540. page: page.value,
  541. }
  542. //获取广告位
  543. axios.post("/order/getAD", adData).then(response => {
  544. console.log("广告位信息", response.data.rows);
  545. total.value = response.data.count
  546. tableData.value = response.data.rows
  547. for (let item of tableData.value) {
  548. item.size = item.size_width + ' * ' + item.size_height + ' px '
  549. item.selected = false
  550. }
  551. }).catch(error => {
  552. console.log(error);
  553. })
  554. }
  555. //获取广告尺寸列表
  556. let adSizeList = () => {
  557. // 搜索按钮接口
  558. axios.post("/order/getAD").then(response => {
  559. console.log("responseresponse", response);
  560. options.value = response.data
  561. for (let item of options.value) {
  562. console.log(item);
  563. item.size = item.width + ' * ' + item.height + ' px '
  564. }
  565. console.log("=========", options.value);
  566. })
  567. }
  568. //查看工单
  569. let lookOrder = () => {
  570. activeName.value = '2'
  571. sessionStorage.setItem('activeName', JSON.stringify('2'));
  572. // window.location.href = (`http://localhost:3000/advertising?activeName=${'2'}`)
  573. window.location.href = (`http://nwdev.bjzxtw.org.cn/advertising?activeName=${'2'}`)
  574. // navigateTo({
  575. // path: "/advertising/adDetail",
  576. // query: {
  577. // id: orderId.value
  578. // }
  579. // })
  580. }
  581. //再次申请
  582. let reapply = () => {
  583. ad.value = 1
  584. // window.location.href = ('http://localhost:3000/advertising')
  585. window.location.href = ('http://nwdev.bjzxtw.org.cn/advertising')
  586. }
  587. //获取总金额
  588. const getPrice = () => {
  589. let data = {
  590. starttime: ruleForm.startTime,
  591. endtime: ruleForm.endTime,
  592. pid: pid.value
  593. }
  594. console.log('data=========', data);
  595. axios.post('/order/getPrice', data).then(data => {
  596. console.log('获取到的金额', data.data);
  597. priceTotal.value = data.data
  598. // let count = data.data
  599. // priceTotal.value = Number(priceTotal.value) + Number(count);
  600. })
  601. }
  602. //获取购物车广告位
  603. const getShoppingCartAD = () => {
  604. axios.post('/order/getShoppingCartAD', {
  605. shopping_id: shopCode.value
  606. }).then(data => {
  607. console.log('获取购物车广告位=====================', data.data.pid);
  608. pid.value = data.data.pid
  609. getPrice()
  610. })
  611. }
  612. // 添加购物车广告位 addShoppingCartAD
  613. const addShoppingCartAD = () => {
  614. axios.post('/order/addShoppingCartAD', {
  615. shopping_id: shopCode.value,
  616. pid: pidArr.value
  617. }).then(data => {
  618. console.log('添加购物车广告位', data.data);
  619. })
  620. }
  621. //删除购物车中的广告位 delShoppingCartAD
  622. const delShoppingCartAD = () => {
  623. axios.post('/order/delShoppingCartAD', {
  624. shopping_id: shopCode.value,
  625. pid: pidArr.value
  626. }).then(data => {
  627. console.log('删除购物车广告位', data.data);
  628. })
  629. }
  630. //挂载成功
  631. onMounted(() => {
  632. adSizeList()
  633. getPrice()
  634. if (route.query.activeName == '1' || route.query.activeName == '2') {
  635. activeName.value = route.query.activeName;
  636. }
  637. if (!route.query.activeName) {
  638. activeName.value = JSON.parse(sessionStorage.getItem('activeName'));
  639. // console.log('activeName', activeName.value);
  640. }
  641. })
  642. onMounted(() => {
  643. // ad.value=route.query.ad
  644. watch(activeName, (newval) => {
  645. console.log('activeName', newval);
  646. sessionStorage.setItem('activeName', JSON.stringify(newval));
  647. }, {
  648. deep: true,
  649. immediate: true
  650. })
  651. })
  652. //页码发生改变
  653. watch(page, (newval) => {
  654. page.value = newval
  655. console.log(newval);
  656. }, {
  657. deep: true,
  658. immediate: true
  659. })
  660. //页码发生改变
  661. const changePage = (val) => {
  662. console.log(val);
  663. page.value = val
  664. // 获取广告位需要传递的参数
  665. let adData = {
  666. ad_size_id: ruleForm.adSize,
  667. starttime: ruleForm.startTime,
  668. endtime: ruleForm.endTime,
  669. pageSize: pageSize.value,
  670. page: page.value,
  671. }
  672. //获取广告位
  673. axios.post("/order/getAD", adData).then(response => {
  674. console.log("广告位", response.data);
  675. // console.log("广告位信息", response.data.rows);
  676. total.value = response.data.count
  677. for (let item of response.data.rows) {
  678. if (pid.value.includes(item.pid)) {
  679. item.selected = true
  680. // console.log(item.selected);
  681. } else {
  682. item.selected = false
  683. }
  684. }
  685. tableData.value = response.data.rows
  686. for (let item of tableData.value) {
  687. item.size = item.size_width + ' * ' + item.size_height + ' px '
  688. }
  689. console.log(tableData.value);
  690. }).catch(error => {
  691. console.log(error);
  692. })
  693. }
  694. //6.子组件传递的数据 start ---------------------------------------->
  695. let handleChildData = (data) => {
  696. activeName.value = `${data}`
  697. }
  698. //6.子组件传递的数据 end ---------------------------------------->
  699. //点击上一步按钮
  700. let prevStep = () => {
  701. ad.value--
  702. pid.value = []
  703. page.value = 1
  704. pageSize.value = 10
  705. getPrice()
  706. console.log(pidArr.value);
  707. }
  708. // 点击下一步与提交工单按钮
  709. let nextStep = () => {
  710. // 表单验证
  711. if (ruleForm.adName == '') {
  712. ElMessage({
  713. message: '请输入广告名称',
  714. type: 'error',
  715. })
  716. return
  717. }
  718. if (ruleForm.adLink == '') {
  719. ElMessage({
  720. message: '请输入广告链接',
  721. type: 'error',
  722. })
  723. return
  724. }
  725. if (ruleForm.startTime == '') {
  726. ElMessage({
  727. message: '请选择广告持续时间!',
  728. type: 'error',
  729. })
  730. return
  731. }
  732. if (ruleForm.endTime == '') {
  733. ElMessage({
  734. message: '请选择广告尺寸',
  735. type: 'error',
  736. })
  737. return
  738. }
  739. if (ruleForm.adSize == '') {
  740. ElMessage({
  741. message: '请选择广告尺寸',
  742. type: 'error',
  743. })
  744. return
  745. }
  746. if (ruleForm.adImg == '') {
  747. ElMessage({
  748. message: '请添加广告图',
  749. type: 'error',
  750. })
  751. return
  752. }
  753. // 点击下一步
  754. if (ad.value == 1) {
  755. ad.value++
  756. //获取网站名称需要传递的参数
  757. let data = {
  758. ad_size_id: ruleForm.adSize,
  759. starttime: ruleForm.startTime,
  760. endtime: ruleForm.endTime,
  761. pageSize: pageSize.value,
  762. page: page.value,
  763. }
  764. console.log(data);
  765. //网站名称
  766. axios.post("/order/getWebsiteAd", data).then(response => {
  767. console.log("网站名称", response);
  768. // console.log("网站名称", response.data.rows);
  769. adWebList.value = response.data.rows
  770. }).catch(error => {
  771. console.log(error);
  772. })
  773. // 获取广告位需要传递的参数
  774. let adData = {
  775. ad_size_id: ruleForm.adSize,
  776. starttime: ruleForm.startTime,
  777. endtime: ruleForm.endTime,
  778. pageSize: pageSize.value,
  779. page: page.value,
  780. }
  781. //获取广告位
  782. axios.post("/order/getAD", adData).then(response => {
  783. console.log("广告位", response.data);
  784. // console.log("广告位信息", response.data.rows);
  785. total.value = response.data.count
  786. tableData.value = response.data.rows
  787. for (let item of tableData.value) {
  788. item.size = item.size_width + ' * ' + item.size_height + ' px '
  789. item.selected = false
  790. }
  791. console.log('tableData', tableData.value);
  792. }).catch(error => {
  793. console.log(error);
  794. })
  795. //创建购物车
  796. // if (!shopCode.value) {
  797. axios.post("/order/addShoppingCart").then(response => {
  798. // console.log("创建购物车", response.data);
  799. shopCode.value = response.data
  800. console.log('shopCode', shopCode.value);
  801. })
  802. // }
  803. }
  804. }
  805. // 点击提交工单信息
  806. let submitStep = () => {
  807. // 获取广告位需要传递的参数
  808. let orderData = {
  809. name: ruleForm.adName,
  810. ad_size_id: ruleForm.adSize,
  811. starttime: ruleForm.startTime,
  812. endtime: ruleForm.endTime,
  813. imgurl: ruleForm.adLink,
  814. imgsrc: ruleForm.adImg,
  815. pid: pid.value,
  816. price: priceTotal.value
  817. }
  818. //提交工单
  819. axios.post("/order/addAD", orderData).then(response => {
  820. console.log("提交工单", response); //order_id
  821. console.log("orderData", orderData);
  822. if (response.code == 200) {
  823. tableData.value = response.data.rows
  824. orderInformation.value = response.data.ordernum
  825. ad.value = 3
  826. orderId.value = response.data.order_id
  827. }
  828. }).catch(error => {
  829. console.log(error);
  830. })
  831. }
  832. // // 点击广告购买标签的事件驱动函数
  833. let goBuyAd = () => {
  834. activeName.value = '1'
  835. }
  836. // 点击工单列表标签的事件驱动函数
  837. let goOrderList = (item) => {
  838. if (item == 2 && (route.query.activeName == '1' || route.query.activeName == '2')) {
  839. // window.location.href = ('http://localhost:3000/advertising')
  840. window.location.href = ('http://nwdev.bjzxtw.org.cn/advertising')
  841. }
  842. }
  843. watch(adSize, (newval) => {
  844. // console.log('newval', newval);
  845. adSize.value = newval
  846. }, {
  847. deep: true,
  848. immediate: true
  849. })
  850. watch(ad, (newval) => {
  851. // console.log('adnewval', newval);
  852. adSize.value = newval
  853. }, {
  854. deep: true,
  855. immediate: true
  856. })
  857. </script>
  858. <style lang="less" scoped>
  859. // 广告页面头部
  860. .head {
  861. width: 100%;
  862. padding: 15px 0;
  863. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  864. .inner {
  865. width: 1200px;
  866. height: 27px;
  867. }
  868. .headLogo {
  869. img {
  870. width: 127px;
  871. height: 27px;
  872. padding-right: 15px;
  873. vertical-align: -10px;
  874. border-right: 1px solid #999;
  875. }
  876. span {
  877. display: inline-block;
  878. width: 100px;
  879. padding-left: 15px;
  880. vertical-align: middle;
  881. font-family: Microsoft YaHei, Microsoft YaHei;
  882. font-weight: 400;
  883. font-size: 18px;
  884. color: #333333;
  885. line-height: 21px;
  886. text-align: left;
  887. font-style: normal;
  888. text-transform: none;
  889. }
  890. }
  891. .right {
  892. span {
  893. margin-left: 26px;
  894. font-family: PingFang SC, PingFang SC;
  895. font-weight: 400;
  896. font-size: 12px;
  897. color: #666666;
  898. line-height: 14px;
  899. text-align: left;
  900. font-style: normal;
  901. text-transform: none;
  902. }
  903. .home,
  904. .collection {
  905. display: inline-block;
  906. width: 16px;
  907. height: 16px;
  908. vertical-align: -3px;
  909. }
  910. .home {
  911. background-image: url("../../static/images/Iconly/Light/Home.png");
  912. }
  913. .collection {
  914. background-image: url("../../static/images/Iconly/Light/Star.png");
  915. }
  916. }
  917. }
  918. //提示信息
  919. .tips {
  920. width: 100%;
  921. height: 70px;
  922. line-height: 70px;
  923. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  924. .inner {
  925. width: 1200px;
  926. height: 70px;
  927. }
  928. p {
  929. font-family: Microsoft YaHei, Microsoft YaHei;
  930. font-weight: 400;
  931. font-size: 16px;
  932. color: #FE0101;
  933. // line-height: 19px;
  934. text-align: left;
  935. font-style: normal;
  936. text-transform: none;
  937. }
  938. }
  939. .advertising {
  940. width: 100%;
  941. overflow: hidden;
  942. .inner {
  943. width: 1520px;
  944. // height: 900px;
  945. overflow: hidden;
  946. position: relative;
  947. // 左侧tab导航
  948. :deep(.el-tabs--left .el-tabs__header.is-left) {
  949. margin-top: 50px;
  950. margin-right: 10px;
  951. }
  952. // 左侧tab导航字体颜色
  953. :deep(.el-tabs__item.is-active),
  954. :deep(.el-tabs__item:hover) {
  955. color: #139602;
  956. // font-weight: bold;
  957. }
  958. // 左侧tab导航字体大小
  959. :deep(.el-tabs--left .el-tabs__item.is-left) {
  960. text-align: right;
  961. font-size: 20px;
  962. }
  963. // 左侧tab导航下划线
  964. :deep(.el-tabs__active-bar) {
  965. background-color: #139602;
  966. }
  967. // 广告购买
  968. #buyAd {
  969. width: 1200px;
  970. margin: 0 35px;
  971. .buyAD {
  972. width: 1200px;
  973. overflow: hidden;
  974. .inner {
  975. width: 1200px;
  976. overflow: hidden;
  977. position: relative;
  978. // 填写信息页tab标题
  979. .tabTitle {
  980. width: 1100px;
  981. height: 80px;
  982. padding-top: 26px;
  983. margin: 0 auto;
  984. box-sizing: border-box;
  985. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  986. .icon,
  987. .title {
  988. font-family: Microsoft YaHei, Microsoft YaHei;
  989. font-weight: bold;
  990. font-size: 16px;
  991. color: #D5D5D5;
  992. text-align: center;
  993. font-style: normal;
  994. text-transform: none;
  995. }
  996. .number {
  997. display: inline-block;
  998. width: 32px;
  999. height: 32px;
  1000. line-height: 32px;
  1001. color: #ffffff;
  1002. background-color: #d5d5d5;
  1003. border-radius: 50%;
  1004. }
  1005. .bgc {
  1006. background-color: #139602;
  1007. }
  1008. .color {
  1009. color: #139602;
  1010. }
  1011. // 填写广告信息字体及背景颜色
  1012. .title:first-child {
  1013. color: #139602;
  1014. }
  1015. .title:first-child .number {
  1016. background-color: #139602;
  1017. }
  1018. // 图标>>
  1019. .icon {
  1020. padding: 0 165px;
  1021. }
  1022. }
  1023. // 1.填写信息内容
  1024. .textOne {
  1025. width: 1100px;
  1026. overflow: hidden;
  1027. // height: 515px;
  1028. margin-top: 35px;
  1029. margin-left: 50px;
  1030. /deep/ .el-form-item {
  1031. margin-bottom: 35px;
  1032. }
  1033. .el-col {
  1034. height: 36px;
  1035. }
  1036. .el-col-2 {
  1037. text-align: center;
  1038. }
  1039. .chooseImg {
  1040. display: block;
  1041. }
  1042. .chooseImgDiv {
  1043. font-size: 16px;
  1044. font-style: normal;
  1045. }
  1046. .avatar-uploader {
  1047. width: 120px;
  1048. height: 120px;
  1049. border: 1px solid #ededed;
  1050. border-radius: 12px;
  1051. }
  1052. .avatar-uploader .avatar {
  1053. width: 120px;
  1054. border-top-left-radius: 12px;
  1055. border-top-right-radius: 12px;
  1056. }
  1057. .avatar-uploader .el-upload {
  1058. border: 1px dashed var(--el-border-color);
  1059. border-radius: 6px;
  1060. cursor: pointer;
  1061. position: relative;
  1062. overflow: hidden;
  1063. transition: var(--el-transition-duration-fast);
  1064. }
  1065. .avatar-uploader .el-upload:hover {
  1066. border-color: var(--el-color-primary);
  1067. }
  1068. .el-icon.avatar-uploader-icon {
  1069. display: block;
  1070. font-size: 36px;
  1071. color: #8c939d;
  1072. background-color: #fafafa;
  1073. width: 120px;
  1074. height: 120px;
  1075. padding-top: 30px;
  1076. box-sizing: border-box;
  1077. border: 1px solid #EDEDED;
  1078. border-radius: 12px;
  1079. text-align: center;
  1080. }
  1081. >p {
  1082. width: 1110px;
  1083. height: 75px;
  1084. strong {
  1085. font-weight: 500;
  1086. color: #333333;
  1087. padding: 0 14px;
  1088. }
  1089. label {
  1090. display: inline-block;
  1091. width: 125px;
  1092. text-align: right;
  1093. padding-right: 10px;
  1094. box-sizing: border-box;
  1095. font-family: Microsoft YaHei, Microsoft YaHei;
  1096. font-weight: 400;
  1097. font-size: 16px;
  1098. color: #333333;
  1099. line-height: 19px;
  1100. font-style: normal;
  1101. text-transform: none;
  1102. }
  1103. >label::before {
  1104. content: "*";
  1105. display: inline-block;
  1106. width: 10px;
  1107. height: 2px;
  1108. color: #fe0101;
  1109. }
  1110. span {
  1111. color: #fe0101;
  1112. display: block;
  1113. padding-left: 135px;
  1114. height: 30px;
  1115. }
  1116. .upload-demo {
  1117. display: inline-block;
  1118. width: 112px;
  1119. height: 112px;
  1120. vertical-align: -93px;
  1121. }
  1122. //上传图片相关样式
  1123. .avatar-uploader .el-upload {
  1124. border: 1px dashed var(--el-border-color);
  1125. border-radius: 6px;
  1126. cursor: pointer;
  1127. position: relative;
  1128. overflow: hidden;
  1129. transition: var(--el-transition-duration-fast);
  1130. }
  1131. .avatar-uploader .el-upload:hover {
  1132. border-color: var(--el-color-primary);
  1133. }
  1134. .el-icon.avatar-uploader-icon {
  1135. font-size: 28px;
  1136. color: #8c939d;
  1137. width: 178px;
  1138. height: 178px;
  1139. text-align: center;
  1140. }
  1141. //上传图片相关样式 end
  1142. :deep(.el-input__wrapper.is-focus) {
  1143. box-shadow: 0 0 0 1px #c0c4cc;
  1144. }
  1145. /deep/.el-date-editor.el-input,
  1146. .el-date-editor.el-input__wrapper {
  1147. height: 44px;
  1148. width: 470px;
  1149. }
  1150. /deep/.el-input__inner {
  1151. font-size: 16px;
  1152. }
  1153. /deep/.el-upload-dragger {
  1154. padding: 0;
  1155. margin: 0;
  1156. border: 1px solid #ededed;
  1157. }
  1158. /deep/.el-upload-dragger .el-icon--upload {
  1159. font-size: 67px;
  1160. line-height: 50px;
  1161. padding: 0;
  1162. margin: 0;
  1163. }
  1164. /deep/.el-upload-dragger .el-upload__text {
  1165. font-size: 18px;
  1166. font-weight: 400;
  1167. color: #999;
  1168. text-align: center;
  1169. margin-bottom: 14px;
  1170. margin-top: 5px;
  1171. }
  1172. :deep(.el-icon svg) {
  1173. width: 34px;
  1174. height: 34px;
  1175. }
  1176. }
  1177. }
  1178. // 2.选择相应网站
  1179. .textTwo {
  1180. width: 1200px;
  1181. overflow: hidden;
  1182. // 页面头部搜索和按钮
  1183. .pageTop {
  1184. width: 1150px;
  1185. height: 44px;
  1186. margin: 30px 0 40px 50px;
  1187. >.left {
  1188. font-family: Microsoft YaHei, Microsoft YaHei;
  1189. font-weight: 400;
  1190. font-size: 16px;
  1191. color: #333333;
  1192. line-height: 19px;
  1193. >a {
  1194. width: 80px;
  1195. height: 21px;
  1196. padding-left: 30px;
  1197. font-family: Microsoft YaHei, Microsoft YaHei;
  1198. font-weight: 400;
  1199. font-size: 16px;
  1200. color: #47ACFF;
  1201. line-height: 19px;
  1202. text-align: left;
  1203. font-style: normal;
  1204. text-transform: none;
  1205. }
  1206. /deep/.el-select__wrapper.is-focused {
  1207. box-shadow: 0 0 0 1px var(--el-border-color) inset;
  1208. }
  1209. }
  1210. >.right {
  1211. button {
  1212. width: 94px;
  1213. height: 36px;
  1214. line-height: 36px;
  1215. font-family: Microsoft YaHei, Microsoft YaHei;
  1216. font-weight: 400;
  1217. font-size: 16px;
  1218. color: #33B023;
  1219. line-height: 19px;
  1220. text-align: center;
  1221. border: none;
  1222. border-radius: 7px;
  1223. }
  1224. .reset {
  1225. border: 1px solid #33B023;
  1226. color: #33B023;
  1227. background-color: #fff;
  1228. margin-right: 25px;
  1229. }
  1230. .search {
  1231. background-color: #33B023;
  1232. color: #ffffff;
  1233. }
  1234. }
  1235. }
  1236. //示意图
  1237. .my-header {
  1238. display: flex;
  1239. flex-direction: row;
  1240. justify-content: space-between;
  1241. gap: 16px;
  1242. .el-button {
  1243. border-radius: var(--el-border-radius-base);
  1244. font-size: var(--el-font-size-base);
  1245. background: #ee8787;
  1246. border: none;
  1247. }
  1248. }
  1249. .graph {
  1250. background-color: #fff;
  1251. padding: 40px 60px 80px;
  1252. overflow: hidden;
  1253. display: flex;
  1254. li {
  1255. float: left;
  1256. span {
  1257. display: inline-block;
  1258. width: 246px;
  1259. font-family: Microsoft YaHei, Microsoft YaHei;
  1260. font-weight: bold;
  1261. font-size: 16px;
  1262. color: #333333;
  1263. line-height: 30px;
  1264. text-align: center;
  1265. margin-bottom: 15px;
  1266. }
  1267. img {
  1268. width: 246px;
  1269. height: 344px;
  1270. }
  1271. }
  1272. >li:first-child {
  1273. margin-right: 60px;
  1274. }
  1275. >li:last-child {
  1276. margin-left: 60px;
  1277. }
  1278. }
  1279. // 页面中的表格
  1280. .pageTable {
  1281. width: 100%;
  1282. overflow: hidden;
  1283. padding-bottom: 60px;
  1284. /deep/.el-checkbox__input.is-checked .el-checkbox__inner {
  1285. background-color: #333;
  1286. border-color: #333;
  1287. }
  1288. /deep/.el-table tr {
  1289. background-color: #fafafa;
  1290. height: 74px;
  1291. }
  1292. /deep/.el-table .cell {
  1293. text-align: center;
  1294. box-sizing: border-box;
  1295. height: 23px;
  1296. line-height: 23px;
  1297. overflow-wrap: break-word;
  1298. padding: 0 12px;
  1299. text-overflow: ellipsis;
  1300. white-space: normal;
  1301. font-family: Microsoft YaHei, Microsoft YaHei;
  1302. font-weight: 400;
  1303. font-size: 16px;
  1304. color: #333333;
  1305. line-height: 19px;
  1306. font-style: normal;
  1307. text-transform: none;
  1308. }
  1309. }
  1310. // 页码
  1311. .pagination {
  1312. display: flex;
  1313. justify-content: center;
  1314. // margin-top: 60px;
  1315. margin-bottom: 90px;
  1316. // 鼠标移入后字体颜色
  1317. :deep(.el-pagination:hover) {
  1318. color: #139609;
  1319. }
  1320. :deep(.el-pagination.is-background .btn-next),
  1321. :deep(.el-pagination.is-background .btn-prev) {
  1322. width: 70px;
  1323. height: 34px;
  1324. margin: 0px 10px;
  1325. border-radius: 4px;
  1326. }
  1327. :deep(.el-pagination.is-background .el-pager li) {
  1328. margin: 0px 10px;
  1329. width: 38px;
  1330. height: 34px;
  1331. border-radius: 4px;
  1332. }
  1333. :deep(.el-pagination.is-background .btn-next.is-active),
  1334. :deep(.el-pagination.is-background .btn-prev.is-active),
  1335. :deep(.el-pagination.is-background .el-pager li.is-active) {
  1336. background-color: #028e21;
  1337. color: #fff;
  1338. }
  1339. }
  1340. }
  1341. // 3.提交工单信息
  1342. .submit {
  1343. width: 1200px;
  1344. overflow: hidden;
  1345. text-align: center;
  1346. .inner {
  1347. width: 1100px;
  1348. padding-left: 50px;
  1349. padding-bottom: 130px;
  1350. font-family: Microsoft YaHei, Microsoft YaHei;
  1351. font-style: normal;
  1352. text-transform: none;
  1353. // 标题
  1354. >h1 {
  1355. margin-top: 80px;
  1356. margin-bottom: 30px;
  1357. font-weight: bold;
  1358. font-size: 26px;
  1359. color: #333333;
  1360. line-height: 30px;
  1361. text-align: center;
  1362. }
  1363. // 工单编号
  1364. >p {
  1365. margin-bottom: 257px;
  1366. font-weight: 400;
  1367. font-size: 22px;
  1368. color: #333333;
  1369. text-align: center;
  1370. }
  1371. // 按钮
  1372. >.btn {
  1373. margin-bottom: 30px;
  1374. button {
  1375. width: 134px;
  1376. height: 50px;
  1377. border: none;
  1378. font-weight: 400;
  1379. font-size: 16px;
  1380. text-align: center;
  1381. border-radius: 7px;
  1382. }
  1383. .check {
  1384. background-color: #fff;
  1385. color: #33B023;
  1386. border: 1px solid #33B023;
  1387. margin-right: 160px;
  1388. }
  1389. .apply {
  1390. background-color: #33B023;
  1391. color: #fff;
  1392. }
  1393. }
  1394. // 提示文字
  1395. >span {
  1396. font-weight: 400;
  1397. font-size: 14px;
  1398. color: #999999;
  1399. }
  1400. }
  1401. }
  1402. }
  1403. }
  1404. }
  1405. //工单列表
  1406. #orderList {
  1407. width: 1200px;
  1408. margin: 0 auto;
  1409. }
  1410. }
  1411. //广告页面底部部分
  1412. .bottom {
  1413. width: 100%;
  1414. height: 145px;
  1415. background-color: #ecf5ee;
  1416. // display: none;
  1417. .inner {
  1418. width: 1200px;
  1419. height: 145px;
  1420. padding: 0;
  1421. .amount {
  1422. float: left;
  1423. padding-top: 52px;
  1424. font-family: Microsoft YaHei, Microsoft YaHei;
  1425. font-weight: 400;
  1426. font-size: 16px;
  1427. color: #333333;
  1428. line-height: 19px;
  1429. text-align: left;
  1430. font-style: normal;
  1431. text-transform: none;
  1432. span {
  1433. padding: 0 15px 0 25px;
  1434. font-family: Microsoft YaHei, Microsoft YaHei;
  1435. font-weight: bold;
  1436. font-size: 24px;
  1437. color: #028E21;
  1438. line-height: 28px;
  1439. text-align: left;
  1440. font-style: normal;
  1441. text-transform: none;
  1442. }
  1443. }
  1444. .btn {
  1445. float: right;
  1446. .btn1 {
  1447. width: 115px;
  1448. height: 40px;
  1449. font-size: 16px;
  1450. background-color: #ffffff;
  1451. color: #028e21;
  1452. border: 1px solid #028e21;
  1453. border-radius: 6px;
  1454. margin-right: 50px;
  1455. margin-top: 53px;
  1456. }
  1457. .btn2 {
  1458. width: 115px;
  1459. height: 40px;
  1460. font-size: 16px;
  1461. background-color: #028e21;
  1462. color: #ffffff;
  1463. border: none;
  1464. border-radius: 6px;
  1465. margin: 53px 0;
  1466. }
  1467. }
  1468. }
  1469. }
  1470. }
  1471. </style>