初始化代码
This commit is contained in:
1
front/land/pages/detail.js
Normal file
1
front/land/pages/detail.js
Normal file
File diff suppressed because one or more lines are too long
5
front/land/pages/detail.json
Normal file
5
front/land/pages/detail.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "土地详情",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/land/pages/detail.wxml
Normal file
1
front/land/pages/detail.wxml
Normal file
File diff suppressed because one or more lines are too long
4
front/land/pages/detail.wxss
Normal file
4
front/land/pages/detail.wxss
Normal file
@@ -0,0 +1,4 @@
|
||||
.land-detail .price,
|
||||
.land-detail .icon-share{font-size:42rpx}.land-detail .count-list .count-item{width:249rpx}.land-detail .count-list .count-item .ellipsis{max-width:220rpx}.land-detail .count-list .line{width:1rpx;height:58rpx;background:#ccc;opacity:.4}.land-detail .dot-item .dot{width:10rpx;height:10rpx;margin-right:10rpx}.land-detail .can_app{background:#f0f6e0}.land-detail .cur_app{background:#ffc929}.land-detail .spe-list{white-space:nowrap;width:100%}.land-detail .spe-list .spe-item{display:inline-block;width:100rpx;height:200rpx;background:#f5f5f5;overflow:hidden}.land-detail .spe-list .spe-item .title{height:42rpx}.land-detail .spe-list .spe-item .area{height:158rpx}.land-detail .cycle-list{white-space:nowrap;width:100%}.land-detail .cycle-list .cycle-item{display:inline-block;vertical-align:top;width:240rpx;min-height:100rpx;background:#f5f5f5;box-sizing:border-box}.land-detail .cycle-list .cycle-item .ellipsis-2{white-space:normal;height:72rpx;line-height:36rpx}.land-detail .cycle-list .cycle-item.cur .c-title,
|
||||
.land-detail .cycle-list .cycle-item.cur .c-caption,
|
||||
.land-detail .cycle-list .cycle-item.cur .c-warning{color:#fff}.land-detail .order-count-info .count-item{width:33.33%}.land-detail .order-count-info .machine-item{width:50%}.land-detail .order-count-info .machine-item .num{width:50rpx}.land-detail .order-count-info .machine-item .text{width:150rpx;padding-right:10rpx}.land-detail .land-img{width:100%}.land-detail .land-video{width:100%;height:450rpx}.land-detail .footer-btn{bottom:0}.land-detail .footer-btn .footer-item{height:114rpx}.land-detail .footer-btn .footer-item .iconfont{font-size:36rpx}.land-detail .footer-btn .order-btn{width:444rpx;height:78rpx}
|
||||
1
front/land/pages/massif.js
Normal file
1
front/land/pages/massif.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["land/pages/massif"],{"279c":function(t,n,e){"use strict";e.r(n);var r=e("f91b"),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n["default"]=o.a},"3b36":function(t,n,e){"use strict";(function(t,n){var r=e("4ea4");e("b03e");r(e("66fd"));var o=r(e("b1ca"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"619a":function(t,n,e){"use strict";var r=e("cc7f"),o=e.n(r);o.a},b1ca:function(t,n,e){"use strict";e.r(n);var r=e("d676"),o=e("279c");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("619a");var c=e("f0c5"),u=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=u.exports},cc7f:function(t,n,e){},d676:function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var r=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){return n.stopPropagation(),t.$util.goUrl({url:"/land/pages/massif"})},t.e1=function(n){return n.stopPropagation(),t.$util.goUrl({url:"/land/pages/massif"})})},o=[]},f91b:function(t,n,e){"use strict";var r=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(e("2eee")),i=r(e("c973")),c=r(e("9523")),u=e("26cb");function a(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function f(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?a(Object(e),!0).forEach((function(n){(0,c.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var s={components:{},data:function(){return{isLoad:!1,scrollTop:0,detail:{},massifInd:0}},computed:(0,u.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(){var t=this.$util.getPage(-1),n=t.detail,e=t.massifInd;this.detail=n,this.massifInd=e,this.isLoad=!0},onPageScroll:function(t){this.scrollTop=t.scrollTop},methods:f(f({},(0,u.mapActions)(["getConfigInfo"])),{},{initIndex:function(){return(0,i.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},initRefresh:function(){this.initIndex()},toChangeItem:function(t,n){this[t]=n}})};n.default=s}},[["3b36","common/runtime","common/vendor"]]]);
|
||||
5
front/land/pages/massif.json
Normal file
5
front/land/pages/massif.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "地块服务",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/land/pages/massif.wxml
Normal file
1
front/land/pages/massif.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{isLoad}}"><view class="land-massif"><uni-nav-bar vue-id="7b18b8f8-1" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" color="#fff" backgroundColor="{{scrollTop<20?'':primaryColor}}" leftIcon="icon-left" title="服务特权" bind:__l="__l"></uni-nav-bar><view style="{{'height:'+(configInfo.navBarHeight+'px')+';'}}"></view><image class="common-bg abs" style="{{'height:'+(configInfo.navBarHeight+104+'px')+';'}}" mode="aspectFill" lazy-load="{{true}}" src="https://lbqny.migugu.com/admin/farm/bg-cash.png"></image><view class="common-top-img"></view><view class="common-top-info rel"><view class="top-box abs"><view data-event-opts="{{[['tap',[['goDetail',['$0'],['index']]]]]}}" class="flex-warp fill-base ml-md mr-md pd-lg fill-base box-shadow radius-24" catchtap="__e"><image class="avatar big box-shadow-mini radius-34" mode="aspectFill" lazy-load="{{true}}" src="{{detail.farmer_info.cover}}"></image><view class="flex-1 ml-lg"><view class="f-title c-title text-bold ellipsis" style="max-width:470rpx;">{{''+detail.farmer_info.title+''}}</view><view class="flex-between mt-md max-446"><view class="check-btn flex-center fill-body pl-sm pr-sm radius-10" style="{{'color:'+(primaryColor)+';'}}"><view class="max-446 ellipsis">{{detail.massif[massifInd].title}}</view></view><view></view></view></view></view></view></view><view class="mt-md ml-md mr-md pt-sm pl-lg pr-lg pb-lg fill-base c-title box-shadow radius-24"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="common-nav-title flex-center c-title" catchtap="__e"><view class="f-title text-bold flex-1">服务特点</view></view><scroll-view class="cycle-list" scroll-x="{{true}}" scroll-with-animation="{{true}}"><block wx:for="{{detail.massif}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toChangeItem',['massifInd',index]]]]]}}" class="{{['cycle-item','flex-center','flex-column','text-center','pt-lg','pb-lg','pl-md','pr-md','radius-16',[(index!=0)?'ml-md':''],[(massifInd==index)?'cur':'']]}}" style="{{'background:'+(massifInd==index?primaryColor:'#f5f5f5')+';'}}" catchtap="__e"><view class="f-title c-title ellipsis">{{item.title}}</view><view class="flex-center f-caption c-caption mt-sm mb-sm"><view class="flex-center c-warning">¥<view class="f-title">{{item.price}}</view></view>/天</view><view class="f-caption c-caption ellipsis-2">{{''+item.desc+''}}</view></view></block></scroll-view></view><view class="mt-md ml-md mr-md pt-sm pb-lg fill-base c-title box-shadow radius-24"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="common-nav-title flex-center pl-lg c-title" catchtap="__e"><view class="f-title text-bold flex-1">服务类型</view></view><view class="flex-warp mt-md"><block wx:for="{{detail.massif[massifInd].service}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toMenu',[index]]]]]}}" class="menu-item flex-center flex-column" catchtap="__e"><image class="menu-img" mode="aspectFill" lazy-load="{{true}}" src="{{item.cover}}"></image><view class="f-paragraph c-title mt-sm max-200 ellipsis">{{item.title}}</view><view class="f-caption c-caption max-200 ellipsis">{{item.sub_title}}</view></view></block><view class="status-line abs"></view></view></view><view class="space-footer"></view></view></block>
|
||||
3
front/land/pages/massif.wxss
Normal file
3
front/land/pages/massif.wxss
Normal file
@@ -0,0 +1,3 @@
|
||||
.land-massif .check-btn{min-width:88rpx;height:36rpx;font-size:20rpx}.land-massif .cycle-list{white-space:nowrap;width:100%}.land-massif .cycle-list .cycle-item{display:inline-block;vertical-align:top;width:240rpx;min-height:100rpx;background:#f5f5f5}.land-massif .cycle-list .cycle-item .ellipsis-2{white-space:normal;height:72rpx;line-height:36rpx}.land-massif .cycle-list .cycle-item.cur .c-title,
|
||||
.land-massif .cycle-list .cycle-item.cur .c-caption,
|
||||
.land-massif .cycle-list .cycle-item.cur .c-warning{color:#fff}.land-massif .menu-item{width:33.33%}.land-massif .menu-item .menu-img{width:110rpx;height:110rpx}
|
||||
1
front/land/pages/order.js
Normal file
1
front/land/pages/order.js
Normal file
File diff suppressed because one or more lines are too long
5
front/land/pages/order.json
Normal file
5
front/land/pages/order.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "确认下单",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/land/pages/order.wxml
Normal file
1
front/land/pages/order.wxml
Normal file
File diff suppressed because one or more lines are too long
2
front/land/pages/order.wxss
Normal file
2
front/land/pages/order.wxss
Normal file
@@ -0,0 +1,2 @@
|
||||
.land-order .add-btn{width:296rpx;height:72rpx;background:#f6f6f6;border-radius:36rpx;margin:0 auto}.land-order .pay-item .iconfont{font-size:50rpx}.land-order .pay-icon{font-size:40rpx}.land-order .icon-right{font-size:28rpx}.land-order .icon-xuanze,
|
||||
.land-order .icon-xuanze-fill{font-size:36rpx}.land-order .item-text{width:150rpx;height:40rpx}.land-order .auth-phone-btn{width:106rpx;height:36rpx;line-height:36rpx;margin-left:15rpx;font-size:20rpx;background:#f0f4ec;border-radius:10rpx}.land-order .footer-btn{bottom:0}.land-order .footer-btn .footer-item{height:114rpx}.land-order .footer-btn .footer-item .order-btn{width:332rpx;height:88rpx}.land-order .popup-choose-item .icon-add-circle{font-size:50rpx}.land-order .popup-choose-item .seed-list{width:100%;max-height:70vh;background:#eee}.land-order .popup-choose-item .seed-list .item-child .goods-img{width:160rpx;height:160rpx}.land-order .popup-choose-item .seed-list .item-child .goods-title{max-width:470rpx}.land-order .popup-choose-item .order-btn-info{width:100%}.land-order .popup-choose-item .order-btn-info .footer-item{height:114rpx}.land-order .popup-choose-item .order-btn-info .order-btn{width:226rpx;height:88rpx}
|
||||
1
front/land/pages/order/detail.js
Normal file
1
front/land/pages/order/detail.js
Normal file
File diff suppressed because one or more lines are too long
6
front/land/pages/order/detail.json
Normal file
6
front/land/pages/order/detail.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "土地详情",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/land/pages/order/detail.wxml
Normal file
1
front/land/pages/order/detail.wxml
Normal file
File diff suppressed because one or more lines are too long
1
front/land/pages/order/detail.wxss
Normal file
1
front/land/pages/order/detail.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.land-order-detail .order-video-info{width:750rpx;height:380rpx;margin-top:26rpx}.land-order-detail .order-video-info .video-img{width:750rpx;height:380rpx}.land-order-detail .order-video-info .video-bg{top:0;left:0;width:750rpx;height:380rpx;background:rgba(0,0,0,.5)}.land-order-detail .order-video-info .video-bg .iconfont{font-size:70rpx}.land-order-detail .order-count-info .count-item{width:33.33%}.land-order-detail .order-count-info .machine-item{width:50%}.land-order-detail .order-count-info .machine-item .num{width:50rpx}.land-order-detail .order-count-info .machine-item .text{width:150rpx;padding-right:10rpx}.land-order-detail .order-seed-item .seed-img{width:80rpx;height:80rpx;box-shadow:0 0 10px 0 rgba(0,0,0,.1)}.land-order-detail .send-btn{width:180rpx;height:56rpx;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.land-order-detail .popup-send{width:686rpx}.land-order-detail .popup-send .textarea-item{width:506rpx;height:200rpx;border:1rpx solid #eee;-webkit-transform:rotate(1turn);transform:rotate(1turn)}
|
||||
1
front/land/pages/order/list.js
Normal file
1
front/land/pages/order/list.js
Normal file
File diff suppressed because one or more lines are too long
5
front/land/pages/order/list.json
Normal file
5
front/land/pages/order/list.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的土地",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/land/pages/order/list.wxml
Normal file
1
front/land/pages/order/list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="farmer-order-land-list"><fixed vue-id="cbfd1dd4-1" bind:__l="__l" vue-slots="{{['default']}}"><tab vue-id="{{('cbfd1dd4-2')+','+('cbfd1dd4-1')}}" list="{{tabList}}" activeIndex="{{activeIndex}}" activeColor="{{primaryColor}}" width="{{100/$root.g0+'%'}}" height="100rpx" msgRight="40rpx" 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="order-item fill-base mg-big pd-lg radius-16 box-shadow" catchtap="__e"><view class="flex-between pb-lg c-title"><view class="f-title flex-y-baseline"><view class="iconfont icon-dianpu mr-sm _i"></view><view class="text-bold max-400 ellipsis">{{item.farmer_info.title}}</view></view><view class="f-paragraph" style="{{'color:'+(item.pay_type==1?subColor:item.pay_type==2?primaryColor:'')+';'}}">{{''+statusType[item.pay_type]+''}}</view></view><view class="{{['flex-center',[(index!=0)?'mt-lg':'']]}}"><image class="avatar radius-24" mode="aspectFill" lazy-load="{{true}}" src="{{item.goods_cover}}"></image><view class="flex-1 ml-lg"><view class="f-title c-title text-bold ellipsis" style="max-width:498rpx;">{{''+item.goods_name+''}}</view><view class="f-caption c-caption mt-sm">{{'租赁期限:'+item.end_time+' 到期'}}</view><view class="f-caption c-caption">{{'租赁面积:'+item.area+'㎡'}}</view></view></view><view class="flex-between mt-md"><view></view><block wx:if="{{item.pay_type==1}}"><view class="flex-warp"><view data-event-opts="{{[['tap',[['toChangeOrder',[index,'cancel_item']]]]]}}" class="common-btn disabled flex-center f-caption c-title radius-4" catchtap="__e">取消订单</view><view data-event-opts="{{[['tap',[['toPay',[index]]]]]}}" class="common-btn flex-center f-caption c-base radius-4 ml-lg" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">去支付</view></view></block><block wx:if="{{item.pay_type>1&&!item.have_eva||item.pay_type==2}}"><view class="flex-warp"><block wx:if="{{item.pay_type==2}}"><view data-event-opts="{{[['tap',[['goDetail',[index,1]]]]]}}" class="common-btn flex-center f-caption c-base radius-4 ml-lg" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">我要配送</view></block><block wx:if="{{!item.have_eva}}"><view data-event-opts="{{[['tap',[['toEvaluate',[index]]]]]}}" class="common-btn flex-center f-caption c-base radius-4 ml-lg" style="{{'background:'+(subColor)+';'}}" catchtap="__e">去评价</view></block></view></block></view></view></block><block wx:if="{{loading}}"><load-more vue-id="cbfd1dd4-3" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="cbfd1dd4-4" bind:__l="__l"></abnor></block><view class="space-footer"></view><common-popup class="vue-ref" vue-id="cbfd1dd4-5" type="CANCEL_ORDER" info="{{popupInfo}}" data-ref="cancel_item" data-event-opts="{{[['^confirm',[['confirmCancel']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup></view>
|
||||
1
front/land/pages/seed/detail.js
Normal file
1
front/land/pages/seed/detail.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["land/pages/seed/detail"],{"2f41":function(n,t,e){"use strict";e.r(t);var i=e("85dc"),o=e("e64d");for(var r in o)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(r);e("45e3");var u=e("f0c5"),a=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=a.exports},"45e3":function(n,t,e){"use strict";var i=e("6473"),o=e.n(i);o.a},"4f28":function(n,t,e){"use strict";(function(n,t){var i=e("4ea4");e("b03e");i(e("66fd"));var o=i(e("2f41"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},6473:function(n,t,e){},"85dc":function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){}));var i=function(){var n=this.$createElement;this._self._c},o=[]},b172:function(n,t,e){"use strict";var i=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(e("2eee")),r=i(e("c973")),u=e("26cb"),a={components:{},data:function(){return{options:{},detail:{}}},computed:(0,u.mapState)({primaryColor:function(n){return n.config.configInfo.primaryColor},subColor:function(n){return n.config.configInfo.subColor},configInfo:function(n){return n.config.configInfo},userInfo:function(n){return n.user.userInfo}}),onLoad:function(n){this.$util.showLoading(),this.options=n,this.initIndex()},methods:{initIndex:function(){var n=this;return(0,r.default)(o.default.mark((function t(){var e,i,r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.options,i=e.id,r=e.land_id,t.next=3,n.$api.land.seedInfo({id:i,land_id:r});case 3:n.detail=t.sent,n.$util.hideAll();case 5:case"end":return t.stop()}}),t)})))()},initRefresh:function(){this.initIndex()}}};t.default=a},e64d:function(n,t,e){"use strict";e.r(t);var i=e("b172"),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(r);t["default"]=o.a}},[["4f28","common/runtime","common/vendor"]]]);
|
||||
4
front/land/pages/seed/detail.json
Normal file
4
front/land/pages/seed/detail.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "种子详情",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/land/pages/seed/detail.wxml
Normal file
1
front/land/pages/seed/detail.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{detail.id}}"><view class="land-seed-detail rel"><banner vue-id="3afc9a10-1" list="{{detail.imgs}}" margin="{{0}}" autoplay="{{true}}" borderRadius="{{0}}" height="{{750}}" indicatorActiveColor="{{primaryColor}}" indicatorType="number" indicatorStyle="text-align:right;bottom:0" data-event-opts="{{[['^change',[['goBanner',[1,'$event']]]]]}}" bind:change="__e" bind:__l="__l"></banner><view class="seed-info fill-base abs pd-lg f-paragraph c-desc"><view class="iconfont icon-seed _i" style="{{'color:'+(primaryColor)+';'}}"></view><view class="f-title c-title text-bold mt-md">种子简介</view><view class="flex-warp mt-md"><view>种子名称</view><view class="max">{{detail.title}}</view></view><view class="flex-warp mt-md"><view>预估产量</view><view class="max">{{detail.output_value+"kg/m²"}}</view></view><view class="flex-warp mt-md"><view>播种季节</view><view class="max"><block wx:for="{{detail.month}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block>{{''+(index!=0?'、':'')+(item+'月')+''}}</block></block></view></view><view class="flex-warp mt-md"><view>播种面积</view><view class="max">{{detail.area+"/m²"}}</view></view><view class="flex-warp mt-md"><view>生长周期</view><view class="max">{{detail.grow_cycle+"天"}}</view></view><view class="flex-warp mt-md"><view>采摘周期</view><view class="max">{{detail.picking_cycle+"天"}}</view></view><view class="flex-warp mt-md"><view>种植周期</view><view class="max">{{detail.seed_cycle+"天"}}</view></view><view class="flex-warp mt-md"><view>种子价格</view><view class="max">{{"¥"+detail.seed_price}}</view></view></view><view class="space-footer"></view></view></block>
|
||||
1
front/land/pages/seed/detail.wxss
Normal file
1
front/land/pages/seed/detail.wxss
Normal file
@@ -0,0 +1 @@
|
||||
page{background:#fff}.land-seed-detail .seed-info{width:100%;top:690rpx;border-radius:40rpx 40rpx 0 0}.land-seed-detail .seed-info .icon-seed{font-size:95rpx}.land-seed-detail .seed-info .max{max-width:528rpx;margin-left:50rpx}
|
||||
1
front/land/pages/seed/list.js
Normal file
1
front/land/pages/seed/list.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["land/pages/seed/list"],{"1b7b":function(t,n,e){"use strict";e.r(n);var i=e("2228"),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},2228:function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(e("2eee")),o=i(e("c973")),r=i(e("9523")),s=e("26cb");function c(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?c(Object(e),!0).forEach((function(n){(0,r.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var l={components:{uniSegmentedControl:function(){e.e("components/uni-segmented-control").then(function(){return resolve(e("49df"))}.bind(null,e)).catch(e.oe)}},data:function(){return{options:{},tabList:[{id:1,title:"综合排序"},{id:2,title:"种植最多"}],activeIndex:0,param:{page:1,season:0},list:{data:[]},loading:!0,lockTap:!1,popupInfo:{}}},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()},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:u(u({},(0,s.mapMutations)(["updateUserItem"])),{},{initIndex:function(){this.getList()},initRefresh:function(){this.param.page=1,this.initIndex()},handerTabChange:function(t,n){"season"==n?this.param[n]=1==this.param[n]?0:1:this[n]=t,this.$util.showLoading(),this.param.page=1,this.list.data=[],this.getList()},getList:function(){var t=this;return(0,o.default)(a.default.mark((function n(){var e,i,o,r,s,c,u;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=t.list,i=t.activeIndex,o=t.tabList,r=t.options.id,s=o[i].id,c=Object.assign({},t.param,{land_id:r,sort:s}),n.next=6,t.$api.land.seedList(c);case 6:u=n.sent,1==t.param.page||(u.data=e.data.concat(u.data)),t.list=u,t.loading=!1,t.$util.hideAll();case 10:case"end":return n.stop()}}),n)})))()},goDetail:function(t){var n=this.list.data[t].id,e=this.options.id,i="/land/pages/seed/detail?id=".concat(n,"&land_id=").concat(e);this.$util.goUrl({url:i})}})};n.default=l}).call(this,e("543d")["default"])},"28e7":function(t,n,e){"use strict";e.r(n);var i=e("9adc"),a=e("1b7b");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("765d");var r=e("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=s.exports},"5cec":function(t,n,e){},"765d":function(t,n,e){"use strict";var i=e("5cec"),a=e.n(i);a.a},"9adc":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=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),i=!t.loading&&t.list.data.length<=0&&1==t.list.current_page;t.$mp.data=Object.assign({},{$root:{g0:e,g1:i}})},a=[]},dd1a:function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("b03e");i(e("66fd"));var a=i(e("28e7"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])}},[["dd1a","common/runtime","common/vendor"]]]);
|
||||
7
front/land/pages/seed/list.json
Normal file
7
front/land/pages/seed/list.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "种子列表",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"uni-segmented-control": "/components/uni-segmented-control"
|
||||
}
|
||||
}
|
||||
1
front/land/pages/seed/list.wxml
Normal file
1
front/land/pages/seed/list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="land-seed-list"><fixed vue-id="b9bc54ea-1" bind:__l="__l" vue-slots="{{['default']}}"><view class="flex-between fill-base pd-lg"><view style="width:440rpx;"><uni-segmented-control vue-id="{{('b9bc54ea-2')+','+('b9bc54ea-1')}}" current="{{activeIndex}}" values="{{tabList}}" style-type="button" active-color="{{primaryColor}}" data-event-opts="{{[['^clickItem',[['handerTabChange',['$event','activeIndex']]]]]}}" bind:clickItem="__e" bind:__l="__l"></uni-segmented-control></view><view data-event-opts="{{[['tap',[['handerTabChange',['$event','season']]]]]}}" class="{{['season-item','flex-center','f-desc','c-base','radius',[(!param.season)?'c-title':'']]}}" style="{{'background:'+(param.season?primaryColor:'#eddbba')+';'}}" catchtap="__e">当前季节</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="item-child rel mt-md ml-md mr-md pd-lg fill-base radius-24 box-shadow" catchtap="__e"><view class="flex-center"><image class="goods-img radius-24" mode="aspectFill" lazy-load="{{true}}" src="{{item.imgs[0]}}"></image><view class="flex-1 ml-md"><view class="goods-title f-title c-title text-bold ellipsis">{{item.title}}</view><view class="f-title c-warning mt-sm">{{'¥'+item.seed_price+''}}</view><view class="goods-title f-caption c-caption ellipsis">{{'预估产量:'+item.output_value+'kg/㎡'}}<text class="ml-md">{{"播种面积:"+item.area+"㎡"}}</text></view></view></view><view class="more-btn abs flex-center c-warning"><view class="flex-y-baseline"><view>查看更多</view><view class="iconfont icon-right _i"></view></view></view></view></block><block wx:if="{{loading}}"><load-more vue-id="b9bc54ea-3" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="b9bc54ea-4" bind:__l="__l"></abnor></block><view class="space-footer"></view></view>
|
||||
1
front/land/pages/seed/list.wxss
Normal file
1
front/land/pages/seed/list.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.land-seed-list .season-item{width:220rpx;height:54rpx}.land-seed-list .item-child .goods-img{width:160rpx;height:160rpx}.land-seed-list .item-child .goods-title{max-width:470rpx}.land-seed-list .item-child .more-btn{top:0;right:0;width:122rpx;height:46rpx;font-size:20rpx;background:#fdede0;border-radius:0 25rpx 0 15rpx}.land-seed-list .item-child .more-btn .iconfont{font-size:20rpx}
|
||||
Reference in New Issue
Block a user