visualization.vue 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833
  1. <template>
  2. <div :style="bgcolors">
  3. <div class="i-layout-page-header header-title">
  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. let types = {
  677. key: evfile.target.files[0].name,
  678. contentType: evfile.target.files[0].type,
  679. };
  680. productGetTempKeysApi(types)
  681. .then((res) => {
  682. that.$videoCloud
  683. .videoUpload({
  684. type: res.data.type,
  685. evfile: evfile,
  686. res: res,
  687. uploading(status, progress) {
  688. that.upload.videoIng = status;
  689. },
  690. })
  691. .then((res) => {
  692. that.formValidate.video_link = res.url;
  693. that.$Message.success('视频上传成功');
  694. })
  695. .catch((res) => {
  696. that.$Message.error(res);
  697. });
  698. })
  699. .catch((res) => {
  700. that.$Message.error(res.msg);
  701. });
  702. },
  703. // 上传头部token
  704. getToken() {
  705. this.header['Authori-zation'] = 'Bearer ' + getCookies('token');
  706. },
  707. beforeUpload() {
  708. this.uploadData = {};
  709. let promise = new Promise((resolve) => {
  710. this.$nextTick(function () {
  711. resolve(true);
  712. });
  713. });
  714. return promise;
  715. },
  716. linkUrl(e) {
  717. this.tabList.list[this.activeIndexs].link = e;
  718. },
  719. color() {
  720. getColorChange('color_change').then((res) => {
  721. switch (res.data.status) {
  722. case 1:
  723. this.bgCol = '#3875EA';
  724. this.bgimg = 1;
  725. break;
  726. case 2:
  727. this.bgCol = '#00C050';
  728. this.bgimg = 2;
  729. break;
  730. case 3:
  731. this.bgCol = '#E93323';
  732. this.bgimg = 3;
  733. break;
  734. case 4:
  735. this.bgCol = '#FF448F';
  736. this.bgimg = 4;
  737. break;
  738. case 5:
  739. this.bgCol = '#FE5C2D';
  740. this.bgimg = 5;
  741. break;
  742. }
  743. });
  744. },
  745. // 添加表单
  746. groupAdd() {
  747. this.$modalForm(groupDataAddApi({ gid: this.pageId, config_name: this.name }, 'setting/group_data/create')).then(
  748. () => {
  749. this.url = this.BaseURL + 'pages/users/user_sgin/index';
  750. this.info();
  751. },
  752. );
  753. },
  754. info() {
  755. groupDataListApi({ config_name: this.name }, 'setting/group_data')
  756. .then(async (res) => {
  757. this.tabList = res.data;
  758. if (this.name == 'admin_login_slide') {
  759. this.tabList.list.forEach((item, index, array) => {
  760. if (typeof item.slide != 'string' && item.slide != 'undefined') {
  761. item.slide = item.slide[0];
  762. }
  763. });
  764. } else if (this.name == 'sign_day_num') {
  765. this.cmsList = res.data.list;
  766. } else if (this.name == 'user_recharge_quota') {
  767. this.sginList = res.data;
  768. } else {
  769. this.tabList.list.forEach((item, index, array) => {
  770. if (typeof item.img != 'string' && item.img != 'undefined') {
  771. item.img = item.img[0];
  772. }
  773. });
  774. }
  775. })
  776. .catch((res) => {
  777. this.loading = false;
  778. this.$Message.error(res.msg);
  779. });
  780. },
  781. edits(row) {
  782. this.pageId = row.id || 0;
  783. this.name = row.config_name || '';
  784. if (row == 1) {
  785. this.a = 1;
  786. this.guide = 0;
  787. this.getAgreement();
  788. } else if (row == 2) {
  789. this.a = 0;
  790. this.guide = 2;
  791. getOpenAdv().then((res) => {
  792. if (res.data) {
  793. this.formItem = res.data;
  794. this.tabList.list = res.data.value;
  795. } else {
  796. this.formItem = {
  797. time: '',
  798. type: 'pic',
  799. status: 1,
  800. value: [],
  801. video_link: '',
  802. };
  803. this.tabList.list = [];
  804. }
  805. });
  806. } else {
  807. this.info();
  808. this.guide = 0;
  809. this.a = 0;
  810. switch (row.config_name) {
  811. case 'routine_home_bast_banner':
  812. this.url = this.BaseURL + 'pages/columnGoods/HotNewGoods/index?type=1&name=精品推荐';
  813. break;
  814. case 'sign_day_num':
  815. this.url = '';
  816. this.getListHeader();
  817. break;
  818. case 'combination_banner':
  819. this.url = this.BaseURL + 'pages/activity/goods_combination/index';
  820. break;
  821. case 'routine_home_hot_banner':
  822. this.url = this.BaseURL + 'pages/columnGoods/HotNewGoods/index?type=2&name=热门榜单';
  823. break;
  824. case 'routine_home_new_banner':
  825. this.url = this.BaseURL + 'pages/columnGoods/HotNewGoods/index?type=3&name=首发新品';
  826. break;
  827. case 'routine_home_benefit_banner':
  828. this.url = this.BaseURL + 'pages/columnGoods/HotNewGoods/index?type=4&name=促销单品';
  829. break;
  830. case 'user_recharge_quota':
  831. this.url = '';
  832. this.getListHeader();
  833. break;
  834. case 'admin_login_slide':
  835. this.url = '';
  836. break;
  837. case 'integral_shop_banner':
  838. this.url = '';
  839. break;
  840. }
  841. }
  842. },
  843. addBox() {
  844. if (this.tabList.list.length == 0) {
  845. this.tabList.list.push(this.lastObj);
  846. this.lastObj = {
  847. add_time: '',
  848. comment: '',
  849. gid: '',
  850. id: '',
  851. img: '',
  852. link: '',
  853. sort: '',
  854. status: 1,
  855. };
  856. } else {
  857. if (this.tabList.list.length == 5) {
  858. this.$Message.warning('最多添加五张呦');
  859. } else {
  860. let obj = JSON.parse(JSON.stringify(this.lastObj));
  861. this.tabList.list.push(obj);
  862. }
  863. }
  864. },
  865. // 删除
  866. bindDelete(item, index) {
  867. this.tabList.list.splice(index, 1);
  868. },
  869. // 点击图文封面
  870. modalPicTap(title, index) {
  871. this.activeIndex = index;
  872. this.modalPic = true;
  873. },
  874. // 获取图片信息
  875. getPic(pc) {
  876. this.$nextTick(() => {
  877. if (this.name == 'admin_login_slide') {
  878. this.tabList.list[this.activeIndex].slide = pc.att_dir;
  879. } else {
  880. this.tabList.list[this.activeIndex].img = pc.att_dir;
  881. }
  882. this.modalPic = false;
  883. });
  884. },
  885. save() {
  886. if (this.a == 1) {
  887. this.onsubmit('formValidate');
  888. } else if (this.guide == 2) {
  889. this.formItem.value = this.tabList.list;
  890. openAdvSave(this.formItem).then((res) => {
  891. this.$Message.success(res.msg);
  892. });
  893. } else {
  894. this.loadingExist = true;
  895. groupSaveApi({
  896. gid: this.pageId,
  897. config_name: this.name,
  898. data: this.tabList.list,
  899. })
  900. .then((res) => {
  901. this.loadingExist = false;
  902. this.$Message.success(res.msg);
  903. })
  904. .catch((err) => {
  905. this.loadingExist = false;
  906. this.$Message.error(err.msg);
  907. });
  908. }
  909. },
  910. link(index) {
  911. this.activeIndexs = index;
  912. this.$refs.linkaddres.modals = true;
  913. },
  914. getListHeader() {
  915. this.loading = true;
  916. groupDataHeaderApi({ config_name: this.name }, 'setting/sign_data/header')
  917. .then((res) => {
  918. let data = res.data;
  919. let header = data.header;
  920. let index = [];
  921. this.columns1 = header;
  922. this.loading = false;
  923. })
  924. .catch((res) => {
  925. this.loading = false;
  926. this.$Message.error(res.msg);
  927. });
  928. },
  929. // 编辑
  930. edit(row) {
  931. this.$modalForm(
  932. groupDataEditApi({ gid: this.pageId, config_name: this.name }, 'setting/group_data/' + row.id + '/edit'),
  933. ).then(() => {
  934. this.info();
  935. this.url = this.BaseURL + 'pages/users/user_sgin/index';
  936. });
  937. },
  938. // 删除
  939. del(row, tit, num) {
  940. let delfromData = {
  941. title: tit,
  942. num: num,
  943. url: 'setting/group_data/' + row.id,
  944. method: 'DELETE',
  945. ids: '',
  946. };
  947. this.$modalSure(delfromData)
  948. .then((res) => {
  949. this.info();
  950. this.$Message.success(res.msg);
  951. })
  952. .catch((res) => {
  953. this.$Message.error(res.msg);
  954. });
  955. },
  956. // 修改是否显示
  957. onchangeIsShow(row) {
  958. groupDataSetApi('setting/group_data/set_status/' + row.id + '/' + row.status)
  959. .then(async (res) => {
  960. this.url = this.BaseURL + '/pages/users/user_sgin/index';
  961. this.$Message.success(res.msg);
  962. this.info();
  963. })
  964. .catch((res) => {
  965. this.url = this.BaseURL + '/pages/users/user_sgin/index';
  966. this.$Message.error(res.msg);
  967. });
  968. },
  969. getGroupAll() {
  970. groupAllApi()
  971. .then(async (res) => {
  972. this.groupAll = res.data;
  973. this.sortName = res.data[0].config_name;
  974. this.pageId = res.data[0].id;
  975. })
  976. .catch((res) => {
  977. this.$Message.error(res.msg);
  978. });
  979. },
  980. getContent(val) {
  981. this.formValidate.content = val;
  982. },
  983. // 提交数据
  984. onsubmit(name) {
  985. this.$refs[name].validate((valid) => {
  986. if (valid) {
  987. setAgreement(this.formValidate)
  988. .then(async (res) => {
  989. this.$Message.success(res.msg);
  990. })
  991. .catch((res) => {
  992. this.$Message.error(res.msg);
  993. });
  994. } else {
  995. return false;
  996. }
  997. });
  998. },
  999. //详情
  1000. getAgreement() {
  1001. getAgreement()
  1002. .then(async (res) => {
  1003. let data = res.data;
  1004. this.formValidate = {
  1005. content: data.content,
  1006. };
  1007. })
  1008. .catch((res) => {
  1009. this.loading = false;
  1010. this.$Message.error(res.msg);
  1011. });
  1012. },
  1013. },
  1014. };
  1015. </script>
  1016. <style scoped lang="stylus">
  1017. /deep/ .ivu-menu-vertical .ivu-menu-item-group-title {
  1018. display: none;
  1019. }
  1020. /deep/ .ivu-menu-vertical.ivu-menu-light:after {
  1021. display: none;
  1022. }
  1023. /deep/.ivu-form-item-content {
  1024. margin-left: 0px !important;
  1025. }
  1026. .nofont {
  1027. text-align: center;
  1028. line-height: 123px;
  1029. }
  1030. .nofonts {
  1031. text-align: center;
  1032. line-height: 105px;
  1033. }
  1034. .save {
  1035. width: 100%;
  1036. margin: 0 auto;
  1037. text-align: center;
  1038. background-color: #FFF;
  1039. bottom: 0;
  1040. padding: 16px;
  1041. border-top: 3px solid #f5f7f9;
  1042. }
  1043. .form {
  1044. .goodsTitle {
  1045. margin-bottom: 25px;
  1046. }
  1047. .goodsTitle ~ .goodsTitle {
  1048. margin-top: 20px;
  1049. }
  1050. .goodsTitle .title {
  1051. border-bottom: 2px solid #1890ff;
  1052. padding: 0 8px 12px 5px;
  1053. color: #000;
  1054. font-size: 14px;
  1055. }
  1056. .goodsTitle .icons {
  1057. font-size: 15px;
  1058. margin-right: 8px;
  1059. color: #999;
  1060. }
  1061. .add {
  1062. font-size: 12px;
  1063. color: #1890ff;
  1064. padding: 0 12px;
  1065. cursor: pointer;
  1066. }
  1067. .radio {
  1068. margin-right: 20px;
  1069. }
  1070. .upLoad {
  1071. width: 58px;
  1072. height: 58px;
  1073. line-height: 58px;
  1074. border: 1px dotted rgba(0, 0, 0, 0.1);
  1075. border-radius: 4px;
  1076. background: rgba(0, 0, 0, 0.02);
  1077. }
  1078. .iconfont {
  1079. color: #898989;
  1080. }
  1081. .pictrue {
  1082. width: 60px;
  1083. height: 60px;
  1084. border: 1px dotted rgba(0, 0, 0, 0.1);
  1085. margin-right: 10px;
  1086. }
  1087. .pictrue img {
  1088. width: 100%;
  1089. height: 100%;
  1090. }
  1091. }
  1092. .agreement-box {
  1093. width: 310px;
  1094. height: 550px;
  1095. border-radius: 10px;
  1096. background: rgba(0, 0, 0, 0);
  1097. border: 1px solid #EEEEEE;
  1098. opacity: 1;
  1099. position: relative;
  1100. .template {
  1101. position: absolute;
  1102. width: 100%;
  1103. height: 100%;
  1104. top: 0;
  1105. left: 0;
  1106. border-radius: 10px;
  1107. background-color: #817e81;
  1108. }
  1109. .htmls_box {
  1110. font-size: 12px;
  1111. width: 259px;
  1112. height: 430px;
  1113. border-radius: 10px;
  1114. background-color: #fff;
  1115. position: absolute;
  1116. top: 58px;
  1117. left: 26px;
  1118. .htmls_top {
  1119. position: absolute;
  1120. top: 8px;
  1121. left: 0;
  1122. height: 34px;
  1123. text-align: center;
  1124. width: 100%;
  1125. line-height: 35px;
  1126. font-weight: 600;
  1127. font-size: 20px;
  1128. }
  1129. .htmls_font {
  1130. position: absolute;
  1131. bottom: 0;
  1132. left: 0;
  1133. padding: 15px 15px;
  1134. text-align: center;
  1135. width: 100%;
  1136. div {
  1137. height: 35px;
  1138. line-height: 35px;
  1139. border-radius: 20px;
  1140. }
  1141. .ok {
  1142. background-color: #f33316;
  1143. color: #FFFFFF;
  1144. }
  1145. }
  1146. .htmls {
  1147. position: absolute;
  1148. background-color: #fff;
  1149. top: 50px;
  1150. left: 0;
  1151. width: 259px;
  1152. height: 281px;
  1153. border-radius: 4px;
  1154. overflow: auto;
  1155. padding: 5px 15px;
  1156. word-break: break-word;
  1157. }
  1158. .htmls::-webkit-scrollbar {
  1159. display: none;
  1160. }
  1161. }
  1162. }
  1163. .Bbox {
  1164. width: 495px;
  1165. display: flex;
  1166. flex-wrap: wrap;
  1167. }
  1168. .item {
  1169. margin-right: 15px;
  1170. border: 1px dashed #dbdbdb;
  1171. padding-bottom: 10px;
  1172. padding-right: 15px;
  1173. padding-top: 20px;
  1174. }
  1175. .items {
  1176. margin-right: 15px;
  1177. border: 1px dashed #dbdbdb;
  1178. padding-bottom: 10px;
  1179. padding-top: 15px;
  1180. position: relative;
  1181. display: flex;
  1182. margin-top: 20px;
  1183. .move-icon {
  1184. display: flex;
  1185. align-items: center;
  1186. justify-content: center;
  1187. width: 30px;
  1188. height: 80px;
  1189. cursor: move;
  1190. color: #D8D8D8;
  1191. }
  1192. .img-box {
  1193. position: relative;
  1194. width: 80px;
  1195. height: 80px;
  1196. img {
  1197. width: 100%;
  1198. height: 100%;
  1199. }
  1200. }
  1201. .info {
  1202. flex: 1;
  1203. margin-left: 22px;
  1204. .info-item {
  1205. display: flex;
  1206. align-items: center;
  1207. margin-bottom: 10px;
  1208. span {
  1209. // width 40px
  1210. font-size: 13px;
  1211. .input-box {
  1212. flex: 1;
  1213. }
  1214. }
  1215. }
  1216. }
  1217. .delect-btn {
  1218. position: absolute;
  1219. right: -12px;
  1220. top: -12px;
  1221. color: #999999;
  1222. .iconfont {
  1223. font-size: 28px;
  1224. color: #999;
  1225. }
  1226. }
  1227. }
  1228. .table {
  1229. width: 700px;
  1230. color: #515a6e;
  1231. font-size: 14px;
  1232. background-color: #fff;
  1233. margin-left: 20px;
  1234. }
  1235. .contents {
  1236. width: 150px;
  1237. .right-box {
  1238. margin-left: 40px;
  1239. }
  1240. .title-text {
  1241. width: 500px;
  1242. }
  1243. }
  1244. .pciframe {
  1245. margin-left: 20px;
  1246. width: 430px;
  1247. height: 280px;
  1248. background: #FFFFFF;
  1249. border: 1px solid #EEEEEE;
  1250. border-radius: 13px;
  1251. position: relative;
  1252. img {
  1253. width: 100%;
  1254. height: 100%;
  1255. }
  1256. .pciframe-box {
  1257. background: rgba(0, 0, 0, 0);
  1258. // border: 1px solid #EEEEEE;
  1259. border-radius: 4px;
  1260. }
  1261. .pcmoddile_goods {
  1262. position: absolute;
  1263. top: 69px;
  1264. width: 171px;
  1265. height: 140px;
  1266. border-top-left-radius: 2px;
  1267. border-bottom-left-radius: 2px;
  1268. left: 65px;
  1269. background-color: #fff;
  1270. }
  1271. .pcswiperimg_goods {
  1272. height: 140px;
  1273. background-color: #f5f5f5;
  1274. img {
  1275. width: 100%;
  1276. height: 100%;
  1277. }
  1278. }
  1279. }
  1280. .link {
  1281. display: inline-block;
  1282. width: 100%;
  1283. height: 32px;
  1284. line-height: 1.5;
  1285. padding: 4px 7px;
  1286. border: 1px solid #dcdee2;
  1287. border-radius: 4px;
  1288. background-color: #fff;
  1289. position: relative;
  1290. cursor: text;
  1291. transition: border 0.2s ease-in-out, background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  1292. font-size: 13px;
  1293. font-family: PingFangSC-Regular;
  1294. line-height: 22px;
  1295. color: rgba(0, 0, 0, 0.25);
  1296. opacity: 1;
  1297. cursor: pointer;
  1298. .you {
  1299. color: #999999;
  1300. float: right;
  1301. margin-right: 11px;
  1302. }
  1303. }
  1304. .swiperimg {
  1305. width: 310px;
  1306. max-height: 126px;
  1307. border-top-left-radius: 10px;
  1308. border-top-right-radius: 10px;
  1309. img {
  1310. width: 100%;
  1311. height: 100%;
  1312. }
  1313. }
  1314. .swiperimgs {
  1315. width: 310px;
  1316. height: 100%;
  1317. border-radius: 10px;
  1318. img {
  1319. width: 100%;
  1320. height: 100%;
  1321. }
  1322. }
  1323. .swiperimg_goods {
  1324. width: 284px;
  1325. height: 124px;
  1326. border-radius: 4px;
  1327. line-height: 99px;
  1328. text-align: center;
  1329. background-color: #f5f5f5;
  1330. img {
  1331. width: 100%;
  1332. height: 100%;
  1333. }
  1334. }
  1335. .title {
  1336. padding: 0 0 13px 0;
  1337. font-weight: bold;
  1338. font-size: 15px;
  1339. border-left: 2px solid #1890FF;
  1340. height: 23px;
  1341. padding-left: 10px;
  1342. }
  1343. .title-text {
  1344. padding: 0 0 0px 16px;
  1345. color: #999;
  1346. font-size: 12px;
  1347. margin-top: 10px;
  1348. }
  1349. .content {
  1350. // width 510px;
  1351. .right-box {
  1352. margin-left: 40px;
  1353. }
  1354. }
  1355. .box {
  1356. border-top: 3px solid #f5f7f9;
  1357. padding: 10px;
  1358. padding-top: 25px;
  1359. width: 100%;
  1360. .save {
  1361. background-color: #1890FF;
  1362. color: #FFFFFF;
  1363. width: 71px;
  1364. height: 30px;
  1365. margin: 0 auto;
  1366. text-align: center;
  1367. line-height: 30px;
  1368. cursor: pointer;
  1369. }
  1370. }
  1371. .iframe {
  1372. margin-left: 20px;
  1373. position: relative;
  1374. width: 310px;
  1375. height: 550px;
  1376. background: #FFFFFF;
  1377. border: 1px solid #EEEEEE;
  1378. opacity: 1;
  1379. border-radius: 10px;
  1380. }
  1381. .moddile {
  1382. position: absolute;
  1383. width: 310px;
  1384. height: 550px;
  1385. top: 0px;
  1386. opacity: 0;
  1387. left: 0px;
  1388. border-radius: 4px;
  1389. }
  1390. .moddile_box {
  1391. position: absolute;
  1392. top: 0px;
  1393. width: 310px;
  1394. height: 115px;
  1395. border-top-left-radius: 4px;
  1396. border-top-right-radius: 4px;
  1397. left: 0px;
  1398. background-color: #f5f5f5;
  1399. }
  1400. .moddile_goods {
  1401. position: absolute;
  1402. top: 12px;
  1403. width: 284px;
  1404. height: 124px;
  1405. /* border-top-left-radius: 10px; */
  1406. /* border-top-right-radius: 10px; */
  1407. border-radius: 5px;
  1408. left: 13px;
  1409. line-height: 99px;
  1410. text-align: center;
  1411. background-color: #f5f5f5;
  1412. }
  1413. .iframe-box {
  1414. width: 310px;
  1415. height: 100%;
  1416. border-radius: 10px;
  1417. // margin: 30px 15px 0px 15px
  1418. background: rgba(0, 0, 0, 0);
  1419. border: 1px solid #EEEEEE;
  1420. opacity: 1;
  1421. img {
  1422. width: 100%;
  1423. height: 100%;
  1424. }
  1425. }
  1426. .left-wrapper {
  1427. min-width: 213px;
  1428. background: #fff;
  1429. border-right: 1px solid #f2f2f2;
  1430. }
  1431. .menu-item {
  1432. position: relative;
  1433. display: flex;
  1434. justify-content: space-between;
  1435. word-break: break-all;
  1436. .icon-box {
  1437. z-index: 3;
  1438. position: absolute;
  1439. right: 20px;
  1440. top: 50%;
  1441. transform: translateY(-50%);
  1442. display: none;
  1443. }
  1444. &:hover .icon-box {
  1445. display: block;
  1446. }
  1447. .right-menu {
  1448. z-index: 10;
  1449. position: absolute;
  1450. right: -106px;
  1451. top: -11px;
  1452. width: auto;
  1453. min-width: 121px;
  1454. }
  1455. }
  1456. .tabBox_img {
  1457. width: 36px;
  1458. height: 36px;
  1459. border-radius: 4px;
  1460. cursor: pointer;
  1461. img {
  1462. width: 100%;
  1463. height: 100%;
  1464. }
  1465. }
  1466. .ivu-menu {
  1467. z-index: auto;
  1468. }
  1469. .icondrag2 {
  1470. font-size: 26px;
  1471. color: #d8d8d8;
  1472. }
  1473. .hot_imgs {
  1474. margin-bottom: 20px;
  1475. .title {
  1476. font-size: 14px;
  1477. }
  1478. .list-box {
  1479. .item {
  1480. position: relative;
  1481. display: flex;
  1482. margin-top: 20px;
  1483. .move-icon {
  1484. display: flex;
  1485. align-items: center;
  1486. justify-content: center;
  1487. width: 30px;
  1488. height: 80px;
  1489. cursor: move;
  1490. color: #D8D8D8;
  1491. }
  1492. .img-box {
  1493. position: relative;
  1494. width: 80px;
  1495. height: 80px;
  1496. img {
  1497. width: 100%;
  1498. height: 100%;
  1499. }
  1500. }
  1501. .info {
  1502. flex: 1;
  1503. margin-left: 22px;
  1504. .info-item {
  1505. display: flex;
  1506. align-items: center;
  1507. margin-bottom: 10px;
  1508. span {
  1509. // width 40px
  1510. font-size: 13px;
  1511. }
  1512. .input-box {
  1513. flex: 1;
  1514. }
  1515. }
  1516. }
  1517. .delect-btn {
  1518. position: absolute;
  1519. right: -12px;
  1520. top: -12px;
  1521. color: #999999;
  1522. .iconfont {
  1523. font-size: 28px;
  1524. color: #999;
  1525. }
  1526. }
  1527. }
  1528. }
  1529. .add-btn {
  1530. margin-top: 20px;
  1531. }
  1532. }
  1533. .upload-box {
  1534. display: flex;
  1535. align-items: center;
  1536. justify-content: center;
  1537. width: 100%;
  1538. height: 100%;
  1539. background: #ccc;
  1540. }
  1541. .iconfont {
  1542. color: #DDDDDD;
  1543. font-size: 28px;
  1544. }
  1545. .iframe-boxs::-webkit-scrollbar {
  1546. display: none;
  1547. }
  1548. .sgin_iframe::-webkit-scrollbar {
  1549. display: none;
  1550. }
  1551. .iframe-boxs {
  1552. width: 310px;
  1553. height: 550px;
  1554. border-radius: 10px;
  1555. background: rgba(0, 0, 0, 0);
  1556. border: 1px solid #EEEEEE;
  1557. opacity: 1;
  1558. overflow: auto;
  1559. .moneyBox {
  1560. background-color: var(--color-theme);
  1561. height: 414px;
  1562. border-radius: 10px;
  1563. .box1 {
  1564. text-align: center;
  1565. color: #FFFFFF;
  1566. padding-bottom: 15px;
  1567. .font1 {
  1568. padding-top: 20px;
  1569. // padding-bottom 15px
  1570. font-size: 12px;
  1571. opacity: 0.6;
  1572. }
  1573. .font2 {
  1574. font-size: 30px;
  1575. font-style: normal;
  1576. opacity: 0.9;
  1577. }
  1578. }
  1579. .moneyBox_content {
  1580. background-color: #FFFFFF;
  1581. height: 317px;
  1582. border-radius: 4px;
  1583. .box2 {
  1584. display: flex;
  1585. justify-content: space-around;
  1586. height: 35px;
  1587. line-height: 35px;
  1588. margin-bottom: 10px;
  1589. div:nth-child(1) {
  1590. font-weight: bold;
  1591. border-bottom: 2px solid var(--color-theme);
  1592. }
  1593. }
  1594. .box3 {
  1595. padding: 0px 10px;
  1596. display: flex;
  1597. justify-content: left;
  1598. flex-wrap: wrap;
  1599. .box3_box {
  1600. width: 90px;
  1601. height: 55px;
  1602. border-radius: 9px;
  1603. background-color: #f4f4f4;
  1604. color: #888;
  1605. margin-bottom: 10px;
  1606. text-align: center;
  1607. padding-top: 3px;
  1608. font-size: 19px;
  1609. margin-right: 3px;
  1610. margin-left: 3px;
  1611. .font {
  1612. font-size: 11px;
  1613. font-style: normal;
  1614. }
  1615. }
  1616. .box3_box:nth-child(1) {
  1617. width: 90px;
  1618. height: 55px;
  1619. border-radius: 9px;
  1620. background-color: var(--color-theme);
  1621. color: #FFFFFF;
  1622. text-align: center;
  1623. padding-top: 3px;
  1624. margin-right: 3px;
  1625. margin-left: 3px;
  1626. }
  1627. .other {
  1628. line-height: 55px;
  1629. }
  1630. }
  1631. .box4 {
  1632. padding: 0px 10px;
  1633. .tips {
  1634. font-size: 14px;
  1635. color: #333333;
  1636. font-weight: 800;
  1637. margin-bottom: 7px;
  1638. margin-top: 10px;
  1639. }
  1640. .tips-samll {
  1641. font-size: 12px;
  1642. color: #333333;
  1643. margin-bottom: 7px;
  1644. p {
  1645. margin: 2px 0px;
  1646. }
  1647. }
  1648. }
  1649. .box5 {
  1650. font-size: 15px;
  1651. width: 225px;
  1652. height: 40px;
  1653. border-radius: 25px;
  1654. margin: 23px auto 0 auto;
  1655. line-height: 40px;
  1656. text-align: center;
  1657. background-color: var(--color-theme);
  1658. color: #FFFFFF;
  1659. }
  1660. }
  1661. }
  1662. }
  1663. .bnt {
  1664. // width 80px!important
  1665. }
  1666. /deep/.ivu-page-header {
  1667. border-bottom: unset;
  1668. position: fixed;
  1669. z-index: 9;
  1670. width: 100%;
  1671. }
  1672. /deep/.i-layout-page-header {
  1673. display: flex;
  1674. align-items: center;
  1675. justify-content: space-between;
  1676. }
  1677. .box-wrapper {
  1678. display: flex;
  1679. flex-wrap: nowrap;
  1680. padding: 20px;
  1681. background-color: #fff;
  1682. border-radius: 5px;
  1683. min-height: 600px;
  1684. }
  1685. .iview-video-style {
  1686. width: 100%;
  1687. height: 180px;
  1688. border-radius: 10px;
  1689. background-color: #707070;
  1690. margin-top: 10px;
  1691. position: relative;
  1692. overflow: hidden;
  1693. }
  1694. .iview-video-style .iconv {
  1695. color: #fff;
  1696. line-height: 180px;
  1697. width: 50px;
  1698. height: 50px;
  1699. display: inherit;
  1700. font-size: 26px;
  1701. position: absolute;
  1702. top: -74px;
  1703. left: 50%;
  1704. margin-left: -25px;
  1705. }
  1706. .iview-video-style .mark {
  1707. position: absolute;
  1708. width: 100%;
  1709. height: 30px;
  1710. top: 0;
  1711. background-color: rgba(0, 0, 0, 0.5);
  1712. text-align: center;
  1713. }
  1714. </style>