| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031 |
- ol,
- ul,
- dl {
- margin: 0;
- padding: 0;
- }
- // diy手机
- .phone-content {
- width: 377px;
- margin-top: 25px;
- border-radius: 3px;
- box-shadow: 0 0 28px 0 #ccc;
- border: 1px solid #ddd;
- background: #fff;
- position: relative;
- margin: 0 auto;
- .phone-top {
- width: 100%;
- height: 88px;
- text-align: center;
- background-position: center;
- background-size: contain;
- background-repeat: no-repeat;
- &.black {
- background-image: url('~@/assets/img/topNavBlack_new.png');
- }
- &.white {
- background-image: url('~@/assets/img/topNavWhite_new.png');
- }
- .title {
- font-size: 14px;
- font-weight: normal;
- white-space: nowrap;
- position: absolute;
- bottom: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 44px;
- }
- }
- // diy元素容器
- .phone-main {
- position: relative;
- border-top: 0;
- user-select: none;
- line-height: normal;
- .content {
- // overflow-y: auto;
- min-height: 640px;
- }
- .devise-item {
- display: block;
- // overflow: hidden;
- font-size: 13px;
- // 选中状态
- &.selected {
- // 显示操作工具栏
- .action-tools {
- display: block;
- }
- }
- }
- a {
- color: #337ab7;
- }
- // diy-搜索
- .diy-search {
- background: #f1f1f2;
- padding: 10px 10px;
- .inner {
- height: 30px;
- background: #fff;
- overflow: hidden;
- &.radius {
- border-radius: 5px;
- }
- &.round {
- border-radius: 30px;
- }
- .search-input {
- height: 30px;
- //width: 100%;
- line-height: 30px;
- color: #999999;
- padding: 0 10px;
- font-size: 13px;
- .search-icon {
- margin-right: 4px;
- }
- }
- }
- }
- // diy-轮播图
- .diy-banner {
- display: block;
- margin: 0;
- padding: 0;
- height: auto;
- overflow: hidden;
- //position: relative;
- img {
- display: none;
- width: 100%;
- &:first-child {
- display: block;
- }
- }
- .dots {
- height: 14px;
- padding: 0 10px;
- position: absolute;
- left: 0;
- right: 0;
- bottom: 10px;
- opacity: 0.8;
- display: flex;
- justify-content: center;
- &-item {
- margin-right: 3px;
- height: 10px;
- width: 10px;
- &:last-child {
- margin-right: 0;
- }
- }
- &.rectangle {
- .dots-item {
- width: 16px;
- }
- }
- &.square {
- .dots-item {
- width: 10px;
- }
- }
- &.round {
- .dots-item {
- height: 10px;
- width: 10px;
- border-radius: 10px;
- }
- }
- }
- }
- // diy-图片组
- .diy-image {
- display: block;
- margin: 0;
- padding: 0;
- height: auto;
- overflow: hidden;
- img {
- display: block;
- width: 100%;
- }
- }
- // diy-按钮组
- .diy-navBar {
- .item-nav {
- float: left;
- margin: 10px 0;
- text-align: center;
- .item-image {
- text-align: center;
- margin-bottom: 4px;
- img {
- height: 44px;
- width: 44px;
- }
- }
- }
- // 分列布局
- .avg-sm-3>.item-nav {
- width: 33.33333333%;
- }
- .avg-sm-4>.item-nav {
- width: 25%;
- }
- .avg-sm-5>.item-nav {
- width: 20%;
- }
- }
- // diy-辅助线
- .diy-guide {
- .line {
- height: 0;
- width: 100%;
- }
- }
- // diy-视频组
- .diy-video {
- video {
- display: block;
- width: 100%;
- height: 100%;
- }
- }
- // diy-文章组
- .diy-article {
- background: #f7f7f7;
- .article-item {
- margin-bottom: 10px;
- padding: 15px;
- background: #fff;
- &:last-child {
- margin-bottom: 0;
- }
- .article-title {
- font-size: 13px;
- color: #333;
- }
- &__image image {
- display: block;
- }
- &__footer {
- margin-top: 5px;
- .article-views {
- font-size: 12px;
- color: #888;
- }
- }
- // 小图模式
- &.show-type__10 {
- display: flex;
- .article-item__left {
- padding-right: 10px;
- }
- .article-item__title {
- min-height: 36px;
- }
- .article-item__image img {
- display: block;
- width: 120px;
- }
- }
- // 大图模式
- &.show-type__20 {
- .article-item__image {
- margin-top: 12.5px;
- img {
- display: block;
- width: 100%;
- }
- }
- }
- }
- }
- // diy-专题组
- .diy-special {
- line-height: normal;
- .special-left {
- padding: 5px 10px;
- img {
- display: block;
- width: 70px;
- }
- }
- .special-content {
- //width: 250px;
- overflow: hidden;
- .content-item {
- padding: 2px 0;
- font-size: 13px;
- color: #141414;
- }
- &.display_1 {
- height: 22px;
- }
- &.display_2 {
- height: 44px;
- }
- }
- .special-more {
- padding: 12px 10px;
- font-size: 12px;
- }
- }
- // diy-图片橱窗
- .diy-window {
- .item-image img {
- display: block;
- width: 100%;
- }
- .data-item {
- float: left;
- }
- // 分列布局
- .avg-sm-2>.data-item {
- width: 50%;
- }
- .avg-sm-3>.data-item {
- width: 33.33333333%;
- }
- .avg-sm-4>.data-item {
- width: 25%;
- }
- .avg-sm-5>.data-item {
- width: 20%;
- }
- // 橱窗样式
- .display {
- height: 0;
- width: 100%;
- margin: 0;
- padding-bottom: 50%;
- position: relative;
- img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .display-left {
- width: 50%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .display-right {
- width: 50%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 50%;
- }
- .display-right1 {
- width: 100%;
- height: 50%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .display-right2 {
- width: 100%;
- height: 50%;
- position: absolute;
- top: 50%;
- left: 0;
- .left {
- width: 50%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .right {
- width: 50%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 50%;
- }
- }
- }
- }
- // diy-热区组
- .diy-hotZone {
- display: block;
- margin: 0;
- padding: 0;
- height: auto;
- overflow: hidden;
- img {
- display: block;
- width: 100%;
- }
- }
- // diy-商品组
- .diy-goods {
- display: flex;
- flex-direction: column;
- .goods-list {
- margin-bottom: -10px;
- // 横向滑动
- &.display-slide {
- display: flex;
- flex-wrap: nowrap;
- .goods-item {
- flex-shrink: 0;
- margin-right: 2.8% !important;
- }
- // 双列
- &.column-2 {
- .goods-item {
- flex-basis: 45.6%;
- }
- }
- // 3列
- &.column-3 {
- .goods-item {
- flex-basis: 29.46666%;
- }
- }
- }
- // 列表平铺
- &.display-list {
- display: flex;
- flex-wrap: wrap;
- }
- // 单列
- &.column-1 {
- margin-bottom: 0;
- .goods-item {
- margin-bottom: 6px;
- padding: 10px;
- box-sizing: border-box;
- background: #fff;
- flex-basis: 100%;
- margin-right: 0;
- &:last-child {
- margin-bottom: 0 !important;
- }
- .goods-info {
- padding: 0;
- .goods-name {
- font-size: 13.5px;
- }
- }
- }
- // 商品图片
- .goods-item_left {
- background: #fff;
- margin-right: 10px;
- .image {
- display: block;
- width: 120px;
- height: 120px;
- }
- }
- .goods-item_right {
- position: relative;
- flex: 1;
- }
- }
- // 2列
- &.column-2 {
- .goods-item {
- flex-basis: 48.6%;
- &:nth-child(2n) {
- margin-right: 0;
- }
- }
- }
- // 3列
- &.column-3 {
- .goods-item {
- flex-basis: 31.46666%;
- &:nth-child(3n) {
- margin-right: 0;
- }
- }
- }
- // 商品内容
- .goods-item {
- flex-shrink: 0;
- background-color: #fff;
- flex: 0 1 48.6%;
- margin-right: 2.8%;
- border-radius: 8px;
- overflow: hidden;
- margin-bottom: 10px;
- &.display-card {
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
- }
- .goods-image {
- position: relative;
- width: 100%;
- height: 0;
- padding-bottom: 100%;
- overflow: hidden;
- &:after {
- content: '';
- display: block;
- margin-top: 100%;
- }
- .image {
- position: absolute;
- top: 0;
- left: 0;
- display: block;
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- }
- .goods-info {
- padding: 10px;
- .goods-name {
- font-size: 13px;
- color: #000;
- margin-bottom: 4px;
- height: 34px;
- }
- .goods-selling {
- font-size: 12px;
- margin-bottom: 4px;
- }
- .goods-sales {
- font-size: 12px;
- color: #959595;
- margin-bottom: 4px;
- .line {
- margin: 0 4px;
- }
- }
- }
- .footer {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .goods-price {
- position: relative;
- color: #ff1051;
- .unit {
- font-size: 10px;
- }
- .value {
- font-size: 15px;
- }
- .unit2 {
- margin-left: 2px;
- font-size: 11px;
- }
- .line-price {
- margin-left: 3px;
- color: #959595;
- .unit {
- text-decoration: line-through;
- font-size: 11px;
- }
- .value {
- text-decoration: line-through;
- font-size: 11px;
- }
- }
- }
- .action {
- .btn-cart {
- width: 22px;
- height: 22px;
- display: flex;
- justify-content: center;
- align-items: center;
- background-color: #27c29a;
- color: #fff;
- border-radius: 50%;
- .cart-icon {
- font-size: 13px;
- }
- }
- }
- }
- }
- }
- }
- // 店铺公告
- .diy-notice {
- font-size: 14px;
- .notice-body {
- padding: 6px 12px;
- display: flex;
- align-items: center;
- }
- .notice__icon {
- font-size: 17px;
- }
- .notice__text {
- padding-left: 6px;
- line-height: 18px;
- }
- }
- // 富文本
- .diy-richText {
- font-size: 14px;
- line-height: normal;
- /deep/p {
- padding: 0 4px;
- }
- /deep/img {
- display: block;
- width: 375px;
- margin-left: -4px;
- }
- /deep/video {
- width: 100%;
- }
- /deep/hr {
- margin: 5px 0;
- }
- /deep/a {
- color: #3284e6;
- word-break: break-all;
- }
- *+h1,
- *+h2,
- *+h3,
- *+h4,
- *+h5,
- *+h6 {
- margin: 20px 0;
- }
- }
- // 在线客服
- .diy-service {
- z-index: 999;
- .service-icon {
- padding: 5px;
- .image {
- display: block;
- width: 45px;
- height: 45px;
- border-radius: 50%;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
- }
- }
- }
- // 关注公众号
- .diy-officialAccount {
- width: 100%;
- height: 75px;
- padding: 0 8px;
- .item-top {
- padding: 5px 0;
- font-size: 12px;
- color: #c0bdc0;
- }
- .item-content {
- height: 46px;
- .item-cont-avatar {
- margin-right: 10px;
- img {
- display: block;
- width: 42px;
- height: 42px;
- }
- }
- .item-cont-public {
- width: 235px;
- margin-right: 15px;
- .public-name {
- font-size: 14px;
- }
- .public-describe {
- margin-top: 2px;
- font-size: 12px;
- color: #9E9B9F;
- }
- }
- .item-cont-active {
- .active-btn {
- width: 46px;
- height: 24px;
- line-height: 22px;
- border: 1px solid rgb(26, 173, 25);
- border-radius: 3px;
- font-size: 12px;
- color: rgb(26, 173, 25);
- text-align: center;
- }
- }
- }
- }
- // diy-头条快报
- .diy-special {
- display: flex;
- align-items: center;
- line-height: normal;
- .special-left {
- padding: 5px 10px;
- img {
- display: block;
- width: 70px;
- }
- }
- .special-content {
- flex: 1;
- overflow: hidden;
- .content-item {
- padding: 2px 0;
- font-size: 13px;
- color: #141414;
- }
- &.display_1 {
- height: 22px;
- }
- &.display_2 {
- height: 44px;
- }
- }
- .special-more {
- padding: 12px 10px;
- font-size: 12px;
- }
- }
- // diy-优惠券组
- .diy-coupon {
- overflow: hidden;
- &::-webkit-scrollbar {
- display: none;
- }
- .coupon-wrapper {
- display: flex;
- width: max-content;
- height: 65px;
- padding: 0 12px;
- }
- .coupon-item {
- flex-shrink: 0;
- width: 150px;
- height: 65px;
- position: relative;
- color: #fff;
- overflow: hidden;
- box-sizing: border-box;
- margin-right: 20px;
- display: flex;
- &:last-child {
- margin-right: 0 !important;
- }
- .before {
- content: "";
- position: absolute;
- z-index: 1;
- width: 16px;
- height: 16px;
- top: 45%;
- left: -8px;
- transform: translateY(-50%);
- border-radius: 80%;
- background-color: #fff;
- }
- .left-content {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- position: relative;
- width: 70%;
- height: 100%;
- background-color: #E5004F;
- font-size: 12px;
- .content-top {
- .unit {
- font-size: 15px;
- }
- .price {
- font-size: 22px;
- }
- }
- }
- .right-receive {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 30%;
- height: 100%;
- background-color: #4e4e4e;
- text-align: center;
- font-size: 12px;
- }
- }
- }
- // 标题文本
- .diy-title {
- padding: 5px 15px;
- .title-content {
- display: flex;
- justify-content: space-between;
- .title {
- color: #323233;
- font-size: 14px;
- flex: 1;
- }
- .more-content {
- color: #969799;
- font-size: 12px;
- margin-left: 20px;
- }
- }
- .desc-content {
- margin-top: 8px;
- color: #969799;
- font-size: 12px;
- }
- }
- }
- .optional {
- position: relative;
- &:before {
- content: '';
- }
- &.__z10:before {
- z-index: 10;
- }
- &.__no-move:before {
- cursor: pointer !important;
- }
- &.selected:before,
- &:hover:before {
- z-index: 2;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- border: 2px dashed #00a0e9;
- cursor: move;
- }
- }
- .tooltip-text {
- white-space: nowrap;
- }
- // 操作区 (工具栏)
- .action-tools {
- display: none;
- position: absolute;
- top: 0;
- right: -48px;
- z-index: 1;
- padding-left: 14px;
- .tools-content {
- border-radius: 4px;
- line-height: 22px;
- text-align: left;
- padding: 4px 10px;
- background-color: #fff;
- box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.1);
- font-size: 14px;
- word-break: break-all;
- }
- .item-btn {
- cursor: pointer;
- padding: 3px 0;
- font-size: 13px;
- &.disabled {
- color: #dfe2e6;
- }
- }
- }
- }
|