edit.php 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. <?php
  2. use common\helpers\ComponentHelper;
  3. ComponentHelper::loadComponentView('com-dialog-select');
  4. ComponentHelper::loadComponentView("diy/style-components/diy-color");
  5. ?>
  6. <div id="album-edit" v-cloak v-loading="albumLoading" flex>
  7. <div class="album-imgs">
  8. <div class="img-text">鼠标按住图片可拖动排序</div>
  9. <div class="album-model">
  10. <draggable v-model="album.page_data" group="image" filter=".img-info-add" forceFallback="true" animation="300" :move="onMove" @start="onStart" @end="onEnd">
  11. <transition-group flex="wrap:wrap">
  12. <div class="img-info" :class="item.type == 'add'?'img-info-add pointer':''" v-for="(item,index) in album.page_data" :key="index" @click="ablutOperate(item.type)" @mouseover.stop="mouseOverIndex(index)" @mouseout.stop="mouseOutIndex">
  13. <template v-if="item.type == 'add'">
  14. <i class="el-icon-plus"></i>
  15. </template>
  16. <template v-else >
  17. <el-image fit="contain" class="img-div" @mousedown="list_image(index)" :key="index" :preview-src-list="list_img" :src="item.image" v-if="item.image"></el-image>
  18. <div flex="main:center cross:center" class="img-div" v-else>
  19. 暂无图片
  20. </div>
  21. <div v-show="album.page_data.length > 2 && !draggableBoo && mouseIndex == index" class="img-info-bottom" flex>
  22. <div class="el-icon-delete del-icon pointer" @click.stop="ablutOperate('del',index,item.id)"></div>
  23. <div class="el-icon-edit edit-icon pointer" @click.stop="ablutOperate('edit',index)"></div>
  24. </div>
  25. </template>
  26. </div>
  27. </transition-group>
  28. </draggable>
  29. </div>
  30. <div class="album-bottom">
  31. <el-button type="primary" size="small" v-loading="btnLoading" @click.stop="saveAlbum">保存</el-button>
  32. </div>
  33. </div>
  34. <div class="">
  35. <el-tabs v-model="activeName" tab-position="right" type="card" class="tabs_header">
  36. <el-tab-pane name="active_1">
  37. <template slot="label">
  38. <div style="text-align: center;height: 50px;">
  39. <i class="el-icon-document tabs-icon" :style="{color: activeName == 'active_1'?'#409EFF':'#919294'}"></i>
  40. <span class="tabs-text">基础</span>
  41. </div>
  42. </template>
  43. <div class="tabs-info">
  44. <div>画册封面</div>
  45. <com-attachment :multiple="false" :max="1" type="images" @selected="addAblumImg($event,'album_image')">
  46. <div class="card-upload" v-if="!album.album_image">
  47. <i class="el-icon-plus"></i>
  48. </div>
  49. <div v-else>
  50. <el-image class="div-img" fit="contain" :src="album.album_image"></el-image>
  51. </div>
  52. </com-attachment>
  53. <div>画册名称</div>
  54. <el-input maxlength="12" v-model="album.title" placeholder="请输入画册名称"></el-input>
  55. <com-attachment v-show="false" :open-dialog="albumImgBoo" :multiple="multipleBoo" :max="multipleBoo?999:1" type="images" @selected="addAblumImg($event)" @closed="closedAddAblum()">
  56. <div class="card-upload" v-if="!album.page_data[editIndex].image">
  57. <i class="el-icon-plus"></i>
  58. </div>
  59. <div v-else>
  60. <el-image class="div-img" fit="contain" :src="album.page_data[editIndex].image"></el-image>
  61. </div>
  62. </com-attachment>
  63. </div>
  64. </el-tab-pane>
  65. <el-tab-pane name="active_2">
  66. <template slot="label">
  67. <div style="text-align: center;height: 50px;">
  68. <i class="el-icon-mobile-phone tabs-icon" :style="{color: activeName == 'active_2'?'#409EFF':'#919294'}"></i>
  69. <span class="tabs-text">分享</span>
  70. </div>
  71. </template>
  72. <div class="tabs-info">
  73. <div flex="cross:center">
  74. <div class="tabs-left-name">分享标题</div>
  75. <el-input maxlength="20" v-model="album.share_title" placeholder="请输入分享标题"></el-input>
  76. </div>
  77. <div flex="">
  78. <div class="tabs-left-name">分享图片</div>
  79. <com-attachment :multiple="false" :max="1" type="images" @selected="addAblumImg($event,'share_image')">
  80. <div class="card-upload" v-if="!album.share_image">
  81. <i class="el-icon-plus"></i>
  82. </div>
  83. <div v-else>
  84. <el-image class="div-img" :src="album.share_image"></el-image>
  85. </div>
  86. </com-attachment>
  87. </div>
  88. </div>
  89. </el-tab-pane>
  90. <el-tab-pane name="active_3">
  91. <template slot="label">
  92. <div style="text-align: center;height: 50px;">
  93. <i class="el-icon-goods tabs-icon" :style="{color: activeName == 'active_3'?'#409EFF':'#919294'}"></i>
  94. <span class="tabs-text">商品</span>
  95. </div>
  96. </template>
  97. <div class="tabs-info">
  98. <com-dialog-select :multiple="true" title="商品选择" @selected="goodsSelect">
  99. <el-button size="small">添加商品</el-button>
  100. </com-dialog-select>
  101. <el-table :data="album.goods_list" height="600px" stripe style="width: 100%">
  102. <el-table-column prop="id" label="ID" width="80"></el-table-column>
  103. <el-table-column label="名称">
  104. <template slot-scope="scope">
  105. <div flex>
  106. <el-image fit="cover" style="width: 40px;height: 40px;display: block;margin-right: 5px;" :src="scope.row.cover_pic"></el-image>
  107. <div>
  108. <com-ellipsis :line="2">{{scope.row.goods_name}}</com-ellipsis>
  109. <div style="font-size: 12px;color: red;">¥{{scope.row.price}}</div>
  110. </div>
  111. </div>
  112. </template>
  113. </el-table-column>
  114. <el-table-column label="操作" width="80">
  115. <template slot-scope="scope">
  116. <el-button type="text" @click="delteGoods(scope.row.id)">删除</el-button>
  117. </template>
  118. </el-table-column>
  119. </el-table>
  120. </div>
  121. </el-tab-pane>
  122. <el-tab-pane name="active_4">
  123. <template slot="label">
  124. <div style="text-align: center;height: 50px;">
  125. <i class="el-icon-picture-outline tabs-icon" :style="{color: activeName == 'active_4'?'#409EFF':'#919294'}"></i>
  126. <span class="tabs-text">背景</span>
  127. </div>
  128. </template>
  129. <div class="tabs-info">
  130. <div flex="cross:center">
  131. <div class="tabs-left-name">背景样式</div>
  132. <div>
  133. <el-radio v-model="album.bg_type" :label="1">颜色</el-radio>
  134. <el-radio v-model="album.bg_type" :label="2">图片</el-radio>
  135. </div>
  136. </div>
  137. <div flex="cross:center">
  138. <div class="tabs-left-name"></div>
  139. <div v-if="album.bg_type == 1">
  140. <el-color-picker v-model="album.bg_color"></el-color-picker>
  141. </div>
  142. <div v-if="album.bg_type == 2">
  143. <com-attachment :multiple="false" :max="1" type="images" @selected="addAblumImg($event,'bg_image')">
  144. <div class="card-upload" v-if="!album.bg_image">
  145. <i class="el-icon-plus"></i>
  146. </div>
  147. <div v-else>
  148. <el-image fit="contain" style="width: 100px; height: 100px" class="div-img" :src="album.bg_image"></el-image>
  149. </div>
  150. </com-attachment>
  151. </div>
  152. </div>
  153. </div>
  154. </el-tab-pane>
  155. <el-tab-pane name="active_5">
  156. <template slot="label">
  157. <div style="text-align: center;height: 50px;">
  158. <i class="el-icon-link tabs-icon" :style="{color: activeName == 'active_5'?'#409EFF':'#919294'}"></i>
  159. <span class="tabs-text">附件</span>
  160. </div>
  161. </template>
  162. <div class="tabs-info">
  163. <div flex="cross:center">
  164. <div class="tabs-left-name">附件地址</div>
  165. <el-input v-model="album.file" placeholder="请输入分享标题"></el-input>
  166. </div>
  167. <div flex="cross:center">
  168. <div class="tabs-left-name"></div>
  169. <div class="hint-text">
  170. 可上传 .doc / .pdf / .exl / .p
  171. </div>
  172. </div>
  173. <div flex="cross:center">
  174. <div class="tabs-left-name"></div>
  175. <com-attachment :multiple="false" :max="1" type="files" @selected="editDownFile">
  176. <el-button type="primary" size="small">选择文件</el-button>
  177. </com-attachment>
  178. </div>
  179. </div>
  180. </el-tab-pane>
  181. <el-tab-pane name="active_6">
  182. <template slot="label">
  183. <div style="text-align: center;height: 50px;">
  184. <i class="el-icon-s-custom tabs-icon" :style="{color: activeName == 'active_6'?'#409EFF':'#919294'}"></i>
  185. <span class="tabs-text">联系人</span>
  186. </div>
  187. </template>
  188. <div class="tabs-info">
  189. <div>会员手机号</div>
  190. <el-input v-model="phoneKey" placeholder="请输入会员手机号"></el-input>
  191. <div v-if="album.user" flex="cross:center">
  192. <div style="width: 60px;">{{album.user.id}}</div>
  193. <div class="table-info-img-text" style="flex: 1;">
  194. <el-image class="table-info-img circle" :src="album.user.avatar_url">
  195. <div slot="error" class="image-slot">
  196. <com-image src="/resources/img/common/default-avatar.png"></com-image>
  197. </div>
  198. </el-image>
  199. <div class="no_user" style="width: 50px; bottom:20px;" v-if="album.user.status == 0">黑名单</div>
  200. <div class="table-info-text">
  201. <div style="color:#000;">{{album.user.nickname}}</div>
  202. <!-- <div style="font-size: 12px;">渠道:{{album.user.platform}}</div> -->
  203. </div>
  204. </div>
  205. <div style="flex: 1;">
  206. {{album.user.mobile}}
  207. </div>
  208. <div>
  209. <el-button size="medium" type="text" @click="delSelUser">删除</el-button>
  210. </div>
  211. </div>
  212. <el-button type="primary" size="medium" @click="searchPhone">搜索</el-button>
  213. <el-table :data="searchUserList" stripe height="600" style="width: 100%">
  214. <el-table-column prop="id" label="会员ID" width="66"></el-table-column>
  215. <el-table-column label="会员">
  216. <template slot-scope="scope">
  217. <div class="table-info-img-text">
  218. <el-image class="table-info-img circle" :src="scope.row.avatar_url">
  219. <div slot="error" class="image-slot">
  220. <com-image src="/resources/img/common/default-avatar.png"></com-image>
  221. </div>
  222. </el-image>
  223. <div class="no_user" style="width: 50px; bottom:20px;" v-if="scope.row.status == 0">黑名单</div>
  224. <div class="table-info-text">
  225. <div style="color:#000;">{{scope.row.nickname}}</div>
  226. <!-- <div style="font-size: 12px;">渠道:{{scope.row.platform}}</div> -->
  227. </div>
  228. </div>
  229. </template>
  230. </el-table-column>
  231. <el-table-column prop="mobile" label="手机号码"></el-table-column>
  232. <el-table-column label="操作" width="80">
  233. <template slot-scope="scope">
  234. <el-button size="medium" type="text" @click="selUser(scope.row)">{{album.user && album.user.id == scope.row.id?'已选':'选择'}}</el-button>
  235. </template>
  236. </el-table-column>
  237. </el-table>
  238. </div>
  239. </el-tab-pane>
  240. <el-tab-pane name="active_7">
  241. <template slot="label">
  242. <div style="text-align: center;height: 50px;">
  243. <i class="el-icon-bell tabs-icon" :style="{color: activeName == 'active_7'?'#409EFF':'#919294'}"></i>
  244. <span class="tabs-text">音乐</span>
  245. </div>
  246. </template>
  247. <div class="tabs-info">
  248. <com-attachment :multiple="false" :max="1" type="voices" @selected="editBakVoices">
  249. <el-button type="primary" size="small">选择音乐</el-button>
  250. </com-attachment>
  251. <div class="hint-text">
  252. 可上传音乐格式:MP3,大小 ≤ 20m
  253. </div>
  254. <div v-if="album.bg_video" flex="cross:center">
  255. <video v-show="false" ref="soundPlay">
  256. <source :src="album.bg_video.url" type="video/mp4">
  257. </video>
  258. <div class="voices-icon" flex="cross:center main:center">
  259. <i class="el-icon-headset"></i>
  260. </div>
  261. <div style="flex: 1;">
  262. {{album.bg_video.name}}
  263. </div>
  264. <div>
  265. <el-button type="text" @click="playBgmusic">{{isPlayed?'暂停':'试听'}}</el-button>
  266. <el-button type="text" @click="delVoices">删除</el-button>
  267. </div>
  268. </div>
  269. </div>
  270. </el-tab-pane>
  271. </el-tabs>
  272. </div>
  273. </div>
  274. <script src="/resources/js/Sortable.min.js"></script>
  275. <script src="/resources/unpkg/vuedraggable@2.18.1/dist/vuedraggable.umd.min.js"></script>
  276. <script>
  277. new Vue({
  278. el: '#album-edit',
  279. data() {
  280. return {
  281. activeName: "active_1",
  282. type:0,
  283. list_img:[], //图片集合
  284. album: {
  285. title: "",
  286. album_image: "",
  287. share_title: "",
  288. share_image: "",
  289. bg_type: 1,
  290. bg_color: "#464646",
  291. bg_image: "",
  292. bg_video: null,
  293. file: "",
  294. user: null,
  295. goods_ids: [],
  296. goods_list: [],
  297. page_data: [
  298. {
  299. image: "",
  300. type: 'add',
  301. }
  302. ],
  303. id: ''
  304. },
  305. isPlayed: false, //是否播放音乐
  306. phoneKey: "", //会员手机号
  307. searchUserList: [],
  308. mouseIndex: -1, //鼠标移入的画册下标
  309. draggableBoo: false, //是否在拖拽中
  310. editIndex: 0, //编辑画册的下标
  311. albumImgBoo: false,
  312. multipleBoo: false,
  313. addType: '', //添加图片的类型 add: 新增 edit: 编辑
  314. albumLoading: false,
  315. btnLoading: false,
  316. }
  317. },
  318. created(){
  319. this.album.id = getQuery('album_id');
  320. this.type = getQuery('type');
  321. this.album.title = getQuery('name')
  322. if(this.album.id) this.getData();
  323. },
  324. methods: {
  325. getData(){
  326. let that = this;
  327. that.albumLoading = true;
  328. request({
  329. params: {
  330. r: 'album/default/edit',
  331. id: this.album.id,
  332. },
  333. method: 'get',
  334. }).then(res => {
  335. if (res.data.code == 0) {
  336. if(res.data.data) that.album = Object.assign(that.album, res.data.data);
  337. if(that.album.page_data.length <= 0){
  338. that.album.page_data.push({
  339. image: "",
  340. });
  341. }
  342. that.album.page_data.push({
  343. image: "",
  344. type: 'add',
  345. });
  346. if(that.album.bg_video) that.album.bg_video = JSON.parse(that.album.bg_video);
  347. } else {
  348. this.$message.error(res.data.msg);
  349. }
  350. }).catch(e => {
  351. console.log(e);
  352. }).finally(e => {
  353. that.albumLoading = false;
  354. });
  355. },
  356. //展示图片
  357. list_image(index){
  358. let img = this.album.page_data[index].image;
  359. this.list_img = [];
  360. if(img){
  361. this.list_img.push(img)
  362. }
  363. },
  364. // 选择商品
  365. goodsSelect(param){
  366. for(let i = 0;i<param.length;i++){
  367. let v = param[i];
  368. let index = this.album.goods_list.findIndex(aInfo => aInfo.id == v.id);
  369. if(index == -1){
  370. if(this.album.goods_list.length == 10) {
  371. this.$message.warning("最多添加10个商品");
  372. break;
  373. }
  374. this.album.goods_list.push(v);
  375. this.album.goods_ids.push(v.id);
  376. }
  377. }
  378. },
  379. delteGoods(id){
  380. let index = this.album.goods_list.findIndex(v => v.id == id);
  381. if(index != -1){
  382. this.album.goods_list.splice(index,1);
  383. this.album.goods_ids.splice(index,1);
  384. }
  385. },
  386. // 背景音乐
  387. editBakVoices(info){
  388. this.album.bg_video = info[0];
  389. },
  390. playBgmusic(){
  391. if(this.isPlayed){
  392. this.$refs.soundPlay.pause();
  393. } else {
  394. this.$refs.soundPlay.play();
  395. }
  396. this.isPlayed = !this.isPlayed;
  397. },
  398. delVoices(){
  399. this.album.bg_video = null;
  400. },
  401. // 文件下载
  402. editDownFile(info){
  403. this.album.file = info[0].url;
  404. },
  405. // 搜索联系人
  406. searchPhone(){
  407. request({
  408. params: {
  409. r: 'album/default/user',
  410. },
  411. method: 'post',
  412. data: {
  413. keyword: this.phoneKey,
  414. }
  415. }).then(res => {
  416. if (res.data.code == 0) {
  417. console.info(res.data);
  418. this.searchUserList = res.data.data;
  419. } else {
  420. this.$message.error(res.data.msg);
  421. }
  422. }).catch(e => {
  423. console.log(e);
  424. });
  425. },
  426. selUser(data){
  427. this.album.user = data;
  428. },
  429. delSelUser(){
  430. this.album.user = null;
  431. },
  432. onStart(e){
  433. this.draggableBoo = true;
  434. },
  435. onEnd(e){
  436. this.draggableBoo = false;
  437. this.editIndex = e.newIndex;
  438. },
  439. onMove(e){
  440. console.log(e.relatedContext.element.type);
  441. if(e.relatedContext.element.type == 'add') return false;
  442. return true;
  443. },
  444. mouseOverIndex(i){
  445. if(!this.draggableBoo){
  446. this.mouseIndex = i;
  447. }
  448. },
  449. mouseOutIndex(){
  450. this.mouseIndex = -1
  451. },
  452. ablutOperate(type,index,id=null){
  453. if(type == 'add'){
  454. this.multipleBoo = true;
  455. this.albumImgBoo = true;
  456. this.addType = 'add';
  457. } else if(type == 'del'){
  458. if(id){
  459. this.$confirm('删除该条数据后不可以恢复, 是否继续?', '警告', {type: 'warning'}).then(() => {
  460. this.album.page_data.splice(index,1);
  461. this.delpage(id);
  462. });
  463. }else{
  464. this.album.page_data.splice(index,1);
  465. }
  466. if(this.editIndex == index) this.editIndex = index - 1 >= 0?index - 1:0;
  467. } else if(type == 'edit'){
  468. this.editIndex = index;
  469. this.albumImgBoo = true;
  470. this.addType = 'edit';
  471. }
  472. },
  473. delpage(id){
  474. request({
  475. params: {
  476. r: 'album/default/delpage',
  477. },
  478. method: 'post',
  479. data: {id:id}
  480. }).then(res => {
  481. this.$message({
  482. message: "删除成功",
  483. type: 'success'
  484. });
  485. }).catch(e => {
  486. console.log(e);
  487. });
  488. },
  489. addAblumImg(data,type){
  490. console.info(data,type);
  491. let url = data[0].url;
  492. if(type){
  493. this.album[type] = url;
  494. } else if(data.length > 1){
  495. data.forEach(v => {
  496. let obj = {
  497. image: v.url,
  498. }
  499. this.album.page_data.splice(this.album.page_data.length - 1,0,obj);
  500. })
  501. } else if(this.addType == 'add'){
  502. let obj = {
  503. image: url,
  504. }
  505. this.album.page_data.splice(this.album.page_data.length - 1,0,obj);
  506. }else {
  507. this.album.page_data[this.editIndex].image = url;
  508. }
  509. this.closedAddAblum();
  510. },
  511. closedAddAblum(){
  512. this.multipleBoo = false;
  513. this.albumImgBoo = false;
  514. this.addType = '';
  515. },
  516. saveAlbum(){
  517. let str = this.saveVerify();
  518. console.info(str);
  519. if(str){
  520. this.$message({
  521. message: str,
  522. type: 'warning'
  523. });
  524. return;
  525. }
  526. let dataObj = JSON.parse(JSON.stringify(this.album));
  527. dataObj.page_data.splice(dataObj.page_data.length - 1,1);
  528. dataObj.author_id = dataObj.user?dataObj.user.id:'0';
  529. dataObj.bg_video = dataObj.bg_video?JSON.stringify(dataObj.bg_video):'';
  530. if(this.type==2) dataObj.type = this.type;
  531. if(!dataObj.album_image){
  532. dataObj.album_image = dataObj.page_data[0].image;
  533. }
  534. console.info(dataObj);
  535. this.btnLoading = true;
  536. request({
  537. params: {
  538. r: 'album/default/edit',
  539. },
  540. method: 'post',
  541. data: dataObj
  542. }).then(res => {
  543. if (res.data.code == 0) {
  544. this.$message.success(res.data.msg);
  545. let info = {r: 'album/default/index'};
  546. navigateTo(info);
  547. } else {
  548. this.$message.error(res.data.msg);
  549. }
  550. }).catch(e => {
  551. console.log(e);
  552. }).finally(e => {
  553. this.btnLoading = false;
  554. });
  555. },
  556. saveVerify(){
  557. if(!this.album.title){
  558. return '请填写画册名称';
  559. }
  560. let length = this.album.page_data.filter(v => v.image == "" && v.type != 'add').length;
  561. if(length > 0 || this.album.page_data.length == 1){
  562. return "请添加画册图片";
  563. }
  564. return '';
  565. }
  566. }
  567. })
  568. </script>
  569. <style>
  570. .el-main{
  571. padding: 0;
  572. /* padding-left: 20px; */
  573. }
  574. .album-imgs{
  575. position: relative;
  576. flex: 1;
  577. }
  578. #album-edit{
  579. height: 100%;
  580. }
  581. .album-model,.album-imgs > .img-text{
  582. padding-left: 20px;
  583. }
  584. .album-model{
  585. height: 90%;
  586. overflow: overlay;
  587. }
  588. .album-imgs > .img-text{
  589. margin-bottom: 10px;
  590. font-size: 14px;
  591. color: #333;
  592. margin-top: 20px;
  593. }
  594. .album-imgs .img-info-bottom{
  595. position: absolute;
  596. bottom: 0;
  597. left: 0;
  598. width: 100%;
  599. background: rgba(0,0,0,0.5);
  600. font-size: 15px;
  601. }
  602. .album-imgs .img-info-bottom > div{
  603. flex: 1;
  604. text-align: center;
  605. margin: 4px 0;
  606. }
  607. .album-imgs .img-info-bottom > .del-icon{
  608. color: #E86666;
  609. }
  610. .album-imgs .img-info-bottom > .edit-icon{
  611. color: #3998FC;
  612. }
  613. .album-imgs .img-info{
  614. width: 155px;
  615. height: 155px;
  616. position: relative;
  617. margin-right: 10px;
  618. margin-bottom: 10px;
  619. position: relative;
  620. }
  621. .album-imgs .img-info-add{
  622. border: 1px solid #dad9d9;
  623. color: #dad9d9;
  624. font-size: 50px;
  625. background: #F5F5F5;
  626. border-radius: 4px;
  627. display: flex;
  628. align-items: center;
  629. justify-content: center;
  630. }
  631. .album-imgs .img-info .img-div{
  632. width: 100%;
  633. height: 100%;
  634. border-radius: 4px;
  635. border: 1px solid #dad9d9;
  636. background: #F5F5F5;
  637. color: #999;
  638. }
  639. #album-edit .el-tabs__item{
  640. height: 78px;
  641. display: flex;
  642. justify-content: center;
  643. align-items: center;
  644. border: none;
  645. }
  646. #album-edit .el-tabs__nav,#album-edit .el-tabs__header{
  647. border: none;
  648. }
  649. #album-edit .is-active{
  650. background: #343434;
  651. }
  652. #album-edit .is-right{
  653. margin-left: 0;
  654. background: #313131;
  655. }
  656. #album-edit .is-right{
  657. margin-left: 0;
  658. background: #313131;
  659. }
  660. #album-edit .el-tabs__content{
  661. height: 100%;
  662. background: #FFF;
  663. /* width: 284px; */
  664. width: 420px;
  665. }
  666. .tabs-icon{
  667. font-size: 30px;
  668. display: inherit;
  669. margin: auto;
  670. }
  671. .tabs-text{
  672. color: #FFF;
  673. display:block;
  674. line-height: 20px;
  675. }
  676. .tabs_header{
  677. height: 100%;
  678. }
  679. .tabs-info{
  680. padding: 20px;
  681. }
  682. .tabs-info > div{
  683. margin-bottom: 10px;
  684. }
  685. .tabs-info .div-img{
  686. width: 100px;
  687. height: 100px;
  688. }
  689. .tabs-left-name{
  690. min-width: 60px;
  691. margin-right: 8px;
  692. }
  693. .hint-text{
  694. font-size: 12px;
  695. color: #AEA6AE;
  696. }
  697. .voices-icon{
  698. width: 48px;
  699. height: 48px;
  700. background: #C0C4CC;
  701. color:#ffffff;
  702. font-size: 30px;
  703. margin-right: 10px;
  704. border-radius: 4px;
  705. }
  706. .pointer:hover{
  707. cursor: pointer;
  708. }
  709. .album-bottom{
  710. background: #FFF;
  711. padding: 8px 0;
  712. position: absolute;
  713. bottom: 0;
  714. width: 100%;
  715. text-align: center;
  716. z-index: 10;
  717. }
  718. </style>