public
This commit is contained in:
10
public/mp-weixin/components/goods-shop/goods-shop.js
Normal file
10
public/mp-weixin/components/goods-shop/goods-shop.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/goods-shop/goods-shop"],{"2e49":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(){return r}));var r={uImage:function(){return n.e("components/uview-ui/components/u-image/u-image").then(n.bind(null,"28a8"))},uIcon:function(){return n.e("components/uview-ui/components/u-icon/u-icon").then(n.bind(null,"8f08"))},goodsList:function(){return n.e("components/goods-list/goods-list").then(n.bind(null,"877a"))},cuProgress:function(){return n.e("components/cu-progress/cu-progress").then(n.bind(null,"77be"))}},o=function(){var t=this.$createElement,e=(this._self._c,{path:"/pages/store_index/store_index",query:{id:this.shop.id}}),n=this.list.length,r=n?{path:"/bundle/pages/shop_search/shop_search",query:{id:this.shop.id,is_recommend:1}}:null,o=n?this.list.length:null;this.$mp.data=Object.assign({},{$root:{a0:e,g0:n,a1:r,g1:o}})},i=[]},"2fe9":function(t,e,n){"use strict";var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("7ca3")),i=n("8f59"),s=n("0aec");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var u={data:function(){return{progressPer:0,list:[]}},props:{shop:{type:Object,default:function(){return{}}}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,i.mapGetters)(["appConfig"])),watch:{shop:{handler:function(t){var e=this;this.list=t.goods_list||[],this.$nextTick((function(){(0,s.getRect)(".goods-shop",!1,e).then((function(t){e.rectWidth=t.width}))}))},immediate:!0,deep:!0}},methods:{scrollBarChange:function(t){var e=this.progressPer,n=t.detail,r=n.scrollLeft,o=n.scrollWidth;e=r/(o-this.rectWidth)*100,e=Number(e.toFixed(0)),this.progressPer=e}}};e.default=u},9064:function(t,e,n){"use strict";n.r(e);var r=n("2fe9"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"9ad0":function(t,e,n){},b11f:function(t,e,n){"use strict";n.r(e);var r=n("2e49"),o=n("9064");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("b68b8");var s=n("828b"),c=Object(s["a"])(o["default"],r["b"],r["c"],!1,null,"635cccb6",null,!1,r["a"],void 0);e["default"]=c.exports},b68b8:function(t,e,n){"use strict";var r=n("9ad0"),o=n.n(r);o.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/goods-shop/goods-shop-create-component',
|
||||
{
|
||||
'components/goods-shop/goods-shop-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("b11f"))
|
||||
})
|
||||
},
|
||||
[['components/goods-shop/goods-shop-create-component']]
|
||||
]);
|
||||
9
public/mp-weixin/components/goods-shop/goods-shop.json
Normal file
9
public/mp-weixin/components/goods-shop/goods-shop.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image",
|
||||
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
|
||||
"goods-list": "/components/goods-list/goods-list",
|
||||
"cu-progress": "/components/cu-progress/cu-progress"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
1
public/mp-weixin/components/goods-shop/goods-shop.wxml
Normal file
1
public/mp-weixin/components/goods-shop/goods-shop.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view class="goods-shop data-v-635cccb6"><view class="title data-v-635cccb6"><router-link class="flex-none data-v-635cccb6" vue-id="039da83c-1" to="{{$root.a0}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="p-20 flex data-v-635cccb6" style="background-color:#f7f8fb;border-radius:20rpx;"><u-image vue-id="{{('039da83c-2')+','+('039da83c-1')}}" width="100rpx" height="100rpx" border-radius="50%" src="{{shop.logo}}" class="data-v-635cccb6" bind:__l="__l"></u-image><view class="flex-1 shop-name m-l-20 m-r-20 data-v-635cccb6"><view class="flex data-v-635cccb6"><view class="bold lg line-1 data-v-635cccb6">{{shop.name}}</view></view><view class="xs m-t-10 data-v-635cccb6">{{"在售商品 "+shop.goods_on_sale+"件"}}</view></view><view class="primary btn br60 sm data-v-635cccb6">进店</view></view></router-link></view><block wx:if="{{$root.g0}}"><view class="data-v-635cccb6"><view class="m-20 flex data-v-635cccb6"> 店铺推荐 <router-link class="flex-none data-v-635cccb6" style="margin-left:auto;" vue-id="039da83c-3" to="{{$root.a1}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="flex data-v-635cccb6"><view class="lighter xs data-v-635cccb6">查看全部</view><u-icon vue-id="{{('039da83c-4')+','+('039da83c-3')}}" name="arrow-right" class="data-v-635cccb6" bind:__l="__l"></u-icon></view></router-link></view><scroll-view style="white-space:nowrap;" scroll-x="true" scroll-with-animation="true" data-event-opts="{{[['scroll',[['scrollBarChange',['$event']]]]]}}" bindscroll="__e" class="data-v-635cccb6"><view class="goods data-v-635cccb6"><goods-list vue-id="039da83c-5" type="row" list="{{list}}" class="data-v-635cccb6" bind:__l="__l"></goods-list></view></scroll-view><block wx:if="{{$root.g1>3}}"><view class="flex row-center progress data-v-635cccb6"><cu-progress vue-id="039da83c-6" progress-bar-color="{{colorConfig.primary}}" left="{{progressPer}}" class="data-v-635cccb6" bind:__l="__l"></cu-progress></view></block></view></block></view>
|
||||
1
public/mp-weixin/components/goods-shop/goods-shop.wxss
Normal file
1
public/mp-weixin/components/goods-shop/goods-shop.wxss
Normal file
@ -0,0 +1 @@
|
||||
.goods-shop .title.data-v-635cccb6{padding:20rpx}.goods-shop .title .shop-name.data-v-635cccb6{width:300rpx}.goods-shop .title .shop-name .store-tag.data-v-635cccb6{width:36px;background:linear-gradient(267deg,#ff2c3c,#f52e99);border-radius:6rpx;padding:4rpx 9rpx}.goods-shop .title .btn.data-v-635cccb6{border:1px solid #ff2c3c;padding:6rpx 28rpx}.goods-shop .progress.data-v-635cccb6{padding-bottom:20rpx}.goods-shop .goods.data-v-635cccb6{display:inline-block;padding:20rpx}
|
||||
Reference in New Issue
Block a user