初始化代码
This commit is contained in:
1
front/shop/pages/car.js
Normal file
1
front/shop/pages/car.js
Normal file
File diff suppressed because one or more lines are too long
5
front/shop/pages/car.json
Normal file
5
front/shop/pages/car.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "购物车",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/car.wxml
Normal file
1
front/shop/pages/car.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{isLoad}}"><view class="pages-shop"><block wx:for="{{shopCarList.list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['item-child','mb-md','ml-sm','mr-sm','pt-lg','pl-lg','pr-lg','fill-base','radius-24',[(index==0)?'mt-md':'']]}}"><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="flex-y-center mb-lg" bindtap="__e"><view class="iconfont icon-dianpu mr-sm _i"></view><view class="f-title c-title text-bold ellipsis">{{item.farmer_info.title}}</view><view class="iconfont icon-right _i"></view></view><block wx:for="{{item.goods_list}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><view data-event-opts="{{[['tap',[['toUpdateStatus',[index,aindex]]]]]}}" class="{{['flex-warp','pb-lg','b-1px-b',[(aindex!=0)?'pt-lg':'']]}}" catchtap="__e"><view class="{{['iconfont','flex-y-center','mr-md','_i',[(!aitem.status)?'icon-xuanze':''],[(aitem.status)?'icon-xuanze-fill':'']]}}" style="{{'color:'+(aitem.status?primaryColor:'')+';'}}"></view><image class="goods-img radius-16" mode="aspectFill" lazy-load="{{true}}" src="{{aitem.cover}}"></image><view class="flex-1 ml-md"><view class="goods-title f-title c-title text-bold ellipsis">{{''+aitem.goods_name+''}}</view><view class="flex-between mt-sm"><view class="goods-spe pl-sm pr-sm f-caption c-paragraph ellipsis radius-4">{{''+aitem.spe_name+''}}</view><view class="flex-1"></view></view><block wx:if="{{aitem.integral_id}}"><view class="f-desc c-warning mt-sm">{{''+(aitem.i_price*1>0?aitem.integral+'积分+'+aitem.i_price+'元':aitem.integral+'积分')+''}}</view></block><view class="{{['flex-between',[(!aitem.integral_id)?'mt-md':'']]}}"><view class="flex-y-baseline f-caption c-warning"><block wx:if="{{aitem.integral_id}}"><view class="f-caption c-caption mr-sm">商城价</view></block>¥<view class="f-title text-bold">{{''+aitem.price+''}}</view></view><view class="flex-warp"><view class="add-remove-item flex-center"><view data-event-opts="{{[['tap',[['toUpdateCar',['$0','$1','$2',-1],[[['shopCarList.list','',index],['goods_list','',aindex,'farmer_id']],[['shopCarList.list','',index],['goods_list','',aindex,'id']],[['shopCarList.list','',index],['goods_list','',aindex,'spe_id']]]]]]]}}" class="iconfont icon-remove-circle c-caption _i" catchtap="__e"></view><view class="number flex-center f-desc pl-sm pr-sm">{{aitem.goods_num+''}}</view><view data-event-opts="{{[['tap',[['toUpdateCar',['$0','$1','$2',1],[[['shopCarList.list','',index],['goods_list','',aindex,'farmer_id']],[['shopCarList.list','',index],['goods_list','',aindex,'goods_id']],[['shopCarList.list','',index],['goods_list','',aindex,'spe_id']]]]]]]}}" class="iconfont icon-add-circle _i" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e"></view></view></view></view></view></view></block></view></block><block wx:if="{{$root.g0<=0}}"><abnor vue-id="3c9b8488-1" bind:__l="__l"></abnor></block><view class="space-footer"></view><block wx:if="{{$root.g1>0}}"><view class="fix footer-info flex-center"><view class="item-height flex-1 flex-between fill-base pl-lg pr-lg"><view data-event-opts="{{[['tap',[['toUpdateStatus',[-1]]]]]}}" class="flex-y-center" bindtap="__e"><view class="{{['iconfont','mr-md','_i',[(!shopCarList.selectAll)?'icon-xuanze':''],[(shopCarList.selectAll)?'icon-xuanze-fill':'']]}}" style="{{'color:'+(shopCarList.selectAll?primaryColor:'')+';'}}"></view>全选</view><view class="flex-y-baseline f-paragraph c-title" style="line-height:35rpx;">合计:<view class="f-title c-warning text-bold">{{'¥'+(shopCarList.car_price||0)+''}}</view></view></view><view data-event-opts="{{[['tap',[['goOrder',['$event']]]]]}}" class="item-height pay-btn flex-center f-sm-title c-base" style="{{'background:'+(primaryColor)+';'}}" bindtap="__e">去付款</view></view></block></view></block>
|
||||
3
front/shop/pages/car.wxss
Normal file
3
front/shop/pages/car.wxss
Normal file
@@ -0,0 +1,3 @@
|
||||
.pages-shop .icon-xuanze,
|
||||
.pages-shop .icon-xuanze-fill{font-size:38rpx}.pages-shop .item-child .icon-xuanze,
|
||||
.pages-shop .item-child .icon-xuanze-fill{height:172rpx}.pages-shop .item-child .goods-img{width:172rpx;height:172rpx}.pages-shop .item-child .goods-title{max-width:420rpx}.pages-shop .item-child .goods-spe{height:44rpx;line-height:44rpx;background:#f7f7f7;max-width:420rpx}.pages-shop .footer-info{width:100%;left:0;bottom:0}.pages-shop .footer-info .item-height{height:90rpx;height:calc(90rpx + env(safe-area-inset-bottom) / 2);padding-bottom:calc(env(safe-area-inset-bottom) / 2)}.pages-shop .footer-info .pay-btn{width:200rpx}
|
||||
1
front/shop/pages/choose-store.js
Normal file
1
front/shop/pages/choose-store.js
Normal file
File diff suppressed because one or more lines are too long
6
front/shop/pages/choose-store.json
Normal file
6
front/shop/pages/choose-store.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "切换店铺",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/choose-store.wxml
Normal file
1
front/shop/pages/choose-store.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{isLoad}}"><view class="shop-choose-store"><fixed vue-id="7db6dbf5-1" bind:__l="__l" vue-slots="{{['default']}}"><view class="rel"><view class="user-store-info abs"><image class="store-bg abs" mode="aspectFill" lazy-load="{{true}}" src="https://lbqny.migugu.com/admin/farm/bg-store.png"></image></view><uni-nav-bar vue-id="{{('7db6dbf5-2')+','+('7db6dbf5-1')}}" fixed="{{false}}" shadow="{{false}}" statusBar="{{true}}" onlyLeft="{{true}}" color="#fff" backgroundColor="none" bind:__l="__l" vue-slots="{{['left']}}"><view class="flex-y-center" slot="left" data-event-opts="{{[['tap',[['toChooseLocation',['$event']]]]]}}" catchtap="__e"><view class="iconfont icon-dingwei mr-sm _i"></view><view class="text-bold max-400 ellipsis">{{''+(location.address?location.address:isLoad?'定位失败':'定位中...')+''}}</view><view class="iconfont icon-down-bold ml-sm _i"></view></view></uni-nav-bar><view class="search-box-radius fill-base"><search vue-id="{{('7db6dbf5-3')+','+('7db6dbf5-1')}}" type="input" radius="{{30}}" disabled="{{location.address?false:true}}" placeholder="搜索店铺名称" data-event-opts="{{[['^input',[['toSearch']]],['^confirm',[['toSearch']]]]}}" bind:input="__e" bind:confirm="__e" bind:__l="__l"></search></view></view></fixed><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="farm-item rel fill-base mt-md ml-md mr-md pd-lg box-shadow radius-24" catchtap="__e"><view class="more-btn abs flex-center"><view class="flex-y-baseline" style="{{'color:'+(primaryColor)+';'}}"><view>进店选购</view><view class="iconfont icon-right _i"></view></view></view><view class="flex-center"><image class="cover box-shadow-mini radius-24" mode="aspectFill" lazy-load="{{true}}" src="{{item.cover}}"></image><view class="flex-1 ml-lg"><view class="flex-between f-title c-title mt-sm mb-sm"><view class="max-300 ellipsis">{{item.title}}</view><view class="f-caption c-caption">{{''+item.distance+''}}</view></view><view class="star-fill-info rel"><view class="flex-warp star rel"><block wx:for="{{5}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><view class="item-star flex-center"><view class="iconfont icon-star-bold-fill _i"></view></view></block></view><view class="star-fill abs" style="{{'width:'+(item.star_percent)+';'}}"><view class="flex-warp"><block wx:for="{{5}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><view class="item-star flex-center"><view class="iconfont icon-star-bold-fill icon-font-color _i" style="{{'background-image:'+('-webkit-linear-gradient(90deg, #FDCD47, #FFC000)')+';'}}"></view></view></block></view></view></view><view class="flex-y-center f-caption c-caption mt-sm"><view class="iconfont icon-dingwei mr-sm _i"></view><view class="addr-text ellipsis">{{item.address}}</view></view></view></view></view></block><block wx:if="{{loading}}"><load-more vue-id="7db6dbf5-4" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="7db6dbf5-5" bind:__l="__l"></abnor></block><block wx:if="{{!loading&&!location.lng}}"><abnor vue-id="7db6dbf5-6" tip="{{[{text:'定位失败,请开启地理位置授权后重试~',color:0}]}}" button="{{[{text:'开启定位',type:'confirm'}]}}" btnSize data-event-opts="{{[['^confirm',[['e0']]]]}}" bind:confirm="__e" bind:__l="__l"></abnor></block><view class="space-max-footer"></view><block wx:if="{{isLoad}}"><fix-bottom-button vue-id="7db6dbf5-7" text="{{[{text:'返回上页',type:'confirm'}]}}" bgColor="#fff" data-event-opts="{{[['^confirm',[['e1']]]]}}" bind:confirm="__e" bind:__l="__l"></fix-bottom-button></block></view></block>
|
||||
1
front/shop/pages/choose-store.wxss
Normal file
1
front/shop/pages/choose-store.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.shop-choose-store .user-store-info{width:100%;z-index:-1}.shop-choose-store .user-store-info .store-bg{width:100%;height:168rpx;height:calc(168rpx + env(safe-area-inset-bottom) / 2);padding-bottom:calc(5px + env(safe-area-inset-bottom) / 2);z-index:-1}.shop-choose-store .search-box-radius{border-radius:30rpx 30rpx 0 0}.shop-choose-store .farm-item .cover{width:160rpx;height:160rpx}.shop-choose-store .farm-item .icon-dingwei{font-size:24rpx}.shop-choose-store .farm-item .addr-text{max-width:420rpx}.shop-choose-store .farm-item .more-btn{top:0;right:0;width:122rpx;height:46rpx;font-size:20rpx;background:rgba(112,152,64,.1);border-radius:0 25rpx 0 15rpx}.shop-choose-store .farm-item .more-btn .iconfont{font-size:20rpx}
|
||||
1
front/shop/pages/coupon.js
Normal file
1
front/shop/pages/coupon.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/coupon"],{"0757":function(t,n,e){"use strict";(function(t,n){var a=e("4ea4");e("b03e");a(e("66fd"));var i=a(e("366e"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"2ad5":function(t,n,e){"use strict";(function(t){var a=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a(e("2eee")),o=a(e("c973")),s=e("26cb"),u={components:{},data:function(){return{options:{},useType:{is_land:"土地租赁",is_claim:"认养服务",is_shop:"商城"},param:{page:1},list:{data:[]},loading:!0,lockTap:!1}},computed:(0,s.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){this.$util.showLoading(),this.options=t,this.initIndex()},onUnload:function(){this.$util.back()},onPullDownRefresh:function(){this.param.page=1,t.showNavigationBarLoading(),this.initIndex(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:{initIndex:function(){this.param.page=1,this.getList()},initRefresh:function(){this.initIndex()},getList:function(){var t=this;return(0,o.default)(i.default.mark((function n(){var e,a,o,s;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=t.list,a=t.param,o=t.useType,n.next=3,t.$api.shop.couponList(a);case 3:s=n.sent,s.data.map((function(t){t.is_show=!1;var n="";for(var e in o)t[e]&&(n+="".concat(o[e],"、"));t.use_range=n.substring(0,n.length-1)})),1==t.param.page||(s.data=e.data.concat(s.data)),t.list=s,t.loading=!1,t.$util.hideAll();case 8:case"end":return n.stop()}}),n)})))()},toGetCoupon:function(t){var n=this;return(0,o.default)(i.default.mark((function e(){var a,o,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=n.list.data[t].id,!n.lockTap){e.next=3;break}return e.abrupt("return");case 3:return n.lockTap=!0,n.$util.showLoading(),e.prev=5,e.next=8,n.$api.shop.userGetCoupon({coupon_id:a});case 8:o=n.$util.getPage(-1).detail.coupon_total,s=void 0===o?0:o,n.$util.getPage(-1).detail.coupon_total=s-1,n.list.data.splice(t,1),n.$util.hideAll(),n.lockTap=!1,n.$refs.show_coupon_succ_item.open(),e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](5),setTimeout((function(){n.lockTap=!1,n.$util.hideAll()}),2e3);case 19:case"end":return e.stop()}}),e,null,[[5,16]])})))()},goCoupon:function(){this.$util.goUrl({url:"/mine/pages/coupon/list"}),this.$refs.show_coupon_succ_item.close()}}};n.default=u}).call(this,e("543d")["default"])},"366e":function(t,n,e){"use strict";e.r(n);var a=e("d090"),i=e("b172c");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("9149");var s=e("f0c5"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=u.exports},9149:function(t,n,e){"use strict";var a=e("f1fe"),i=e.n(a);i.a},b172c:function(t,n,e){"use strict";e.r(n);var a=e("2ad5"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},d090:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=(t._self._c,t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null),a=!t.loading&&t.list.data.length<=0&&1==t.list.current_page;t._isMounted||(t.e0=function(t,n){var e=arguments[arguments.length-1].currentTarget.dataset,a=e.eventParams||e["event-params"];n=a.index;t.stopPropagation(),this.list.data[n].is_show=!this.list.data[n].is_show},t.e1=function(n){return n.stopPropagation(),t.$refs.show_coupon_succ_item.close()}),t.$mp.data=Object.assign({},{$root:{g0:e,g1:a}})},i=[]},f1fe:function(t,n,e){}},[["0757","common/runtime","common/vendor"]]]);
|
||||
5
front/shop/pages/coupon.json
Normal file
5
front/shop/pages/coupon.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "领取卡券",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/coupon.wxml
Normal file
1
front/shop/pages/coupon.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="shop-coupon"><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list-item fill-base mg-big pd-lg radius-34"><view class="flex-between"><view class="flex-center flex-column"><view class="flex-y-baseline f-caption c-warning">¥<view class="f-large-title">{{item.discount+''}}</view></view><view class="f-caption c-title">优惠券</view></view><view class="flex-1 ml-lg flex-between"><view class="f-title c-title mr-lg"><view class="text-bold">{{item.title}}</view><view class="f-icontext mt-sm">{{item.type==0?'满'+item.full+'元可用':'无门槛'}}</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({index})}}" class="flex-y-baseline f-icontext mt-sm" catchtap="__e">查看详情<view class="{{['iconfont','ml-sm','_i',[(!item.is_show)?'icon-down':''],[(item.is_show)?'icon-up':'']]}}" style="font-size:24rpx;"></view></view></view><auth class="use-btn" vue-id="{{'1aef93da-1-'+index}}" needAuth="{{userInfo&&(!userInfo.nickName||!userInfo.phone)}}" type="{{!userInfo.nickName?'userInfo':'phone'}}" content="{{!userInfo.nickName?'':configInfo.member_default_level?'尊贵的用户,成为'+configInfo.member_default_level+'需要获取授权,授权成功后可领取相关卡券优惠':''}}" must="{{!userInfo.nickName?true:false}}" data-event-opts="{{[['^go',[['toGetCoupon',[index]]]]]}}" bind:go="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="use-btn flex-center f-caption c-base radius" style="{{'background:'+(primaryColor)+';'}}">领取</view></auth></view></view><block wx:if="{{item.is_show}}"><view class="mt-lg pd-lg f-icontext c-title radius-16" style="background:#F9FAF9;"><view class="flex-warp"><view>使用时间:</view><view class="flex-1 c-desc">{{(item.time_limit==2?'自领取后'+item.day+'天内可用':item.start_time)+''}}</view></view><view class="flex-warp mt-md"><view>使用范围:</view><view class="flex-1 c-desc">{{item.use_range}}</view></view><view class="flex-warp mt-md"><view>使用规则:</view><view class="flex-1 c-desc"><text style="word-break:break-all;" decode="emsp">{{item.rule}}</text></view></view><view class="flex-warp mt-md"><view>优惠详情:</view><view class="flex-1 c-desc"><text style="word-break:break-all;" decode="emsp">{{item.text}}</text></view></view></view></block></view></block><block wx:if="{{loading}}"><load-more vue-id="1aef93da-2" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="1aef93da-3" type="COUPON" bind:__l="__l"></abnor></block><view class="space-footer"></view><uni-popup class="vue-ref" vue-id="1aef93da-4" type="center" custom="{{true}}" maskClick="{{false}}" data-ref="show_coupon_succ_item" bind:__l="__l" vue-slots="{{['default']}}"><view style="height:100rpx;"></view><view class="popup-coupon fill-base flex-center flex-column pt-lg radius-24"><image class="success-img" src="https://lbqny.migugu.com/admin/farm/success.png"></image><view class="f-title c-title text-bold">恭喜您,领取成功</view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="confirm-btn flex-center f-paragraph c-base mt-lg radius" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">确定</view></view></uni-popup></view>
|
||||
1
front/shop/pages/coupon.wxss
Normal file
1
front/shop/pages/coupon.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.shop-coupon .list-item{overflow:hidden}.shop-coupon .list-item .item-title{top:0;left:0;height:50rpx;background:#ffe2e2;border-radius:15rpx 0 15rpx 0}.shop-coupon .list-item .use-btn{min-width:120rpx;height:58rpx}.shop-coupon .popup-coupon{width:600rpx;height:514rpx}.shop-coupon .popup-coupon .success-img{width:201rpx;height:199rpx}.shop-coupon .popup-coupon .confirm-btn{width:184rpx;height:70rpx}
|
||||
1
front/shop/pages/detail.js
Normal file
1
front/shop/pages/detail.js
Normal file
File diff suppressed because one or more lines are too long
7
front/shop/pages/detail.json
Normal file
7
front/shop/pages/detail.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "商品详情",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"parser": "/components/jyf-Parser/index"
|
||||
}
|
||||
}
|
||||
1
front/shop/pages/detail.wxml
Normal file
1
front/shop/pages/detail.wxml
Normal file
File diff suppressed because one or more lines are too long
1
front/shop/pages/detail.wxss
Normal file
1
front/shop/pages/detail.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.shop-detail .seckill-info{width:100%;height:143rpx}.shop-detail .seckill-info .seckill-img{left:0;bottom:0;width:100%;height:156rpx}.shop-detail .seckill-info .seckill-btn{left:58rpx;bottom:22rpx;width:152rpx;height:56rpx;background:#fffb00}.shop-detail .seckill-info .seckill-count{left:38rpx;bottom:30rpx}.shop-detail .seckill-info .seckill-content{left:298rpx;top:0;width:420rpx;height:140rpx;padding:20rpx}.shop-detail .f-lg-title{line-height:1}.shop-detail .icon-share{font-size:42rpx}.shop-detail .count-list .count-item{width:249rpx}.shop-detail .count-list .count-item .ellipsis{max-width:220rpx}.shop-detail .count-list .line{width:1rpx;height:58rpx;background:#ccc;opacity:.4}.shop-detail .store-info .cover{width:98rpx;height:98rpx;border-radius:12rpx}.shop-detail .store-info .store-tag{width:96rpx;height:29rpx;color:#39b54a;background:rgba(0,146,84,.1);border-radius:2rpx}.shop-detail .store-info .go-btn{width:139rpx;height:54rpx;border-radius:4rpx;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.shop-detail .goods-img{width:100%}.shop-detail .goods-video{width:100%;height:450rpx}.shop-detail .footer-btn{bottom:0}.shop-detail .footer-btn .footer-item{height:114rpx}.shop-detail .footer-btn .footer-item .iconfont{font-size:36rpx}.shop-detail .footer-btn .footer-item .car-count{width:30rpx;height:30rpx;line-height:30rpx;border-radius:15rpx;background:#f12c20;top:-10rpx;right:-10rpx}.shop-detail .footer-btn .order-btn{width:220rpx;height:78rpx;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.shop-detail .popup-choose-spe{width:100%}.shop-detail .popup-choose-spe .icon-close{font-size:50rpx;top:32rpx;right:32rpx}.shop-detail .popup-choose-spe .spe-list{max-height:55vh;overflow:auto}.shop-detail .popup-choose-spe .spe-list .spe-item{min-width:98rpx;min-height:38rpx;padding:10rpx 15rpx;background:#f6f6f6;border-radius:12rpx;border:1rpx solid #f6f6f6;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.shop-detail .popup-choose-spe .spe-list .spe-item .spe-img{width:42rpx;height:42rpx}.shop-detail .popup-choose-spe .spe-list .spe-item.cur{background:#efefff;border:1rpx solid #393a81}.shop-detail .popup-choose-spe .confirm-btn{width:500rpx;height:88rpx}
|
||||
1
front/shop/pages/hot-goods.js
Normal file
1
front/shop/pages/hot-goods.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/hot-goods"],{"267e":function(t,e,n){"use strict";n.r(e);var a=n("84a4"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=r.a},"270b":function(t,e,n){"use strict";var a=n("966f"),r=n.n(a);r.a},"84a4":function(t,e,n){"use strict";(function(t){var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("2eee")),i=a(n("9523")),o=a(n("c973")),u=n("26cb");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={components:{},data:function(){return{options:{},param:{page:1},list:{data:[]},loading:!0,lockTap:!1}},computed:(0,u.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){var e=this;return(0,o.default)(r.default.mark((function n(){var a;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=t.type,void 0===a?1:a,e.$util.showLoading(),e.options=t,n.next=5,e.initIndex();case 5:case"end":return n.stop()}}),n)})))()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:c(c(c({},(0,u.mapActions)(["getConfigInfo"])),(0,u.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=this;return(0,o.default)(r.default.mark((function e(){return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getList();case 1:case"end":return e.stop()}}),e)})))()},initRefresh:function(){this.param.page=1,this.initIndex()},toSearch:function(t){this.loading=!0,this.param.page=1,this.param.goods_name=t,this.getList()},getList:function(){var t=this;return(0,o.default)(r.default.mark((function e(){var n,a,i;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.list,a=t.param,e.next=3,t.$api.shop.hotGoodsList(a);case 3:i=e.sent,1==t.param.page||(i.data=n.data.concat(i.data)),t.list=i,t.loading=!1,t.$util.hideAll();case 7:case"end":return e.stop()}}),e)})))()},goDetail:function(t){var e=this;return(0,o.default)(r.default.mark((function n(){var a,i;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:a=e.list.data[t].id,i="/shop/pages/detail?id=".concat(a),e.$util.goUrl({url:i});case 3:case"end":return n.stop()}}),n)})))()}})};e.default=f}).call(this,n("543d")["default"])},"966f":function(t,e,n){},dd68:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null),a=!t.loading&&t.list.data.length<=0&&1==t.list.current_page;t.$mp.data=Object.assign({},{$root:{g0:n,g1:a}})},r=[]},f8fd:function(t,e,n){"use strict";n.r(e);var a=n("dd68"),r=n("267e");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("270b");var o=n("f0c5"),u=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=u.exports},fe72:function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("b03e");a(n("66fd"));var r=a(n("f8fd"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["fe72","common/runtime","common/vendor"]]]);
|
||||
5
front/shop/pages/hot-goods.json
Normal file
5
front/shop/pages/hot-goods.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "热门商品",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/hot-goods.wxml
Normal file
1
front/shop/pages/hot-goods.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="shop-hot-goods"><fixed vue-id="50c4d946-1" bind:__l="__l" vue-slots="{{['default']}}"><view class="fill-base pt-big pb-big pl-md pr-md"><search vue-id="{{('50c4d946-2')+','+('50c4d946-1')}}" type="input" padding="{{0}}" radius="{{70}}" placeholder="搜索商品名称" data-event-opts="{{[['^input',[['toSearch']]]]}}" bind:input="__e" bind:__l="__l"></search></view></fixed><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="goods-item flex-center mt-md ml-md mr-md pd-lg fill-base radius-16" catchtap="__e"><image class="cover radius-16" mode="aspectFill" lazy-load="{{true}}" src="{{item.cover}}"></image><view class="flex-1 ml-lg"><view class="flex-center"><view class="flex-1"><view class="f-title c-title text-bold mt-sm mb-sm ellipsis">{{item.goods_name+''}}</view><view class="flex-y-baseline f-caption c-warning">¥<view class="f-lg-title">{{''+item.show_price+''}}</view></view><view class="f-caption c-caption text-delete">{{"¥"+item.show_init_price}}</view></view><image class="add-car-img" lazy-load="{{true}}" src="/static/image/shop/add-car.png"></image></view></view></view></block></block><block wx:if="{{loading}}"><load-more vue-id="50c4d946-3" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="50c4d946-4" bind:__l="__l"></abnor></block><view class="space-footer"></view></view>
|
||||
1
front/shop/pages/hot-goods.wxss
Normal file
1
front/shop/pages/hot-goods.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.shop-hot-goods .goods-item .cover{width:180rpx;height:170rpx}.shop-hot-goods .goods-item .add-car-img{width:70rpx;height:70rpx}.shop-hot-goods .goods-item .ellipsis{max-width:370rpx}
|
||||
1
front/shop/pages/integral/list.js
Normal file
1
front/shop/pages/integral/list.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/integral/list"],{1133:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2eee")),r=i(n("278c")),o=i(n("c973")),s=i(n("9523")),c=n("26cb");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={components:{},data:function(){return{options:{},color:"#ffffff",activeIndex:0,tabList:[{id:1,title:"会员积分商品"},{id:2,title:"非会员积分商品",number:0}],detail:{},param:{page:1},list:{data:[]},loading:!0}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo},mineInfo:function(t){return t.user.mineInfo}}),onLoad:function(){this.$util.showLoading(),this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},onPageScroll:function(t){var e=t.scrollTop<20?"#ffffff":"#000000";this.color!=e&&(this.color=e,this.$util.setNavigationBarColor({color:e,bg:"none"}))},methods:f(f({},(0,c.mapActions)(["getUserInfo","getAuthUserProfile"])),{},{initIndex:function(){var t=this;return(0,o.default)(a.default.mark((function e(){var n,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([t.$api.shop.userInfo(),t.getList()]);case 2:n=e.sent,i=(0,r.default)(n,1),o=i[0],o.id=1,t.detail=o,t.$util.hideAll();case 8:case"end":return e.stop()}}),e)})))()},initRefresh:function(){this.initIndex()},handerTabChange:function(t){this.activeIndex=t,this.$util.showLoading(),this.param.page=1,this.list.data=[],this.getList()},toSearch:function(t){this.loading=!0,this.param.page=1,this.param.goods_name=t,this.getList()},getList:function(){var t=this;return(0,o.default)(a.default.mark((function e(){var n,i,r,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.list,i=t.param,r=t.tabList,o=t.activeIndex,i.type=r[o].id,e.next=4,t.$api.shop.integralGoodsList(i);case 4:s=e.sent,1==t.param.page||(s.data=n.data.concat(s.data)),t.list=s,t.loading=!1,t.$util.hideAll();case 8:case"end":return e.stop()}}),e)})))()},goDetail:function(t){var e=this.list.data[t].goods_id;this.$util.goUrl({url:"/shop/pages/detail?id=".concat(e)})}})};e.default=l}).call(this,n("543d")["default"])},"82f3":function(t,e,n){"use strict";var i=n("85fe"),a=n.n(i);a.a},"85fe":function(t,e,n){},"8ffb":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.detail.id&&t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null),i=t.detail.id?!t.loading&&t.list.data.length<=0&&1==t.list.current_page:null;t._isMounted||(t.e0=function(e){return t.$util.goUrl({url:"/shop/pages/integral/record"})}),t.$mp.data=Object.assign({},{$root:{g0:n,g1:i}})},a=[]},"9bfb":function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("b03e");i(n("66fd"));var a=i(n("f81c"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},ac37:function(t,e,n){"use strict";n.r(e);var i=n("1133"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},f81c:function(t,e,n){"use strict";n.r(e);var i=n("8ffb"),a=n("ac37");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("82f3");var o=n("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports}},[["9bfb","common/runtime","common/vendor"]]]);
|
||||
6
front/shop/pages/integral/list.json
Normal file
6
front/shop/pages/integral/list.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "积分兑换",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/integral/list.wxml
Normal file
1
front/shop/pages/integral/list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{detail.id}}"><view class="shop-integral-list"><uni-nav-bar vue-id="8329f84a-1" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" color="#fff" backgroundColor="{{color=='#ffffff'?'':primaryColor}}" leftIcon="icon-left" title="积分商城" bind:__l="__l"></uni-nav-bar><view style="{{'height:'+(configInfo.navBarHeight+'px')+';'}}"></view><view class="mine-index-bg abs" mode="aspectFill" lazy-load="{{true}}"></view><view class="pt-md pl-lg pr-lg pb-lg flex-center"><block wx:if="{{userInfo.avatarUrl}}"><image class="user-img radius" mode="aspectFill" lazy-load="{{true}}" src="{{userInfo.avatarUrl}}"></image></block><block wx:else><image class="avatar radius" mode="aspectFill" lazy-load="{{true}}" src="/static/image/mine/default-user.png"></image></block><view class="flex-1 flex-center ml-md c-base"><view class="flex-1"><view class="f-lg-title text-bold max-350 ellipsis">{{'Hi,'+(userInfo.nickName||'用户'+userInfo.id)+''}}</view><view class="f-caption">{{"每日签到可获得"+detail.signin_integral+"积分"}}</view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="flex-center flex-column" bindtap="__e"><image class="integral-img" lazy-load="{{true}}" src="/static/image/shop/integral.png"></image><view class="flex-y-baseline f-icontext mb-sm"><view class="f-paragraph">{{detail.integral}}</view>积分</view><view class="exchange-btn flex-center f-icontext radius" style="{{'background:'+(primaryColor)+';'}}">兑换记录</view></view></view></view><view class="pd-lg" style="border-radius:40rpx;"><search vue-id="8329f84a-2" type="input" padding="{{0}}" radius="{{70}}" placeholder="搜索商品名称" data-event-opts="{{[['^input',[['toSearch']]]]}}" bind:input="__e" bind:__l="__l"></search></view><view class="mt-md mt-md ml-md pb-md fill-base radius-16" style="width:710rpx;overflow:hidden;"><tab vue-id="8329f84a-3" list="{{tabList}}" activeIndex="{{activeIndex}}" activeColor="{{primaryColor}}" width="50%" height="100rpx" color="#C5C5C5" fontSize="32rpx" data-event-opts="{{[['^change',[['handerTabChange']]]]}}" bind:change="__e" bind:__l="__l"></tab></view><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="goods-item mt-md ml-md mr-md fill-base radius-16" catchtap="__e"><view class="flex-center pd-lg"><image class="cover radius-16" mode="aspectFill" lazy-load="{{true}}" src="{{item.cover}}"></image><view class="flex-1 ml-lg"><view class="flex-1"><view class="f-title c-title text-bold mt-sm mb-sm ellipsis">{{item.goods_name+''}}</view><view class="flex-y-baseline f-title c-warning mb-sm">{{''+(item.price*1>0?item.integral+'积分 + '+item.price+'元':item.integral+'积分')+''}}</view><view class="f-caption c-caption text-delete">{{"¥"+item.init_price}}</view></view></view></view><view class="ml-lg mr-lg b-1px-b"></view><view class="flex-between pd-lg"><view class="f-caption c-caption">{{"已换购 "+item.all_have_stock}}</view><view class="common-btn flex-center f-paragraph c-base radius" style="{{'background:'+(primaryColor)+';'}}">立即兑换</view></view></view></block></block><block wx:if="{{loading}}"><load-more vue-id="8329f84a-4" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="8329f84a-5" bind:__l="__l"></abnor></block><view class="space-footer"></view></view></block>
|
||||
1
front/shop/pages/integral/list.wxss
Normal file
1
front/shop/pages/integral/list.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.shop-integral-list .user-img{width:120rpx;height:120rpx;line-height:1rpx;overflow:hidden;border:4rpx solid #eff3fd;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.shop-integral-list .integral-img{width:42rpx;height:42rpx}.shop-integral-list .exchange-btn{width:132rpx;height:32rpx}.shop-integral-list .mine-index-bg{background:#39b54a;height:14.425rem;width:140%;left:-20%;top:0;z-index:-1}.shop-integral-list .goods-item .cover{width:180rpx;height:170rpx}.shop-integral-list .goods-item .ellipsis{max-width:440rpx}
|
||||
1
front/shop/pages/integral/record.js
Normal file
1
front/shop/pages/integral/record.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/integral/record"],{2229:function(t,n,a){},"59a7":function(t,n,a){"use strict";(function(t){var e=a("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e(a("2eee")),o=e(a("c973")),r=a("26cb"),s={components:{},data:function(){return{options:{},param:{page:1},list:{data:[],total:0,current_page:1,last_page:1},loading:!0}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),onLoad:function(){this.$util.showLoading(),this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){console.log(this.param.page),this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:{initIndex:function(){this.getList()},initRefresh:function(){this.param.page=1,this.initIndex()},getList:function(){var t=this;return(0,o.default)(i.default.mark((function n(){var a,e,o;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=t.list,e=t.param,n.next=3,t.$api.shop.integralList(e);case 3:o=n.sent,1==t.param.page||(o.data=a.data.concat(o.data)),t.list=o,t.loading=!1,t.$util.hideAll();case 7:case"end":return n.stop()}}),n)})))()}}};n.default=s}).call(this,a("543d")["default"])},"6a57":function(t,n,a){"use strict";a.r(n);var e=a("7a2f"),i=a("733f");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(n,t,(function(){return i[t]}))}(o);a("cc36");var r=a("f0c5"),s=Object(r["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=s.exports},"733f":function(t,n,a){"use strict";a.r(n);var e=a("59a7"),i=a.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){a.d(n,t,(function(){return e[t]}))}(o);n["default"]=i.a},"7a2f":function(t,n,a){"use strict";a.d(n,"b",(function(){return e})),a.d(n,"c",(function(){return i})),a.d(n,"a",(function(){}));var e=function(){var t=this,n=t.$createElement,a=(t._self._c,t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null),e=!t.loading&&t.list.data.length<=0&&1==t.list.current_page;t.$mp.data=Object.assign({},{$root:{g0:a,g1:e}})},i=[]},cc36:function(t,n,a){"use strict";var e=a("2229"),i=a.n(e);i.a},d32a:function(t,n,a){"use strict";(function(t,n){var e=a("4ea4");a("b03e");e(a("66fd"));var i=e(a("6a57"));t.__webpack_require_UNI_MP_PLUGIN__=a,n(i.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])}},[["d32a","common/runtime","common/vendor"]]]);
|
||||
5
front/shop/pages/integral/record.json
Normal file
5
front/shop/pages/integral/record.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "兑换记录",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/integral/record.wxml
Normal file
1
front/shop/pages/integral/record.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="integral-record ml-lg mr-lg"><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="pt-lg pb-lg b-1px-b"><view class="flex-between f-title c-title"><view>{{item.type_text}}</view><view class="f-sm-title text-bold" style="{{'color:'+(item.integral_add*1>0?primaryColor:subColor)+';'}}">{{''+(item.integral_add*1>0?'+'+item.integral_add:item.integral_add)+''}}</view></view><view class="f-caption c-caption">{{item.create_time_text}}</view></view></block><block wx:if="{{loading}}"><load-more vue-id="18f0b948-1" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="18f0b948-2" bind:__l="__l"></abnor></block><view class="space-footer"></view></view>
|
||||
1
front/shop/pages/integral/record.wxss
Normal file
1
front/shop/pages/integral/record.wxss
Normal file
@@ -0,0 +1 @@
|
||||
page{background:#fff}
|
||||
1
front/shop/pages/luck.js
Normal file
1
front/shop/pages/luck.js
Normal file
File diff suppressed because one or more lines are too long
5
front/shop/pages/luck.json
Normal file
5
front/shop/pages/luck.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/luck.wxml
Normal file
1
front/shop/pages/luck.wxml
Normal file
File diff suppressed because one or more lines are too long
1
front/shop/pages/luck.wxss
Normal file
1
front/shop/pages/luck.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.shop-luck .luck-bg{top:0;left:0;width:100%;height:1912rpx}.shop-luck .my-integral{top:145rpx;width:100%;height:100rpx}.shop-luck .my-integral .integral-num{font-weight:700;color:#fff;letter-spacing:2rpx;background:-webkit-linear-gradient(90deg,#fffbcd,#f4f56f);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.shop-luck .rule-btn-info{top:351rpx;left:0;width:100%;height:59rpx}.shop-luck .rule-btn-info .rule-btn{width:204rpx;height:59rpx;color:#0879ce;background:hsla(0,0%,100%,.6)}.shop-luck .rule-btn-info .rule-btn .iconfont{color:rgba(8,121,206,.6)}.shop-luck .record-btn{top:450rpx;right:0;width:150rpx;height:53rpx;background:rgba(0,107,191,.48);border-radius:100rpx 0 0 100rpx}.shop-luck .luck-dialog-info{top:451rpx;left:102rpx;width:545rpx}.shop-luck .luck-dialog-info .dialog-info .dialog-img{width:545rpx;height:541rpx;-webkit-transform:rotate(-23deg);transform:rotate(-23deg)}.shop-luck .luck-dialog-info .dialog-info .item-luck{width:150rpx;height:120rpx}.shop-luck .luck-dialog-info .dialog-info .item-luck .thank-you-img{width:46rpx;height:46rpx;margin-top:3rpx}.shop-luck .luck-dialog-info .dialog-info .item-luck .icon-img{width:56rpx;height:52rpx}.shop-luck .luck-dialog-info .dialog-info .luck-0{top:60rpx;left:250rpx;-webkit-transform:rotate(20deg);transform:rotate(20deg)}.shop-luck .luck-dialog-info .dialog-info .luck-1{top:129rpx;left:335rpx;-webkit-transform:rotate(61deg);transform:rotate(61deg)}.shop-luck .luck-dialog-info .dialog-info .luck-2{top:238rpx;left:352rpx;-webkit-transform:rotate(101deg);transform:rotate(101deg)}.shop-luck .luck-dialog-info .dialog-info .luck-3{top:331rpx;left:298rpx;-webkit-transform:rotate(141deg);transform:rotate(141deg)}.shop-luck .luck-dialog-info .dialog-info .luck-4{top:368rpx;left:196rpx;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.shop-luck .luck-dialog-info .dialog-info .luck-5{top:330rpx;left:96rpx;-webkit-transform:rotate(220deg);transform:rotate(220deg)}.shop-luck .luck-dialog-info .dialog-info .luck-6{top:238rpx;left:42rpx;-webkit-transform:rotate(260deg);transform:rotate(260deg)}.shop-luck .luck-dialog-info .dialog-info .luck-7{top:130rpx;left:58rpx;-webkit-transform:rotate(300deg);transform:rotate(300deg)}.shop-luck .luck-dialog-info .dialog-info .luck-8{top:60rpx;left:141rpx;-webkit-transform:rotate(340deg);transform:rotate(340deg)}.shop-luck .luck-dialog-info .pointer-img{top:174rpx;left:183rpx;width:179rpx;height:210rpx}.shop-luck .luck-dialog-info .use-integral{top:305rpx;left:205rpx;width:135rpx;-webkit-transform:scale(.7);transform:scale(.7)}.shop-luck .num-img{top:903rpx;left:124rpx;width:502rpx;height:236rpx}.shop-luck .have-change{top:1060rpx;left:0;width:100%;height:50rpx}.shop-luck .have-change .num{color:#ffea8f}.shop-luck .user-list{top:1187rpx;left:45rpx;width:660rpx;height:616rpx;z-index:2}.shop-luck .user-list .user-list-img{top:0;left:0;width:660rpx;height:616rpx;z-index:-1}.shop-luck .user-list .title{height:68rpx;color:#ab5d10}.shop-luck .user-list .luck-user{width:560rpx;height:480rpx;padding:20rpx 50rpx}.shop-luck .user-list .luck-user .text{color:#ff8a00}.shop-luck .squirrel-img{top:1730rpx;right:30rpx;width:141rpx;height:141rpx;z-index:2}.shop-luck .popup-rule{width:596rpx;margin:0 auto}.shop-luck .popup-rule .rule-info{margin-top:10vh}.shop-luck .popup-rule .rule-info .rule-text{color:#4a4a4a;line-height:1.4;min-height:100rpx;max-height:60vh;overflow:auto}.shop-luck .popup-rule .icon-close{font-size:70rpx}.shop-luck .popup-record{width:715rpx;height:800rpx}.shop-luck .popup-record .record-img{top:0;left:0;width:715rpx;height:163rpx}.shop-luck .popup-record .record-title{top:0;left:0;width:100%;height:100rpx}.shop-luck .popup-record .record-content{top:99rpx;left:55rpx;width:608rpx;border-radius:0 0 24rpx 24rpx}.shop-luck .popup-record .record-content .luck-record{min-height:100rpx;max-height:50vh;width:546rpx;padding:30rpx}.shop-luck .popup-record .record-content .luck-record .icon-img{width:61rpx;height:61rpx}.shop-luck .popup-record .record-content .confirm-btn{width:415rpx;height:80rpx;margin:0 auto}
|
||||
1
front/shop/pages/order.js
Normal file
1
front/shop/pages/order.js
Normal file
File diff suppressed because one or more lines are too long
4
front/shop/pages/order.json
Normal file
4
front/shop/pages/order.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "确认下单",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/order.wxml
Normal file
1
front/shop/pages/order.wxml
Normal file
File diff suppressed because one or more lines are too long
1
front/shop/pages/order.wxss
Normal file
1
front/shop/pages/order.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.shop-order .add-btn{width:296rpx;height:72rpx;background:#f6f6f6;border-radius:36rpx;margin:0 auto}.shop-order .pay-item .iconfont{font-size:50rpx}.shop-order .pay-icon{font-size:40rpx}.shop-order .icon-right{font-size:28rpx}.shop-order .item-text{width:150rpx}.shop-order .goods-list .item-child .goods-img{width:130rpx;height:130rpx;border:1px solid hsla(0,0%,93.3%,.79);-webkit-transform:rotate(1turn);transform:rotate(1turn)}.shop-order .goods-list .item-child .sell-out-info{top:1rpx;left:1rpx;width:130rpx;height:130rpx;background:rgba(0,0,0,.5)}.shop-order .goods-list .item-child .sell-out-info .sell-out-img{width:84rpx;height:23rpx;margin:0 auto}.shop-order .goods-list .item-child .seckill-info{width:100%;height:44rpx;margin-top:5rpx;background:linear-gradient(90deg,rgba(255,85,55,.5),hsla(0,0%,100%,.5))}.shop-order .footer-btn{bottom:0}.shop-order .footer-btn .footer-item{height:114rpx}.shop-order .footer-btn .footer-item .order-btn{width:332rpx;height:88rpx}
|
||||
1
front/shop/pages/order/detail.js
Normal file
1
front/shop/pages/order/detail.js
Normal file
File diff suppressed because one or more lines are too long
6
front/shop/pages/order/detail.json
Normal file
6
front/shop/pages/order/detail.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "订单详情",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/order/detail.wxml
Normal file
1
front/shop/pages/order/detail.wxml
Normal file
File diff suppressed because one or more lines are too long
1
front/shop/pages/order/detail.wxss
Normal file
1
front/shop/pages/order/detail.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.shop-order-detail .order-seed-item .seed-img{width:80rpx;height:80rpx;box-shadow:0 0 10px 0 rgba(0,0,0,.1)}.shop-order-detail .item-video{width:710rpx;height:380rpx;display:block}.shop-order-detail .footer-btn{width:100%;bottom:0}.shop-order-detail .footer-btn .flex-between{height:98rpx}
|
||||
1
front/shop/pages/order/list.js
Normal file
1
front/shop/pages/order/list.js
Normal file
File diff suppressed because one or more lines are too long
5
front/shop/pages/order/list.json
Normal file
5
front/shop/pages/order/list.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的订单",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/order/list.wxml
Normal file
1
front/shop/pages/order/list.wxml
Normal file
File diff suppressed because one or more lines are too long
1
front/shop/pages/order/refund.js
Normal file
1
front/shop/pages/order/refund.js
Normal file
File diff suppressed because one or more lines are too long
4
front/shop/pages/order/refund.json
Normal file
4
front/shop/pages/order/refund.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "申请退款",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/order/refund.wxml
Normal file
1
front/shop/pages/order/refund.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{detail.id}}"><view class="user-order-refund"><view class="fill-base mt-md ml-md mr-md pd-lg radius-34"><view class="flex-between pb-lg b-1px-b"><view class="flex-y-center"><view class="iconfont icon-dianpu mr-sm _i"></view><view class="f-title c-title text-bold max-446 ellipsis">{{detail.store_info.title}}</view></view><view class="{{['f-paragraph','c-title',[(detail.pay_type<3&&detail.pay_type!=-1)?'c-warning':''],[(detail.pay_type==3)?'c-success':'']]}}">{{''+statusType[detail.pay_type]+''}}</view></view><block wx:for="{{detail.order_goods}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['handerRadioChange',[index]]]]]}}" class="{{['item-child','flex-warp',[(index==0)?'mt-lg':''],[(index!=0)?'mt-md':'']]}}" bindtap="__e"><view class="{{['iconfont','flex-y-center','mr-md','_i',[(!item.checked)?'icon-xuanze':''],[(item.checked)?'icon-xuanze-fill':'']]}}" style="{{'color:'+(item.checked?primaryColor:'')+';'}}"></view><image class="goods-img box-shadow-mini radius-16" mode="aspectFill" lazy-load="{{true}}" src="{{item.goods_cover}}"></image><view class="flex-1 ml-lg"><view class="f-paragraph c-title text-bold ellipsis">{{''+item.goods_name+''}}</view><view class="f-caption c-title ellipsis">{{''+item.spe_name+''}}</view><block wx:if="{{item.integral_id}}"><view class="f-caption c-warning mt-sm">{{item.integral+"积分"}}</view></block><view class="flex-y-baseline mt-sm"><view class="flex-1 f-paragraph c-warning">{{"¥"+item.singe_pay_price+''}}</view><block wx:if="{{item.can_refund_num>1}}"><view class="flex-warp"><view class="add-remove-item flex-center"><view data-event-opts="{{[['tap',[['changeNum',[index,-1]]]]]}}" class="iconfont icon-remove-circle c-caption _i" catchtap="__e"></view><view class="number flex-center f-desc pl-sm pr-sm">{{item.apply_num+''}}</view><view data-event-opts="{{[['tap',[['changeNum',[index,1]]]]]}}" class="iconfont icon-add-circle _i" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e"></view></view></view></block><block wx:else><block><view class="c-paragraph">{{"x"+item.apply_num}}</view></block></block></view></view></view></block></block><view class="mt-lg pt-lg pb-lg f-paragraph c-title b-1px-tb"><view class="flex-between"><view>商品金额</view><view>{{"¥"+detail.can_refund_price}}</view></view><block wx:if="{{detail.send_type==2}}"><block><view class="flex-between mt-sm"><view class="flex-y-baseline">配送费<view class="f-icontext c-warning ml-sm">发货前全部商品退款将退还</view></view><view>{{"¥"+detail.freight}}</view></view></block></block></view><view class="mt-lg f-paragraph c-title flex-between mt-sm"><view>合计</view><view class="f-title c-warning text-bold">{{''+(total_refund_integral?total_refund_integral+'积分+'+total_refund_price+'元':total_refund_price+'元')+''}}</view></view></view><view class="item-child mg-big pd-lg fill-base radius-34"><view class="f-title c-title text-bold pb-lg">退款原因</view><view class="fill-body f-paragraph c-title radius-34"><textarea class="pd-lg f-paragraph" style="width:580rpx;" maxlength="200" placeholder="请输入退款原因" placeholder-class="c-title" data-event-opts="{{[['input',[['__set_model',['$0','text','$event',[]],['subForm']],['e0',['$event']]]]]}}" value="{{subForm.text}}" bindinput="__e"></textarea><view class="text-right pb-lg pr-lg">{{$root.g0+'/200'+''}}</view></view></view><view class="item-child mg-big pd-lg fill-base radius-34"><view class="f-title c-title text-bold">上传图片</view><view class="mt-sm"><upload vue-id="1c27c907-1" imagelist="{{subForm.imgs}}" imgtype="imgs" text="添加照片" imgsize="{{5}}" data-event-opts="{{[['^del',[['imgUpload']]],['^upload',[['imgUpload']]]]}}" bind:del="__e" bind:upload="__e" bind:__l="__l"></upload></view></view><view class="space-max-footer"></view><view class="refund-bottom-info fill-base fix pl-lg pr-lg"><view class="flex-between"><view data-event-opts="{{[['tap',[['selectAllItem',['$event']]]]]}}" class="flex-y-center" bindtap="__e"><view class="{{['iconfont','mr-sm','_i',[(!selectAll)?'icon-xuanze':''],[(selectAll)?'icon-xuanze-fill':'']]}}" style="{{'color:'+(selectAll?primaryColor:'')+';'}}"></view>全选</view><view class="text-right flex-center"><view class="flex-y-center"><view class="f-caption c-caption mr-sm">{{"共"+total_refund_num+"件"}}</view>退款金额<view class="flex-y-baseline f-caption c-warning">¥<view class="f-title text-bold">{{''+total_refund_price+''}}</view></view></view><view data-event-opts="{{[['tap',[['toSubmit',['$event']]]]]}}" class="common-btn flex-center ml-lg f-paragraph c-base radius" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">提交申请</view></view></view><view class="space-safe"></view></view></view></block>
|
||||
2
front/shop/pages/order/refund.wxss
Normal file
2
front/shop/pages/order/refund.wxss
Normal file
@@ -0,0 +1,2 @@
|
||||
.user-order-refund .item-child .icon-xuanze,
|
||||
.user-order-refund .item-child .icon-xuanze-fill{font-size:38rpx;height:130rpx}.user-order-refund .item-child .goods-img{width:130rpx;height:130rpx}.user-order-refund .item-child .ellipsis{max-width:412rpx}.user-order-refund .item-child .goods-spe{height:44rpx;line-height:44rpx;background:#f7f7f7}.user-order-refund .item-child .goods-num{width:200rpx}.user-order-refund .item-child .textarea-info{background:#f7f7f7}.user-order-refund .item-child .textarea-info .input-textarea{width:570rpx;height:300rpx}.user-order-refund .refund-bottom-info{bottom:0;min-height:110rpx}.user-order-refund .refund-bottom-info .iconfont{font-size:38rpx}.user-order-refund .refund-bottom-info .text-right{height:110rpx}.user-order-refund .refund-bottom-info .text-right .order{margin-top:0}
|
||||
1
front/shop/pages/refund/detail.js
Normal file
1
front/shop/pages/refund/detail.js
Normal file
File diff suppressed because one or more lines are too long
5
front/shop/pages/refund/detail.json
Normal file
5
front/shop/pages/refund/detail.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "退款详情",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/refund/detail.wxml
Normal file
1
front/shop/pages/refund/detail.wxml
Normal file
File diff suppressed because one or more lines are too long
1
front/shop/pages/refund/detail.wxss
Normal file
1
front/shop/pages/refund/detail.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.shop-refund-detail .footer-btn{width:100%;bottom:0}.shop-refund-detail .footer-btn .flex-between{height:98rpx}
|
||||
1
front/shop/pages/refund/list.js
Normal file
1
front/shop/pages/refund/list.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/refund/list"],{"168f":function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2eee")),o=i(n("c973")),r=n("26cb"),s={components:{},data:function(){return{options:{},activeIndex:0,tabList:[{id:0,title:"全部"},{id:1,title:"退款中",number:0},{id:2,title:"退款成功"},{id:3,title:"退款失败"}],statusType:{1:"退款中",2:"退款成功",3:"退款失败"},param:{page:1},list:{data:[]},loading:!0,popupInfo:{},lockTap:!1}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){this.$util.showLoading(),this.options=t;var e=t.tab,n=void 0===e?0:e;this.activeIndex=n,this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:{initIndex:function(){this.getList()},initRefresh:function(){this.param.page=1,this.initIndex()},getList:function(){var t=this;return(0,o.default)(a.default.mark((function e(){var n,i,o,r,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.list,i=t.param,o=t.tabList,r=t.activeIndex,i.status=o[r].id,e.next=4,t.$api.shop.refundOrderList(i);case 4:s=e.sent,1==t.param.page||(s.data=n.data.concat(s.data)),t.list=s,t.loading=!1,t.tabList[1].number=s.ing_count,t.$util.hideAll();case 9:case"end":return e.stop()}}),e)})))()},handerTabChange:function(t){this.activeIndex=t,this.$util.showLoading(),this.param.page=1,this.list.data=[],this.getList()},toChangeOrder:function(t,e){var n=this;return(0,o.default)(a.default.mark((function i(){var o,r,s,u,c;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:o=n.list.data[t],r=o.id,s=o.order_code,u=o.order_goods,c=u[0].goods_cover,n.popupInfo={id:r,name:"订单编号:".concat(s),image:c,index:t,refs_key:e},n.$refs[e].open();case 4:case"end":return i.stop()}}),i)})))()},confirmUpdate:function(){var t=this;return(0,o.default)(a.default.mark((function e(){var n,i,o,r,s,u,c,l,d;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.popupInfo,i=n.id,o=n.index,r=n.refs_key,!t.lockTap){e.next=3;break}return e.abrupt("return");case 3:return t.lockTap=!0,t.$util.showLoading(),s={cancel_item:{method:"cancelRefundOrder",status:-1,msg:"取消成功"}},e.prev=6,u=s[r],c=u.method,u.status,l=u.msg,e.next=10,t.$api.shop[c]({id:i});case 10:t.$util.hideAll(),t.list.data.splice(o,1),t.$util.showToast({title:l}),t.lockTap=!1,d=t.tabList[1].number,t.tabList[1].number=d-1,t.$refs[r].close(),e.next=22;break;case 19:e.prev=19,e.t0=e["catch"](6),setTimeout((function(){t.lockTap=!1,t.$util.hideAll()}),2e3);case 22:case"end":return e.stop()}}),e,null,[[6,19]])})))()},toTel:function(t){var e=this.list.data[t].store_info.mobile;this.$util.goUrl({url:e,openType:"call"})},goDetail:function(t){var e=this.list.data[t].id,n="/shop/pages/refund/detail?id=".concat(e);this.$util.goUrl({url:n})}}};e.default=s}).call(this,n("543d")["default"])},"76e8":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.tabList.length),i=t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null,a=!t.loading&&t.list.data.length<=0&&1==t.list.current_page;t.$mp.data=Object.assign({},{$root:{g0:n,g1:i,g2:a}})},a=[]},"8a0a":function(t,e,n){"use strict";n.r(e);var i=n("76e8"),a=n("c316");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var r=n("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},"9e3c":function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("b03e");i(n("66fd"));var a=i(n("8a0a"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},c316:function(t,e,n){"use strict";n.r(e);var i=n("168f"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a}},[["9e3c","common/runtime","common/vendor"]]]);
|
||||
5
front/shop/pages/refund/list.json
Normal file
5
front/shop/pages/refund/list.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "退款/售后",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/refund/list.wxml
Normal file
1
front/shop/pages/refund/list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="mine-refund-list"><fixed vue-id="769cbbb2-1" bind:__l="__l" vue-slots="{{['default']}}"><tab vue-id="{{('769cbbb2-2')+','+('769cbbb2-1')}}" list="{{tabList}}" activeIndex="{{activeIndex}}" activeColor="{{primaryColor}}" width="{{100/$root.g0+'%'}}" height="100rpx" data-event-opts="{{[['^change',[['handerTabChange']]]]}}" bind:change="__e" bind:__l="__l"></tab><view class="b-1px-b"></view></fixed><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="fill-base mt-md ml-md mr-md pd-lg box-shadow-mini radius-16" catchtap="__e"><view class="flex-between"><view class="{{['f-paragraph','c-title',[(item.status==1)?'c-warning':''],[(item.status==2)?'c-success':'']]}}">{{''+statusType[item.status]+''}}</view><view class="iconfont icon-right _i"></view></view><block wx:for="{{item.order_goods}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><view class="{{['order-item','flex-center',[(aindex==0)?'mt-lg':''],[(aindex!=0)?'mt-md':'']]}}"><image class="avatar box-shadow-mini radius-24" mode="aspectFill" lazy-load="{{true}}" src="{{aitem.goods_cover}}"></image><view class="flex-1 ml-lg"><view class="f-paragraph c-title text-bold max-490 ellipsis">{{''+aitem.goods_name+''}}</view><view class="{{['f-caption','c-title',[(aitem.refund_num*1>0)?'flex-center':'']]}}"><view class="ellipsis" style="{{'max-width:'+(aitem.refund_num*1>0?'300rpx':'490rpx')+';'}}">{{''+aitem.spe_name+''}}</view><block wx:if="{{aitem.refund_num*1>0}}"><view class="flex-1 c-warning text-right">{{"已退x"+aitem.refund_num+''}}</view></block></view><view class="flex-y-baseline mt-sm"><view class="flex-1 f-paragraph c-warning">{{"¥"+aitem.goods_price+''}}</view><view class="f-caption c-caption">{{"x "+aitem.goods_num+''}}</view></view></view></view></block><view class="flex-between mt-lg pt-md b-1px-t"><view class="c-title ml-sm mr-sm">{{''+('共'+item.all_goods_num+'件')}}</view><view class="flex-y-baseline f-desc c-title">合计:<view class="f-title c-warning">{{"¥"+item.apply_price}}</view><block wx:if="{{item.car_price*1>0}}"><view class="f-caption c-caption ml-sm">{{"含配送费:¥"+item.car_price+''}}</view></block></view></view><view class="{{['flex-between',[(item.status==2)?'mt-sm':''],[(item.status!=2)?'mt-lg':'']]}}"><view></view><block wx:if="{{item.status==1}}"><view data-event-opts="{{[['tap',[['toChangeOrder',[index,'cancel_item']]]]]}}" class="common-btn disabled flex-center f-caption c-title radius-4" catchtap="__e">取消退款</view></block><block wx:if="{{item.status==2}}"><view class="flex-y-baseline f-desc c-desc">退款金额:<view class="f-icontext c-title">¥</view><view class="f-sm-title c-title">{{item.refund_price}}</view></view></block><block wx:if="{{item.status==3}}"><view data-event-opts="{{[['tap',[['toTel',[index]]]]]}}" class="common-btn flex-center f-caption c-base radius-4 ml-lg" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">联系店主</view></block></view></view></block><block wx:if="{{loading}}"><load-more vue-id="769cbbb2-3" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="769cbbb2-4" bind:__l="__l"></abnor></block><view class="space-footer"></view><common-popup class="vue-ref" vue-id="769cbbb2-5" type="CANCEL_REFUND_ORDER" info="{{popupInfo}}" data-ref="cancel_item" data-event-opts="{{[['^confirm',[['confirmUpdate']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup></view>
|
||||
1
front/shop/pages/seckill.js
Normal file
1
front/shop/pages/seckill.js
Normal file
File diff suppressed because one or more lines are too long
6
front/shop/pages/seckill.json
Normal file
6
front/shop/pages/seckill.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "限时秒杀",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/seckill.wxml
Normal file
1
front/shop/pages/seckill.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{isLoad}}"><view class="shop-seckill"><block wx:if="{{$root.g0>0}}"><uni-nav-bar vue-id="6762170d-1" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" color="#fff" backgroundColor image="/static/image/shop/seckill-nav.png" leftIcon="icon-left" bind:__l="__l"></uni-nav-bar></block><block wx:else><uni-nav-bar vue-id="6762170d-2" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" color="#fff" backgroundColor="{{primaryColor}}" title="限时秒杀" leftIcon="icon-left" bind:__l="__l"></uni-nav-bar></block><view style="{{'height:'+(configInfo.navBarHeight+15+'px')+';'}}"></view><block wx:if="{{$root.g1>0}}"><block><image class="common-bg mine abs" mode="aspectFill" lazy-load="{{true}}" src="https://lbqny.migugu.com/admin/farm/bg-mine.png"></image><view class="seckill-fill abs"></view><scroll-view class="seckill-tab ml-md mr-md" scroll-x="{{true}}" scroll-into-view="{{'tab'+(activeIndex-1)}}" scroll-with-animation="{{true}}"><block wx:for="{{tabList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['item-child','rel','flex-center','flex-column','text-center','f-caption',[(activeIndex==index)?'cur':'']]}}" style="{{'color:'+(activeIndex==index?primaryColor:'#F9F9F9')+';'}}" id="{{'tab'+index}}" data-event-opts="{{[['tap',[['handerTabChange',[index]]]]]}}" bindtap="__e"><view class="f-lg-title">{{item.time}}</view><view>{{item.day}}</view><view>{{statusType[item.atv_status]}}</view></view></block></scroll-view></block></block><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="{{['goods-item','flex-center','rel','ml-md','mr-md','pt-lg','pb-lg','pl-md','pr-md','fill-base',[(index==0)?'radius-bottom':''],[(index>0)?'mt-md radius-16':'']]}}" catchtap="__e"><image class="seckill-tag abs" mode="aspectFill" lazy-load="{{true}}" src="/static/image/shop/seckill-tag.png"></image><image class="cover radius-16" mode="aspectFill" lazy-load="{{true}}" src="{{item.cover}}"></image><view class="flex-1 ml-md"><view class="f-title c-title text-bold mt-sm mb-sm ellipsis">{{item.goods_name+''}}</view><view class="flex-center f-caption c-desc"><image class="store-img" mode="aspectFill" lazy-load="{{true}}" src="/static/image/shop/seckill-store.png"></image><view class="flex-1 ml-sm max-350 ellipsis">{{item.store_name}}</view></view><view class="flex-between mt-md mb-lg"><view class="line-item rel"><view class="cur abs" style="{{'width:'+(item.precent)+';'}}"></view><view class="f-icontext c-base abs">{{''+item.precent}}</view></view><view class="c-caption" style="font-size:20rpx;">{{"已抢"+item.all_have_stock}}</view></view><view class="flex-between"><view class="flex-y-center"><view class="flex-y-baseline f-caption mb-sm" style="{{'color:'+(primaryColor)+';'}}">¥<view class="f-lg-title">{{item.show_data.price}}</view></view><view class="ml-sm f-caption c-caption text-delete">{{"¥"+item.show_data.init_price}}</view></view><view data-event-opts="{{[['tap',[['toNotice',[index]]]]]}}" class="common-btn flex-center f-caption c-base radius" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e"><block wx:if="{{tabList[activeIndex].atv_status==1}}"><view class="flex-center"><view class="iconfont icon-tixing mr-sm _i"></view>{{item.have_notice?'已提醒':'提醒我'}}</view></block><block wx:else><block>{{btnText[tabList[activeIndex].atv_status]}}</block></block></view></view></view></view></block></block><block wx:if="{{loading}}"><load-more vue-id="6762170d-3" noMore="{{$root.g2}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g3}}"><view class="{{[[($root.g4>0)?'fill-base ml-md mr-md radius-bottom':'']]}}"><abnor vue-id="6762170d-4" bind:__l="__l"></abnor></view></block><view class="space-footer"></view></view></block>
|
||||
1
front/shop/pages/seckill.wxss
Normal file
1
front/shop/pages/seckill.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.shop-seckill .seckill-nav{width:182rpx;height:41rpx;margin:0 auto}.shop-seckill .seckill-fill{top:220rpx;left:20rpx;width:calc(100% - 40rpx);height:140rpx;border-radius:16rpx 16rpx 0 0;background:hsla(0,0%,100%,.1)}.shop-seckill .seckill-tab{white-space:nowrap;width:calc(100% - 40rpx);height:154rpx}.shop-seckill .seckill-tab .item-child{display:inline-block;width:260rpx;height:140rpx;padding:5rpx 0;box-sizing:border-box;margin-top:15rpx}.shop-seckill .seckill-tab .cur{margin-top:0;height:154rpx;background:#fff;border-radius:16rpx 16rpx 0 0}.shop-seckill .seckill-tab .cur .f-lg-title{font-size:46rpx}.shop-seckill .radius-bottom{border-radius:0 0 16rpx 16rpx}.shop-seckill .goods-item .seckill-tag{top:30rpx;left:40rpx;width:60rpx;height:64rpx}.shop-seckill .goods-item .cover{width:258rpx;height:258rpx}.shop-seckill .goods-item .store-img{width:20rpx;height:25rpx}.shop-seckill .goods-item .f-title.ellipsis{max-width:392rpx}.shop-seckill .goods-item .line-item{width:250rpx;height:24rpx;background:rgba(0,146,84,.2);border-radius:12rpx}.shop-seckill .goods-item .line-item .cur{top:0;left:0;height:24rpx;background:linear-gradient(44deg,#39b54a,#439a4d);border-radius:12rpx}.shop-seckill .goods-item .line-item .f-icontext{top:1rpx;left:15rpx;height:24rpx;line-height:1}.shop-seckill .goods-item .common-btn{min-width:134rpx;padding:0}.shop-seckill .goods-item .common-btn .iconfont{font-size:26rpx}
|
||||
1
front/shop/pages/sign.js
Normal file
1
front/shop/pages/sign.js
Normal file
File diff suppressed because one or more lines are too long
5
front/shop/pages/sign.json
Normal file
5
front/shop/pages/sign.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "农场签到",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/sign.wxml
Normal file
1
front/shop/pages/sign.wxml
Normal file
File diff suppressed because one or more lines are too long
2
front/shop/pages/sign.wxss
Normal file
2
front/shop/pages/sign.wxss
Normal file
@@ -0,0 +1,2 @@
|
||||
.pages-mine .sign-info{width:100%;height:579rpx;top:0;left:0;z-index:1}.pages-mine .sign-info .exchange-btn{top:167rpx;right:0;width:146rpx;height:53rpx;background:hsla(0,0%,100%,.2);border-radius:100rpx 0 0 100rpx;z-index:2}.pages-mine .sign-info .integral-info{width:100%;height:217rpx;top:167rpx;left:0}.pages-mine .sign-info .integral-info .integral-num{font-size:50rpx}.pages-mine .sign-info .integral-info .integral-icon{width:32rpx;height:32rpx}.pages-mine .sign-info .count-info{width:calc(100% - 40rpx);height:162rpx;bottom:0}.pages-mine .sign-info .count-info .flex-center{width:50%}.pages-mine .space-sign{width:100%;height:579rpx;top:0;z-index:-1}.pages-mine .sign-date-info .month-text{width:300rpx}.pages-mine .sign-date-info .day-info{margin:0 5rpx}.pages-mine .sign-date-info .day-info .day-item{width:62rpx;height:62rpx;margin:10rpx 19rpx}.pages-mine .sign-date-info .day-info .day-item .f-title{height:36rpx}.pages-mine .sign-date-info .day-info .sign{background:#efefef}.pages-mine .sign-date-info .day-info .today{background:linear-gradient(4deg,#39b54a,#69d275);box-shadow:0 3px 11px 0 rgba(13,143,57,.34)}.pages-mine .sign-date-info .day-info .register{background:linear-gradient(4deg,#f3a664,#fbe945);box-shadow:0 3px 11px 0 rgba(243,166,100,.34);font-size:24rpx}.pages-mine .sign-date-info .icon-wenhao{font-size:26rpx}.pages-mine .sign-date-info .icon-switch,
|
||||
.pages-mine .sign-date-info .icon-switch-on{font-size:70rpx}.pages-mine .sign-date-info .sign-btn{width:540rpx;height:72rpx;margin:0 auto;background:linear-gradient(1turn,#39b54a,#69d275);box-shadow:0 6rpx 17rpx 0 rgba(13,143,47,.35)}.pages-mine .integral-item .integral-img{width:47rpx;height:47rpx}.pages-mine .popup-rule{width:596rpx;margin:0 auto}.pages-mine .popup-rule .rule-info{margin-top:10vh}.pages-mine .popup-rule .rule-info .rule-text{color:#4a4a4a;line-height:1.4;min-height:100rpx;max-height:60vh;overflow:auto}.pages-mine .popup-rule .icon-close{font-size:70rpx}
|
||||
1
front/shop/pages/store.js
Normal file
1
front/shop/pages/store.js
Normal file
File diff suppressed because one or more lines are too long
5
front/shop/pages/store.json
Normal file
5
front/shop/pages/store.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/shop/pages/store.wxml
Normal file
1
front/shop/pages/store.wxml
Normal file
File diff suppressed because one or more lines are too long
3
front/shop/pages/store.wxss
Normal file
3
front/shop/pages/store.wxss
Normal file
@@ -0,0 +1,3 @@
|
||||
page{background:#fff}.pages-store{width:100%;height:100vh}.pages-store .shop-store-info{width:100%;top:0;left:0;z-index:1}.pages-store .shop-store-info .store-img{height:160rpx}.pages-store .shop-store-info .store-info{height:186rpx}.pages-store .shop-store-info .store-info .info-box{top:-144rpx;width:100%}.pages-store .shop-store-info .store-info .info-box .farm-item{height:220rpx}.pages-store .shop-store-info .store-info .info-box .farm-item .cover{width:160rpx;height:160rpx}.pages-store .shop-store-info .store-info .info-box .farm-item .icon-dingwei,
|
||||
.pages-store .shop-store-info .store-info .info-box .farm-item .icon-right{font-size:24rpx}.pages-store .shop-store-info .store-info .info-box .farm-item .max-title{max-width:460rpx}.pages-store .shop-store-info .store-info .info-box .farm-item .more-btn{top:0;right:0;width:122rpx;height:46rpx;font-size:20rpx;background:rgba(112,152,64,.1);border-radius:0 25rpx 0 15rpx}.pages-store .shop-store-info .store-info .info-box .farm-item .more-btn .iconfont{font-size:20rpx}.pages-store .cate-list{width:164rpx;z-index:1;overflow-y:auto;bottom:0;background:#f5f5f5}.pages-store .cate-list .cate-item{line-height:1.3;padding:30rpx 10rpx;overflow:hidden}.pages-store .cate-list .cur{background:#fff}.pages-store .goods-list{width:586rpx;margin-left:164rpx;z-index:2;overflow:hidden}.pages-store .goods-list .goods-cate-scroll{white-space:nowrap;width:586rpx;height:80rpx;left:164rpx;right:0rpx;z-index:3}.pages-store .goods-list .goods-cate-scroll .item-child{padding:0 30rpx;height:80rpx;line-height:80rpx;display:inline-block}.pages-store .goods-list .goods-cate-scroll .purchase-item{width:40rpx;height:4rpx;bottom:0;left:50%;margin-left:-20rpx}.pages-store .goods-list .item-child .goods-img{width:130rpx;height:130rpx;border:1px solid hsla(0,0%,93.3%,.79)}.pages-store .goods-list .item-child .goods-max{max-width:332rpx}.pages-store .goods-list .item-child .sell-out-info{top:1rpx;left:1rpx;width:130rpx;height:130rpx;background:rgba(0,0,0,.5)}.pages-store .goods-list .item-child .sell-out-info .sell-out-img{width:84rpx;height:23rpx;margin:0 auto}.pages-store .goods-list .item-child .express-self-btn{width:110rpx;height:36rpx;font-size:20rpx}.pages-store .add-car-btn{height:70rpx;font-size:30rpx}.pages-store .space-pay .pay-item{height:94rpx;margin-bottom:calc(5px + env(safe-area-inset-bottom) / 2)}.pages-store .store-pay-info{bottom:0rpx;z-index:8}.pages-store .store-pay-info .pay-info{width:686rpx;height:94rpx;border-radius:47rpx;background:#fff;box-shadow:0 4px 26px -10px rgba(0,0,0,.23)}.pages-store .store-pay-info .pay-info .car-img-info{width:108rpx;height:94rpx}.pages-store .store-pay-info .pay-info .car-img-info .car-img{width:108rpx;height:108rpx;left:0;bottom:0}.pages-store .store-pay-info .pay-info .car-img-info .car-num{width:30rpx;height:30rpx;line-height:30rpx;border-radius:15rpx;right:10rpx;top:-18rpx}.pages-store .store-pay-info .store-pay-btn{width:210rpx;height:94rpx;border-radius:0 47rpx 47rpx 0}.pages-store .popup-choose-spe{width:100%}.pages-store .popup-choose-spe .icon-close{font-size:50rpx;top:32rpx;right:32rpx}.pages-store .popup-choose-spe .cover{width:130rpx;height:130rpx}.pages-store .popup-choose-spe .spe-list{max-height:55vh;overflow:auto}.pages-store .popup-choose-spe .spe-list .spe-item{min-width:98rpx;min-height:38rpx;padding:10rpx 15rpx;background:#f6f6f6;border-radius:12rpx;border:1rpx solid #f6f6f6}.pages-store .popup-choose-spe .spe-list .spe-item .spe-img{width:42rpx;height:42rpx}.pages-store .popup-choose-spe .spe-list .spe-item.cur{background:#efefff;border:1rpx solid #393a81}.pages-store .popup-choose-spe .confirm-btn{width:500rpx;height:88rpx}.pages-store .popup-show-car{border-radius:15rpx 15rpx 0 0;z-index:8}.pages-store .popup-show-car .car-info{max-height:65vh;background:#eee}.pages-store .popup-show-car .car-info .item-child .icon-xuanze,
|
||||
.pages-store .popup-show-car .car-info .item-child .icon-xuanze-fill{height:172rpx}.pages-store .popup-show-car .car-info .item-child .goods-img{width:172rpx;height:172rpx}.pages-store .popup-show-car .car-info .item-child .goods-title{max-width:420rpx}.pages-store .popup-show-car .car-info .item-child .goods-spe{height:44rpx;line-height:44rpx;background:#f7f7f7;max-width:420rpx}.pages-store .popup-show-car .space-car{height:30rpx;height:calc(30rpx + env(safe-area-inset-bottom) / 2);padding-bottom:calc(5px + env(safe-area-inset-bottom) / 2)}
|
||||
Reference in New Issue
Block a user