| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441 |
- <template id="diy-icon-set">
- <diy-style-contain :title="title" :show-title="showTitle" :contain-style="containStyle">
- <div v-for="(item, index) in iconList" :key="index" :style="[iconSetStyle]" @click="closePop">
- <div class="icon-set-title" v-if="item.title">{{ item.title }}</div>
- <div class="icon-set-list">
- <!-- 关闭图标 -->
- <div class="icon-set-close" flex="cross:center" @click.stop="closeHandle(item, index)" v-if="showClose">
- <i class="el-icon-close"></i>
- </div>
- <!-- 删除弹窗 -->
- <diy-confirm-popup
- :title="popTitle"
- :show="cardIndex == index && visible"
- confirm-text="删除"
- :show-confrim-btn="showConfrimBtn"
- @close="closePop"
- @confirm="delCards($event, index)"></diy-confirm-popup>
- <div v-if="item.slot">
- <slot :name="item.slot" :item="item" :index="index"></slot>
- </div>
- <!-- 内容 -->
- <div class="icon-set-items" flex="cross:center" v-if="set_style != 'text'">
- <div class="icon-set-list-name diy-text-font">{{ type == 1 ? '图片' : '图标' }}</div>
- <div class="icon-set-list-content">
- <com-attachment :multiple="false" :max="1" type="images" @selected="coverPic($event, item)">
- <div class="content-upload" :style="{width: widthImg + 'px', height: heightImg + 'px'}" flex="cross:center main:center" v-if="!item.img">
- <i class="el-icon-plus"></i>
- </div>
- <div class="content-img" :style="{width: widthImg + 'px', height: heightImg + 'px'}" flex="cross:center main:center" v-else>
- <!-- <el-image style="width: 100%; height: 100%;border-radius: 8px;" :src="item.img"></el-image> -->
- <el-image style="width: 100%; height: 100%;border-radius: 8px;" :src="imgToUrl(item.img)"></el-image>
- <div class="img-replace">替换</div>
- <div class="icon-close" @click.stop="delPic(item, index)">
- <i class="el-icon-close"></i>
- </div>
- </div>
- </com-attachment>
- <div class="tips-text" v-if="suggestText">{{ suggestText }}</div>
- </div>
- </div>
- <div class="icon-set-items" flex="cross:center" v-if="set_style != 'text' && type == 1 && tagSwitch">
- <div class="icon-set-list-name diy-text-font">标签</div>
- <div class="icon-set-list-content" flex="cross:center">
- <el-switch v-model="item.is_show_tag" active-color="#2D8CF0" inactive-color="#999999" @change="iconSetChange($event, item, 'is_show_tag')"></el-switch>
- <span class="diy-text-font" style="padding-left: 7px;font-weight: 500;">{{ item.is_show_tag ? '开启' : '关闭' }}</span>
- </div>
- </div>
- <div class="icon-set-items" flex="cross:center" v-if="item.is_show_tag && set_style != 'text' && type == 1 && tagSwitch">
- <div class="icon-set-list-name diy-text-font">标签内容</div>
- <div class="icon-set-list-content" flex="cross:center">
- <el-input size="small" v-model="item.tags" placeholder="请输入内容" maxlength="2" @input="iconSetChange($event, item, 'tags')" show-word-limit></el-input>
- </div>
- </div>
- <div class="icon-set-items" flex="cross:center" v-if="item.is_show_tag && set_style != 'text' && type == 1 && tagSwitch">
- <div class="icon-set-list-name diy-text-font">标签背景</div>
- <div class="icon-set-list-content" flex="cross:center">
- <el-color-picker flex="cross:center" v-model="item.tagsBgColor" :show-alpha="showAlpha" @change="iconSetChange($event, item, 'tagsBgColor')"></el-color-picker>
- </div>
- </div>
- <div class="icon-set-items" flex="cross:center" v-if="item.is_show_tag && set_style != 'text' && type == 1 && tagSwitch">
- <div class="icon-set-list-name diy-text-font">标签文字</div>
- <div class="icon-set-list-content" flex="cross:center">
- <el-color-picker flex="cross:center" v-model="item.tagsTextColor" :show-alpha="showAlpha" @change="iconSetChange($event, item, 'tagsTextColor')"></el-color-picker>
- </div>
- </div>
- <div class="icon-set-items" flex="cross:center" v-if="set_style != 'image'">
- <div class="icon-set-list-name diy-text-font">文字</div>
- <div class="icon-set-list-content" flex="cross:center">
- <el-input size="small" v-model="item.btnText" placeholder="请输入内容" @input="iconSetChange($event, item, 'btnText')" maxlength="5" show-word-limit></el-input>
- </div>
- </div>
- <div class="icon-set-items" flex="cross:center" v-if="showLink">
- <div class="icon-set-list-name diy-text-font">链接</div>
- <div class="icon-set-list-content" flex="cross:center">
- <com-pick-link @selected="selectedUrl($event, item)" :default-tabs="defaultTabs">
- <diy-url :text="item.link_params && (item.link_params.title || item.link_params.open_type)" @add="addUrl(index)"></diy-url>
- </com-pick-link>
- </div>
- </div>
- <div class="icon-set-items" flex="cross:center" v-if="showStoreLink"> <!-- 门店o2o的链接-->
- <div flex>
- <div class="icon-set-list-name diy-text-font">链接</div>
- <div class="icon-set-list-content" flex="cross:center">
- <com-pick-link @selected="selectedUrl($event,item)" :default-tabs="[{name: 'marketing',children:['store_cate_recommend'] }]">
- <diy-url :text="item.link_params && (item.link_params.title || item.link_params.open_type)" @add="addUrl(index)"></diy-url>
- </com-pick-link>
- </div>
- </div>
- <!-- <diy-operation-list v-if="selectUrl" v-model="showLineList" @on-change="onChange5"> </diy-operation-list>-->
- </div>
- </div>
- </div>
- <div class="add-btns" @click="addClick" v-if="showAddBtn && list.length < maxIconLength">+ 添加<span v-if="maxIconLength">{{ list.length }}/{{ maxIconLength }}</span></div>
- </diy-style-contain>
- </template>
- <script>
- // 默认图标列表
- const defaultIconList = [
- // 基础页面
- {
- img: "/diy/icon-set/mall-index.png",
- title: "商城首页",
- route: "/pages/index/index"
- },
- {
- img: "/diy/icon-set/all-menu.png",
- title: "全部分类",
- route: "/pages/menu/index"
- },
- {
- img: "/diy/icon-set/cart.png",
- title: "购物车",
- route: "/pages/cart/index"
- },
- {
- img: "/diy/icon-set/my-client.png",
- title: "我的客户",
- route: "plugins/public/promotion/client"
- },
- {
- img: "/diy/icon-set/all-menu.png",
- title: "全部分类2",
- route: "/plugins3/menu/index"
- },
- {
- img: "/diy/icon-set/my-order.png",
- title: "我的订单",
- route: "/plugins/pages/order/list?tabIndex=0"
- },
- {
- img: "/diy/icon-set/order-1.png",
- title: "待付款订单",
- route: "/plugins/pages/order/list?tabIndex=1"
- },
- {
- img: "/diy/icon-set/order-2.png",
- title: "待发货订单",
- route: "/plugins/pages/order/list?tabIndex=2"
- },
- {
- img: "/diy/icon-set/order-3.png",
- title: "待收货订单",
- route: "/plugins/pages/order/list?tabIndex=3"
- },
- {
- img: "/diy/icon-set/order-4.png",
- title: "待评价",
- route: "/plugins/pages/order/list?tabIndex=4"
- },
- {
- img: "/diy/icon-set/order-5.png",
- title: "退换货",
- route: "/plugins/pages/refund/list"
- },
- {
- img: "/diy/icon-set/my-order.png",
- title: "会员中心",
- route: "/pages/user/index"
- },
- {
- img: "/diy/icon-set/collect.png",
- title: "我的收藏",
- route: "/plugins/pages/center/keep"
- },
- {
- img: "/diy/icon-set/user-recharge.png",
- title: "会员充值",
- route: "/plugins/pages/center/recharge/recharge"
- },
- {
- img: "/diy/icon-set/balance-index.png",
- title: "余额明细",
- route: "/plugins/pages/assets/balance/index"
- },
- {
- img: "/diy/icon-set/currency-index.png",
- title: "积分明细",
- route: "/plugins/pages/assets/currency/index"
- },
- {
- img: "/diy/icon-set/withdraw-edit.png",
- title: "余额提现",
- route: "/plugins/pages/assets/withdraw/edit?from=2"
- },
- {
- img: "/diy/icon-set/user-info.png",
- title: "我的资料",
- route: "/plugins/pages/settings/userInfo"
- },
- {
- img: "/diy/icon-set/address.png",
- title: "收货地址",
- route: "/plugins/pages/settings/address"
- },
- {
- img: "/diy/icon-set/qr-code.png",
- title: "推广二维码",
- route: "/plugins/poster/index"
- },
- {
- img: "/diy/icon-set/promotion.png",
- title: "推广中心",
- route: "/plugins/public/promotion/index"
- },
- {
- img: "/diy/icon-set/transfer-money.png",
- title: "积分赠送",
- route: "/plugins/pages/assets/balance/transferMoney?modal_type=score"
- },
- {
- img: "/diy/icon-set/write-off.png",
- title: "核销",
- route: "/plugins4/WriteOff/index"
- },
- {
- img: "/diy/icon-set/merchant-promotion.png",
- title: "推广商家",
- route: "/plugins/public/merchantAuth/index?isEdit=1"
- },
- {
- img: "/diy/icon-set/marketing-language.png",
- title: "营销话术",
- route: "/plugins2/BusinessCard/MarketingLanguage/index"
- },
- {
- img: "/diy/icon-set/score-bonus.png",
- title: "积分分红",
- route: "/plugins/public/ScoreBonus/index"
- },
- {
- img: "/diy/icon-set/channel-store-supplement.png",
- title: "渠道分红店补收益",
- route: "/plugins/ChannelStoreSupplement/index"
- },
- //插件工具
- {
- img: "/diy/icon-set/coupon.png",
- title: "我的优惠券",
- route: "/plugins/pages/coupon/index"
- },
- {
- img: "/diy/icon-set/coupon.png",
- title: "领券中心",
- route: "/plugins/pages/coupon/center"
- },
- {
- img: "/diy/icon-set/distribution.png",
- title: "分销分红",
- route: "/plugins/distribution/index"
- },
- {
- img: "/diy/icon-set/premium-distribution.png",
- title: "特级分销",
- route: "/plugins/premiumDistribution/index"
- },
- {
- img: "/diy/icon-set/equity.png",
- title: "权益中心",
- route: "/plugins/public/promotion/rights?type=distribution"
- },
- {
- img: "/diy/icon-set/partner-index.png",
- title: "股东分红",
- route: "/plugins/partner/index"
- },
- {
- img: "/diy/icon-set/equity.png",
- title: "权益中心",
- route: "/plugins/public/promotion/rights?type=partner"
- },
- {
- "img": "/diy/icon-set/agent-index.png",
- title: "渠道中心",
- route: "/plugins3/agent/index"
- },
- {
- "img": "/diy/icon-set/equity.png",
- title: "权益中心",
- route: "/plugins/public/promotion/rights?type=agent"
- },
- {
- "img": "/diy/icon-set/little-red-book.png",
- "route": "/plugins/littleRedBook/index",
- "title": "小红书"
- },
- {
- "img": "/diy/icon-set/sign-in.png",
- "route": "/plugins3/sign_in/index",
- "title": "每日签到"
- },
- {
- "img": "/diy/icon-set/my-area.png",
- "route": "/plugins/area/my-area",
- "title": "区域管理"
- },
- {
- "img": "/diy/icon-set/audit-list.png",
- "route": "/plugins/area/audit-list",
- "title": "申请记录"
- },
- {
- "img": "/diy/icon-set/group-buy.png",
- title: "拼团首页",
- route: "/plugins2/GroupBuyCopy/index"
- },
- {
- "img": "/diy/icon-set/group-buy-list.png",
- title: "拼团订单",
- route: "/plugins2/GroupBuyCopy/orderList"
- },
- {
- "img": "/diy/icon-set/material.png",
- "route": "/plugins/material/index",
- "title": "素材中心"
- },
- {
- "img": "/diy/icon-set/sudoku.png",
- "route": "/plugins/sudoku/index",
- "title": "九宫格"
- },
- {
- "img": "/diy/icon-set/bargain.png",
- "route": "/plugins/bargain/index",
- "title": "美丽天天砍"
- },
- {
- "img": "/diy/icon-set/points-mall.png",
- "route": "/plugins/score_mall/index",
- "title": "积分商城"
- },
- {
- "img": "/diy/icon-set/live-streaming.png",
- "route": "/plugins/wechat_live/index",
- "title": "直播列表"
- },
- {
- "img": "/diy/icon-set/smart-card.png",
- "route": "/plugins/IntellectCard/index",
- "title": "智能名片"
- },
- {
- "img": "/diy/icon-set/mutual-push.png",
- "route": "/plugins/rebate/index",
- "title": "推三返一"
- },
- {
- "img": "/diy/icon-set/servebonus .png",
- "route": "/plugins/servebonus/index",
- "title": "服务商分红"
- },
- {
- "img": "/diy/icon-set/equity.png",
- "route": "/plugins/public/promotion/rights?type=servebonus",
- "title": "权益中心"
- },
- {
- "img": "/diy/icon-set/album.png",
- "route": "/plugins/album/index",
- "title": "智能画册"
- },
- {
- "img": "/diy/icon-set/operating-note.png",
- "route": "/plugins/operating_note/index",
- "title": "运营笔记"
- },
- {
- "img": "/diy/icon-set/cloud-storage.png",
- "route": "/plugins/CloudStock/index",
- "title": "云库存"
- },
- {
- "img": "/diy/icon-set/cloud-storage.png",
- "route": "/plugins/CloudStock/goods/list",
- "title": "云库存礼包"
- },
- {
- "img": "/diy/icon-set/cloud-storage.png",
- "route": "/plugins/CloudStock/myInventory",
- "title": "我的库存"
- },
- {
- "img": "/diy/icon-set/withdrawal.png",
- "route": "/plugins/Achievement/index",
- "title": "业绩奖励"
- },
- {
- "img": "/diy/icon-set/course.png",
- "route": "/plugins/course/index",
- "title": "课程首页"
- },
- {
- "img": "/diy/icon-set/my-course.png",
- title: "我的课程",
- route: "/plugins/course/order/myCourse"
- },
- {
- "img": "/diy/icon-set/activity-course.png",
- title: "活动课程",
- route: "/plugins/course/activity/activity"
- },
- {
- "img": "/diy/icon-set/short-video.png",
- "route": "/plugins/short_video/index",
- "title": "短视频"
- },
- {
- "img": "/diy/icon-set/lucky-group.png",
- "route": "/plugins/LuckyGroup/home",
- "title": "幸运拼团"
- },
- {
- "img": "/diy/icon-set/lucky-group.png",
- "route": "/plugins/LuckyGroup/index",
- "title": "幸运拼团首页"
- },
- {
- "img": "/diy/icon-set/redpack-list.png",
- title: "红包拓客",
- route: "/plugins/Redpack/redpackList"
- },
- {
- "img": "/diy/icon-set/red-envelope.png",
- "route": "/plugins/Redpack/redEnvelopes",
- "title": "红包"
- },
- {
- "img": "/diy/icon-set/link-motion.png",
- "route": "/plugins/BossBonus/index",
- "title": "链动2+1"
- },
- // {
- // "img": "/diy/icon-set/link-motion.png",
- // "route": "/plugins/BossBonus/index",
- // "title": "消费分红"
- // },
- {
- "img": "/diy/icon-set/sudoku-crack.png",
- title: "数独解题器",
- route: "/plugins/sudoku_crack/index"
- },
- {
- "img": "/diy/icon-set/scratch.png",
- "route": "/plugins/Scratch/index",
- "title": "刮刮卡"
- },
- {
- "img": "/diy/icon-set/store-index.png",
- "route": "/plugins2/Store/store/storeindex",
- "title": "O2O门店"
- },
- {
- "img": "/diy/icon-set/join-in.png",
- "route": "/plugins2/Store/index",
- "title": "入驻申请"
- },
- {
- "img": "/diy/icon-set/store-clerk.png",
- "route": "/plugins2/Store/writeoff/index",
- "title": "核销入口"
- },
- {
- "img": "/diy/icon-set/shop-manage.png",
- "route": "/plugins2/Store/shopManage/index",
- "title": "店铺管理"
- },
- {
- "img": "/diy/icon-set/welfare.png",
- "route": "/plugins2/Store/shopManage/videoplay",
- "title": "福利"
- },
- {
- "img": "/diy/icon-set/store-seller.png",
- "route": "/plugins2/Store/orderSales/list",
- "title": "门店卖家"
- },
- {
- "img": "/diy/icon-set/mobile-device.png",
- "route": "/plugins2/Store/admin/store",
- "title": "门店移动端"
- },
- {
- "img": "/diy/icon-set/store-cart.png",
- "route": "/plugins2/Store/cart/index",
- "title": "门店购物车"
- },
- {
- "img": "/diy/icon-set/deal-payment.png",
- "route": "/plugins2/Store/dealPayment/index",
- "title": "收款码"
- },
- {
- "img": "/diy/icon-set/order-sales.png",
- "route": "/plugins2/Store/orderSales/assets/index",
- "title": "交易钱包"
- },
- {
- "img": "/diy/icon-set/coupon.png",
- title: "门店核销券",
- route: "/plugins4/StoreWriteCoupons/index"
- },
- {
- "img": "/diy/icon-set/credit-order.png",
- title: "待还款",
- route: "/plugins/pages/order/creditOrder"
- },
- {
- "img": "/diy/icon-set/advance-sale.png",
- "route": "/plugins/earnest/index",
- "title": "预售首页"
- },
- {
- "img": "/diy/icon-set/product-reservation.png",
- title: "预售订单",
- route: "/plugins/earnest/order/list?current=0"
- },
- {
- "img": "/diy/icon-set/certificate.png",
- "route": "/plugins/Certificate/index",
- "title": "授权证书"
- },
- {
- img: "/diy/icon-set/double-copy.png",
- title: "二二复制",
- route: "/plugins/DoubleCopy/index"
- },
- {
- "img": "/diy/icon-set/my-client.png",
- "route": "/plugins/DoubleCopy/myClient",
- "title": "我的客户"
- },
- {
- "img": "/diy/icon-set/equity.png",
- "route": "/plugins/public/promotion/rights?type=DoubleCopy",
- "title": "权益中心"
- },
- {
- "img": "/diy/icon-set/double-copy.png",
- "route": "/plugins/DoubleCopy/goods/list",
- "title": "二二复制商品"
- },
- {
- "img": "/diy/icon-set/mch-index.png",
- "route": "/plugins/Mch/store/storeindex",
- "title": "商户聚合页"
- },
- {
- "img": "/diy/icon-set/merchant-join.png",
- "route": "/plugins/Mch/index",
- "title": "商户入驻"
- },
- {
- "img": "/diy/icon-set/recommendation-courtesy.png",
- "route": "/plugins/Recommen/index",
- "title": "推荐有礼排行榜"
- },
- {
- "img": "/diy/icon-set/recommendation-courtesy.png",
- "route": "/plugins/Recommen/list",
- "title": "推荐有礼活动"
- },
- {
- "img": "/diy/icon-set/smart-card.png",
- title: "智能名片",
- route: "/plugins2/Card/index"
- },
- {
- "img": "/diy/icon-set/pk.png",
- "route": "/plugins2/Pk/index",
- "title": "PK排行榜"
- },
- {
- "img": "/diy/icon-set/smart-form.png",
- "route": "/plugins/SmartForm/SmartForm",
- "title": "智能表单"
- },
- {
- "img": "/diy/icon-set/product-reservation.png",
- "route": "plugins/Subscribe/diyindex",
- "title": "预约首页"
- },
- {
- "img": "/diy/icon-set/subscribe.png",
- "route": "/plugins/Subscribe/index",
- "title": "预约列表"
- },
- {
- "img": "/diy/icon-set/coupon.png",
- title: "电子券管理",
- route: "/plugins2/ElectronCoupon/index"
- },
- {
- "img": "/diy/icon-set/coupon.png",
- title: "领券中心",
- route: "/plugins2/ElectronCoupon/center"
- },
- {
- "img": "/diy/icon-set/boss-achievement.png",
- title: "股东业绩",
- route: "/plugins/BossAchievement/index"
- },
- // { "img": "/diy/icon-set/boss-achievement.png", title: "种子金", route: "/plugins/BossAchievement/index" },
- {
- "img": "/diy/icon-set/case-base.png",
- "route": "/plugins/CaseBase/index",
- "title": "案例库"
- },
- {
- "img": "/diy/icon-set/clerk.png",
- "route": "/plugins/Clerk/index",
- "title": "卡券核销"
- },
- {
- "img": "/diy/icon-set/flash-sale-list.png",
- "route": "/plugins3/Seckill/seckillList",
- "title": "秒杀列表"
- },
- {
- "img": "/diy/icon-set/partner-shareholder.png",
- "route": "/plugins/partner_shareholder/index",
- "title": "加权分红"
- },
- {
- "img": "/diy/icon-set/equity.png",
- "route": "/plugins/promotion/rights?type=partner_shareholder",
- "title": "权益中心"
- },
- {
- "img": "/diy/icon-set/blind-box.png",
- title: "奖金盲盒",
- route: "/plugins2/BlindBox/index"
- },
- {
- "img": "/diy/icon-set/purchase-application.png",
- title: "奖金明细",
- route: "/plugins2/BlindBox/bonusDetailed"
- },
- {
- "img": "/diy/icon-set/purchase-application.png",
- "route": "/plugins/Purchase/apply",
- "title": "资格申请"
- },
- {
- "img": "/diy/icon-set/purchase-index.png",
- title: "商品列表",
- route: "/plugins/Purchase/index"
- },
- {
- "img": "/diy/icon-set/blind-box.png",
- title: "奖金盲盒",
- route: "/plugins2/BlindBoxs/index"
- },
- {
- "img": "/diy/icon-set/purchase-application.png",
- title: "奖金明细",
- route: "/plugins2/BlindBoxs/bonusDetailed"
- },
- {
- "img": "/diy/icon-set/contribution-index.png",
- title: "贡献值首页",
- route: "/plugins2/Contribution/index"
- },
- // { "img": "/diy/icon-set/contribution-inex.png", title: "积分入口", route: "/plugins2/Contribution/index" },
- // { "img": "/diy/icon-set/contribution-inex.png", title: "激活商品", route: "/plugins2/Contribution/index" },
- {
- "img": "/diy/icon-set/prize-draw.png",
- "route": "/plugins2/Draw/index",
- "title": "抽奖"
- },
- {
- img: "/diy/icon-set/distribution.png",
- title: "分销分红",
- route: "/plugins/CircleDistribution/index"
- },
- // { img: "/diy/icon-set/distribution.png",title: "团购抢单",route: "/plugins/GroupRush/home"},
- // { img: "/diy/icon-set/distribution.png",title: "团购专区",route: "plugins/GroupRush/index"},
- {
- "img": "/diy/icon-set/merchant-hiCurrency.png",
- title: "商家嗨呗",
- route: "/plugins/HiGo/MerchantHiCurrency/index"
- },
- {
- "img": "/diy/icon-set/public-line.png",
- title: "公排",
- route: "/plugins3/PublicLine/QueueLine/index"
- },
- {
- "img": "/diy/icon-set/cloud-storage.png",
- "title": "新云库存",
- "route": "/plugins2/CloudStockTwo/index"
- },
- {
- "img": "/diy/icon-set/signingProcess.png",
- "route": "/plugins3/dianqian/signingProcess",
- "title": "电子签约"
- },
- // { "img": "/diy/icon-set/cloud-storage.png", "title": "天天抽奖","route": "plugins2/dailyLottery/index" },
- {
- "img": "/diy/icon-set/share-act.png",
- title: "分享有礼",
- route: "/plugins2/shareAct/index"
- },
- {
- "img": "/diy/icon-set/sign-on-alipay.png",
- title: "签到领红包",
- route: "/plugins2/signOnAlipay/index"
- },
- {
- "img": "/diy/icon-set/community-purchase.png",
- title: "社区团长入驻",
- route: "/plugins2/CommunityPurchase/index"
- },
- {
- "img": "/diy/icon-set/community-user.png",
- title: "社区团购店主",
- route: "/plugins2/CommunityUser/index"
- },
- {
- "img": "/diy/icon-set/sign-list.png",
- title: "支付宝签约",
- route: "/plugins3/AvoidTax/signList"
- }, //【支付宝签约】
- {
- "img": "/diy/icon-set/ai-spirit.png",
- "route": "/plugins2/AiSpirit/index",
- "title": "AI精灵"
- },
- {
- "img": "/diy/icon-set/eight-ou-two.png",
- title: "八出二",
- route: "/plugins/EightOutTwo/index"
- },
- {
- "img": "/diy/icon-set/eight-ou-two.png",
- title: "我要申请",
- route: "plugins2/partnerDistributor/apply/index"
- },
- {
- "img": "/diy/icon-set/team.png",
- "route": "plugins2/partnerDistributor/partner/index",
- "title": "合伙人团队"
- },
- {
- "img": "/diy/icon-set/team.png",
- "route": "plugins2/partnerDistributor/distributor/index",
- "title": "经销商团队"
- },
- {
- "img": "/diy/icon-set/upload-screenshot.png",
- title: "任务打卡",
- route: "plugins3/UploadScreenshot/index"
- },
- // { "img": "/diy/icon-set/upload-screenshot.png", title: "亲友卡", route: "/plugins2/MembersCard/mother_card_list/index" },
- // { "img": "/diy/icon-set/upload-screenshot.png", title: "申请入驻", route: "/plugins/ShareholderRecruit/index" },
- // { "img": "/diy/icon-set/upload-screenshot.png", title: "农业补贴", route: "/plugins2/AgriculturalSubsidies/SubsidyCenter/index" },
- {
- "img": "/diy/icon-set/mini-mall.png",
- title: "迷你商城",
- route: "/plugins2/MiniMall/goods/goodsList"
- },
- {
- "img": "/diy/icon-set/sales-company.png",
- title: "销售公司",
- route: "/plugins2/SalesCompany/index"
- },
- {
- "img": "/diy/icon-set/operation-center.png",
- "route": "/plugins3/OperationCenter/index",
- "title": "运营中心"
- },
- {
- "img": "/diy/icon-set/operation-center.png",
- title: "运营中心申请",
- route: "/plugins3/OperationCenter/apply"
- },
- {
- "img": "/diy/icon-set/investment-center.png",
- "route": "/plugins2/BusinessActivity/index",
- "title": "招商中心"
- },
- {
- "img": "/diy/icon-set/group-buy.png",
- "route": "/plugins/group_buy/index",
- "title": "拼团首页"
- },
- {
- "img": "/diy/icon-set/group-buy-list.png",
- "route": "/plugins/group_buy/orderList",
- "title": "拼团订单"
- },
- {
- "img": "/diy/icon-set/score-expansion.png",
- title: "积分拓客",
- route: "/plugins2/ScoreExpansion/redpackList"
- },
- {
- "img": "/diy/icon-set/business-card.png",
- "route": "/plugins2/BusinessCard/index",
- "title": "智能拓客"
- },
- {
- "img": "/diy/icon-set/wechat-video-shop.png",
- title: "微信视频小店",
- route: "/plugins3/WechatVideoShop/index"
- },
- {
- "img": "/diy/icon-set/invite.png",
- title: "分销员申请",
- route: "/plugins3/WechatVideoShop/invite"
- },
- {
- "img": "/diy/icon-set/sign-list.png",
- title: "银行卡签约",
- route: "/plugins3/BankTax/signList"
- }, //【银行卡签约】
- {
- "img": "/diy/icon-set/subscribe-index.png",
- title: "预约信息",
- route: "/plugins3/ServicePointAppointment/index"
- },
- {
- "img": "/diy/icon-set/service-point.png",
- title: "服务点管理",
- route: "/plugins3/ServicePointAppointment/ServicePoint/index",
- },
- {
- "img": "/diy/icon-set/servic-point-clerk.png",
- "route": "/plugins3/ServicePointAppointment/WriteOff/index",
- "title": "核销验证"
- },
- {
- "img": "/diy/icon-set/make-stock.png",
- title: "库存管理",
- route: "/plugins3/ServicePointAppointment/MakeStock/index"
- },
- // { "img": "/diy/icon-set/subscribe-index.png", title: "数字币商城(银豆)", route: "/plugins3/ContributionRelease/index?type=2" },
- // { "img": "/diy/icon-set/subscribe-index.png", title: "数字币商城(金豆)", route: "/plugins3/ContributionRelease/index?type=1" },
- {
- "img": "/diy/icon-set/rebuy-incentive.png",
- title: "复购奖励",
- route: "/plugins3/RebuyIncentive/index"
- },
- {
- "img": "/diy/icon-set/share-holders.png",
- title: "占比分红",
- route: "/plugins3/Shareholders/index"
- },
- {
- "img": "/diy/icon-set/equity.png",
- title: "权益中心",
- route: "/plugins/public/promotion/rights?type=Shareholders"
- },
- {
- img: "/diy/icon-set/double-copy.png",
- title: "二二复制",
- route: "/plugins2/ZaoDoubleCopy/index"
- },
- {
- "img": "/diy/icon-set/my-client.png",
- "route": "/plugins2/ZaoDoubleCopy/myClient",
- "title": "我的客户"
- },
- {
- "img": "/diy/icon-set/equity.png",
- "route": "/plugins2/public/promotion/rights?type=ZaoDoubleCopy",
- "title": "权益中心"
- },
- {
- "img": "/diy/icon-set/double-copy.png",
- "route": "/plugins2/ZaoDoubleCopy/goods/list",
- "title": "二二复制商品"
- },
- {
- "img": "/diy/icon-set/area-management.png",
- title: "区域代理",
- route: "/plugins2/AreaManagement/my-area"
- },
- // { "img": "/diy/icon-set/starfish.png", title: "全民分红", route: "/plugins3/WholeBonus/index" },
- {
- "img": "/diy/icon-set/starfish.png",
- title: "海星模式",
- route: "/plugins2/Starfish/index"
- },
- {
- "img": "/diy/icon-set/purchasing-records.png",
- "route": "/plugins3/ValetOrder/purchasingRecords",
- "title": "代客下单"
- },
- {
- "img": "/diy/icon-set/starfish.png",
- title: "兑换卡",
- route: "plugins2/partnerDistributor/redemptionCard/redemptionCard"
- },
- {
- "img": "/diy/icon-set/withdrawal.png",
- title: "云库存业绩奖励中心",
- route: "/plugins3/CloudStockAchievement/Perfdividend"
- },
- {
- "img": "/diy/icon-set/verifier.png",
- "route": "/plugins3/WWriteOff/index",
- "title": "核销员"
- },
- {
- "img": "/diy/icon-set/tech-worker.png",
- "route": "/plugins4/ReservationService/techWorker/index",
- "title": "技师端"
- },
- {
- "img": "/diy/icon-set/store-service-apply.png",
- title: "门店服务招募",
- route: "/plugins4/ReservationService/service/storeServiceApply"
- },
- {
- "img": "/diy/icon-set/service-apply.png",
- title: "服务招募",
- route: "/plugins4/ReservationService/service/serviceApply"
- },
- {
- "img": "/diy/icon-set/service-staff-list.png", title: "技师列表",
- route: "/plugins2/reserveService/serviceStaff?title="
- },
- { "img": "/diy/icon-set/service-staff-list.png", title: "门店技师列表",
- route: "/plugins2/reserveService/serviceStaff?pageType=1"
- },
- {
- "img": "/diy/icon-set/ai-skin-audit.png",
- "route": "/plugins4/AiSkinAudit/index",
- "title": "AI测肤"
- },
- {
- "img": "/diy/icon-set/tech-worker.png",
- title: "师傅端",
- route: "/plugins4/ReservationService/masterWorker/index"
- },
- {
- "img": "/diy/icon-set/three-copy.png",
- title: "三三复制",
- route: "/plugins/ThreeCopy/index"
- },
- {
- "img": "/diy/icon-set/three-copy.png",
- title: "直推下级",
- route: "/plugins/ThreeCopy/agentList"
- },
- {
- "img": "/diy/icon-set/my-client.png",
- title: "我的客户",
- route: "/plugins/ThreeCopy/myClient"
- },
- {
- "img": "/diy/icon-set/equity.png",
- title: "权益中心",
- route: "/plugins/public/promotion/rights?type=ThreeCopy"
- },
- {
- "img": "/diy/icon-set/three-copy.png",
- title: "三三复制商品",
- route: "/plugins/ThreeCopy/goods/list"
- },
- {
- "img": "/diy/icon-set/video-course.png",
- "title": "视频课程",
- "route": "/plugins/course/details?id="
- },
- {
- "img": "/diy/icon-set/aiyunuo.png",
- title: "医养门诊",
- route: "/customDesigns/Aiyunuo/Outpatient/index"
- },
- {
- "img": "/diy/icon-set/aiyunuo-store.png",
- "title": "爱优诺门店",
- "route": "/customDesigns/Aiyunuo/Store/index"
- },
- {
- "img": "/diy/icon-set/team-leader.png",
- "title": "团队长",
- "route": "/plugins/TeamLeader/index"
- },
- {
- "img": "/diy/icon-set/fire-protection.png",
- "title": "社安消防",
- "route": "/customDesigns/FireProtection/pages/index/index"
- },
- {
- "img": "/diy/icon-set/group-data.png",
- "title": "群组数据",
- "route": "/customAddons/GroupData/index"
- },
- {
- "img": "/diy/icon-set/group-data.png",
- "title": "业绩奖励B",
- "route": "/plugins3/Achievement/index?type=AchievementB"
- },
- {
- "img": "/diy/icon-set/asset.png",
- "title": "资产通",
- "route": "/plugins/pages/assets/currency/index?home_type=asset"
- },
- {
- "img": "/diy/icon-set/direct-rewards.png",
- "title": "直推奖",
- "route": "/customAddons/DirectBonus/directBonus"
- },
- {
- "img": "/diy/icon-set/bottle-coupon.png",
- "title": "酒券活动",
- "route": "/customAddons/BottleCoupon/activity"
- },
- {
- "img": "/diy/icon-set/img-clokin.png",
- "title": "图文打卡",
- "route": "/customAddons/ImgClokin/index"
- },
- { "img": "/diy/icon-set/content-matrix.png", "title": "内容矩阵","route": "/customAddons/ContentMatrix/index"},
- {"img": "/diy/icon-set/agent-gratitude.png", "title": "感恩奖", "route": "/customAddons/AgentGratitude/index"},
- { "img": "/diy/icon-set/bonus-pool.png", "title": "分红池","route": "/customAddons/BonusPool/index"},
- {
- "img": "/diy/icon-set/PriceDifferenceGiftPackage.png",
- "title": "价差礼包",
- "route": "/customAddons/PriceDifferenceGiftPackage/index"
- },
- { "img": "/diy/icon-set/networking.png", "title": "人脉","route": "/customAddons/connections/index"},
- { "img": "/diy/icon-set/full-gift-activity.png", "title": "满送活动","route": "/customAddons/FullDeliveryActivity/index"},
- { "img": "/diy/icon-set/diff-reward.png", "title": "极差","route": "/customAddons/PoorAward/index"},
- // {
- // "img": "/diy/icon-set/user-feedback.png",
- // "route": "",
- // "title": "用户反馈"
- // },
- // {
- // "img": "/diy/icon-set/problem-feedback.png",
- // "route": "/plugins/pages/center/keep",
- // "title": "问题反馈"
- // },
- ]
- /**
- * 图标设置组件
- *
- */
- Vue.component('diy-icon-set', {
- // mixins: [basicMixins],//注:引入后会导致页面执行两次init
- template: '#diy-icon-set',
- name: 'diy-icon-set',
- props: {
- title: { // 组件标题, 传值显示标题, 不传就不显示
- type: String,
- default: ''
- },
- containStyle: { // 包裹容器的样式
- type: Object,
- default: () => {}
- },
- /**
- * list 的数据格式
- * {
- title: '', // 标题,有就显示,没有就不显示
- img: 'resources/img/decorate/default_btn1.png', // 图片
- icon: 'el-icon-setting', // 图标
- is_show_tag: false, // 是否展示标签
- tags: '热门', // 标签内容
- tagsBgColor: '#f83287', // 标签背景色
- tagsTextColor: '#ffffff', // 标签文字颜色
- btnText: '按钮文字' // 按钮文字
- link_params: null, // 链接内容
- }
- */
- list: {
- type: Array,
- default: () => {
- return []
- }
- },
- widthImg: { // 图片的宽度
- type: Number,
- default: 50
- },
- heightImg: { // 图片的高度
- type: Number,
- default: 50
- },
- showClose: { // 是否展示删除按钮
- type: Boolean,
- default: true
- },
- tagSwitch: { // 是否需要标签开关
- type: Boolean,
- default: false
- },
- showLink: { // 是否展示链接
- type: Boolean,
- default: false
- },
- showStoreLink: {
- type: Boolean,
- default: false
- },
- type: { // 图标类型,1 图片 || 2 图标
- type: Number,
- default: 1
- },
- showAlpha: { // 透明度
- type: Boolean,
- default: false
- },
- btnStyle: { // 按钮样式 1: 图片加文字 2: 图片 3: text: 文字
- type: Number,
- default: 1
- },
- maxIconLength: { // 最多添加数量
- type: Number,
- default: 0
- },
- showAddBtn: { // 是否展示添加按钮
- type: Boolean,
- default: false
- },
- suggestText: { // 图片建议尺寸
- type: String,
- default: ''
- },
- iconSetStyle: { // 按钮列表的样式
- type: Object,
- default: () => {}
- },
- imgUrl: { // 添加的列表展示的图片
- type: String,
- default: ''
- },
- defaultTabs: {
- type: Array,
- default: () => {
- return ["mall", "addons", "other"]
- }
- }
- },
- data() {
- return {
- selectUrl: "",
- showLineList: [{
- type: "size",
- label: "显示条数",
- value: 10,
- unit: "个",
- maxValue: 20
- }, ],
- visible: false,
- cardIndex: 0,
- is_show_close: false,
- iconList: [],
- popTitle: '确定删除吗',
- showConfrimBtn: true,
- urlPop: false,
- urlIndex: -1,
- // defaultTabs: ["mall", "addons", "other"],
- static_img_prefix: '<?= Yii::getAlias('@attachurl') ?>' + '/static',
- }
- },
- computed: {
- set_style() {
- return this.btnStyle == 1 ? 'image_text' : this.btnStyle == 2 ? 'image' : 'text'
- },
- showTitle() {
- return this.title ? true : false
- }
- },
- watch: {
- list: {
- deep: true,
- immediate: true,
- handler(val) {
- this.iconList = val
- this.changes()
- }
- }
- },
- created() {},
- methods: {
- init() {
- console.log('组件内部调用init', this)
- basicMixins.methods.init.call(this);
- let commCate = ['data', 'commCate', 'title']
- let count = ['data', 'commCate', 'count']
- this.selectUrl = getObjValue(this.result, commCate, '')
- this.showLineList = [{
- type: "size",
- label: "显示条数",
- value: getObjValue(this.result, count, 10),
- unit: "个",
- maxValue: 20
- }]
- },
- selectedUrl(e, item) {
- let info = e[0]
- console.log('选择的链接', info)
- if (!item.img || item.img.indexOf('user_fun_chat.png') != -1 || item.btnText == '按钮文字') {
- let {
- params: {
- route
- }
- } = info
- let result = defaultIconList.find(item => item.route == route)
- console.log('查找结果', result, route)
- if (result) {
- if (!item.img || item.img.indexOf('user_fun_chat.png') != -1) {
- item.img = result.img
- }
- if (item.btnText == '按钮文字') {
- item.btnText = result.title
- }
- }
- }
- item.link_params = info
- console.log('链接信息', item)
- this.$forceUpdate()
- this.$emit('change', this.iconList)
- },
- imgToUrl(url) {
- if (url && url.indexOf('http') == -1 && url.indexOf('resources/img') == -1) {
- return this.static_img_prefix + url
- }
- return url
- },
- updatePop(boo) {
- console.log(boo)
- this.urlPop = !this.urlPop;
- },
- // 图片添加链接
- addUrl(index) {
- this.urlIndex = index;
- this.urlPop = true;
- },
- closeHandle(it, i) {
- if (this.iconList.length == 1) {
- this.popTitle = '至少保留1个'
- this.showConfrimBtn = false
- }
- this.cardIndex = i
- this.visible = true
- },
- closePop() {
- this.visible = false
- },
- changes() {
- this.$emit('change', this.iconList)
- },
- coverPic(e, item) {
- let img = e[0].url
- item.img = img
- this.changes()
- },
- delPic(it, i) {
- it.img = ''
- this.changes()
- },
- addClick() {
- if (this.iconList.length >= this.maxIconLength) {
- return;
- }
- let obj = {
- // img: this.dynamicImgSrc(this.imgUrl),
- img: this.imgUrl,
- icon: 'el-icon-setting',
- is_show_tag: false,
- tags: '热门',
- tagsBgColor: '#f83287',
- tagsTextColor: '#ffffff',
- btnText: '按钮文字',
- link_params: null,
- }
- this.iconList.push(obj)
- console.log(this.iconList, 'hehe')
- this.changes()
- },
- iconSetChange(e, item, name) {
- item[name] = e
- this.changes()
- },
- delCards(e, i) {
- this.visible = false
- this.iconList.splice(i, 1)
- this.changes()
- }
- }
- })
- </script>
- <style>
- .icon-set-list-content .com-pick-link-content {
- width: 310px;
- }
- .icon-set-list-content .diy-url {
- padding: 9px 15px;
- }
- .popover-tips {
- font-size: 12px;
- text-align: center;
- padding-bottom: 5px;
- }
- .icon-set-list {
- position: relative;
- border-radius: 8px;
- background-color: #F4F3F7;
- /* padding: 18px 12px; */
- padding: 15px 30px 15px 12px;
- margin-bottom: 20px;
- }
- .icon-set-title {
- line-height: 1;
- color: #47565d;
- font-weight: bolder;
- margin-bottom: 20px;
- }
- .icon-set-close {
- display: none;
- position: absolute;
- top: 10px;
- right: 0;
- width: 30px;
- height: 30px;
- color: #999;
- cursor: pointer;
- }
- .icon-set-list:hover .icon-set-close {
- display: block;
- }
- .icon-set-items {
- margin-bottom: 20px;
- }
- .icon-set-items:last-child {
- margin-bottom: 0;
- }
- .icon-set-list-name {
- width: 60px;
- text-align: right;
- padding-right: 8px;
- margin-right: 15px;
- }
- .content-upload {
- width: 50px;
- height: 50px;
- border-radius: 8px;
- cursor: pointer;
- background-color: #E3E3E3;
- color: #fff;
- }
- .content-img {
- position: relative;
- width: 50px;
- height: 50px;
- border-radius: 8px;
- cursor: pointer;
- }
- .icon-close {
- display: none;
- position: absolute;
- top: -8px;
- left: 35px;
- width: 20px;
- height: 20px;
- border-radius: 50%;
- background-color: rgba(0, 0, 0, .3);
- color: #fff;
- text-align: center;
- }
- .img-replace {
- display: none;
- position: absolute;
- bottom: 0;
- width: 100%;
- background-color: rgba(0, 0, 0, .3);
- color: #fff;
- text-align: center;
- font-size: 12px;
- padding: 2px 0;
- }
- .content-img:hover .icon-close,
- .content-img:hover .img-replace {
- display: block;
- }
- .icon-set-list-content {
- flex: 1;
- }
- .icon-set-list-content .el-switch__labe {
- font-size: 15px;
- color: #999999 !important;
- font-weight: 700;
- padding-left: 5px;
- }
- .icon-set-items .el-color-picker {
- height: auto;
- }
- .add-btns {
- border: 1px dashed #707070;
- line-height: 32px;
- height: 34px;
- border-radius: 5px;
- text-align: center;
- cursor: pointer;
- color: var(--textGray, #999999);
- }
- .diy-url {
- margin-left: 0 !important;
- }
- </style>
|