public
This commit is contained in:
10
public/mp-weixin/components/order-goods/order-goods.js
Normal file
10
public/mp-weixin/components/order-goods/order-goods.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/order-goods/order-goods"],{"4f3d":function(n,t,e){"use strict";e.r(t);var o=e("e8b9"),u=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"]=u.a},"8a72":function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){return o}));var o={uImage:function(){return e.e("components/uview-ui/components/u-image/u-image").then(e.bind(null,"28a8"))},uTag:function(){return e.e("components/uview-ui/components/u-tag/u-tag").then(e.bind(null,"c50a"))},priceFormat:function(){return e.e("components/price-format/price-format").then(e.bind(null,"1738"))}},u=function(){var n=this,t=n.$createElement,e=(n._self._c,n.__map(n.list,(function(t,e){var o=n.__get_orig(t),u=(n.link&&t.comment_btn||t.refund_btn)&&t.comment_btn?{path:"/bundle/pages/goods_reviews/goods_reviews",query:{id:t.id}}:null,i=(n.link&&t.comment_btn||t.refund_btn)&&t.refund_btn?{path:"/bundle/pages/apply_refund/apply_refund",query:{id:t.id,order_id:t.order_id,item_id:t.item_id}}:null;return{$orig:o,a0:u,a1:i}})));n.$mp.data=Object.assign({},{$root:{l0:e}})},i=[]},a031:function(n,t,e){"use strict";e.r(t);var o=e("8a72"),u=e("4f3d");for(var i in u)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(i);e("a11b");var r=e("828b"),a=Object(r["a"])(u["default"],o["b"],o["c"],!1,null,"d067cfa0",null,!1,o["a"],void 0);t["default"]=a.exports},a11b:function(n,t,e){"use strict";var o=e("a1c9"),u=e.n(o);u.a},a1c9:function(n,t,e){},e8b9:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{}},components:{},props:{list:{type:Array,default:function(){return[]}},link:{type:Boolean,default:!1},isJumpGoods:{type:Boolean,default:!1}},created:function(){var n=this;setTimeout((function(){console.log(n.list)}),700)},methods:{jumpGoods:function(n){this.isJumpGoods&&this.$Router.push({path:"/pages/goods_details/goods_details?id=",query:{id:n.goods_id}})}}};t.default=o}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/order-goods/order-goods-create-component',
|
||||
{
|
||||
'components/order-goods/order-goods-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("a031"))
|
||||
})
|
||||
},
|
||||
[['components/order-goods/order-goods-create-component']]
|
||||
]);
|
||||
8
public/mp-weixin/components/order-goods/order-goods.json
Normal file
8
public/mp-weixin/components/order-goods/order-goods.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image",
|
||||
"u-tag": "/components/uview-ui/components/u-tag/u-tag",
|
||||
"price-format": "/components/price-format/price-format"
|
||||
}
|
||||
}
|
||||
1
public/mp-weixin/components/order-goods/order-goods.wxml
Normal file
1
public/mp-weixin/components/order-goods/order-goods.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view class="order-goods data-v-d067cfa0"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item-wrap data-v-d067cfa0"><view data-event-opts="{{[['tap',[['jumpGoods',['$0'],[[['list','',index]]]]]]]}}" class="item flex data-v-d067cfa0" bindtap="__e"><view class="goods-img data-v-d067cfa0"><u-image vue-id="{{'1699735c-1-'+index}}" width="180rpx" border-radius="10rpx" height="180rpx" lazy-load="{{true}}" src="{{item.$orig.image_str||item.$orig.image}}" class="data-v-d067cfa0" bind:__l="__l"></u-image></view><view class="goods-info m-l-20 flex-1 data-v-d067cfa0"><view class="goods-name line-2 m-b-10 data-v-d067cfa0"><block wx:if="{{item.$orig.people_num}}"><u-tag class="m-r-10 data-v-d067cfa0" vue-id="{{'1699735c-2-'+index}}" text="{{item.$orig.people_num+'人团'}}" size="mini" type="primary" mode="plain" bind:__l="__l"></u-tag></block>{{''+(item.$orig.goods_name||item.$orig.name)+''}}</view><view class="goods-spec xs muted m-b-20 data-v-d067cfa0">{{item.$orig.spec_value||item.$orig.spec_value_str}}</view><view class="flex row-between data-v-d067cfa0"><view class="goods-price data-v-d067cfa0"><view class="primary flex data-v-d067cfa0"><block wx:if="{{!item.$orig.is_seckill}}"><price-format vue-id="{{'1699735c-3-'+index}}" weight="500" subscript-size="{{24}}" first-size="{{32}}" second-size="{{24}}" price="{{item.$orig.price||item.$orig.goods_price}}" class="data-v-d067cfa0" bind:__l="__l"></price-format></block><block wx:else><price-format vue-id="{{'1699735c-4-'+index}}" weight="500" subscript-size="{{24}}" first-size="{{32}}" second-size="{{24}}" price="{{item.$orig.original_price||item.$orig.goods_price}}" class="data-v-d067cfa0" bind:__l="__l"></price-format></block><block wx:if="{{item.$orig.is_member}}"><view class="vip-price flex data-v-d067cfa0"><view class="price-name xxs data-v-d067cfa0">会员价</view><view style="padding:0 10rpx;" class="data-v-d067cfa0"><price-format vue-id="{{'1699735c-5-'+index}}" price="{{item.$orig.member_amount}}" first-size="{{22}}" second-size="{{22}}" subscript-size="{{22}}" weight="{{500}}" color="#7B3200" class="data-v-d067cfa0" bind:__l="__l"></price-format></view></view></block><block wx:if="{{item.$orig.team_price}}"><view class="vip-price flex data-v-d067cfa0"><view class="price-name xxs data-v-d067cfa0">拼团价</view><view style="padding:0 10rpx;" class="data-v-d067cfa0"><price-format vue-id="{{'1699735c-6-'+index}}" price="{{item.$orig.team_price}}" first-size="{{22}}" second-size="{{22}}" subscript-size="{{22}}" weight="{{500}}" color="#7B3200" class="data-v-d067cfa0" bind:__l="__l"></price-format></view></view></block><block wx:if="{{item.$orig.is_seckill}}"><view class="vip-price flex data-v-d067cfa0"><view class="price-name xxs data-v-d067cfa0">秒杀价</view><view style="padding:0 10rpx;" class="data-v-d067cfa0"><price-format vue-id="{{'1699735c-7-'+index}}" price="{{item.$orig.price}}" first-size="{{22}}" second-size="{{22}}" subscript-size="{{22}}" weight="{{500}}" color="#7B3200" class="data-v-d067cfa0" bind:__l="__l"></price-format></view></view></block></view></view><view class="goods-num sm data-v-d067cfa0">{{"x"+(item.$orig.num||item.$orig.goods_num||item.$orig.count)}}</view></view></view></view><block wx:if="{{link&&item.$orig.comment_btn||item.$orig.refund_btn}}"><view class="goods-footer flex data-v-d067cfa0"><view class="flex-1 data-v-d067cfa0"></view><block wx:if="{{item.$orig.comment_btn}}"><router-link class="m-r-20 data-v-d067cfa0" vue-id="{{'1699735c-8-'+index}}" to="{{item.a0}}" bind:__l="__l" vue-slots="{{['default']}}"><button class="plain br60 data-v-d067cfa0" size="xs" hover-class="none"> 评价晒图 </button></router-link></block><block wx:if="{{item.$orig.refund_btn}}"><router-link vue-id="{{'1699735c-9-'+index}}" to="{{item.a1}}" class="data-v-d067cfa0" bind:__l="__l" vue-slots="{{['default']}}"><button class="plain br60 data-v-d067cfa0" size="xs" hover-class="none"> 申请退款 </button></router-link></block></view></block></view></block></view>
|
||||
1
public/mp-weixin/components/order-goods/order-goods.wxss
Normal file
1
public/mp-weixin/components/order-goods/order-goods.wxss
Normal file
@ -0,0 +1 @@
|
||||
.order-goods .item.data-v-d067cfa0{padding:20rpx 24rpx}.order-goods .item .vip-price.data-v-d067cfa0{margin:0 10rpx;background-color:#ffe9ba;line-height:30rpx;border-radius:6rpx;overflow:hidden}.order-goods .item .vip-price .price-name.data-v-d067cfa0{background-color:#101010;padding:3rpx 10rpx;color:#ffd4b7;position:relative;overflow:hidden}.order-goods .item .vip-price .price-name.data-v-d067cfa0::after{content:"";display:block;width:20rpx;height:20rpx;position:absolute;right:-15rpx;background-color:#ffe9ba;border-radius:50%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);box-sizing:border-box}.order-goods .goods-footer.data-v-d067cfa0{height:70rpx;align-items:flex-start;padding:0 24rpx}.order-goods .goods-footer .plain.data-v-d067cfa0{border:1px solid #999;height:52rpx;line-height:52rpx;font-size:26rpx}
|
||||
Reference in New Issue
Block a user