oms
This commit is contained in:
1
unpackage/dist/build/mp-weixin/driverManagement/company/company.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/driverManagement/company/company.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["driverManagement/company/company"],{"0c38":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("f9bd"));function a(t){return t&&t.__esModule?t:{default:t}}var s={data:function(){return{selecompany:"",timer:null,diverList:[],getData:{pageSize:15,currentPage:1,params:{name:""},sorted:{createTime:"desc"},columns:[]},value:0,range:[{value:0,text:""}],type:""}},onLoad:function(t){if(t.jsData){if(""==JSON.parse(t.jsData))return;if("send"==JSON.parse(t.jsData).type||"receive"==JSON.parse(t.jsData).type)return void(this.type=JSON.parse(t.jsData));this.selecompany={},this.selecompany.name=JSON.parse(t.jsData)}},onShow:function(){""!==this.type&&""!==this.type.data?this.fylist(this.type.id):(console.log(this.type.data,"-------------------------------------------------"),this.getDriversList())},onReachBottom:function(){this.getData.currentPage+=1,console.log("触底了"),this.getDriversList()},methods:{fylist:function(t){var e=this;i.default.fylist(t).then((function(t){2e4===t.code&&(e.diverList=t.data)}))},seleFn:function(e){if(clearTimeout(this.timer),!e)return this.selecompany="",t.$emit("company"),void(this.timer=setTimeout((function(){t.navigateBack()}),1e3));this.selecompany=e,this.selecompany.type=this.type.type,t.$emit("company",this.selecompany),this.timer=setTimeout((function(){t.navigateBack()}),1e3)},seachFn:function(){this.selecompany={},this.getData.currentPage=1,this.getDriversList()},getDriversList:function(){var t=this;console.log("正常"),i.default.getByPage(this.getData).then((function(e){2e4===e.code&&(1===t.getData.currentPage?t.diverList=e.data.list:t.diverList=t.diverList.concat(e.data.list))}))},change:function(t){console.log("e:",t)}}};e.default=s}).call(this,n("543d")["default"])},"120e":function(t,e,n){"use strict";n.r(e);var i=n("d393"),a=n("9978");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("d239");var u,o=n("f0c5"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],u);e["default"]=r.exports},"7ab5":function(t,e,n){"use strict";(function(t){n("6e43");i(n("66fd"));var e=i(n("120e"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},9978:function(t,e,n){"use strict";n.r(e);var i=n("0c38"),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},d239:function(t,e,n){"use strict";var i=n("fce5"),a=n.n(i);a.a},d393:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"2572"))}},a=function(){var t=this,e=t.$createElement;t._self._c},s=[]},fce5:function(t,e,n){}},[["7ab5","common/runtime","common/vendor"]]]);
|
||||
8
unpackage/dist/build/mp-weixin/driverManagement/company/company.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/driverManagement/company/company.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "选择所属公司",
|
||||
"navigationBarBackgroundColor": "#2866FF",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"uni-easyinput": "/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/driverManagement/company/company.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/driverManagement/company/company.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view><view class="company_body"><block wx:if="{{type.data==''||!type}}"><view class="header_seach_seach"><uni-easyinput style="height:100%;flex:1;margin:0 auto;background-color:#FFFFFF;border-radius:12rpx;" vue-id="0dc1b631-1" prefixIcon="search" placeholder="公司名称" value="{{getData.params.name}}" data-event-opts="{{[['^confirm',[['seachFn']]],['^iconClick',[['onClick']]],['^input',[['__set_model',['$0','name','$event',[]],['getData.params']]]]]}}" bind:confirm="__e" bind:iconClick="__e" bind:input="__e" bind:__l="__l"></uni-easyinput></view></block></view><view class="company_list"><block wx:if="{{!type}}"><view data-event-opts="{{[['tap',[['seleFn']]]]}}" class="company_list_item" style="margin-top:0;" bindtap="__e"><image style="width:73rpx;height:73rpx;" src="../../static/selegs.png"></image><view class="company_list_item_text">所有企业</view><view style="flex-grow:1;text-align:-webkit-right;"><view class="checkboxs"><block wx:if="{{selecompany==''}}"><view class="checkboxss"></view></block></view></view></view></block><block wx:for="{{diverList}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['seleFn',['$0'],[[['diverList','',index]]]]]]]}}" class="company_list_item" bindtap="__e"><block wx:if="{{!type}}"><image style="width:73rpx;height:73rpx;" src="../../static/selegs.png"></image></block><block wx:if="{{type}}"><view class="companytip" style="{{'background:'+(item.parentMark==0?'#2866FF':'#FD9500')+';'}}">{{item.parentMark==0?'总公司':'子公司'}}</view></block><view class="company_list_item_text">{{item.name}}</view><view style="flex-grow:1;text-align:-webkit-right;"><view class="checkboxs"><block wx:if="{{item.name==selecompany.name}}"><view class="checkboxss"></view></block></view></view></view></block></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/driverManagement/company/company.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/driverManagement/company/company.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.companytip{width:88rpx;height:38rpx;border-radius:4rpx;color:#fff;font-size:24rpx;display:flex;align-items:center;justify-content:center}.checkboxss{width:80%;height:80%;background-color:#2866ff;border-radius:50px}.checkboxs{width:20rpx;height:20rpx;border-radius:50px;border:1px solid #bbb;display:flex;justify-content:center;align-items:center}.checkbox__inner{border-radius:50px!important}.uni-data-checklist{flex:0!important}.uni-data-checklist .checklist-group .checklist-box{margin:0!important}.uni-data-checklist{width:-webkit-max-content;width:max-content}.company_list_item_text{font-size:28rpx;color:#000;margin-left:23rpx}.company_list_item{min-height:92rpx;background:#fff;box-shadow:0 3px 9px 0 rgba(88,88,88,.2);border-radius:8rpx;font-size:28rpx;display:flex;align-items:center;padding:9rpx 21rpx;margin-top:19rpx}.company_list{width:100vw;padding:0 31rpx;box-sizing:border-box;margin-top:40rpx}.company_body{background-color:#2866ff;padding:25rpx 0}.uni-easyinput__content{height:80rpx}.uni-easyinput{height:80rpx}.header_seach_seach{display:flex;height:80rpx;background-color:#2866ff;padding:0 31rpx}
|
||||
Reference in New Issue
Block a user