初始化代码

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

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>