初始化代码

This commit is contained in:
2025-12-22 17:13:05 +08:00
parent ed0de08e3a
commit 1f7e9d401b
2947 changed files with 526137 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "",
"usingComponents": {}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["farmer/pages/finance/index"],{"3efa":function(t,n,e){"use strict";(function(t){var r=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(e("2eee")),i=r(e("c973")),o=r(e("9523")),c=e("26cb");function u(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?u(Object(e),!0).forEach((function(n){(0,o.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var s={components:{tabbar:function(){e.e("components/tabbar").then(function(){return resolve(e("f696"))}.bind(null,e)).catch(e.oe)}},data:function(){return{isLoad:!1,detail:{},param:{page:1},list:{data:[]},loading:!0,lockTap:!1}},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},commonOptions:function(t){return t.user.commonOptions},userInfo:function(t){return t.user.userInfo}}),onLoad:function(){this.$util.setNavigationBarColor({color:"#ffffff",bg:"#39b54a"}),this.$util.showLoading(),this.initIndex()},onUnload:function(){this.$util.back()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},methods:f(f({},(0,c.mapMutations)([])),{},{initIndex:function(){var t=this;return(0,i.default)(a.default.mark((function n(){return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$api.farmer.farmerFinanceInfo();case 2:t.detail=n.sent,t.isLoad=!0,t.getList(),t.$util.hideAll();case 6:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.param.page=1,this.initIndex()},getList:function(){var t=this;return(0,i.default)(a.default.mark((function n(){var e,r,i;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=t.list,r=t.param,n.next=3,t.$api.farmer.farmerFinanceList(r);case 3:i=n.sent,1==t.param.page||(i.data=e.data.concat(i.data)),t.list=i,t.loading=!1,t.$util.hideAll();case 7:case"end":return n.stop()}}),n)})))()},handerTabChange:function(t){this.activeIndex=t}})};n.default=s}).call(this,e("543d")["default"])},"5dac":function(t,n,e){"use strict";e.r(n);var r=e("3efa"),a=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"]=a.a},"6df8":function(t,n,e){"use strict";e.r(n);var r=e("c48a"),a=e("5dac");for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("73f3");var o=e("f0c5"),c=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=c.exports},"73f3":function(t,n,e){"use strict";var r=e("913d"),a=e.n(r);a.a},"913d":function(t,n,e){},c48a:function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.isLoad&&t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null),r=t.isLoad?!t.loading&&t.list.data.length<=0&&1==t.list.current_page:null;t._isMounted||(t.e0=function(n){return n.stopPropagation(),t.$util.goUrl({url:"/mine/pages/cash-out?type=farmer"})},t.e1=function(n){return n.stopPropagation(),t.$util.goUrl({url:"/farmer/pages/finance/record"})}),t.$mp.data=Object.assign({},{$root:{g0:e,g1:r}})},a=[]},dc06:function(t,n,e){"use strict";(function(t,n){var r=e("4ea4");e("b03e");r(e("66fd"));var a=r(e("6df8"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])}},[["dc06","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "财务管理",
"enablePullDownRefresh": true,
"usingComponents": {
"tabbar": "/components/tabbar"
}
}

View File

@@ -0,0 +1 @@
<block wx:if="{{isLoad}}"><view class="farmer-finance-index rel"><view class="count-info flex-center flex-column c-base" style="{{'background:'+(primaryColor)+';'}}"><view class="f-caption">可提余额(元)</view><view class="price mt-sm">{{detail.cash}}</view><view class="flex-center btn-list f-paragraph mt-lg pt-lg"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="item-child flex-center fill-base c-title mr-lg radius" catchtap="__e">提现</view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="item-child flex-center c-base radius" catchtap="__e">交易记录</view></view></view><view class="money-count fill-base flex-center pt-lg pb-lg"><view class="item-child flex-center flex-column b-1px-r"><view class="flex-y-baseline f-lg-title">{{detail.total_cash}}</view><view class="f-caption c-caption">总金额(元)</view></view><view class="item-child flex-center flex-column"><view class="flex-y-baseline f-lg-title">{{detail.frozen_cash}}</view><view class="f-caption c-caption">实际冻结金额(元)</view></view></view><view class="space-md"></view><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="fill-base pd-lg b-1px-b"><view class="flex-between"><view class="max-446 ellipsis">{{item.order_code}}</view><view class="f-title text-bold" style="{{'color:'+(index==0?primaryColor:'#FF5537')+';'}}">{{''+(item.add==1?'+':'-')+" "+item.price+''}}</view></view><view class="flex-between f-caption c-desc mt-sm"><view class="c-caption">{{item.create_time_text}}</view><view>{{item.type_text}}</view></view></view></block><block wx:if="{{loading}}"><load-more vue-id="132253d2-1" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="132253d2-2" bind:__l="__l"></abnor></block><view class="space-footer"></view></view></block>

View File

@@ -0,0 +1 @@
.farmer-finance-index .count-info{height:450rpx}.farmer-finance-index .count-info .price{font-size:70rpx}.farmer-finance-index .count-info .btn-list .item-child{width:240rpx;height:64rpx;border:1rpx solid #fff;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.farmer-finance-index .money-count .item-child{width:50%}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "交易记录",
"enablePullDownRefresh": true,
"usingComponents": {
"w-picker": "/components/w-picker/w-picker",
"uni-segmented-control": "/components/uni-segmented-control"
}
}

View File

@@ -0,0 +1 @@
<view class="mine-stored-record"><fixed vue-id="e83fd2f2-1" bind:__l="__l" vue-slots="{{['default']}}"><view class="fill-base b-1px-b"><view class="pl-lg pr-lg"><view class="space-lg"></view><uni-segmented-control vue-id="{{('e83fd2f2-2')+','+('e83fd2f2-1')}}" current="{{typeInd}}" values="{{typeList}}" style-type="button" active-color="{{primaryColor}}" data-event-opts="{{[['^clickItem',[['handerTabChange',['$event','typeInd']]]]]}}" bind:clickItem="__e" bind:__l="__l"></uni-segmented-control></view><tab vue-id="{{('e83fd2f2-3')+','+('e83fd2f2-1')}}" list="{{tabList}}" lockTap="{{activeIndex==2&&tabList[2].start_time&&tabList[2].end_time?false:true}}" activeIndex="{{activeIndex}}" activeColor="{{primaryColor}}" width="{{100/$root.g0+'%'}}" height="100rpx" data-event-opts="{{[['^change',[['handerTabChange',['$event','activeIndex']]]]]}}" bind:change="__e" bind:__l="__l"></tab></view></fixed><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="fill-base pd-lg b-1px-b"><view class="flex-between"><view class="max-446 ellipsis">{{item.type_text}}</view><view class="text-bold" style="{{'color:'+(primaryColor)+';'}}">{{(item.add==1?'+':'-')+" "+item.price}}</view></view><view class="flex-between f-caption c-caption mt-sm">{{item.create_time_text}}</view></view></block><block wx:if="{{loading}}"><load-more vue-id="e83fd2f2-4" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="e83fd2f2-5" bind:__l="__l"></abnor></block><view class="space-footer"></view><uni-popup class="vue-ref" vue-id="e83fd2f2-6" type="top" custom="{{true}}" maskClick="{{false}}" data-ref="show_choose_time" bind:__l="__l" vue-slots="{{['default']}}"><view style="height:184rpx;"></view><view class="popup-choose-time fill-base f-paragraph c-desc pt-lg pb-lg radius-bottom-34"><view class="time-item flex-center pt-lg"><view data-event-opts="{{[['tap',[['toShowTime',['start_time']]]]]}}" class="item-child flex-center flex-column" catchtap="__e"><view>开始时间</view><view class="mt-sm" style="{{'color:'+(tabList[2].start_time?primaryColor:'#999')+';'}}">{{''+(tabList[2].start_time||'选择时间')+''}}</view></view><view data-event-opts="{{[['tap',[['toShowTime',['end_time']]]]]}}" class="item-child flex-center flex-column b-1px-l" catchtap="__e"><view>结束时间</view><view class="mt-sm" style="{{'color:'+(tabList[2].end_time?primaryColor:'#999')+';'}}">{{''+(tabList[2].end_time||'选择时间')+''}}</view></view></view><view class="button-item flex-center"><view data-event-opts="{{[['tap',[['toConfirm',[1]]]]]}}" class="item-child disabled flex-center" catchtap="__e">取消</view><view data-event-opts="{{[['tap',[['toConfirm',[2]]]]]}}" class="item-child flex-center" style="{{'background:'+(primaryColor)+';'+('color:'+('#fff')+';')}}" catchtap="__e">确定</view></view></view></uni-popup><w-picker class="vue-ref" vue-id="e83fd2f2-7" mode="date" startYear="{{startYear}}" endYear="{{endYear}}" value="{{tabList[0].end_time}}" current="{{false}}" fields="day" disabled-after="{{false}}" themeColor="{{primaryColor}}" visible="{{showDate}}" data-ref="day" data-event-opts="{{[['^confirm',[['onConfirm',['$event']]]],['^updateVisible',[['__set_sync',['$0','showDate','$event'],['']]]]]}}" bind:confirm="__e" bind:updateVisible="__e" bind:__l="__l"></w-picker></view>

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["farmer/pages/order/claim/list"],{2896:function(t,i,n){"use strict";(function(t){var a=n("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=a(n("2eee")),r=a(n("c973")),o=n("26cb"),s={components:{},data:function(){return{options:{},activeIndex:0,tabList:[{id:0,title:"全部"},{id:2,title:"认养中",number:0},{id:3,title:"配送中",number:0},{id:7,title:"已完成"}],statusType:{"-1":"已取消",1:"待支付",2:"认养中",3:"配送中",7:"已完成"},param:{page:1},list:{data:[]},loading:!0,lockTap:!1}},computed:(0,o.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();var i=t.tab,n=void 0===i?0:i;this.options=t,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,r.default)(e.default.mark((function i(){var n,a,r,o,s;return e.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=t.list,a=t.param,r=t.tabList,o=t.activeIndex,a.pay_type=r[o].id,i.next=4,t.$api.farmer.claimOrderList(a);case 4:s=i.sent,1==t.param.page||(s.data=n.data.concat(s.data)),t.list=s,t.loading=!1,t.tabList[1].number=s.claim_ing,t.tabList[2].number=s.send_ing,t.$util.hideAll();case 10:case"end":return i.stop()}}),i)})))()},handerTabChange:function(t){this.activeIndex=t,this.$util.showLoading(),this.param.page=1,this.list.data=[],this.getList()},toTel:function(t){var i=this.list.data[t].address_info.mobile;this.$util.goUrl({url:i,openType:"call"})},goDetail:function(t){var i=this.list.data[t].id,n="/claim/pages/order/detail?id=".concat(i,"&farmer=1");this.$util.goUrl({url:n})}}};i.default=s}).call(this,n("543d")["default"])},3465:function(t,i,n){"use strict";(function(t,i){var a=n("4ea4");n("b03e");a(n("66fd"));var e=a(n("565f"));t.__webpack_require_UNI_MP_PLUGIN__=n,i(e.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"565f":function(t,i,n){"use strict";n.r(i);var a=n("9b7a"),e=n("9cf4");for(var r in e)["default"].indexOf(r)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(r);var o=n("f0c5"),s=Object(o["a"])(e["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);i["default"]=s.exports},"9b7a":function(t,i,n){"use strict";n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return e})),n.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,n=(t._self._c,t.tabList.length),a=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:n,g1:a,g2:e}})},e=[]},"9cf4":function(t,i,n){"use strict";n.r(i);var a=n("2896"),e=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(i,t,(function(){return a[t]}))}(r);i["default"]=e.a}},[["3465","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "认养订单",
"enablePullDownRefresh": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="farmer-order-claim-list"><fixed vue-id="10609a7b-1" bind:__l="__l" vue-slots="{{['default']}}"><tab vue-id="{{('10609a7b-2')+','+('10609a7b-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="order-item fill-base mg-big pd-lg radius-16 box-shadow" catchtap="__e"><view class="flex-between pb-lg"><view class="f-paragraph c-title" style="{{'color:'+(item.pay_type==1?subColor:item.pay_type==2?primaryColor:'')+';'}}">{{''+statusType[item.pay_type]+''}}</view><view class="iconfont icon-right _i"></view></view><view class="flex-center"><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.num+'/'+item.unit)+''}}</view><view class="f-caption c-caption">{{'配送周期:'+item.send_cycle+''}}</view></view></view><view class="flex-between f-paragraph mt-md pt-md b-1px-t"><view class="c-desc max-380 ellipsis">{{"认养编号 "+item.claim_code}}</view><view class="flex-y-baseline c-title">总计:<view class="f-title c-warning">{{"¥"+item.pay_price}}</view></view></view><view class="flex-between mt-md"><view></view><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></view></view></block><block wx:if="{{loading}}"><load-more vue-id="10609a7b-3" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="10609a7b-4" bind:__l="__l"></abnor></block><view class="space-footer"></view></view>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "配送详情",
"navigationStyle": "custom",
"usingComponents": {}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
.farmer-order-distribution-detail .order-seed-item .seed-img{width:80rpx;height:80rpx;box-shadow:0 0 10px 0 rgba(0,0,0,.1)}

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["farmer/pages/order/distribution/list"],{"86b4":function(t,e,n){"use strict";n.r(e);var i=n("f734"),a=n("ea19");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);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},"88ae":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("c973")),o=n("26cb"),s={components:{},data:function(){return{options:{},activeIndex:0,tabList:[{id:0,title:"全部"},{id:2,title:"待配送",number:0},{id:3,title:"配送中",number:0},{id:7,title:"已完成"},{id:-1,title:"已取消"}],statusType:{"-1":"已取消",2:"待配送",3:"配送中",7:"已完成"},orderType:{1:"认养订单",2:"土地订单"},sendType:{1:"自提",2:"快递"},param:{page:1},list:{data:[]},loading:!0,popupInfo:{},lockTap:!1}},computed:(0,o.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,r.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.pay_type=r[o].id,e.next=4,t.$api.farmer.farmerSendOrderList(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.no_send,t.tabList[2].number=s.send_ing,t.$util.hideAll();case 10: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,r.default)(a.default.mark((function i(){var r,o,s;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:r=n.list.data[t],o=r.id,s=r.order_code,n.popupInfo={id:o,name:"订单编号:".concat(s),image:"",index:t,refs_key:e},n.$refs[e].open();case 3:case"end":return i.stop()}}),i)})))()},confirmChangeOrder:function(){var t=this;return(0,r.default)(a.default.mark((function e(){var n,i,r,o,s,u,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.popupInfo,i=n.id,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(),o={confirm_get_item:{method:"sendOrderPickup",msg:"取货成功"},confirm_send_item:{method:"sendOrderSend",msg:"发货成功"}},s=o[r],u=s.method,c=s.msg,e.prev=7,e.next=10,t.$api.farmer[u]({id:i});case 10:t.$util.hideAll(),t.$util.showToast({title:c}),t.lockTap=!1,t.$refs[r].close(),t.initRefresh(),e.next=20;break;case 17:e.prev=17,e.t0=e["catch"](7),setTimeout((function(){t.lockTap=!1,t.$util.hideAll()}),2e3);case 20:case"end":return e.stop()}}),e,null,[[7,17]])})))()},goDetail:function(t){var e=this.list.data[t],n=e.id,i=e.type,a="/farmer/pages/order/distribution/detail?id=".concat(n,"&type=").concat(i);this.$util.goUrl({url:a})}}};e.default=s}).call(this,n("543d")["default"])},c97a:function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("b03e");i(n("66fd"));var a=i(n("86b4"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},ea19:function(t,e,n){"use strict";n.r(e);var i=n("88ae"),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},f734: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=[]}},[["c97a","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "配送订单",
"enablePullDownRefresh": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="farmer-order-distribution-list"><fixed vue-id="d08879f2-1" bind:__l="__l" vue-slots="{{['default']}}"><tab vue-id="{{('d08879f2-2')+','+('d08879f2-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="order-item fill-base mg-big pd-lg f-paragraph c-title radius-16 box-shadow" catchtap="__e"><view class="flex-between pb-lg b-1px-b"><view class="c-desc max-500 ellipsis">{{"配送单号:"+item.order_code}}</view><view style="{{'color:'+(item.pay_type==2?subColor:item.pay_type==3?primaryColor:'')+';'}}">{{''+statusType[item.pay_type]+''}}</view></view><view class="flex-warp mt-lg"><view class="text-item c-desc">订单类型</view><view class="flex-1">{{orderType[item.type]}}</view></view><view class="flex-warp mt-md"><view class="text-item c-desc">{{item.send_type==1?'自提时间':'送货时间'}}</view><view class="flex-1">{{item.time_text}}</view></view><view class="flex-warp mt-md"><view class="text-item c-desc">配送方式</view><view class="flex-1">{{sendType[item.send_type]}}</view></view><block wx:if="{{item.send_type==2}}"><view class="flex-warp mt-md"><view class="text-item c-desc">收货地址</view><view class="flex-1">{{item.address}}</view></view></block><view class="flex-warp mt-md"><view class="text-item c-desc">{{item.send_type==1?'自提人':'收货人'}}</view><view class="flex-1">{{item.user_name+' '+item.mobile}}</view></view><block wx:if="{{item.pay_type>2&&item.send_type==2}}"><view class="flex-warp pt-lg"><view class="text-item c-desc">发货时间</view><view class="flex-1">{{item.send_time}}</view></view></block><block wx:if="{{item.pay_type==7}}"><view class="flex-warp pt-lg"><view class="text-item c-desc">{{item.send_type==1?'取货时间':'收货时间'}}</view><view class="flex-1">{{item.receiving_time}}</view></view></block><block wx:if="{{item.text}}"><view class="mt-md"><view class="text-item c-desc">备注</view><view class="mt-sm"><text style="word-break:break-all;" decode="emsp">{{item.text}}</text></view></view></block><block wx:if="{{item.send_type==2}}"><block><view class="flex-warp pt-lg"><view class="text-item c-desc">付款单号</view><view class="flex-1">{{item.transaction_id}}</view></view><block wx:if="{{item.pay_type==-1}}"><view class="flex-warp pt-lg"><view class="text-item c-desc">退款单号</view><view class="flex-1">{{item.refund_code}}</view></view></block><view class="flex-warp mt-md"><view class="text-item c-desc">配送费</view><view class="flex-1 flex-y-center c-warning"><view>{{"¥"+item.pay_price}}</view><block wx:if="{{item.pay_type==-1}}"><view class="ml-sm">(已退)</view></block></view></view></block></block><block wx:if="{{item.pay_type==2}}"><view class="flex-between mt-md"><view></view><view data-event-opts="{{[['tap',[['toChangeOrder',[index,item.send_type==1?'confirm_get_item':'confirm_send_item']]]]]}}" class="common-btn flex-center f-caption c-base radius-4 ml-lg" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">{{''+(item.send_type==1?'确认取货':'立即发货')+''}}</view></view></block></view></block><block wx:if="{{loading}}"><load-more vue-id="d08879f2-3" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="d08879f2-4" bind:__l="__l"></abnor></block><view class="space-footer"></view><common-popup class="vue-ref" vue-id="d08879f2-5" title="确认取货" desc="请确认是否取货,确认后将无法恢复" text="确认取货" info="{{popupInfo}}" data-ref="confirm_get_item" data-event-opts="{{[['^confirm',[['confirmChangeOrder']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup><common-popup class="vue-ref" vue-id="d08879f2-6" title="立即发货" desc="请确认是否发货,确认后将无法恢复" text="确认发货" info="{{popupInfo}}" data-ref="confirm_send_item" data-event-opts="{{[['^confirm',[['confirmChangeOrder']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup></view>

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["farmer/pages/order/land/list"],{"0170":function(t,n,i){"use strict";i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return e})),i.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,i=(t._self._c,t.tabList.length),a=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:i,g1:a,g2:e}})},e=[]},4422:function(t,n,i){"use strict";(function(t,n){var a=i("4ea4");i("b03e");a(i("66fd"));var e=a(i("51fc"));t.__webpack_require_UNI_MP_PLUGIN__=i,n(e.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},"51fc":function(t,n,i){"use strict";i.r(n);var a=i("0170"),e=i("fe6a");for(var o in e)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(o);var r=i("f0c5"),s=Object(r["a"])(e["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=s.exports},bf94:function(t,n,i){"use strict";(function(t){var a=i("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=a(i("2eee")),o=a(i("c973")),r=i("26cb"),s={components:{},data:function(){return{options:{},activeIndex:0,tabList:[{id:0,title:"全部"},{id:1,title:"待支付",number:0},{id:2,title:"租赁中",number:0},{id:7,title:"已完成"}],statusType:{"-1":"已取消",1:"待支付",2:"租赁中",7:"已完成"},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 n=t.tab,i=void 0===n?0:n;this.activeIndex=i,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)(e.default.mark((function n(){var i,a,o,r,s;return e.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.list,a=t.param,o=t.tabList,r=t.activeIndex,a.pay_type=o[r].id,n.next=4,t.$api.farmer.landOrderList(a);case 4:s=n.sent,1==t.param.page||(s.data=i.data.concat(s.data)),t.list=s,t.loading=!1,t.tabList[1].number=s.count.no_pay_count,t.tabList[2].number=s.count.rent_count,t.$util.hideAll();case 10:case"end":return n.stop()}}),n)})))()},handerTabChange:function(t){this.activeIndex=t,this.$util.showLoading(),this.param.page=1,this.list.data=[],this.getList()},toTel:function(t){var n=this.list.data[t].address_info.mobile;this.$util.goUrl({url:n,openType:"call"})},goDetail:function(t){var n=this.list.data[t].id,i="/land/pages/order/detail?id=".concat(n,"&farmer=1");this.$util.goUrl({url:i})}}};n.default=s}).call(this,i("543d")["default"])},fe6a:function(t,n,i){"use strict";i.r(n);var a=i("bf94"),e=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(o);n["default"]=e.a}},[["4422","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "土地订单",
"enablePullDownRefresh": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="farmer-order-land-list"><fixed vue-id="787ed8a4-1" bind:__l="__l" vue-slots="{{['default']}}"><tab vue-id="{{('787ed8a4-2')+','+('787ed8a4-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="order-item fill-base mg-big pd-lg radius-16 box-shadow" catchtap="__e"><view class="flex-between pb-lg"><view class="f-paragraph c-title" style="{{'color:'+(item.pay_type==1?subColor:item.pay_type==2?primaryColor:'')+';'}}">{{''+statusType[item.pay_type]+''}}</view><view class="iconfont icon-right _i"></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><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></view></view></block><block wx:if="{{loading}}"><load-more vue-id="787ed8a4-3" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="787ed8a4-4" bind:__l="__l"></abnor></block><view class="space-footer"></view></view>