visualization.vue 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837
  1. <template>
  2. <div :style="bgcolors">
  3. <div class="i-layout-page-header">
  4. <span class="ivu-page-header-title mr20">{{ $route.meta.title }}</span>
  5. <div>
  6. <div style="float: right">
  7. <Button class="bnt" type="primary" @click="save">保存</Button>
  8. </div>
  9. </div>
  10. </div>
  11. <div class="box-wrapper">
  12. <div class="left-wrapper" v-if="!$route.params.id && groupAll.length">
  13. <Menu :theme="theme3" :active-name="sortName" width="auto">
  14. <MenuGroup>
  15. <MenuItem
  16. :name="item.config_name"
  17. class="menu-item"
  18. v-for="(item, index) in groupAll"
  19. :key="index"
  20. @click.native="edits(item)"
  21. >
  22. {{ item.name }}
  23. </MenuItem>
  24. <MenuItem name="guide" class="menu-item" @click.native="edits(2)"> 开屏广告 </MenuItem>
  25. </MenuGroup>
  26. </Menu>
  27. </div>
  28. <div v-if="name == 'user_recharge_quota'" class="iframe">
  29. <div class="iframe-boxs">
  30. <div class="moneyBox">
  31. <div class="box1">
  32. <div class="font1">我的余额</div>
  33. <div>¥ <i class="font2">0.00</i></div>
  34. </div>
  35. <div class="moneyBox_content">
  36. <div class="box2">
  37. <div>账户充值</div>
  38. <div>佣金导入</div>
  39. </div>
  40. <div class="box3">
  41. <div v-show="item.status != 0" class="box3_box" v-for="(item, index) in sginList.list" :key="index">
  42. <div>{{ item.price }}<i class="font">元</i></div>
  43. <div class="font">赠送:{{ item.give_money }}元</div>
  44. </div>
  45. <div class="box3_box">
  46. <div class="other">其他</div>
  47. </div>
  48. </div>
  49. <div class="box4">
  50. <div class="tips">注意事项:</div>
  51. <div class="tips-samll">
  52. <p>充值后帐户的金额不能提现,可用于商城消费使用。</p>
  53. <p>佣金导入账户之后不能再次导出、不可提现。</p>
  54. <p>账户充值出现问题可联系商城客服,也可拨打商城客服热线:40088888889。</p>
  55. </div>
  56. </div>
  57. <div class="box5">立即充值</div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <div v-if="name == 'admin_login_slide'" class="pciframe" :bordered="false" dis-hover>
  63. <img src="../../../assets/images/pclogin.png" class="pciframe-box" />
  64. <div class="pcmoddile_goods">
  65. <div class="nofont" v-if="tabList.list == ''">暂无照片,请添加~</div>
  66. <swiper v-else :options="swiperOption" class="pcswiperimg_goods">
  67. <swiper-slide class="spcwiperimg_goods" v-for="(item, index) in tabList.list" :key="index">
  68. <img :src="item.slide" />
  69. </swiper-slide>
  70. </swiper>
  71. </div>
  72. </div>
  73. <div v-if="name == 'integral_shop_banner'" class="iframe" :bordered="false">
  74. <div class="iframe-box">
  75. <img src="../../../assets/images/integral.png" style="width: 100%" />
  76. <div class="moddile_goods">
  77. <div class="nofonts" v-if="tabList.list == '' || !tabList.list.length || !tabList.list[0].img">
  78. 暂无照片,请添加~
  79. </div>
  80. <swiper v-else :options="swiperOption" class="pcswiperimg_goods">
  81. <swiper-slide class="swiperimg_goods" v-for="(item, index) in tabList.list" :key="index">
  82. <img :src="item.img" />
  83. </swiper-slide>
  84. </swiper>
  85. </div>
  86. </div>
  87. </div>
  88. <div
  89. v-if="
  90. name != 'sign_day_num' &&
  91. name != 'admin_login_slide' &&
  92. name != 'user_recharge_quota' &&
  93. name != 'integral_shop_banner' &&
  94. a != 1 &&
  95. guide != 2
  96. "
  97. class="iframe"
  98. :bordered="false"
  99. dis-hover
  100. >
  101. <iframe :src="url" class="iframe-box" frameborder="0"></iframe>
  102. <div class="moddile"></div>
  103. <div
  104. v-if="
  105. name == 'routine_home_bast_banner' ||
  106. name == 'routine_home_hot_banner' ||
  107. name == 'routine_home_new_banner' ||
  108. name == 'routine_home_benefit_banner'
  109. "
  110. class="moddile_box"
  111. >
  112. <div class="nofonts" v-if="tabList.list == '' || !tabList.list.length || !tabList.list[0].img">
  113. 暂无照片,请添加~
  114. </div>
  115. <swiper v-else :options="swiperOption" class="swiperimg">
  116. <swiper-slide class="swiperimg" v-for="(item, index) in tabList.list" :key="index">
  117. <img :src="item.img" />
  118. </swiper-slide>
  119. </swiper>
  120. </div>
  121. <div v-if="name == 'combination_banner'" class="moddile_goods">
  122. <div class="nofonts" v-if="tabList.list == ''">暂无照片,请添加~</div>
  123. <swiper v-else :options="swiperOption" class="swiperimg_goods">
  124. <swiper-slide class="swiperimg_goods" v-for="(item, index) in tabList.list" :key="index">
  125. <img :src="item.img" />
  126. </swiper-slide>
  127. </swiper>
  128. </div>
  129. </div>
  130. <div v-if="name == 'sign_day_num'" class="iframe" :bordered="false">
  131. <div class="iframe-box">
  132. <img v-if="bgimg == 1" src="../../../assets/images/bluesgin.png" />
  133. <img v-if="bgimg == 2" src="../../../assets/images/greesgin.png" />
  134. <img v-if="bgimg == 3" src="../../../assets/images/redsgin.png" />
  135. <img v-if="bgimg == 4" src="../../../assets/images/pinksgin.png" />
  136. <img v-if="bgimg == 5" src="../../../assets/images/oragesgin.png" />
  137. </div>
  138. </div>
  139. <div v-if="a == 1" class="iframe" :bordered="false">
  140. <div class="agreement-box">
  141. <div class="template"></div>
  142. <div class="htmls_box">
  143. <div class="htmls_top">服务协议与隐私政策</div>
  144. <div class="htmls_font">
  145. <div class="ok">我同意</div>
  146. <div>不同意</div>
  147. </div>
  148. <div class="htmls" v-html="formValidate.content"></div>
  149. </div>
  150. </div>
  151. </div>
  152. <div v-if="a == 1" style="margin-left: 40px">
  153. <div class="table_box">
  154. <div type="flex">
  155. <div v-bind="grid">
  156. <div class="title">隐私权限页面展示:</div>
  157. </div>
  158. </div>
  159. <div>
  160. <Form
  161. class="form"
  162. ref="formValidate"
  163. :model="formValidate"
  164. :rules="ruleValidate"
  165. :label-width="labelWidth"
  166. :label-position="labelPosition"
  167. @submit.native.prevent
  168. >
  169. <div class="goodsTitle acea-row"></div>
  170. <FormItem label="" prop="content" style="margin: 0px">
  171. <WangEditor
  172. style="width: 90%"
  173. :content="formValidate.content"
  174. @editorContent="getEditorContent"
  175. ></WangEditor>
  176. </FormItem>
  177. </Form>
  178. </div>
  179. </div>
  180. </div>
  181. <div v-if="guide == 2" class="iframe" :bordered="false">
  182. <div class="nofonts" v-if="tabList.list == '' || !tabList.list.length || !tabList.list[0].img">
  183. 暂无照片,请添加~
  184. </div>
  185. <swiper :options="swiperOption" class="swiperimgs" v-else>
  186. <swiper-slide class="swiperimgs" v-for="(item, index) in tabList.list" :key="index">
  187. <img :src="item.img" />
  188. </swiper-slide>
  189. </swiper>
  190. </div>
  191. <div v-if="name == 'sign_day_num'" style="margin-left: 20px">
  192. <div class="table_box">
  193. <div type="flex">
  194. <div v-bind="grid">
  195. <div class="title">签到天数设置</div>
  196. <Button
  197. type="primary"
  198. icon="md-add"
  199. @click="groupAdd('添加数据')"
  200. style="margin-left: 14px; margin-top: 30px"
  201. >添加数据</Button
  202. >
  203. </div>
  204. </div>
  205. <div class="table">
  206. <Table
  207. :columns="columns1"
  208. :data="cmsList"
  209. ref="table"
  210. class="mt25"
  211. :loading="loading"
  212. highlight-row
  213. no-userFrom-text="暂无数据"
  214. no-filtered-userFrom-text="暂无筛选结果"
  215. >
  216. <template slot-scope="{ row, index }" slot="status">
  217. <i-switch
  218. v-model="row.status"
  219. :value="row.status"
  220. :true-value="1"
  221. :false-value="0"
  222. @on-change="onchangeIsShow(row)"
  223. size="large"
  224. >
  225. <span slot="open">显示</span>
  226. <span slot="close">隐藏</span>
  227. </i-switch>
  228. </template>
  229. <template slot-scope="{ row, index }" slot="action">
  230. <a @click="edit(row, '编辑')">编辑</a>
  231. <Divider type="vertical" />
  232. <a @click="del(row, '删除这条信息', index)">删除</a>
  233. </template>
  234. </Table>
  235. </div>
  236. </div>
  237. </div>
  238. <div v-if="name == 'user_recharge_quota'" style="margin-left: 20px">
  239. <div class="table_box">
  240. <div type="flex">
  241. <div v-bind="grid">
  242. <div class="title">充值金额设置</div>
  243. <Button
  244. type="primary"
  245. icon="md-add"
  246. @click="groupAdd('添加数据')"
  247. style="margin-left: 14px; margin-top: 30px"
  248. >添加数据</Button
  249. >
  250. </div>
  251. </div>
  252. <div class="table">
  253. <Table
  254. :columns="columns1"
  255. :data="sginList.list"
  256. ref="table"
  257. class="mt25"
  258. :loading="loading"
  259. highlight-row
  260. no-userFrom-text="暂无数据"
  261. no-filtered-userFrom-text="暂无筛选结果"
  262. >
  263. <template slot-scope="{ row, index }" slot="status">
  264. <i-switch
  265. v-model="row.status"
  266. :value="row.status"
  267. :true-value="1"
  268. :false-value="0"
  269. @on-change="onchangeIsShow(row)"
  270. size="large"
  271. >
  272. <span slot="open">显示</span>
  273. <span slot="close">隐藏</span>
  274. </i-switch>
  275. </template>
  276. <template slot-scope="{ row, index }" slot="action">
  277. <a @click="edit(row, '编辑')">编辑</a>
  278. <Divider type="vertical" />
  279. <a @click="del(row, '删除这条信息', index)">删除</a>
  280. </template>
  281. </Table>
  282. </div>
  283. </div>
  284. </div>
  285. <div v-else>
  286. <div
  287. v-if="name != 'sign_day_num' && a != 1 && guide != 2"
  288. :class="name != 'admin_login_slide' ? 'content' : 'contents'"
  289. >
  290. <div class="right-box">
  291. <div class="hot_imgs">
  292. <div class="title" v-if="name == 'admin_login_slide'">幻灯片设置</div>
  293. <div class="title" v-else>轮播图设置</div>
  294. <div class="title-text">建议尺寸:690 * 240px,拖拽图片可调整图片顺序哦,最多添加五张</div>
  295. <div class="list-box">
  296. <draggable
  297. v-if="name == 'admin_login_slide'"
  298. class="dragArea list-group Bbox"
  299. :list="tabList.list"
  300. group="peoples"
  301. handle=".move-icon"
  302. >
  303. <div class="items" v-for="(item, index) in tabList.list" :key="index">
  304. <div class="move-icon">
  305. <span class="iconfont icondrag2"></span>
  306. </div>
  307. <div class="img-box" @click="modalPicTap('单选', index)">
  308. <img :src="item.slide" alt="" v-if="item.slide" />
  309. <div class="upload-box" v-else>
  310. <Icon type="ios-camera-outline" size="36" />
  311. </div>
  312. <div class="delect-btn" @click.stop="bindDelete(item, index)">
  313. <Icon type="md-close-circle" size="26" />
  314. </div>
  315. </div>
  316. <div class="info"></div>
  317. </div>
  318. </draggable>
  319. <draggable v-else class="dragArea list-group" :list="tabList.list" group="peoples" handle=".move-icon">
  320. <div class="item" v-for="(item, index) in tabList.list" :key="index">
  321. <div class="move-icon">
  322. <span class="iconfont icondrag2"></span>
  323. </div>
  324. <div class="img-box" @click="modalPicTap('单选', index)">
  325. <img :src="item.img" alt="" v-if="item.img" />
  326. <div class="upload-box" v-else>
  327. <Icon type="ios-camera-outline" size="36" />
  328. </div>
  329. <div class="delect-btn" @click.stop="bindDelete(item, index)">
  330. <Icon type="md-close-circle" size="26" />
  331. </div>
  332. </div>
  333. <div class="info">
  334. <div class="info-item">
  335. <span>图片名称:</span>
  336. <div class="input-box">
  337. <Input v-model="item.comment" placeholder="请填写名称" />
  338. </div>
  339. </div>
  340. <div class="info-item">
  341. <span>链接地址:</span>
  342. <div class="input-box" @click="link(index)">
  343. <Input v-model="item.link" icon="ios-arrow-forward" readonly placeholder="选择链接" />
  344. </div>
  345. </div>
  346. </div>
  347. </div>
  348. </draggable>
  349. <div>
  350. <Modal
  351. v-model="modalPic"
  352. width="950px"
  353. scrollable
  354. footer-hide
  355. closable
  356. title="上传商品图"
  357. :mask-closable="false"
  358. :z-index="999"
  359. >
  360. <uploadPictures
  361. :isChoice="isChoice"
  362. @getPic="getPic"
  363. :gridBtn="gridBtn"
  364. :gridPic="gridPic"
  365. v-if="modalPic"
  366. ></uploadPictures>
  367. </Modal>
  368. </div>
  369. </div>
  370. <template>
  371. <div class="add-btn">
  372. <Button
  373. type="primary"
  374. ghost
  375. style="width: 100px; height: 35px; background-color: #1890ff; color: #ffffff"
  376. @click="addBox"
  377. >添加图片
  378. </Button>
  379. </div>
  380. </template>
  381. </div>
  382. </div>
  383. </div>
  384. </div>
  385. <div v-if="guide === 2" :class="name != 'admin_login_slide' ? 'content' : 'contents'">
  386. <div class="right-box">
  387. <div class="hot_imgs">
  388. <div class="title">引导页设置</div>
  389. <div class="title-text">建议尺寸:750 * 1334px,拖拽图片可调整图片顺序哦,最多添加五张</div>
  390. <div class="list-box">
  391. <div>
  392. <Form :model="formItem" :label-width="80">
  393. <FormItem label="开屏广告:">
  394. <i-switch v-model="formItem.status" :true-value="1" :false-value="0" size="large">
  395. <span slot="开">开启</span>
  396. <span slot="关">关闭</span>
  397. </i-switch>
  398. </FormItem>
  399. <FormItem label="广告时间:">
  400. <Input
  401. v-model.number="formItem.time"
  402. type="number"
  403. placeholder="请输入开屏广告时间"
  404. style="width: 150px"
  405. ></Input>
  406. 单位(秒)
  407. </FormItem>
  408. </Form>
  409. </div>
  410. <draggable class="dragArea list-group" :list="tabList.list" group="peoples" handle=".move-icon">
  411. <div class="item" v-for="(item, index) in tabList.list" :key="index">
  412. <div class="move-icon">
  413. <span class="iconfont icondrag2"></span>
  414. </div>
  415. <div class="img-box" @click="modalPicTap('单选', index)">
  416. <img :src="item.img" alt="" v-if="item.img" />
  417. <div class="upload-box" v-else>
  418. <Icon type="ios-camera-outline" size="36" />
  419. </div>
  420. <div class="delect-btn" @click.stop="bindDelete(item, index)">
  421. <Icon type="md-close-circle" size="26" />
  422. </div>
  423. </div>
  424. <div class="info">
  425. <div class="info-item">
  426. <span>图片名称:</span>
  427. <div class="input-box">
  428. <Input v-model="item.comment" placeholder="请填写名称" />
  429. </div>
  430. </div>
  431. <div class="info-item">
  432. <span>链接地址:</span>
  433. <div class="input-box" @click="link(index)">
  434. <Input v-model="item.link" icon="ios-arrow-forward" readonly placeholder="选择链接" />
  435. </div>
  436. </div>
  437. </div>
  438. </div>
  439. </draggable>
  440. <div>
  441. <Modal
  442. v-model="modalPic"
  443. width="950px"
  444. scrollable
  445. footer-hide
  446. closable
  447. title="上传商品图"
  448. :mask-closable="false"
  449. :z-index="999"
  450. >
  451. <uploadPictures
  452. :isChoice="isChoice"
  453. @getPic="getPic"
  454. :gridBtn="gridBtn"
  455. :gridPic="gridPic"
  456. v-if="modalPic"
  457. ></uploadPictures>
  458. </Modal>
  459. </div>
  460. </div>
  461. <template v-if="tabList.list.length < 5">
  462. <div class="add-btn">
  463. <Button
  464. type="primary"
  465. ghost
  466. style="width: 100px; height: 35px; background-color: #1890ff; color: #ffffff"
  467. @click="addBox"
  468. >添加图片
  469. </Button>
  470. </div>
  471. </template>
  472. </div>
  473. </div>
  474. </div>
  475. </div>
  476. <linkaddress ref="linkaddres" @linkUrl="linkUrl"></linkaddress>
  477. </div>
  478. </template>
  479. <script>
  480. import WangEditor from '@/components/wangEditor/index.vue';
  481. import Setting from '@/setting';
  482. import { diyGetInfo, diySave, getColorChange } from '@/api/diy';
  483. import { mapState } from 'vuex';
  484. import editFrom from '@/components/from/from';
  485. import { productGetTempKeysApi, uploadType } from '@/api/product';
  486. import {
  487. groupAllApi,
  488. groupDataListApi,
  489. groupSaveApi,
  490. openAdvSave,
  491. groupDataAddApi,
  492. groupDataHeaderApi,
  493. groupDataEditApi,
  494. groupDataSetApi,
  495. getAgreement,
  496. setAgreement,
  497. getOpenAdv,
  498. } from '@/api/system';
  499. import draggable from 'vuedraggable';
  500. import uploadPictures from '@/components/uploadPictures';
  501. import linkaddress from '@/components/linkaddress';
  502. import { getCookies } from '@/libs/util';
  503. export default {
  504. name: 'list',
  505. components: {
  506. editFrom,
  507. draggable,
  508. uploadPictures,
  509. linkaddress,
  510. WangEditor,
  511. },
  512. computed: {
  513. bgcolors() {
  514. return {
  515. '--color-theme': this.bgCol,
  516. };
  517. },
  518. labelWidth() {
  519. return this.isMobile ? undefined : 120;
  520. },
  521. labelPosition() {
  522. return this.isMobile ? 'top' : 'right';
  523. },
  524. ...mapState('admin/layout', ['menuCollapse']),
  525. },
  526. data() {
  527. return {
  528. formValidate: {
  529. content: '',
  530. },
  531. ruleValidate: {},
  532. myConfig: {
  533. autoHeightEnabled: false, // 编辑器不自动被内容撑高
  534. initialFrameHeight: 500, // 初始容器高度
  535. initialFrameWidth: '100%', // 初始容器宽度
  536. UEDITOR_HOME_URL: '/UEditor/',
  537. serverUrl: '',
  538. },
  539. a: 0, //判断的隐私协议
  540. guide: 0,
  541. bgimg: 0,
  542. columns1: [],
  543. bgCol: '',
  544. name: 'routine_home_bast_banner',
  545. grid: {
  546. xl: 7,
  547. lg: 7,
  548. md: 12,
  549. sm: 24,
  550. xs: 24,
  551. },
  552. loading: false,
  553. sginList: [],
  554. progress: 0, // 进度条默认0
  555. swiperOption: {
  556. //显示分页
  557. pagination: {
  558. el: '.swiper-pagination',
  559. },
  560. //设置点击箭头
  561. navigation: {
  562. nextEl: '.swiper-button-next',
  563. prevEl: '.swiper-button-prev',
  564. },
  565. //自动轮播
  566. autoplay: {
  567. delay: 2000,
  568. //当用户滑动图片后继续自动轮播
  569. disableOnInteraction: false,
  570. },
  571. //开启循环模式
  572. loop: false,
  573. },
  574. url: '',
  575. BaseURL: Setting.apiBaseURL.replace(/adminapi/, ''),
  576. pageId: 0,
  577. theme3: 'light',
  578. tabList: [],
  579. upload_type: '', //视频上传类型 1 本地上传 2 3 4 OSS上传
  580. uploadData: {}, // 上传参数
  581. lastObj: {
  582. add_time: '',
  583. comment: '',
  584. gid: '',
  585. id: '',
  586. img: '',
  587. link: '',
  588. sort: '',
  589. status: 1,
  590. },
  591. isChoice: '单选',
  592. modalPic: false,
  593. gridPic: {
  594. xl: 6,
  595. lg: 8,
  596. md: 12,
  597. sm: 12,
  598. xs: 12,
  599. },
  600. gridBtn: {
  601. xl: 4,
  602. lg: 8,
  603. md: 8,
  604. sm: 8,
  605. xs: 8,
  606. },
  607. groupAll: [],
  608. activeIndex: 0,
  609. sortName: null,
  610. activeIndexs: 0,
  611. cmsList: [],
  612. loadingExist: false,
  613. formItem: {
  614. time: '',
  615. type: 'pic',
  616. status: 1,
  617. value: [],
  618. video_link: '',
  619. },
  620. fileUrl: Setting.apiBaseURL + '/file/upload',
  621. cardUrl: Setting.apiBaseURL + '/file/upload/1',
  622. header: {},
  623. type: 0,
  624. upload: {
  625. videoIng: false, // 是否显示进度条;
  626. },
  627. };
  628. },
  629. created() {
  630. this.color();
  631. this.uploadType();
  632. this.getToken();
  633. },
  634. mounted() {
  635. this.getGroupAll();
  636. this.info();
  637. this.url = this.BaseURL + 'pages/columnGoods/HotNewGoods/index?type=1';
  638. },
  639. methods: {
  640. getEditorContent(data) {
  641. this.formValidate.content = data;
  642. },
  643. // 删除视频;
  644. delVideo() {
  645. let that = this;
  646. that.$set(that.formItem, 'video_link', '');
  647. },
  648. //获取视频上传类型
  649. uploadType() {
  650. uploadType().then((res) => {
  651. this.upload_type = res.data.upload_type;
  652. });
  653. },
  654. // 上传成功
  655. handleSuccess(res, file, fileList) {
  656. if (res.status === 200) {
  657. this.$set(this.formItem, 'video_link', res.data.src);
  658. this.$Message.success(res.msg);
  659. } else {
  660. this.$Message.error(res.msg);
  661. }
  662. },
  663. zh_uploadFile() {
  664. if (this.video_link) {
  665. this.formValidate.video_link = this.video_link;
  666. } else {
  667. this.$refs.refid.click();
  668. }
  669. },
  670. zh_uploadFile_change(evfile) {
  671. let that = this;
  672. let suffix = evfile.target.files[0].name.substr(evfile.target.files[0].name.indexOf('.'));
  673. if (suffix.indexOf('.mp4') === -1) {
  674. return that.$Message.error('只能上传MP4文件');
  675. }
  676. productGetTempKeysApi()
  677. .then((res) => {
  678. that.$videoCloud
  679. .videoUpload({
  680. type: res.data.type,
  681. evfile: evfile,
  682. res: res,
  683. uploading(status, progress) {
  684. that.upload.videoIng = status;
  685. },
  686. })
  687. .then((res) => {
  688. that.formValidate.video_link = res.url;
  689. that.$Message.success('视频上传成功');
  690. })
  691. .catch((res) => {
  692. that.$Message.error(res);
  693. });
  694. })
  695. .catch((res) => {
  696. that.$Message.error(res.msg);
  697. });
  698. },
  699. // 上传头部token
  700. getToken() {
  701. this.header['Authori-zation'] = 'Bearer ' + getCookies('token');
  702. },
  703. beforeUpload() {
  704. this.uploadData = {};
  705. let promise = new Promise((resolve) => {
  706. this.$nextTick(function () {
  707. resolve(true);
  708. });
  709. });
  710. return promise;
  711. },
  712. linkUrl(e) {
  713. this.tabList.list[this.activeIndexs].link = e;
  714. },
  715. color() {
  716. getColorChange('color_change').then((res) => {
  717. switch (res.data.status) {
  718. case 1:
  719. this.bgCol = '#3875EA';
  720. this.bgimg = 1;
  721. break;
  722. case 2:
  723. this.bgCol = '#00C050';
  724. this.bgimg = 2;
  725. break;
  726. case 3:
  727. this.bgCol = '#E93323';
  728. this.bgimg = 3;
  729. break;
  730. case 4:
  731. this.bgCol = '#FF448F';
  732. this.bgimg = 4;
  733. break;
  734. case 5:
  735. this.bgCol = '#FE5C2D';
  736. this.bgimg = 5;
  737. break;
  738. }
  739. });
  740. },
  741. // 添加表单
  742. groupAdd() {
  743. this.$modalForm(groupDataAddApi({ gid: this.pageId, config_name: this.name }, 'setting/group_data/create')).then(
  744. () => {
  745. this.url = this.BaseURL + 'pages/users/user_sgin/index';
  746. this.info();
  747. },
  748. );
  749. },
  750. info() {
  751. groupDataListApi({ config_name: this.name }, 'setting/group_data')
  752. .then(async (res) => {
  753. this.tabList = res.data;
  754. if (this.name == 'admin_login_slide') {
  755. this.tabList.list.forEach((item, index, array) => {
  756. if (typeof item.slide != 'string' && item.slide != 'undefined') {
  757. item.slide = item.slide[0];
  758. }
  759. });
  760. } else if (this.name == 'sign_day_num') {
  761. this.cmsList = res.data.list;
  762. } else if (this.name == 'user_recharge_quota') {
  763. this.sginList = res.data;
  764. } else {
  765. this.tabList.list.forEach((item, index, array) => {
  766. if (typeof item.img != 'string' && item.img != 'undefined') {
  767. item.img = item.img[0];
  768. }
  769. });
  770. }
  771. })
  772. .catch((res) => {
  773. this.loading = false;
  774. this.$Message.error(res.msg);
  775. });
  776. },
  777. edits(row) {
  778. this.pageId = row.id || 0;
  779. this.name = row.config_name || '';
  780. if (row == 1) {
  781. this.a = 1;
  782. this.guide = 0;
  783. this.getAgreement();
  784. } else if (row == 2) {
  785. this.a = 0;
  786. this.guide = 2;
  787. getOpenAdv().then((res) => {
  788. if (res.data) {
  789. this.formItem = res.data;
  790. this.tabList.list = res.data.value;
  791. } else {
  792. this.formItem = {
  793. time: '',
  794. type: 'pic',
  795. status: 1,
  796. value: [],
  797. video_link: '',
  798. };
  799. this.tabList.list = [];
  800. }
  801. });
  802. } else {
  803. this.info();
  804. this.guide = 0;
  805. this.a = 0;
  806. switch (row.config_name) {
  807. case 'routine_home_bast_banner':
  808. this.url = this.BaseURL + 'pages/columnGoods/HotNewGoods/index?type=1&name=精品推荐';
  809. break;
  810. case 'sign_day_num':
  811. this.url = '';
  812. this.getListHeader();
  813. break;
  814. case 'combination_banner':
  815. this.url = this.BaseURL + 'pages/activity/goods_combination/index';
  816. break;
  817. case 'routine_home_hot_banner':
  818. this.url = this.BaseURL + 'pages/columnGoods/HotNewGoods/index?type=2&name=热门榜单';
  819. break;
  820. case 'routine_home_new_banner':
  821. this.url = this.BaseURL + 'pages/columnGoods/HotNewGoods/index?type=3&name=首发新品';
  822. break;
  823. case 'routine_home_benefit_banner':
  824. this.url = this.BaseURL + 'pages/columnGoods/HotNewGoods/index?type=4&name=促销单品';
  825. break;
  826. case 'user_recharge_quota':
  827. this.url = '';
  828. this.getListHeader();
  829. break;
  830. case 'admin_login_slide':
  831. this.url = '';
  832. break;
  833. case 'integral_shop_banner':
  834. this.url = '';
  835. break;
  836. }
  837. }
  838. },
  839. addBox() {
  840. if (this.tabList.list.length == 0) {
  841. this.tabList.list.push(this.lastObj);
  842. this.lastObj = {
  843. add_time: '',
  844. comment: '',
  845. gid: '',
  846. id: '',
  847. img: '',
  848. link: '',
  849. sort: '',
  850. status: 1,
  851. };
  852. } else {
  853. if (this.tabList.list.length == 5) {
  854. this.$Message.warning('最多添加五张呦');
  855. } else {
  856. let obj = JSON.parse(JSON.stringify(this.lastObj));
  857. this.tabList.list.push(obj);
  858. }
  859. }
  860. },
  861. // 删除
  862. bindDelete(item, index) {
  863. this.tabList.list.splice(index, 1);
  864. },
  865. // 点击图文封面
  866. modalPicTap(title, index) {
  867. this.activeIndex = index;
  868. this.modalPic = true;
  869. },
  870. // 获取图片信息
  871. getPic(pc) {
  872. this.$nextTick(() => {
  873. if (this.name == 'admin_login_slide') {
  874. this.tabList.list[this.activeIndex].slide = pc.att_dir;
  875. } else {
  876. this.tabList.list[this.activeIndex].img = pc.att_dir;
  877. }
  878. this.modalPic = false;
  879. });
  880. },
  881. save() {
  882. if (this.a == 1) {
  883. this.onsubmit('formValidate');
  884. } else if (this.guide == 2) {
  885. this.formItem.value = this.tabList.list;
  886. openAdvSave(this.formItem).then((res) => {
  887. this.$Message.success(res.msg);
  888. });
  889. } else {
  890. this.loadingExist = true;
  891. groupSaveApi({
  892. gid: this.pageId,
  893. config_name: this.name,
  894. data: this.tabList.list,
  895. })
  896. .then((res) => {
  897. this.loadingExist = false;
  898. this.$Message.success(res.msg);
  899. })
  900. .catch((err) => {
  901. this.loadingExist = false;
  902. this.$Message.error(err.msg);
  903. });
  904. }
  905. },
  906. link(index) {
  907. this.activeIndexs = index;
  908. this.$refs.linkaddres.modals = true;
  909. },
  910. getListHeader() {
  911. this.loading = true;
  912. groupDataHeaderApi({ config_name: this.name }, 'setting/sign_data/header')
  913. .then((res) => {
  914. let data = res.data;
  915. let header = data.header;
  916. let index = [];
  917. this.columns1 = header;
  918. this.loading = false;
  919. })
  920. .catch((res) => {
  921. this.loading = false;
  922. this.$Message.error(res.msg);
  923. });
  924. },
  925. // 编辑
  926. edit(row) {
  927. this.$modalForm(
  928. groupDataEditApi({ gid: this.pageId, config_name: this.name }, 'setting/group_data/' + row.id + '/edit'),
  929. ).then(() => {
  930. this.info();
  931. this.url = this.BaseURL + 'pages/users/user_sgin/index';
  932. });
  933. },
  934. // 删除
  935. del(row, tit, num) {
  936. let delfromData = {
  937. title: tit,
  938. num: num,
  939. url: 'setting/group_data/' + row.id,
  940. method: 'DELETE',
  941. ids: '',
  942. };
  943. this.$modalSure(delfromData)
  944. .then((res) => {
  945. this.info();
  946. this.$Message.success(res.msg);
  947. })
  948. .catch((res) => {
  949. this.$Message.error(res.msg);
  950. });
  951. },
  952. // 修改是否显示
  953. onchangeIsShow(row) {
  954. groupDataSetApi('setting/group_data/set_status/' + row.id + '/' + row.status)
  955. .then(async (res) => {
  956. this.url = this.BaseURL + '/pages/users/user_sgin/index';
  957. this.$Message.success(res.msg);
  958. this.info();
  959. })
  960. .catch((res) => {
  961. this.url = this.BaseURL + '/pages/users/user_sgin/index';
  962. this.$Message.error(res.msg);
  963. });
  964. },
  965. getGroupAll() {
  966. groupAllApi()
  967. .then(async (res) => {
  968. this.groupAll = res.data;
  969. this.sortName = res.data[0].config_name;
  970. this.pageId = res.data[0].id;
  971. })
  972. .catch((res) => {
  973. this.$Message.error(res.msg);
  974. });
  975. },
  976. getContent(val) {
  977. this.formValidate.content = val;
  978. },
  979. // 提交数据
  980. onsubmit(name) {
  981. this.$refs[name].validate((valid) => {
  982. if (valid) {
  983. setAgreement(this.formValidate)
  984. .then(async (res) => {
  985. this.$Message.success(res.msg);
  986. })
  987. .catch((res) => {
  988. this.$Message.error(res.msg);
  989. });
  990. } else {
  991. return false;
  992. }
  993. });
  994. },
  995. //详情
  996. getAgreement() {
  997. getAgreement()
  998. .then(async (res) => {
  999. let data = res.data;
  1000. this.formValidate = {
  1001. content: data.content,
  1002. };
  1003. })
  1004. .catch((res) => {
  1005. this.loading = false;
  1006. this.$Message.error(res.msg);
  1007. });
  1008. },
  1009. },
  1010. };
  1011. </script>
  1012. <style scoped lang="stylus">
  1013. /deep/ .ivu-menu-vertical .ivu-menu-item-group-title {
  1014. display: none;
  1015. }
  1016. /deep/ .ivu-menu-vertical.ivu-menu-light:after {
  1017. display: none;
  1018. }
  1019. /deep/.ivu-form-item-content {
  1020. margin-left: 0px !important;
  1021. }
  1022. .nofont {
  1023. text-align: center;
  1024. line-height: 123px;
  1025. }
  1026. .nofonts {
  1027. text-align: center;
  1028. line-height: 105px;
  1029. }
  1030. .save {
  1031. width: 100%;
  1032. margin: 0 auto;
  1033. text-align: center;
  1034. background-color: #FFF;
  1035. bottom: 0;
  1036. padding: 16px;
  1037. border-top: 3px solid #f5f7f9;
  1038. }
  1039. .form {
  1040. .goodsTitle {
  1041. margin-bottom: 25px;
  1042. }
  1043. .goodsTitle ~ .goodsTitle {
  1044. margin-top: 20px;
  1045. }
  1046. .goodsTitle .title {
  1047. border-bottom: 2px solid #1890ff;
  1048. padding: 0 8px 12px 5px;
  1049. color: #000;
  1050. font-size: 14px;
  1051. }
  1052. .goodsTitle .icons {
  1053. font-size: 15px;
  1054. margin-right: 8px;
  1055. color: #999;
  1056. }
  1057. .add {
  1058. font-size: 12px;
  1059. color: #1890ff;
  1060. padding: 0 12px;
  1061. cursor: pointer;
  1062. }
  1063. .radio {
  1064. margin-right: 20px;
  1065. }
  1066. .upLoad {
  1067. width: 58px;
  1068. height: 58px;
  1069. line-height: 58px;
  1070. border: 1px dotted rgba(0, 0, 0, 0.1);
  1071. border-radius: 4px;
  1072. background: rgba(0, 0, 0, 0.02);
  1073. }
  1074. .iconfont {
  1075. color: #898989;
  1076. }
  1077. .pictrue {
  1078. width: 60px;
  1079. height: 60px;
  1080. border: 1px dotted rgba(0, 0, 0, 0.1);
  1081. margin-right: 10px;
  1082. }
  1083. .pictrue img {
  1084. width: 100%;
  1085. height: 100%;
  1086. }
  1087. }
  1088. .agreement-box {
  1089. width: 310px;
  1090. height: 550px;
  1091. border-radius: 10px;
  1092. background: rgba(0, 0, 0, 0);
  1093. border: 1px solid #EEEEEE;
  1094. opacity: 1;
  1095. position: relative;
  1096. .template {
  1097. position: absolute;
  1098. width: 100%;
  1099. height: 100%;
  1100. top: 0;
  1101. left: 0;
  1102. border-radius: 10px;
  1103. background-color: #817e81;
  1104. }
  1105. .htmls_box {
  1106. font-size: 12px;
  1107. width: 259px;
  1108. height: 430px;
  1109. border-radius: 10px;
  1110. background-color: #fff;
  1111. position: absolute;
  1112. top: 58px;
  1113. left: 26px;
  1114. .htmls_top {
  1115. position: absolute;
  1116. top: 8px;
  1117. left: 0;
  1118. height: 34px;
  1119. text-align: center;
  1120. width: 100%;
  1121. line-height: 35px;
  1122. font-weight: 600;
  1123. font-size: 20px;
  1124. }
  1125. .htmls_font {
  1126. position: absolute;
  1127. bottom: 0;
  1128. left: 0;
  1129. padding: 15px 15px;
  1130. text-align: center;
  1131. width: 100%;
  1132. div {
  1133. height: 35px;
  1134. line-height: 35px;
  1135. border-radius: 20px;
  1136. }
  1137. .ok {
  1138. background-color: #f33316;
  1139. color: #FFFFFF;
  1140. }
  1141. }
  1142. .htmls {
  1143. position: absolute;
  1144. background-color: #fff;
  1145. top: 50px;
  1146. left: 0;
  1147. width: 259px;
  1148. height: 281px;
  1149. border-radius: 4px;
  1150. overflow: auto;
  1151. padding: 5px 15px;
  1152. word-break: break-word;
  1153. }
  1154. .htmls::-webkit-scrollbar {
  1155. display: none;
  1156. }
  1157. }
  1158. }
  1159. .Bbox {
  1160. width: 495px;
  1161. display: flex;
  1162. flex-wrap: wrap;
  1163. }
  1164. .item {
  1165. margin-right: 15px;
  1166. border: 1px dashed #dbdbdb;
  1167. padding-bottom: 10px;
  1168. padding-right: 15px;
  1169. padding-top: 20px;
  1170. }
  1171. .items {
  1172. margin-right: 15px;
  1173. border: 1px dashed #dbdbdb;
  1174. padding-bottom: 10px;
  1175. padding-top: 15px;
  1176. position: relative;
  1177. display: flex;
  1178. margin-top: 20px;
  1179. .move-icon {
  1180. display: flex;
  1181. align-items: center;
  1182. justify-content: center;
  1183. width: 30px;
  1184. height: 80px;
  1185. cursor: move;
  1186. color: #D8D8D8;
  1187. }
  1188. .img-box {
  1189. position: relative;
  1190. width: 80px;
  1191. height: 80px;
  1192. img {
  1193. width: 100%;
  1194. height: 100%;
  1195. }
  1196. }
  1197. .info {
  1198. flex: 1;
  1199. margin-left: 22px;
  1200. .info-item {
  1201. display: flex;
  1202. align-items: center;
  1203. margin-bottom: 10px;
  1204. span {
  1205. // width 40px
  1206. font-size: 13px;
  1207. .input-box {
  1208. flex: 1;
  1209. }
  1210. }
  1211. }
  1212. }
  1213. .delect-btn {
  1214. position: absolute;
  1215. right: -12px;
  1216. top: -12px;
  1217. color: #999999;
  1218. .iconfont {
  1219. font-size: 28px;
  1220. color: #999;
  1221. }
  1222. }
  1223. }
  1224. .table {
  1225. width: 700px;
  1226. color: #515a6e;
  1227. font-size: 14px;
  1228. background-color: #fff;
  1229. margin-left: 20px;
  1230. }
  1231. .contents {
  1232. width: 150px;
  1233. .right-box {
  1234. margin-left: 40px;
  1235. }
  1236. .title-text {
  1237. width: 500px;
  1238. }
  1239. }
  1240. .pciframe {
  1241. margin-left: 20px;
  1242. width: 430px;
  1243. height: 280px;
  1244. background: #FFFFFF;
  1245. border: 1px solid #EEEEEE;
  1246. border-radius: 13px;
  1247. position: relative;
  1248. img {
  1249. width: 100%;
  1250. height: 100%;
  1251. }
  1252. .pciframe-box {
  1253. background: rgba(0, 0, 0, 0);
  1254. // border: 1px solid #EEEEEE;
  1255. border-radius: 4px;
  1256. }
  1257. .pcmoddile_goods {
  1258. position: absolute;
  1259. top: 69px;
  1260. width: 171px;
  1261. height: 140px;
  1262. border-top-left-radius: 2px;
  1263. border-bottom-left-radius: 2px;
  1264. left: 65px;
  1265. background-color: #fff;
  1266. }
  1267. .pcswiperimg_goods {
  1268. height: 140px;
  1269. background-color: #f5f5f5;
  1270. img {
  1271. width: 100%;
  1272. height: 100%;
  1273. }
  1274. }
  1275. }
  1276. .link {
  1277. display: inline-block;
  1278. width: 100%;
  1279. height: 32px;
  1280. line-height: 1.5;
  1281. padding: 4px 7px;
  1282. border: 1px solid #dcdee2;
  1283. border-radius: 4px;
  1284. background-color: #fff;
  1285. position: relative;
  1286. cursor: text;
  1287. transition: border 0.2s ease-in-out, background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  1288. font-size: 13px;
  1289. font-family: PingFangSC-Regular;
  1290. line-height: 22px;
  1291. color: rgba(0, 0, 0, 0.25);
  1292. opacity: 1;
  1293. cursor: pointer;
  1294. .you {
  1295. color: #999999;
  1296. float: right;
  1297. margin-right: 11px;
  1298. }
  1299. }
  1300. .swiperimg {
  1301. width: 310px;
  1302. max-height: 126px;
  1303. border-top-left-radius: 10px;
  1304. border-top-right-radius: 10px;
  1305. img {
  1306. width: 100%;
  1307. height: 100%;
  1308. }
  1309. }
  1310. .swiperimgs {
  1311. width: 310px;
  1312. height: 100%;
  1313. border-radius: 10px;
  1314. img {
  1315. width: 100%;
  1316. height: 100%;
  1317. }
  1318. }
  1319. .swiperimg_goods {
  1320. width: 284px;
  1321. height: 124px;
  1322. border-radius: 4px;
  1323. line-height: 99px;
  1324. text-align: center;
  1325. background-color: #f5f5f5;
  1326. img {
  1327. width: 100%;
  1328. height: 100%;
  1329. }
  1330. }
  1331. .title {
  1332. padding: 0 0 13px 0;
  1333. font-weight: bold;
  1334. font-size: 15px;
  1335. border-left: 2px solid #1890FF;
  1336. height: 23px;
  1337. padding-left: 10px;
  1338. }
  1339. .title-text {
  1340. padding: 0 0 0px 16px;
  1341. color: #999;
  1342. font-size: 12px;
  1343. margin-top: 10px;
  1344. }
  1345. .content {
  1346. // width 510px;
  1347. .right-box {
  1348. margin-left: 40px;
  1349. }
  1350. }
  1351. .box {
  1352. border-top: 3px solid #f5f7f9;
  1353. padding: 10px;
  1354. padding-top: 25px;
  1355. width: 100%;
  1356. .save {
  1357. background-color: #1890FF;
  1358. color: #FFFFFF;
  1359. width: 71px;
  1360. height: 30px;
  1361. margin: 0 auto;
  1362. text-align: center;
  1363. line-height: 30px;
  1364. cursor: pointer;
  1365. }
  1366. }
  1367. .iframe {
  1368. margin-left: 20px;
  1369. position: relative;
  1370. width: 310px;
  1371. height: 550px;
  1372. background: #FFFFFF;
  1373. border: 1px solid #EEEEEE;
  1374. opacity: 1;
  1375. border-radius: 10px;
  1376. }
  1377. .moddile {
  1378. position: absolute;
  1379. width: 310px;
  1380. height: 550px;
  1381. top: 0px;
  1382. opacity: 0;
  1383. left: 0px;
  1384. border-radius: 4px;
  1385. }
  1386. .moddile_box {
  1387. position: absolute;
  1388. top: 0px;
  1389. width: 310px;
  1390. height: 115px;
  1391. border-top-left-radius: 4px;
  1392. border-top-right-radius: 4px;
  1393. left: 0px;
  1394. background-color: #f5f5f5;
  1395. }
  1396. .moddile_goods {
  1397. position: absolute;
  1398. top: 12px;
  1399. width: 284px;
  1400. height: 124px;
  1401. /* border-top-left-radius: 10px; */
  1402. /* border-top-right-radius: 10px; */
  1403. border-radius: 5px;
  1404. left: 13px;
  1405. line-height: 99px;
  1406. text-align: center;
  1407. background-color: #f5f5f5;
  1408. }
  1409. .iframe-box {
  1410. width: 310px;
  1411. height: 100%;
  1412. border-radius: 10px;
  1413. // margin: 30px 15px 0px 15px
  1414. background: rgba(0, 0, 0, 0);
  1415. border: 1px solid #EEEEEE;
  1416. opacity: 1;
  1417. img {
  1418. width: 100%;
  1419. height: 100%;
  1420. }
  1421. }
  1422. .left-wrapper {
  1423. min-width: 213px;
  1424. background: #fff;
  1425. border-right: 1px solid #dcdee2;
  1426. }
  1427. .menu-item {
  1428. position: relative;
  1429. display: flex;
  1430. justify-content: space-between;
  1431. word-break: break-all;
  1432. .icon-box {
  1433. z-index: 3;
  1434. position: absolute;
  1435. right: 20px;
  1436. top: 50%;
  1437. transform: translateY(-50%);
  1438. display: none;
  1439. }
  1440. &:hover .icon-box {
  1441. display: block;
  1442. }
  1443. .right-menu {
  1444. z-index: 10;
  1445. position: absolute;
  1446. right: -106px;
  1447. top: -11px;
  1448. width: auto;
  1449. min-width: 121px;
  1450. }
  1451. }
  1452. .tabBox_img {
  1453. width: 36px;
  1454. height: 36px;
  1455. border-radius: 4px;
  1456. cursor: pointer;
  1457. img {
  1458. width: 100%;
  1459. height: 100%;
  1460. }
  1461. }
  1462. .ivu-menu {
  1463. z-index: auto;
  1464. }
  1465. .icondrag2 {
  1466. font-size: 26px;
  1467. color: #d8d8d8;
  1468. }
  1469. .hot_imgs {
  1470. margin-bottom: 20px;
  1471. .title {
  1472. font-size: 14px;
  1473. }
  1474. .list-box {
  1475. .item {
  1476. position: relative;
  1477. display: flex;
  1478. margin-top: 20px;
  1479. .move-icon {
  1480. display: flex;
  1481. align-items: center;
  1482. justify-content: center;
  1483. width: 30px;
  1484. height: 80px;
  1485. cursor: move;
  1486. color: #D8D8D8;
  1487. }
  1488. .img-box {
  1489. position: relative;
  1490. width: 80px;
  1491. height: 80px;
  1492. img {
  1493. width: 100%;
  1494. height: 100%;
  1495. }
  1496. }
  1497. .info {
  1498. flex: 1;
  1499. margin-left: 22px;
  1500. .info-item {
  1501. display: flex;
  1502. align-items: center;
  1503. margin-bottom: 10px;
  1504. span {
  1505. // width 40px
  1506. font-size: 13px;
  1507. }
  1508. .input-box {
  1509. flex: 1;
  1510. }
  1511. }
  1512. }
  1513. .delect-btn {
  1514. position: absolute;
  1515. right: -12px;
  1516. top: -12px;
  1517. color: #999999;
  1518. .iconfont {
  1519. font-size: 28px;
  1520. color: #999;
  1521. }
  1522. }
  1523. }
  1524. }
  1525. .add-btn {
  1526. margin-top: 20px;
  1527. }
  1528. }
  1529. .upload-box {
  1530. display: flex;
  1531. align-items: center;
  1532. justify-content: center;
  1533. width: 100%;
  1534. height: 100%;
  1535. background: #ccc;
  1536. }
  1537. .iconfont {
  1538. color: #DDDDDD;
  1539. font-size: 28px;
  1540. }
  1541. .iframe-boxs::-webkit-scrollbar {
  1542. display: none;
  1543. }
  1544. .sgin_iframe::-webkit-scrollbar {
  1545. display: none;
  1546. }
  1547. .iframe-boxs {
  1548. width: 310px;
  1549. height: 550px;
  1550. border-radius: 10px;
  1551. background: rgba(0, 0, 0, 0);
  1552. border: 1px solid #EEEEEE;
  1553. opacity: 1;
  1554. overflow: auto;
  1555. .moneyBox {
  1556. background-color: var(--color-theme);
  1557. height: 414px;
  1558. border-radius: 10px;
  1559. .box1 {
  1560. text-align: center;
  1561. color: #FFFFFF;
  1562. padding-bottom: 15px;
  1563. .font1 {
  1564. padding-top: 20px;
  1565. // padding-bottom 15px
  1566. font-size: 12px;
  1567. opacity: 0.6;
  1568. }
  1569. .font2 {
  1570. font-size: 30px;
  1571. font-style: normal;
  1572. opacity: 0.9;
  1573. }
  1574. }
  1575. .moneyBox_content {
  1576. background-color: #FFFFFF;
  1577. height: 317px;
  1578. border-radius: 4px;
  1579. .box2 {
  1580. display: flex;
  1581. justify-content: space-around;
  1582. height: 35px;
  1583. line-height: 35px;
  1584. margin-bottom: 10px;
  1585. div:nth-child(1) {
  1586. font-weight: bold;
  1587. border-bottom: 2px solid var(--color-theme);
  1588. }
  1589. }
  1590. .box3 {
  1591. padding: 0px 10px;
  1592. display: flex;
  1593. justify-content: left;
  1594. flex-wrap: wrap;
  1595. .box3_box {
  1596. width: 90px;
  1597. height: 55px;
  1598. border-radius: 9px;
  1599. background-color: #f4f4f4;
  1600. color: #888;
  1601. margin-bottom: 10px;
  1602. text-align: center;
  1603. padding-top: 3px;
  1604. font-size: 19px;
  1605. margin-right: 3px;
  1606. margin-left: 3px;
  1607. .font {
  1608. font-size: 11px;
  1609. font-style: normal;
  1610. }
  1611. }
  1612. .box3_box:nth-child(1) {
  1613. width: 90px;
  1614. height: 55px;
  1615. border-radius: 9px;
  1616. background-color: var(--color-theme);
  1617. color: #FFFFFF;
  1618. text-align: center;
  1619. padding-top: 3px;
  1620. margin-right: 3px;
  1621. margin-left: 3px;
  1622. }
  1623. .other {
  1624. line-height: 55px;
  1625. }
  1626. }
  1627. .box4 {
  1628. padding: 0px 10px;
  1629. .tips {
  1630. font-size: 14px;
  1631. color: #333333;
  1632. font-weight: 800;
  1633. margin-bottom: 7px;
  1634. margin-top: 10px;
  1635. }
  1636. .tips-samll {
  1637. font-size: 12px;
  1638. color: #333333;
  1639. margin-bottom: 7px;
  1640. p {
  1641. margin: 2px 0px;
  1642. }
  1643. }
  1644. }
  1645. .box5 {
  1646. font-size: 15px;
  1647. width: 225px;
  1648. height: 40px;
  1649. border-radius: 25px;
  1650. margin: 23px auto 0 auto;
  1651. line-height: 40px;
  1652. text-align: center;
  1653. background-color: var(--color-theme);
  1654. color: #FFFFFF;
  1655. }
  1656. }
  1657. }
  1658. }
  1659. .bnt {
  1660. // width 80px!important
  1661. }
  1662. /deep/.i-layout-page-header {
  1663. height: 66px;
  1664. background-color: #fff;
  1665. border-bottom: 1px solid #e8eaec;
  1666. }
  1667. /deep/.ivu-page-header {
  1668. border-bottom: unset;
  1669. position: fixed;
  1670. z-index: 9;
  1671. width: 100%;
  1672. }
  1673. /deep/.i-layout-page-header {
  1674. height: 66px;
  1675. background-color: #fff;
  1676. border-bottom: 1px solid #e8eaec;
  1677. display: flex;
  1678. align-items: center;
  1679. justify-content: space-between;
  1680. }
  1681. .box-wrapper {
  1682. display: flex;
  1683. flex-wrap: nowrap;
  1684. padding: 20px;
  1685. background-color: #fff;
  1686. border-radius: 5px;
  1687. }
  1688. .iview-video-style {
  1689. width: 100%;
  1690. height: 180px;
  1691. border-radius: 10px;
  1692. background-color: #707070;
  1693. margin-top: 10px;
  1694. position: relative;
  1695. overflow: hidden;
  1696. }
  1697. .iview-video-style .iconv {
  1698. color: #fff;
  1699. line-height: 180px;
  1700. width: 50px;
  1701. height: 50px;
  1702. display: inherit;
  1703. font-size: 26px;
  1704. position: absolute;
  1705. top: -74px;
  1706. left: 50%;
  1707. margin-left: -25px;
  1708. }
  1709. .iview-video-style .mark {
  1710. position: absolute;
  1711. width: 100%;
  1712. height: 30px;
  1713. top: 0;
  1714. background-color: rgba(0, 0, 0, 0.5);
  1715. text-align: center;
  1716. }
  1717. </style>