index.vue 57 KB

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