This commit is contained in:
caolc
2022-08-08 09:22:43 +08:00
commit fa1b5f31bd
1535 changed files with 285130 additions and 0 deletions

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["driverManagement/index/index"],{"525e":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("f9bd"));function i(t){return t&&t.__esModule?t:{default:t}}var o={data:function(){return{companyName:"",candidates:[],getData:{pageSize:15,currentPage:1,params:{userSource:"",companyId:"",id:"",enableMark:""},sorted:{createTime:"desc"},columns:[],totalCount:1,totalPage:1},seachValue:"",styles:{},seleindex:0,navigation:[{text:"所有",index:-1},{text:"启用",index:1},{text:"禁用",index:0}],listData:[]}},onPullDownRefresh:function(){this.getData.currentPage=1,this.getList(),console.log("下拉的生命周期")},onLoad:function(){var e=this;this.styles=t.getMenuButtonBoundingClientRect(),t.$on("company",(function(t){var n=getCurrentPages(),a=-1!=n[n.length-2].$page.fullPath.indexOf("?")?n[n.length-2].$page.fullPath.split("?")[0].split("/")[n[n.length-2].$page.fullPath.split("?")[0].split("/").length-1]:n[n.length-2].$page.fullPath.split("/")[n[n.length-2].$page.fullPath.split("/").length-1];console.log(n,a,"获取当前打开过的页面路由数组"),"index"===a&&(t?(e.getData.params.companyId=t.id,e.companyName=t.name,console.log(e.getData)):(e.getData.params.companyId="",e.companyName=""))}))},onShow:function(){this.getList()},methods:{scrolltolower:function(){this.getData.currentPage+=1,console.log("触底了"),this.getList()},seachFn:function(){this.getData.currentPage=1,this.getList(),console.log("确定")},getList:function(){var e=this,n=t.getStorageSync("user");console.log(n,"---"),a.default.getByPagesApp(this.getData).then((function(t){2e4===t.code&&(1===e.getData.currentPage?e.listData=t.data.list:e.listData=e.listData.concat(t.data.list))}))},jump:function(e,n){switch(e){case-1:t.navigateBack();break;case 0:t.navigateTo({url:"../company/company?jsData="+JSON.stringify(this.companyName)});break;case 1:console.log(n,JSON.stringify(n)),t.navigateTo({url:"../driverDetails/driverDetails?jsData="+encodeURIComponent(JSON.stringify(n))});break;case 2:t.getStorageSync("user").authList.includes("driver:info:add")?t.navigateTo({url:"../addDiver/addDiver"}):t.showToast({title:"暂无权限请联系管理员",icon:"none"});break}},seleFn:function(t){-1!=t.index?this.getData.params.enableMark=t.index:this.getData.params.enableMark="",this.getData.currentPage=1,this.listData=[],this.getList()},onClick:function(){console.log("点击图标事件")}}};e.default=o}).call(this,n("543d")["default"])},"55ff":function(t,e,n){"use strict";n.r(e);var a=n("525e"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"939f":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniNavBar:function(){return n.e("uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar").then(n.bind(null,"eaea"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"3b32"))},uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"2572"))}},i=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e,n,a){var i=arguments[arguments.length-1].currentTarget.dataset,o=i.eventParams||i["event-params"];n=o.item,a=o.index;t.seleFn(n),t.seleindex=a})},o=[]},"9f30":function(t,e,n){},c4f1:function(t,e,n){"use strict";n.r(e);var a=n("939f"),i=n("55ff");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("d597");var u,s=n("f0c5"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],u);e["default"]=r.exports},d597:function(t,e,n){"use strict";var a=n("9f30"),i=n.n(a);i.a},fd95:function(t,e,n){"use strict";(function(t){n("6e43");a(n("66fd"));var e=a(n("c4f1"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])}},[["fd95","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,10 @@
{
"navigationStyle": "custom",
"navigationBarTitleText": "司机信息",
"enablePullDownRefresh": true,
"usingComponents": {
"uni-nav-bar": "/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar",
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
"uni-easyinput": "/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput"
}
}

View File

@@ -0,0 +1 @@
<view style="height:100vh;display:flex;flex-direction:column;"><view class="header" style=";"><view class="top" style="{{'height:'+(styles.top+'px')+';'}}"></view><uni-nav-bar vue-id="814d91f2-1" color="white" backgroundColor="rgba(0,0,0,0)" left-icon="back" title="司机信息" data-event-opts="{{[['^clickLeft',[['jump',[-1]]]]]}}" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar><view class="header_seach"><view data-event-opts="{{[['tap',[['jump',[0]]]]]}}" class="header_seach_title" bindtap="__e"><view style="margin-right:11rpx;">{{companyName==''?'所有':companyName}}</view><uni-icons vue-id="814d91f2-2" type="forward" size="16" color="white" bind:__l="__l"></uni-icons></view><view class="header_seach_seach"><uni-easyinput style="height:100%;flex:1;background-color:#FFFFFF;border-radius:12rpx;" vue-id="814d91f2-3" prefixIcon="search" placeholder-style="color:#bbbbbb;font-weight: 100;" placeholder="司机姓名、司机ID、电话号码" value="{{getData.params.id}}" data-event-opts="{{[['^confirm',[['seachFn']]],['^iconClick',[['onClick']]],['^input',[['__set_model',['$0','id','$event',[]],['getData.params']]]]]}}" bind:confirm="__e" bind:iconClick="__e" bind:input="__e" bind:__l="__l"></uni-easyinput><button data-event-opts="{{[['tap',[['jump',[2]]]]]}}" class="header_seach_butten" bindtap="__e"><uni-icons vue-id="814d91f2-4" type="personadd" size="20" color="#bbbbbb" bind:__l="__l"></uni-icons><view>新增</view></button></view><view class="Navigation"><block wx:for="{{navigation}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({item,index})}}" class="{{[seleindex==index?'navigation_seleitem':'navigation_item']}}" bindtap="__e">{{''+item.text+''}}</view></block></view></view></view><view style="flex:1;overflow:hidden;"><scroll-view style="height:100%;" scroll-y="true" data-event-opts="{{[['scrolltolower',[['scrolltolower',['$event']]]]]}}" bindscrolltolower="__e"><block wx:for="{{listData}}" wx:for-item="item" wx:for-index="index"><view class="form_body"><view data-event-opts="{{[['tap',[['jump',[1,'$0'],[[['listData','',index]]]]]]]}}" class="form_body_item" bindtap="__e"><view class="form_body_item_body"><view class="form-item_body_left"><image style="width:100rpx;height:100rpx;border-radius:50%;" src="{{item.headPhoto?item.headPhoto:'../../static/tx.png'}}"></image><view class="form_body_item_body_container"><view style="{{'color:'+(item.userName?'':'#999999')+';'}}">{{item.userName?item.userName:' 无设置'}}</view><view>{{''+(item.phone?item.phone:'无设置')+''}}</view><view class="form-item_body_left_bottom_text">{{item.companyName?item.companyName:'无直属公司'}}</view></view></view><view class="form-item_body_right"><view class="{{[item.enableMark==1?'typeyuan':'seletypeyuan']}}"></view>{{''+(item.enableMark==1?'启用':'禁用')+''}}</view></view><view class="form_body_item_footer"><view>{{item.userCode}}</view><view>{{item.createTime}}</view></view></view></view></block></scroll-view></view></view>

View File

@@ -0,0 +1 @@
.typeyuan{background-color:#17a00e;width:14rpx;height:14rpx;border-radius:50px;margin-right:6rpx}.seletypeyuan{background-color:red;width:14rpx;height:14rpx;border-radius:50px;margin-right:6rpx}.is-input-border{border:0!important}page{background-color:#f0f2ff}.form_body_item_footer{display:flex;color:#bbb;font-size:22rpx;justify-content:space-between;align-items:center;flex:1}.form-item_body_right{flex-grow:1;text-align:end;color:#999;font-size:24rpx;height:-webkit-max-content;height:max-content;display:flex;justify-content:flex-end;align-items:center}.form-item_body_left_bottom_text{font-size:24rpx;color:#999}.form-item_body_left{display:flex;align-items:center}.form_body_item_body_container{margin-left:24rpx;font-size:28rpx}.form_body_item_body{display:flex;border-bottom:1rpx solid #f0f0f0;padding-bottom:31rpx}.form_body_item{height:217rpx;background:#fff;box-shadow:0 3px 9px 0 rgba(88,88,88,.2);border-radius:12rpx;font-size:28rpx;padding:20rpx;display:flex;flex-direction:column;padding-bottom:0}.form_body{width:100vw;padding:0 10px;margin-top:40rpx;box-sizing:border-box}.navigation_seleitem{width:150rpx;height:59rpx;background:#f0f2ff;border-top-left-radius:11rpx;border-top-right-radius:11rpx;font-size:26rpx;color:#333;display:flex;justify-content:center;align-items:center;transition:all .3s;position:relative;bottom:-2px}.navigation_item{width:150rpx;height:59rpx;border-top-left-radius:11rpx;border-top-right-radius:11rpx;font-size:26rpx;color:#f0f2ff;display:flex;justify-content:center;align-items:center;transition:all .3s;bottom:-2px}.Navigation{display:flex;position:absolute;bottom:0;transition:all .5s}.header_seach_butten{font-size:24rpx!important;display:flex!important;align-items:center!important;margin:0!important;flex-shrink:1;margin-left:9rpx!important;background:#fff!important;justify-content:center}.uni-easyinput__content{height:80rpx}.uni-easyinput{height:80rpx}.header_seach_seach{display:flex;height:80rpx;margin-top:23rpx}.header_seach_title{display:flex;align-items:center}.header_seach{font-size:26rpx;padding:0 10px}.uni-navbar--border{border:0!important}.header{background-color:#007aff;color:#fff;min-height:403rpx;background-image:url(https://xoi-support.oss-cn-hangzhou.aliyuncs.com/%E6%98%9F%E6%B2%B9admin%E5%B0%8F%E7%A8%8B%E5%BA%8F/sjbj.png);background-size:100% 100%;position:relative}.uni-navbar__header-btns-right{padding-right:0!important;width:120rpx!important}.top{height:25px}