init
This commit is contained in:
1
components/diy-components/diy-pintuan.wxss
Normal file
1
components/diy-components/diy-pintuan.wxss
Normal file
File diff suppressed because one or more lines are too long
10
components/diy-components/diy-presale.js
Normal file
10
components/diy-components/diy-presale.js
Normal file
File diff suppressed because one or more lines are too long
6
components/diy-components/diy-presale.json
Normal file
6
components/diy-components/diy-presale.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"x-skeleton": "/uni_modules/x-skeleton/components/x-skeleton/x-skeleton"
|
||||
}
|
||||
}
|
||||
1
components/diy-components/diy-presale.wxml
Normal file
1
components/diy-components/diy-presale.wxml
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-presale.wxss
Normal file
1
components/diy-components/diy-presale.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.uni-scroll-view ::-webkit-scrollbar{display:none;width:0;height:0;color:transparent;background:transparent}::-webkit-scrollbar{display:none;width:0;height:0;color:transparent;background:transparent}scroll-view ::-webkit-scrollbar{width:0;height:0;background-color:initial;touch-action:none}.diy-presale.row1-of1 .item{display:flex;margin-bottom:20rpx;padding:16rpx}.diy-presale.row1-of1 .item.shadow{margin:8rpx 8rpx 20rpx 8rpx}.diy-presale.row1-of1 .item:last-child{margin-bottom:0}.diy-presale.row1-of1 .item .img-wrap{width:200rpx;height:200rpx}.diy-presale.row1-of1 .item .img-wrap > image{width:200rpx}.diy-presale.row1-of1 .item .content{flex:1;margin-left:20rpx;position:relative;padding:6rpx 0}.diy-presale.row1-of1 .item .content .goods-name{line-height:1.5}.diy-presale.row1-of1 .item .content .discount-price{white-space:nowrap;font-weight:700;position:absolute;bottom:10rpx;left:0}.diy-presale.row1-of1 .item .content .discount-price .unit{font-size:24rpx;margin-right:4rpx;color:var(--base-color)}.diy-presale.row1-of1 .item .content .discount-price .price{font-size:32rpx;color:var(--base-color)}.diy-presale.row1-of1 .item .content button{position:absolute;bottom:10rpx;right:20rpx;margin:0;padding:0 20rpx;background-color:var(--base-color);color:#fff;min-width:112rpx;height:52rpx;line-height:52rpx;font-size:24rpx}.diy-presale.horizontal-slide .scroll{width:calc(100% - 40rpx);padding:20rpx;line-height:1;white-space:nowrap}.diy-presale.horizontal-slide .scroll .item.shadow{margin-bottom:8rpx}.diy-presale.horizontal-slide .flex-between{justify-content:space-between}.diy-presale.horizontal-slide .item{display:inline-block;width:200rpx;overflow:hidden;box-sizing:border-box}.diy-presale.horizontal-slide .item:nth-child(3n + 3){width:198rpx}.diy-presale.horizontal-slide .item.shadow{margin-top:8rpx}.diy-presale.horizontal-slide .item .img-wrap{width:200rpx;height:200rpx;margin:0 auto}.diy-presale.horizontal-slide .item .img-wrap > image{width:200rpx}.diy-presale.horizontal-slide .item .content{padding:10rpx;display:flex;flex-direction:column;justify-content:space-between}.diy-presale.horizontal-slide .item .content.multi-content{height:134rpx;box-sizing:border-box}.diy-presale.horizontal-slide .item .content .goods-name{line-height:1.3}.diy-presale.horizontal-slide .item .content .goods-name.multi-hidden{white-space:break-spaces}.diy-presale.horizontal-slide .item .content .discount-price{white-space:nowrap;margin-top:auto;font-weight:700;line-height:1}.diy-presale.horizontal-slide .item .content .discount-price .unit{font-size:24rpx;margin-right:4rpx;color:var(--base-color)}.diy-presale.horizontal-slide .item .content .discount-price .price{font-size:32rpx;color:var(--base-color)}.diy-presale.horizontal-slide .swiper{padding:20rpx;width:100%;white-space:nowrap;box-sizing:border-box}.diy-presale.horizontal-slide .swiper .swiper-item{display:flex;align-items:center}.diy-presale.horizontal-slide .swiper .item{width:200rpx}
|
||||
10
components/diy-components/diy-quick-nav.js
Normal file
10
components/diy-components/diy-quick-nav.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-quick-nav"],{1608:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={name:"diy-quick-nav",props:{value:{type:Object}},data:function(){return{}},created:function(){},watch:{componentRefresh:function(n){}},computed:{componentStyle:function(){var n="";return n+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(n+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",n+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",n+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",n+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),n+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",n+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",n}},methods:{redirectTo:function(n){!n.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?this.$util.diyRedirectTo(n):this.$refs.login.open(n.wap_url)}}};t.default=o},"1b0d":function(n,t,e){},2789:function(n,t,e){"use strict";e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){return o}));var o={diyIcon:function(){return e.e("components/diy-components/diy-icon").then(e.bind(null,"8ba4"))},nsLogin:function(){return Promise.all([e.e("common/vendor"),e.e("components/ns-login/ns-login")]).then(e.bind(null,"17d0"))}},r=function(){var n=this,t=n.$createElement,e=(n._self._c,n.__map(n.value.list,(function(t,e){var o=n.__get_orig(t),r=(t.imageUrl||t.icon)&&"img"==t.iconType?n.$util.img(t.imageUrl)||n.$util.img("public/uniapp/default_img/goods.png"):null;return{$orig:o,g0:r}})));n.$mp.data=Object.assign({},{$root:{l0:e}})},i=[]},"28b9":function(n,t,e){"use strict";var o=e("1b0d"),r=e.n(o);r.a},"8ffe":function(n,t,e){},a5be:function(n,t,e){"use strict";e.r(t);var o=e("1608"),r=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(i);t["default"]=r.a},c08b:function(n,t,e){"use strict";e.r(t);var o=e("2789"),r=e("a5be");for(var i in r)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(i);e("e2eb"),e("28b9");var u=e("828b"),a=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=a.exports},e2eb:function(n,t,e){"use strict";var o=e("8ffe"),r=e.n(o);r.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-quick-nav-create-component',
|
||||
{
|
||||
'components/diy-components/diy-quick-nav-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("c08b"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-quick-nav-create-component']]
|
||||
]);
|
||||
7
components/diy-components/diy-quick-nav.json
Normal file
7
components/diy-components/diy-quick-nav.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"diy-icon": "/components/diy-components/diy-icon",
|
||||
"ns-login": "/components/ns-login/ns-login"
|
||||
}
|
||||
}
|
||||
1
components/diy-components/diy-quick-nav.wxml
Normal file
1
components/diy-components/diy-quick-nav.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{(componentStyle)}}"><scroll-view class="quick-nav" scroll-x="true"><view class="uni-scroll-view-content"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['redirectTo',['$0'],[[['value.list','',index,'link']]]]]]]}}" class="quick-nav-item" style="{{'background:'+('linear-gradient(to right,'+item.$orig.bgColorStart?item.$orig.bgColorStart:''+','+item.$orig.bgColorEnd?item.$orig.bgColorEnd:''+')')+';'}}" bindtap="__e"><block wx:if="{{item.$orig.imageUrl||item.$orig.icon}}"><view class="quick-img"><block wx:if="{{item.$orig.iconType=='img'}}"><image src="{{item.g0}}" mode="heightFix" show-menu-by-longpress="{{true}}"></image></block><block wx:if="{{item.$orig.iconType=='icon'}}"><diy-icon style="{{'font-size:'+('60rpx')+';'}}" vue-id="{{'178a027e-1-'+index}}" icon="{{item.$orig.icon}}" value="{{item.$orig.style?item.$orig.style:null}}" bind:__l="__l"></diy-icon></block></view></block><text class="quick-text" style="{{'color:'+(item.$orig.textColor)+';'}}">{{item.$orig.title}}</text></view></block></view></scroll-view><ns-login class="vue-ref" vue-id="178a027e-2" data-ref="login" bind:__l="__l"></ns-login></view>
|
||||
1
components/diy-components/diy-quick-nav.wxss
Normal file
1
components/diy-components/diy-quick-nav.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.quick-nav .uni-scroll-view-content{display:flex}.quick-nav .quick-nav-item{display:flex;align-items:center;padding:0 18rpx;box-sizing:border-box;flex-shrink:0;border-radius:40rpx;margin-right:20rpx;height:48rpx}.quick-nav .quick-nav-item:first-of-type{padding-left:12rpx}.quick-nav .quick-nav-item:last-child{margin-right:0}.quick-nav .quick-nav-item .quick-img{margin-right:6rpx;height:30rpx;line-height:1}.quick-nav .quick-nav-item .quick-img image{width:30rpx;height:30rpx}.quick-nav .quick-nav-item .quick-text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;font-size:24rpx;line-height:1}
|
||||
10
components/diy-components/diy-rich-text.js
Normal file
10
components/diy-components/diy-rich-text.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-rich-text"],{"2e65":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},r=[]},"3bff":function(t,e,n){},"6abe":function(t,e,n){"use strict";var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("e5ac")),u={name:"diy-rich-text",props:{value:{type:Object}},data:function(){return{html:""}},created:function(){this.html=(0,r.default)(this.value.html)},watch:{componentRefresh:function(t){}},computed:{richTextWarpCss:function(){var t="";return t+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t}},mounted:function(){},methods:{}};e.default=u},"7e66":function(t,e,n){"use strict";n.r(e);var o=n("6abe"),r=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=r.a},bf343:function(t,e,n){"use strict";n.r(e);var o=n("2e65"),r=n("7e66");for(var u in r)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(u);n("da64");var a=n("828b"),i=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=i.exports},da64:function(t,e,n){"use strict";var o=n("3bff"),r=n.n(o);r.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-rich-text-create-component',
|
||||
{
|
||||
'components/diy-components/diy-rich-text-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("bf343"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-rich-text-create-component']]
|
||||
]);
|
||||
4
components/diy-components/diy-rich-text.json
Normal file
4
components/diy-components/diy-rich-text.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
components/diy-components/diy-rich-text.wxml
Normal file
1
components/diy-components/diy-rich-text.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="rich-text-box" style="{{(richTextWarpCss)}}"><rich-text nodes="{{html}}"></rich-text></view>
|
||||
1
components/diy-components/diy-rich-text.wxss
Normal file
1
components/diy-components/diy-rich-text.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.rich-text-box{padding:20rpx;box-sizing:border-box;height:auto;line-height:1.5;white-space:pre-wrap;word-break:break-all}
|
||||
10
components/diy-components/diy-rubik-cube.js
Normal file
10
components/diy-components/diy-rubik-cube.js
Normal file
File diff suppressed because one or more lines are too long
4
components/diy-components/diy-rubik-cube.json
Normal file
4
components/diy-components/diy-rubik-cube.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
components/diy-components/diy-rubik-cube.wxml
Normal file
1
components/diy-components/diy-rubik-cube.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view><block wx:if="{{value.mode=='custom-rubik-cube'}}"><view><view style="position:relative;"><rich-text nodes="{{customHtml}}"></rich-text></view></view></block><block wx:else><view class="{{['rubik-cube',value.mode]}}" style="{{(rubikCubeWrapCss)}}"><block wx:if="{{value.mode=='row1-lt-of2-rt'}}"><view class="template-left"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="{{['item',value.mode]}}" style="{{'margin-right:'+(value.imageGap*2+'rpx')+';'+('width:'+(list[0].imgWidth)+';')+('height:'+(list[0].imgHeight+'px')+';')}}" bindtap="__e"><image style="{{(list[0].pageItemStyle)}}" src="{{$root.g0}}" mode="{{list[0].imageMode||'scaleToFill'}}" show-menu-by-longpress="{{true}}"></image></view></view><view class="template-right"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{index>0}}"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" class="{{['item',value.mode]}}" style="{{'margin-bottom:'+(value.imageGap*2+'rpx')+';'+('width:'+(item.$orig.imgWidth)+';')+('height:'+(item.$orig.imgHeight+'px')+';')}}" bindtap="__e"><image style="{{(item.$orig.pageItemStyle)}}" src="{{item.g1}}" mode="{{item.$orig.imageMode||'scaleToFill'}}" show-menu-by-longpress="{{true}}"></image></view></block></block></view></block><block wx:else><block wx:if="{{value.mode=='row1-lt-of1-tp-of2-bm'}}"><view class="template-left"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="{{['item',value.mode]}}" style="{{'margin-right:'+(value.imageGap*2+'rpx')+';'+('width:'+(list[0].imgWidth)+';')+('height:'+(list[0].imgHeight+'px')+';')}}" bindtap="__e"><image style="{{(list[0].pageItemStyle)}}" src="{{$root.g2}}" mode="{{list[0].imageMode||'scaleToFill'}}" show-menu-by-longpress="{{true}}"></image></view></view><view class="template-right"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="{{['item',value.mode]}}" style="{{'margin-bottom:'+(value.imageGap*2+'rpx')+';'+('width:'+(list[1].imgWidth)+';')+('height:'+(list[1].imgHeight+'px')+';')}}" bindtap="__e"><image style="{{(list[1].pageItemStyle)}}" src="{{$root.g3}}" mode="{{list[1].imageMode||'scaleToFill'}}" show-menu-by-longpress="{{true}}"></image></view><view class="template-bottom"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{index>1}}"><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" class="{{['item',value.mode]}}" style="{{'margin-right:'+(value.imageGap*2+'rpx')+';'+('width:'+(item.$orig.imgWidth)+';')+('height:'+(item.$orig.imgHeight+'px')+';')}}" bindtap="__e"><image style="{{(item.$orig.pageItemStyle)}}" src="{{item.g4}}" mode="{{item.$orig.imageMode||'scaleToFill'}}" show-menu-by-longpress="{{true}}"></image></view></block></block></view></view></block><block wx:else><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" data-event-params="{{({item:item.$orig})}}" class="{{['item',value.mode]}}" style="{{'margin-right:'+(value.imageGap*2+'rpx')+';'+('margin-bottom:'+(value.imageGap*2+'rpx')+';')+('width:'+(item.$orig.widthStyle)+';')+('height:'+(item.$orig.imgHeight+'px')+';')}}" bindtap="__e"><image style="{{(item.$orig.pageItemStyle)}}" src="{{item.g5}}" mode="{{item.$orig.imageMode||'scaleToFill'}}" show-menu-by-longpress="{{true}}"></image></view></block></block></block></view></block></view>
|
||||
2
components/diy-components/diy-rubik-cube.wxss
Normal file
2
components/diy-components/diy-rubik-cube.wxss
Normal file
@@ -0,0 +1,2 @@
|
||||
.rubik-cube{overflow:hidden;display:flex;flex-wrap:wrap;justify-content:space-between}.rubik-cube .item{text-align:center;line-height:0;overflow:hidden}.rubik-cube .item image{width:100%;max-width:100%;height:100%}.rubik-cube .item.row1-of2{box-sizing:border-box;margin-top:0!important;margin-bottom:0!important}.rubik-cube .item.row1-of2:nth-child(1){margin-left:0!important}.rubik-cube .item.row1-of2:nth-child(2){margin-right:0!important}.rubik-cube .item.row1-of3{box-sizing:border-box;margin-top:0!important;margin-bottom:0!important}.rubik-cube .item.row1-of3:nth-child(1){margin-left:0!important}.rubik-cube .item.row1-of3:nth-child(3){margin-right:0!important}.rubik-cube .item.row1-of4{box-sizing:border-box;margin-top:0!important;margin-bottom:0!important}.rubik-cube .item.row1-of4:nth-child(1){margin-left:0!important}.rubik-cube .item.row1-of4:nth-child(4){margin-right:0!important}.rubik-cube .item.row2-lt-of2-rt{display:inline-block;box-sizing:border-box}.rubik-cube .item.row2-lt-of2-rt:nth-child(1){margin-left:0!important;margin-top:0!important}.rubik-cube .item.row2-lt-of2-rt:nth-child(2){margin-right:0!important;margin-top:0!important}.rubik-cube .item.row2-lt-of2-rt:nth-child(3){margin-left:0!important;margin-bottom:0!important}.rubik-cube .item.row2-lt-of2-rt:nth-child(4){margin-right:0!important;margin-bottom:0!important}.rubik-cube .template-left,
|
||||
.rubik-cube .template-right{box-sizing:border-box}.rubik-cube .template-left .item.row1-lt-of2-rt:nth-child(1){margin-bottom:0}.rubik-cube .template-right .item.row1-lt-of2-rt:nth-child(2){margin-bottom:0!important}.rubik-cube.row1-lt-of2-rt .template-right{display:flex;flex-direction:column;justify-content:space-between}.rubik-cube .item.row1-tp-of2-bm:nth-child(1){width:100%;box-sizing:border-box;margin-top:0!important;margin-left:0!important;margin-right:0!important}.rubik-cube .item.row1-tp-of2-bm:nth-child(2){box-sizing:border-box;margin-left:0!important;margin-bottom:0!important}.rubik-cube .item.row1-tp-of2-bm:nth-child(3){box-sizing:border-box;margin-right:0!important;margin-bottom:0!important}.rubik-cube .template-left .item.row1-lt-of1-tp-of2-bm{width:100%;box-sizing:border-box}.rubik-cube .template-bottom{display:flex;align-items:center;justify-content:space-between}.rubik-cube .template-bottom .item:nth-child(2){margin-right:0!important}
|
||||
10
components/diy-components/diy-search.js
Normal file
10
components/diy-components/diy-search.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-search"],{"2dab":function(e,t,n){},"4df5":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var o={diyIcon:function(){return n.e("components/diy-components/diy-icon").then(n.bind(null,"8ba4"))},nsLogin:function(){return Promise.all([n.e("common/vendor"),n.e("components/ns-login/ns-login")]).then(n.bind(null,"17d0"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,[1,2].includes(e.value.searchStyle)),o=n&&2==e.value.searchStyle&&"img"==e.value.iconType?e.$util.img(e.value.imageUrl):null,i=3==e.value.searchStyle&&"img"==e.value.iconType?e.$util.img(e.value.imageUrl):null;e.$mp.data=Object.assign({},{$root:{g0:n,g1:o,g2:i}})},a=[]},"5e21":function(e,t,n){"use strict";n.r(t);var o=n("8774"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},8774:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n;e.getSystemInfoSync();n=e.getMenuButtonBoundingClientRect();var o={name:"diy-search",props:{value:{type:Object,default:function(){return{}}},topNavColor:String,global:{type:Object,default:function(){return{}}},haveTopCategory:{type:Boolean},followOfficialAccount:{type:Object}},data:function(){return{searchText:"",menuButtonInfo:n,height:0,placeholderHeight:0,moduleHeight:0}},computed:{fixedCss:function(){var e="";if("fixed"==this.value.positionWay){var t=this.fixedTop;this.global.topNavBg?e+="background-color:"+("transparent"==this.topNavColor?this.value.pageBgColor:this.topNavColor)+";":e+="background-color:"+this.value.pageBgColor+";",e+="top:"+t+";",e+="padding-top:"+2*this.value.margin.top+"rpx;",e+="padding-left:"+2*this.value.margin.both+"rpx;",e+="padding-right:"+2*this.value.margin.both+"rpx;",e+="padding-bottom:"+2*this.value.margin.bottom+"rpx;"}return e},searchWrapCss:function(){var e="";return e+="background-color:"+this.value.componentBgColor+";",e+="text-align:"+this.value.textAlign+";",e},inputStyle:function(){var e="";return e+="background-color:"+this.value.elementBgColor+";",2==this.value.borderType&&(e+="border-radius:40rpx;"),e},placeholderStyle:function(){var e="";return this.value.textColor?e+="color:"+this.value.textColor:e+="color: rgba(0,0,0,0)",e},fixedTop:function(){var e=this.$store.state.diyGroupPositionObj,t=0;return e.diySearch&&e.diyIndexPage&&e.nsNavbar?t=e.diySearch.moduleIndex>e.diyIndexPage.moduleIndex?e.nsNavbar.originalVal+e.diyIndexPage.originalVal:e.nsNavbar.originalVal:e.diySearch&&e.nsNavbar&&(t=e.nsNavbar.originalVal),t+="px",t}},watch:{componentRefresh:function(e){}},created:function(){var t=this;setTimeout((function(){var n=e.createSelectorQuery();n.select(".page-header >>> .u-navbar").boundingClientRect((function(e){t.global.navBarSwitch?t.height=e?e.height:45:t.height=e?e.height:0,t.haveTopCategory&&(t.height+=49)})).exec()})),"fixed"==this.value.positionWay&&this.navbarPlaceholderHeight()},mounted:function(){"fixed"==this.value.positionWay&&this.setModuleLocatinoFn()},methods:{search:function(){this.$util.redirectTo("/pages_tool/goods/search")},redirectTo:function(e){!e.wap_url||"pages/member/index"!=this.$util.getCurrRoute()||this.storeToken?this.$util.diyRedirectTo(e):this.$refs.login.open(e.wap_url)},navbarPlaceholderHeight:function(){var t=this;setTimeout((function(){var n=e.createSelectorQuery().in(t);n.select(".diy-search-wrap").boundingClientRect((function(e){t.placeholderHeight=e.height,t.placeholderHeight&&(t.placeholderHeight-=t.value.margin.bottom)})).exec()}))},setModuleLocatinoFn:function(){var t=this;this.$nextTick((function(){var n=e.createSelectorQuery().in(t);n.select(".diy-search-wrap").boundingClientRect((function(e){var n={originalVal:e.height||0,currVal:0,moduleIndex:t.value.moduleIndex};t.moduleHeight=(e.height||0)+"px",t.$store.commit("setDiyGroupPositionObj",{diySearch:n})})).exec()}))}}};t.default=o}).call(this,n("df3c")["default"])},"972e":function(e,t,n){"use strict";var o=n("2dab"),i=n.n(o);i.a},d832:function(e,t,n){"use strict";n.r(t);var o=n("4df5"),i=n("5e21");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("972e");var r=n("828b"),l=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=l.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-search-create-component',
|
||||
{
|
||||
'components/diy-components/diy-search-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("d832"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-search-create-component']]
|
||||
]);
|
||||
7
components/diy-components/diy-search.json
Normal file
7
components/diy-components/diy-search.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"diy-icon": "/components/diy-components/diy-icon",
|
||||
"ns-login": "/components/ns-login/ns-login"
|
||||
}
|
||||
}
|
||||
1
components/diy-components/diy-search.wxml
Normal file
1
components/diy-components/diy-search.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="diy-search"><view class="{{['diy-search-wrap',value.positionWay]}}" style="{{(fixedCss)}}"><view data-event-opts="{{[['tap',[['search']]]]}}" class="{{['search-box','search-box-'+value.searchStyle]}}" style="{{(searchWrapCss)}}" bindtap="__e"><block wx:if="{{$root.g0}}"><block><block wx:if="{{value.searchStyle==2&&value.iconType=='img'}}"><view class="img"><image src="{{$root.g1}}" mode="heightFix"></image></view></block><block wx:if="{{value.searchStyle==2&&value.iconType=='icon'}}"><diy-icon class="icon" style="{{'max-width:'+(30*2+'rpx')+';'+('max-height:'+(30*2+'rpx')+';')}}" vue-id="bef7c060-1" icon="{{value.icon}}" value="{{value.style?value.style:'null'}}" bind:__l="__l"></diy-icon></block><view class="search-content" style="{{(inputStyle)}}"><input class="uni-input ns-font-size-base" type="text" maxlength="50" placeholder="{{value.title}}" disabled="true" placeholderStyle="{{placeholderStyle}}" data-event-opts="{{[['confirm',[['search']]],['input',[['__set_model',['','searchText','$event',[]]]]]]}}" value="{{searchText}}" bindconfirm="__e" bindinput="__e"/><text data-event-opts="{{[['tap',[['search']]]]}}" class="iconfont icon-sousuo3" style="{{'color:'+(value.textColor?value.textColor:'rgba(0,0,0,0)')+';'}}" catchtap="__e"></text></view></block></block><block wx:if="{{value.searchStyle==3}}"><block><view data-event-opts="{{[['tap',[['search']]]]}}" class="search-content" style="{{(inputStyle)}}" catchtap="__e"><text class="iconfont icon-sousuo3" style="{{'color:'+(value.textColor?value.textColor:'rgba(0,0,0,0)')+';'}}"></text><input class="uni-input ns-font-size-base" type="text" maxlength="50" placeholder="{{value.title}}" disabled="true" placeholderStyle="{{placeholderStyle}}" data-event-opts="{{[['confirm',[['search']]],['tap',[['search']]],['input',[['__set_model',['','searchText','$event',[]]]]]]}}" value="{{searchText}}" bindconfirm="__e" catchtap="__e" bindinput="__e"/><text data-event-opts="{{[['tap',[['search']]]]}}" class="search-content-btn" style="{{'background-color:'+(value.pageBgColor?value.pageBgColor:'rgba(0,0,0,0)')+';'}}" catchtap="__e">搜索</text></view><block wx:if="{{value.iconType=='img'}}"><view data-event-opts="{{[['tap',[['redirectTo',['$0'],['value.searchLink']]]]]}}" class="img" catchtap="__e"><image src="{{$root.g2}}" mode="heightFix"></image></view></block><block wx:if="{{value.iconType=='icon'}}"><diy-icon class="icon" style="{{'max-width:'+(30*2+'rpx')+';'+('max-height:'+(30*2+'rpx')+';')}}" vue-id="bef7c060-2" icon="{{value.icon}}" value="{{value.style?value.style:'null'}}" data-event-opts="{{[['^click',[['redirectTo',['$0'],['value.searchLink']]]]]}}" catch:click="__e" bind:__l="__l"></diy-icon></block></block></block></view></view><block wx:if="{{value.positionWay=='fixed'}}"><view class="u-navbar-placeholder" style="{{'width:'+('100%')+';'+('padding-top:'+(moduleHeight)+';')}}"></view></block><ns-login class="vue-ref" vue-id="bef7c060-3" data-ref="login" bind:__l="__l"></ns-login></view>
|
||||
1
components/diy-components/diy-search.wxss
Normal file
1
components/diy-components/diy-search.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.uni-input-placeholder{overflow:initial}.diy-search-wrap{overflow:hidden}.fixed{position:fixed;left:0;right:0;top:0;z-index:991;transition:background .3s}.search-box{position:relative;display:flex;align-items:center}.search-box .img{height:60rpx;margin-right:20rpx}.search-box .img image{width:100%;height:100%}.search-box .icon{width:170rpx;height:60rpx;margin-right:20rpx}.search-box-3 .search-content{display:flex;align-items:center;height:68rpx}.search-box-3 .search-content .iconfont{position:static;-webkit-transform:translateY(0);transform:translateY(0);width:auto;margin-left:26rpx;margin-right:12rpx;font-size:28rpx;line-height:1}.search-box-3 .search-content .uni-input{flex:1;padding-left:0;height:68rpx}.search-box-3 .search-content .search-content-btn{margin-right:8rpx;width:116rpx;height:54rpx;line-height:54rpx;text-align:center;color:#fff;border-radius:30rpx}.search-box-3 .diy-icon{margin-left:20rpx;margin-right:0;width:auto;font-size:74rpx}.search-box-3 .img{margin-left:20rpx;margin-right:0}.search-content{flex:1}.search-content input{box-sizing:border-box;display:block;height:64rpx;width:100%;padding:0 20rpx 0 40rpx;color:#333;background:none}.search-content .iconfont{position:absolute;top:50%;right:4rpx;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:30rpx;z-index:10;width:80rpx;font-weight:700;text-align:center}
|
||||
10
components/diy-components/diy-seckill.js
Normal file
10
components/diy-components/diy-seckill.js
Normal file
File diff suppressed because one or more lines are too long
6
components/diy-components/diy-seckill.json
Normal file
6
components/diy-components/diy-seckill.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"x-skeleton": "/uni_modules/x-skeleton/components/x-skeleton/x-skeleton"
|
||||
}
|
||||
}
|
||||
1
components/diy-components/diy-seckill.wxml
Normal file
1
components/diy-components/diy-seckill.wxml
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-seckill.wxss
Normal file
1
components/diy-components/diy-seckill.wxss
Normal file
File diff suppressed because one or more lines are too long
10
components/diy-components/diy-store-label.js
Normal file
10
components/diy-components/diy-store-label.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-store-label"],{"0b86":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={xSkeleton:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/x-skeleton/components/x-skeleton/x-skeleton")]).then(n.bind(null,"1226"))},diyIcon:function(){return n.e("components/diy-components/diy-icon").then(n.bind(null,"8ba4"))}},s=function(){var t=this.$createElement,e=(this._self._c,"store"==this.businessConfig.store_business?this.list.length:null),n="store"!=this.businessConfig.store_business?this.list.length:null;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},i=[]},"2c79":function(t,e,n){},abed:function(t,e,n){"use strict";var o=n("2c79"),s=n.n(o);s.a},b117:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"diy-store-label",props:{value:{type:Object}},data:function(){return{loading:!0,skeletonConfig:{gridRows:1,gridRowsGap:"20rpx",headHeight:"40rpx",headBorderRadius:"0"},list:[],notice:"",storeLabel:[],businessConfig:""}},created:function(){this.getData(),this.getStoreConfig()},watch:{componentRefresh:function(t){this.getData()}},computed:{storeLabelWrapCss:function(){var t="";return t+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t}},methods:{getData:function(){var t=this,e={page:1,page_size:0};"initial"==this.value.sources?e.page_size=this.value.count:"diy"==this.value.sources&&(e.label_id_arr=this.value.labelIds.toString()),this.$api.sendRequest({url:"/store/api/store/labelPage",data:e,success:function(e){0==e.code&&e.data&&(t.list=e.data.list),t.loading=!1}})},getStoreConfig:function(){var t=this;this.$api.sendRequest({url:"/store/api/config/config",success:function(e){e.code>=0&&(t.businessConfig=e.data.business_config,"store"==e.data.business_config.store_business&&t.getStoreInfo())}})},getStoreInfo:function(){var t=this;this.$api.sendRequest({url:"/api/store/info",success:function(e){if(e.data){var n=e.data.label_name.split(","),o=3;"initial"==t.value.sources&&(o=t.value.count);for(var s=0;s<n.length;s++)t.storeLabel.length<o&&""!=n[s]&&t.storeLabel.push(n[s])}}})}}};e.default=o},dde8:function(t,e,n){"use strict";n.r(e);var o=n("b117"),s=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=s.a},eaee:function(t,e,n){"use strict";n.r(e);var o=n("0b86"),s=n("dde8");for(var i in s)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(i);n("abed");var a=n("828b"),r=Object(a["a"])(s["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=r.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-store-label-create-component',
|
||||
{
|
||||
'components/diy-components/diy-store-label-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("eaee"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-store-label-create-component']]
|
||||
]);
|
||||
7
components/diy-components/diy-store-label.json
Normal file
7
components/diy-components/diy-store-label.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"x-skeleton": "/uni_modules/x-skeleton/components/x-skeleton/x-skeleton",
|
||||
"diy-icon": "/components/diy-components/diy-icon"
|
||||
}
|
||||
}
|
||||
1
components/diy-components/diy-store-label.wxml
Normal file
1
components/diy-components/diy-store-label.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<x-skeleton vue-id="dc243ac8-1" type="banner" loading="{{loading}}" configs="{{skeletonConfig}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="diy-store-label"><block wx:if="{{businessConfig.store_business=='store'}}"><block><scroll-view class="{{[value.contentStyle,[($root.g0==3)?'between':'']]}}" style="{{(storeLabelWrapCss)}}" scroll-x="true" enable-flex="{{true}}"><block wx:for="{{storeLabel}}" wx:for-item="item" wx:for-index="index"><view class="{{['item']}}"><block wx:if="{{value.icon}}"><diy-icon class="icon-box" vue-id="{{('dc243ac8-2-'+index)+','+('dc243ac8-1')}}" icon="{{value.icon}}" value="{{value.style?value.style:'null'}}" bind:__l="__l"></diy-icon></block><text class="label-name" style="{{'color:'+(value.textColor)+';'+('font-size:'+(value.fontSize*2+'rpx')+';')+('font-weight:'+(value.fontWeight)+';')}}">{{item}}</text></view></block></scroll-view></block></block><block wx:else><block><scroll-view class="{{[value.contentStyle,[($root.g1==3)?'between':'']]}}" style="{{(storeLabelWrapCss)}}" scroll-x="true" enable-flex="{{true}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index"><view class="{{['item']}}"><block wx:if="{{value.icon}}"><diy-icon class="icon-box" vue-id="{{('dc243ac8-3-'+index)+','+('dc243ac8-1')}}" icon="{{value.icon}}" value="{{value.style?value.style:'null'}}" bind:__l="__l"></diy-icon></block><text class="label-name" style="{{'color:'+(value.textColor)+';'+('font-size:'+(value.fontSize*2+'rpx')+';')+('font-weight:'+(value.fontWeight)+';')}}">{{item.label_name}}</text></view></block></scroll-view></block></block></view></x-skeleton>
|
||||
1
components/diy-components/diy-store-label.wxss
Normal file
1
components/diy-components/diy-store-label.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.diy-store-label .style-1{display:flex;align-items:baseline}.diy-store-label .style-1 .uni-scroll-view-content{display:flex;align-items:center}.diy-store-label .style-1.between{justify-content:space-between}.diy-store-label .style-1.between .uni-scroll-view-content{justify-content:space-between}.diy-store-label .style-1 .item{flex-shrink:0;display:flex;align-items:center;padding-right:20rpx}.diy-store-label .style-1 .item .icon-box{font-size:50rpx;width:40rpx;height:40rpx;margin-right:10rpx;margin-top:2rpx}.diy-store-label .style-1 .item .label-name{line-height:40rpx}.diy-store-label .style-1 .item:last-of-type{padding-right:0}
|
||||
10
components/diy-components/diy-store.js
Normal file
10
components/diy-components/diy-store.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-store"],{"0228":function(t,e,o){"use strict";o.r(e);var n=o("0527"),l=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=l.a},"0527":function(t,e,o){"use strict";var n=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=n(o("5ec8")),a={name:"diy-store",props:{value:{type:Object}},data:function(){return{}},computed:{},watch:{componentRefresh:function(t){}},created:function(){},methods:{toStoreList:function(){this.$util.redirectTo("/pages_tool/store/list")},selectStore:function(){this.globalStoreInfo&&this.$util.redirectTo("/pages_tool/store/detail",{store_id:this.globalStoreInfo.store_id})},search:function(){this.$util.redirectTo("/pages_tool/goods/search")},mapRoute:function(){isNaN(Number(this.globalStoreInfo.latitude))||isNaN(Number(this.globalStoreInfo.longitude))||l.default.openMap(Number(this.globalStoreInfo.latitude),Number(this.globalStoreInfo.longitude),this.globalStoreInfo.store_name,"gcj02")}}};e.default=a},"31cf":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return l})),o.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,o=(t._self._c,1==t.value.style&&t.globalStoreInfo&&t.globalStoreInfo.store_image?t.$util.img(t.globalStoreInfo.store_image):null),n=1!=t.value.style||t.globalStoreInfo&&t.globalStoreInfo.store_image?null:t.$util.getDefaultImage(),l=2==t.value.style&&t.globalStoreInfo&&t.globalStoreInfo.store_image?t.$util.img(t.globalStoreInfo.store_image):null,a=2!=t.value.style||t.globalStoreInfo&&t.globalStoreInfo.store_image?null:t.$util.getDefaultImage();t.$mp.data=Object.assign({},{$root:{g0:o,g1:n,g2:l,g3:a}})},l=[]},6755:function(t,e,o){"use strict";o.r(e);var n=o("31cf"),l=o("0228");for(var a in l)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return l[t]}))}(a);o("9f76");var r=o("828b"),i=Object(r["a"])(l["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=i.exports},"77f0":function(t,e,o){},"9f76":function(t,e,o){"use strict";var n=o("77f0"),l=o.n(n);l.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-store-create-component',
|
||||
{
|
||||
'components/diy-components/diy-store-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("6755"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-store-create-component']]
|
||||
]);
|
||||
4
components/diy-components/diy-store.json
Normal file
4
components/diy-components/diy-store.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
components/diy-components/diy-store.wxml
Normal file
1
components/diy-components/diy-store.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="store-wrap"><block wx:if="{{value.style==1}}"><block><view class="store-box store-one"><view class="store-info"><view data-event-opts="{{[['tap',[['toStoreList']]]]}}" class="info-box" style="{{'color:'+(value.textColor)+';'}}" bindtap="__e"><block wx:if="{{globalStoreInfo&&globalStoreInfo.store_id}}"><block><text class="title">{{globalStoreInfo.store_name}}</text><text><text class="change margin-left">切换</text><text class="iconfont icon-right"></text></text></block></block><block wx:else><text class="title">定位中...</text></block></view><view class="address-wrap" style="{{'color:'+(value.textColor)+';'}}"><text class="iconfont icon-dizhi"></text><block wx:if="{{globalStoreInfo&&globalStoreInfo.store_id}}"><text data-event-opts="{{[['tap',[['mapRoute',['$event']]]]]}}" class="address" bindtap="__e">{{globalStoreInfo.show_address}}</text></block><block wx:else><text>获取当前位置...</text></block></view></view><view data-event-opts="{{[['tap',[['selectStore']]]]}}" class="store-image" bindtap="__e"><block wx:if="{{globalStoreInfo&&globalStoreInfo.store_image}}"><image src="{{$root.g0}}" mode="aspectFill"></image></block><block wx:else><image src="{{$root.g1.store}}" mode="aspectFill"></image></block></view></view></block></block><block wx:if="{{value.style==2}}"><block><view data-event-opts="{{[['tap',[['toStoreList']]]]}}" class="store-box store-three" bindtap="__e"><view class="store-info"><view data-event-opts="{{[['tap',[['selectStore']]]]}}" class="store-image" bindtap="__e"><block wx:if="{{globalStoreInfo&&globalStoreInfo.store_image}}"><image src="{{$root.g2}}" mode="aspectFill"></image></block><block wx:else><image src="{{$root.g3.store}}" mode="aspectFill"></image></block></view><view class="info-box" style="{{'color:'+(value.textColor)+';'}}"><block wx:if="{{globalStoreInfo&&globalStoreInfo.store_id}}"><block><text class="title">{{globalStoreInfo.store_name}}</text><text><text class="change margin-left">切换</text><text class="iconfont icon-right"></text></text></block></block><block wx:else><text class="title">定位中...</text></block></view></view><view data-event-opts="{{[['tap',[['search']]]]}}" class="store-icon" catchtap="__e"><text class="iconfont icon-sousuo3" style="{{'color:'+(value.textColor)+';'}}"></text></view></view></block></block><block wx:if="{{value.style==3}}"><block><view data-event-opts="{{[['tap',[['toStoreList']]]]}}" class="store-box store-four" bindtap="__e"><view class="store-left-wrap"><block wx:if="{{globalStoreInfo&&globalStoreInfo.store_id}}"><block><text class="iconfont icon-weizhi" style="{{'color:'+(value.textColor)+';'}}"></text><text class="title" style="{{'color:'+(value.textColor)+';'}}">{{globalStoreInfo.store_name}}</text><text class="iconfont icon-unfold" style="{{'color:'+(value.textColor)+';'}}"></text></block></block><block wx:else><text class="title">定位中...</text></block></view><view class="store-right-search"><input class="uni-input font-size-tag" type="text" disabled="{{true}}" placeholder="商品搜索" data-event-opts="{{[['tap',[['search']]]]}}" catchtap="__e"/><text data-event-opts="{{[['tap',[['search']]]]}}" class="iconfont icon-sousuo3" catchtap="__e"></text></view></view></block></block></view>
|
||||
1
components/diy-components/diy-store.wxss
Normal file
1
components/diy-components/diy-store.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.store-wrap .store-box{box-sizing:border-box;width:100%;display:flex;justify-content:space-between;align-items:center}.store-wrap .store-info{height:100rpx;display:flex;flex:1;flex-direction:column;justify-content:space-around;margin-right:20rpx}.store-wrap .store-info .info-box{display:flex;align-items:flex-end;margin-bottom:6rpx}.store-wrap .store-info .info-box text{line-height:1.2}.store-wrap .store-info .info-box .title{max-width:480rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:32rpx;flex:1}.store-wrap .store-info .info-box .change{font-size:22rpx}.store-wrap .store-info .info-box .iconfont{font-size:22rpx}.store-wrap .store-info .address-wrap{line-height:1.2;font-size:22rpx;display:flex;align-items:center}.store-wrap .store-info .address-wrap .iconfont{font-size:22rpx;margin-right:6rpx}.store-wrap .store-info .address-wrap .address{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-wrap .store-image{width:72rpx;height:72rpx;border-radius:50%}.store-wrap .store-image image{width:100%;height:100%;border-radius:50%}.store-two .store-image{align-self:flex-start;margin-right:14rpx}.store-two .info-box{margin-bottom:0!important}.store-two .store-info{height:106rpx}.store-two .switchover{display:flex;width:120rpx}.store-three .store-info{height:auto;justify-content:flex-start;flex-direction:inherit;align-items:center}.store-three .info-box{margin-left:18rpx;margin-bottom:0!important}.store-three .store-icon text{font-size:36rpx;color:#fff}.store-four{padding:0!important}.store-four .store-left-wrap{display:flex;align-items:center;line-height:1}.store-four .store-left-wrap .icon-weizhi{margin-right:6rpx;font-size:28rpx}.store-four .store-left-wrap .icon-unfold{margin-left:6rpx}.store-four .store-left-wrap .title{display:inline-block;max-width:160rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-four .store-right-search{width:calc(100% - 260rpx);position:relative}.store-four .store-right-search input{width:100%;height:72rpx;line-height:72rpx;background-color:#fff;border:none;border-radius:72rpx;padding-left:30rpx;box-sizing:border-box}.store-four .store-right-search .icon-sousuo3{position:absolute;right:30rpx;top:10rpx;font-size:28rpx;color:#909399}
|
||||
10
components/diy-components/diy-text.js
Normal file
10
components/diy-components/diy-text.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-text"],{"0d07":function(e,l,t){"use strict";t.r(l);var s=t("4902"),u=t("2174");for(var y in u)["default"].indexOf(y)<0&&function(e){t.d(l,e,(function(){return u[e]}))}(y);t("6e09");var a=t("828b"),i=Object(a["a"])(u["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],void 0);l["default"]=i.exports},2174:function(e,l,t){"use strict";t.r(l);var s=t("35d7"),u=t.n(s);for(var y in s)["default"].indexOf(y)<0&&function(e){t.d(l,e,(function(){return s[e]}))}(y);l["default"]=u.a},"35d7":function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var s={name:"diy-text",props:{value:{type:Object}},data:function(){return{}},created:function(){},watch:{componentRefresh:function(e){}},computed:{warpCss:function(){var e="";return e+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(e+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",e+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),e}},methods:{}};l.default=s},4902:function(e,l,t){"use strict";t.d(l,"b",(function(){return s})),t.d(l,"c",(function(){return u})),t.d(l,"a",(function(){}));var s=function(){var e=this,l=e.$createElement,t=(e._self._c,"style-1"!=e.value.style&&"style-2"!=e.value.style&&"style-3"!=e.value.style&&"style-4"!=e.value.style&&"style-5"!=e.value.style&&"style-6"!=e.value.style&&"style-7"!=e.value.style&&"style-8"!=e.value.style&&"style-9"==e.value.style?e.$util.img("public/uniapp/diy/style9-1.png"):null),s="style-1"!=e.value.style&&"style-2"!=e.value.style&&"style-3"!=e.value.style&&"style-4"!=e.value.style&&"style-5"!=e.value.style&&"style-6"!=e.value.style&&"style-7"!=e.value.style&&"style-8"!=e.value.style&&"style-9"==e.value.style?e.$util.img("public/uniapp/diy/style9-2.png"):null,u="style-1"!=e.value.style&&"style-2"!=e.value.style&&"style-3"!=e.value.style&&"style-4"!=e.value.style&&"style-5"!=e.value.style&&"style-6"!=e.value.style&&"style-7"!=e.value.style&&"style-8"!=e.value.style&&"style-9"!=e.value.style&&"style-10"==e.value.style?e.$util.img("public/uniapp/diy/style10-1.png"):null,y="style-1"!=e.value.style&&"style-2"!=e.value.style&&"style-3"!=e.value.style&&"style-4"!=e.value.style&&"style-5"!=e.value.style&&"style-6"!=e.value.style&&"style-7"!=e.value.style&&"style-8"!=e.value.style&&"style-9"!=e.value.style&&"style-10"==e.value.style?e.$util.img("public/uniapp/diy/style10-3.png"):null,a="style-1"!=e.value.style&&"style-2"!=e.value.style&&"style-3"!=e.value.style&&"style-4"!=e.value.style&&"style-5"!=e.value.style&&"style-6"!=e.value.style&&"style-7"!=e.value.style&&"style-8"!=e.value.style&&"style-9"!=e.value.style&&"style-10"==e.value.style&&y?e.$util.img("public/uniapp/diy/style10-3.png"):null,i="style-1"!=e.value.style&&"style-2"!=e.value.style&&"style-3"!=e.value.style&&"style-4"!=e.value.style&&"style-5"!=e.value.style&&"style-6"!=e.value.style&&"style-7"!=e.value.style&&"style-8"!=e.value.style&&"style-9"!=e.value.style&&"style-10"==e.value.style?e.$util.img("public/uniapp/diy/style10-2.png"):null,n="style-1"!=e.value.style&&"style-2"!=e.value.style&&"style-3"!=e.value.style&&"style-4"!=e.value.style&&"style-5"!=e.value.style&&"style-6"!=e.value.style&&"style-7"!=e.value.style&&"style-8"!=e.value.style&&"style-9"!=e.value.style&&"style-10"!=e.value.style&&"style-11"==e.value.style?e.$util.img("public/uniapp/diy/style11-1.png"):null,v="style-1"!=e.value.style&&"style-2"!=e.value.style&&"style-3"!=e.value.style&&"style-4"!=e.value.style&&"style-5"!=e.value.style&&"style-6"!=e.value.style&&"style-7"!=e.value.style&&"style-8"!=e.value.style&&"style-9"!=e.value.style&&"style-10"!=e.value.style&&"style-11"==e.value.style?e.$util.img("public/uniapp/diy/style11-2.png"):null,o="style-12"!=e.value.style&&"style-13"==e.value.style?e.$util.img("public/uniapp/diy/style13-1.png"):null,r="style-12"!=e.value.style&&"style-13"==e.value.style?e.$util.img("public/uniapp/diy/style13-1.png"):null;e._isMounted||(e.e0=function(l){return e.$util.diyRedirectTo(e.value.link)},e.e1=function(l){return l.stopPropagation(),e.$util.diyRedirectTo(e.value.more.link)},e.e2=function(l){return l.stopPropagation(),e.$util.diyRedirectTo(e.value.more.link)},e.e3=function(l){return l.stopPropagation(),e.$util.diyRedirectTo(e.value.more.link)},e.e4=function(l){return l.stopPropagation(),e.$util.diyRedirectTo(e.value.more.link)},e.e5=function(l){return l.stopPropagation(),e.$util.diyRedirectTo(e.value.more.link)}),e.$mp.data=Object.assign({},{$root:{g0:t,g1:s,g2:u,g3:y,g4:a,g5:i,g6:n,g7:v,g8:o,g9:r}})},u=[]},"6e09":function(e,l,t){"use strict";var s=t("a751"),u=t.n(s);u.a},a751:function(e,l,t){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-text-create-component',
|
||||
{
|
||||
'components/diy-components/diy-text-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("0d07"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-text-create-component']]
|
||||
]);
|
||||
4
components/diy-components/diy-text.json
Normal file
4
components/diy-components/diy-text.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
components/diy-components/diy-text.wxml
Normal file
1
components/diy-components/diy-text.wxml
Normal file
File diff suppressed because one or more lines are too long
1
components/diy-components/diy-text.wxss
Normal file
1
components/diy-components/diy-text.wxss
Normal file
File diff suppressed because one or more lines are too long
10
components/diy-components/diy-video-list.js
Normal file
10
components/diy-components/diy-video-list.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-video-list"],{"7e04":function(e,t,i){},"84ee6":function(e,t,i){"use strict";var n=i("7e04"),o=i.n(n);o.a},"92e0":function(e,t,i){},baf9:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return u})),i.d(t,"a",(function(){return n}));var n={uniPopup:function(){return i.e("components/uni-popup/uni-popup").then(i.bind(null,"1843"))}},o=function(){var e=this,t=e.$createElement,i=(e._self._c,"fixed"==e.value.showStyle?e.__map(e.value.list,(function(t,i){var n=e.__get_orig(t),o=e.$util.img(t.imageUrl),u=e.$util.img("addon/personnel/shop/view/enterprise/play.png");return{$orig:n,g0:o,g1:u}})):null),n="fixed"!=e.value.showStyle?e.__map(e.value.list,(function(t,i){var n=e.__get_orig(t),o="img"==t.iconType?e.$util.img(t.imageUrl)||e.$util.img("public/uniapp/default_img/goods.png"):null,u=e.$util.img("addon/personnel/shop/view/enterprise/play.png");return{$orig:n,g2:o,g3:u}})):null,o=e.$util.img(e.video_url);e.$mp.data=Object.assign({},{$root:{l0:i,l1:n,g4:o}})},u=[]},e44f:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"diy-video-list",props:{value:{type:Object}},data:function(){return{pageWidth:"",indicatorDots:!1,swiperCurrent:0,video_url:""}},created:function(){},watch:{componentRefresh:function(e){}},computed:{componentStyle:function(){var e="";return e+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(e+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",e+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",e+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),e+="box-shadow:"+("shadow"==this.value.ornament.type?"0 0 10rpx "+this.value.ornament.color:"")+";",e+="border:"+("stroke"==this.value.ornament.type?"2rpx solid "+this.value.ornament.color:"")+";",console.log(this.value),e},swiperHeight:function(){var e="",t=0;return"graphic"==this.value.mode?t=(49+this.value.imageSize)*this.value.pageCount:"img"==this.value.mode?t=(22+this.value.imageSize)*this.value.pageCount:"text"==this.value.mode&&(t=43*this.value.pageCount),e+="height:"+2*t+"rpx",e},isIndicatorDots:function(){var e;return e="hide"!=this.value.carousel.type&&1!=Math.ceil(this.value.list.length/(this.value.pageCount*this.value.rowCount)),e}},methods:{showVideo:function(e){this.video_url=e.videoUrl,this.$refs.videoPopup.open()}}};t.default=n},e6fd:function(e,t,i){"use strict";i.r(t);var n=i("baf9"),o=i("f2fb");for(var u in o)["default"].indexOf(u)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(u);i("eb9e"),i("84ee6");var r=i("828b"),a=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=a.exports},eb9e:function(e,t,i){"use strict";var n=i("92e0"),o=i.n(n);o.a},f2fb:function(e,t,i){"use strict";i.r(t);var n=i("e44f"),o=i.n(n);for(var u in n)["default"].indexOf(u)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(u);t["default"]=o.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-video-list-create-component',
|
||||
{
|
||||
'components/diy-components/diy-video-list-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("e6fd"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-video-list-create-component']]
|
||||
]);
|
||||
6
components/diy-components/diy-video-list.json
Normal file
6
components/diy-components/diy-video-list.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-popup": "/components/uni-popup/uni-popup"
|
||||
}
|
||||
}
|
||||
1
components/diy-components/diy-video-list.wxml
Normal file
1
components/diy-components/diy-video-list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{(componentStyle)}}"><block wx:if="{{value.showStyle=='fixed'}}"><view class="{{['goods-list','row1-of'+value.rowCount]}}" style="padding:20rpx;"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['showVideo',['$0'],[[['value.list','',index]]]]]]]}}" class="goods-item" bindtap="__e"><view class="goods-img-wrap"><image class="goods-img" style="border-radius:10rpx 10rpx 0 0;" src="{{item.g0}}" mode="widthFix" data-event-opts="{{[['error',[['imgError',[index]]]]]}}" binderror="__e"></image><view style="position:absolute;top:10rpx;right:10rpx;"><image style="width:30rpx;" src="{{item.g1}}" mode="widthFix"></image></view></view><view class="info-wrap"><view class="goods-name" style="{{'font-size:'+(value.font.size*2+'rpx')+';'+('font-weight:'+(value.font.weight)+';')+('color:'+(value.font.color)+';')}}">{{''+item.$orig.title+''}}</view></view></view></block></view></block><block wx:else><scroll-view class="{{['video-nav',value.showStyle=='fixed'?'fixed-layout':value.showStyle]}}" scroll-x="{{value.showStyle=='singleSlide'}}"><view class="uni-scroll-view-content"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['showVideo',['$0'],[[['value.list','',index]]]]]]]}}" class="{{['video-nav-item',value.mode]}}" style="{{'width:'+(100/value.rowCount+'%')+';'}}" bindtap="__e"><view class="video-img"><block wx:if="{{item.$orig.iconType=='img'}}"><image style="{{'max-width:'+('200rpx')+';'+('max-height:'+('200rpx')+';')+('border-radius:'+('8rpx')+';')}}" src="{{item.g2}}" mode="widthFix" show-menu-by-longpress="{{true}}"></image></block><view style="position:absolute;top:10rpx;right:10rpx;"><image style="width:30rpx;" src="{{item.g3}}" mode="widthFix"></image></view></view><view class="video-text" style="{{'margin-left:16rpx;'+('font-size:'+(value.font.size*2+'rpx')+';')+('font-weight:'+(value.font.weight)+';')+('color:'+(value.font.color)+';')}}">{{''+item.$orig.title+''}}</view></view></block></view></scroll-view></block><uni-popup class="vue-ref" style="background:transparent;width:100%;height:100%;" vue-id="63ab82c8-1" type="center" data-ref="videoPopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="video-container" style="position:fixed;top:30%;width:100%;left:0;"><video class="adaptive-video" autoPauseIfNavigate="{{true}}" autoPauseIfOpenNative="{{true}}" autoplay="{{false}}" enableAutoRotation="{{true}}" id="myVideo" src="{{$root.g4}}" controls="{{true}}"></video></view></uni-popup></view>
|
||||
1
components/diy-components/diy-video-list.wxss
Normal file
1
components/diy-components/diy-video-list.wxss
Normal file
File diff suppressed because one or more lines are too long
10
components/diy-components/diy-video.js
Normal file
10
components/diy-components/diy-video.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-video"],{"00ad":function(t,e,n){"use strict";n.r(e);var o=n("2e57"),i=n("49bc");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("5fc3");var u=n("828b"),a=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"23302cac",null,!1,o["a"],void 0);e["default"]=a.exports},"24df":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"diy-video",props:{value:{type:Object}},data:function(){return{}},created:function(){},watch:{componentRefresh:function(t){}},computed:{videoWarpCss:function(){var t="";return"round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),t}},methods:{}};e.default=o},"2e57":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=(this._self._c,this.$util.img(this.value.videoUrl)),n=this.$util.img(this.value.imageUrl);this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},i=[]},"49bc":function(t,e,n){"use strict";n.r(e);var o=n("24df"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},5182:function(t,e,n){},"5fc3":function(t,e,n){"use strict";var o=n("5182"),i=n.n(o);i.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/diy-components/diy-video-create-component',
|
||||
{
|
||||
'components/diy-components/diy-video-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("00ad"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-video-create-component']]
|
||||
]);
|
||||
4
components/diy-components/diy-video.json
Normal file
4
components/diy-components/diy-video.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
components/diy-components/diy-video.wxml
Normal file
1
components/diy-components/diy-video.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<video class="diy-video data-v-23302cac" style="{{(videoWarpCss)}}" src="{{$root.g0}}" poster="{{$root.g1}}" objectFit="cover"></video>
|
||||
1
components/diy-components/diy-video.wxss
Normal file
1
components/diy-components/diy-video.wxss
Normal file
@@ -0,0 +1 @@
|
||||
video.data-v-23302cac{width:100%}.diy-video.data-v-23302cac .uni-video-container{background-color:initial}
|
||||
Reference in New Issue
Block a user