public
This commit is contained in:
10
public/mp-weixin/components/shop-recommend/shop-recommend.js
Normal file
10
public/mp-weixin/components/shop-recommend/shop-recommend.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/shop-recommend/shop-recommend"],{"0dc0":function(t,n,e){},"20fb":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("0aec"),i={name:"shop-recommend",props:{type:{type:String,default:""},title:{type:String,default:""},url:{type:String,default:""},list:{type:Array,default:function(){return[]}}},data:function(){return{swiperH:0,currentSwiper:0,shopList:[]}},methods:{swiperChange:function(t){this.currentSwiper=t.detail.current}},watch:{list:{handler:function(t){t.length<=3?this.swiperH=320:this.swiperH=606,this.shopList=(0,r.arraySlice)(t,[],6)},immediate:!0}}};n.default=i},"43ff":function(t,n,e){"use strict";var r=e("0dc0"),i=e.n(r);i.a},"85d1":function(t,n,e){"use strict";e.r(n);var r=e("c8c3"),i=e("a4f2");for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);e("43ff");var o=e("828b"),a=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=a.exports},a4f2:function(t,n,e){"use strict";e.r(n);var r=e("20fb"),i=e.n(r);for(var u in r)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(u);n["default"]=i.a},c8c3:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return r}));var r={uIcon:function(){return e.e("components/uview-ui/components/u-icon/u-icon").then(e.bind(null,"8f08"))},uImage:function(){return e.e("components/uview-ui/components/u-image/u-image").then(e.bind(null,"28a8"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.shopList,(function(n,e){var r=t.__get_orig(n),i=t.__map(n,(function(n,e){var r=t.__get_orig(n),i={path:"/pages/store_index/store_index",query:{id:n.id}};return{$orig:r,a0:i}}));return{$orig:r,l0:i}}))),r=t.shopList.length;t.$mp.data=Object.assign({},{$root:{l1:e,g0:r}})},u=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/shop-recommend/shop-recommend-create-component',
|
||||
{
|
||||
'components/shop-recommend/shop-recommend-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("85d1"))
|
||||
})
|
||||
},
|
||||
[['components/shop-recommend/shop-recommend-create-component']]
|
||||
]);
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="{{['shop-recommend',type]}}"><block wx:if="{{title}}"><view class="flex row-between" style="padding:26rpx 20rpx;"><view class="bold xl">{{title}}</view><block wx:if="{{url}}"><router-link vue-id="b78aa63c-1" to="{{url}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="sm">更多 <u-icon vue-id="{{('b78aa63c-2')+','+('b78aa63c-1')}}" name="arrow-right" size="22" bind:__l="__l"></u-icon></view></router-link></block></view></block><view><swiper data-event-opts="{{[['change',[['swiperChange',['$event']]]]]}}" style="{{('height:'+swiperH+'rpx;')}}" bindchange="__e"><block wx:for="{{$root.l1}}" wx:for-item="items" wx:for-index="index" wx:key="index"><swiper-item><view class="shop-list flex flex-wrap"><block wx:for="{{items.l0}}" wx:for-item="item" wx:for-index="index2" wx:key="index2"><router-link class="item-link" vue-id="{{'b78aa63c-3-'+index+'-'+index2}}" to="{{item.a0}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="flex-col col-center m-l-24"><view class="shop-item bg-white"><u-image vue-id="{{('b78aa63c-4-'+index+'-'+index2)+','+('b78aa63c-3-'+index+'-'+index2)}}" width="100%" height="140rpx" mode="aspectFill" src="{{item.$orig.background}}" bind:__l="__l"></u-image><view class="flex-col col-center" style="margin-top:-34rpx;"><u-image vue-id="{{('b78aa63c-5-'+index+'-'+index2)+','+('b78aa63c-3-'+index+'-'+index2)}}" width="68rpx" height="68rpx" border-radius="50%" src="{{item.$orig.logo}}" bind:__l="__l"></u-image><view class="text flex-col col-center"><view class="line-1 name">{{item.$orig.name}}</view><view class="br60 muted sale xxs m-t-10 line-1">{{"共"+item.$orig.on_sales_count+"件商品"}}</view></view></view></view></view></router-link></block></view></swiper-item></block></swiper><block wx:if="{{$root.g0>1}}"><view class="dots flex row-center m-t-20"><block wx:for="{{shopList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['dot '+(index==currentSwiper?'active':'')]}}"></view></block></view></block></view></view>
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user