| | |
| | | import App from './App' |
| | | import uView from '@/uni_modules/uview-ui' |
| | | |
| | | // #ifndef VUE3 |
| | | import Vue from 'vue' |
| | | Vue.use(uView) |
| | | Vue.config.productionTip = false |
| | | Vue.prototype.baseUrl = 'http://192.168.4.188:9528' |
| | | App.mpType = 'app' |
| | |
| | | "style": { |
| | | // "navigationStyle": "custom" |
| | | "navigationBarTitleText": "甲方单位", |
| | | "titleNView": { |
| | | "buttons": [ |
| | | { |
| | | "text":"添加", |
| | | "fontSize":"14px", |
| | | "float":"right", |
| | | "width": "44px" |
| | | } |
| | | ] |
| | | } |
| | | "navigationStyle": "custom" |
| | | } |
| | | }, |
| | | { |
| | |
| | | "style": { |
| | | "navigationBarTitleText": "资料详情" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/authority/authority", |
| | | "style": { |
| | | "navigationBarTitleText": "账号" |
| | | } |
| | | } |
| | | |
| | | |
New file |
| | |
| | | <template> |
| | | </template> |
| | | |
| | | <script> |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | |
| | | <template> |
| | | <view> |
| | | <uni-nav-bar left-icon="left" title="甲方单位" @clickLeft="back" @clickRight="scan"> |
| | | <block slot="right"> |
| | | <view class="city"> |
| | | <view> |
| | | <text class="uni-nav-bar-text">角色</text> |
| | | </view> |
| | | <uni-icons type="arrowdown" color="#333333" size="20" /> |
| | | </view> |
| | | </block> |
| | | </uni-nav-bar> |
| | | <!-- 搜索框 --> |
| | | <view class="search-bg"> |
| | | <uni-search-bar placeholder="客户代号/名称" bgColor="#f4f4f4" @confirm="search" /> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <uni-load-more :status="status" :icon-size="16" :content-text="contentText" /> |
| | | <!-- <uni-load-more :status="status" :icon-size="16" :content-text="contentText" /> --> |
| | | <u-empty v-if="true" icon="../../../static/image/emptyList.png" /> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | contentrefresh: '加载中', |
| | | contentnomore: '没有更多' |
| | | }, |
| | | |
| | | } |
| | | }, |
| | | // 新建按钮事件 |
| | |
| | | this.status = 'more'; |
| | | this.getCsmtr() |
| | | }, |
| | | mounted() { |
| | | // this.getUserTree() |
| | | // this.columns = [['aa','bb']] |
| | | }, |
| | | methods: { |
| | | open() { |
| | | this.show = true |
| | | console.log(this.columns); |
| | | }, |
| | | getUserTree() { |
| | | let _this = this |
| | | uni.request({ |
| | | url: 'http://127.0.0.1:9528/dept/user/tree/auth', |
| | | method: 'POST', |
| | | header: {'token' : uni.getStorageSync('token'),}, |
| | | }).then((res)=>{ |
| | | console.log(res); |
| | | }) |
| | | |
| | | |
| | | |
| | | // success(res) { |
| | | // res = res.data |
| | | // res.data[0].childern |
| | | // let sel1 = [] |
| | | // for (let k of res.data[0].children) { |
| | | // res.data[0].children |
| | | // sel1.push(k.title) |
| | | |
| | | // } |
| | | // // _this.columns[0] = sel1 |
| | | // } |
| | | }, |
| | | back() { |
| | | uni.navigateBack({ |
| | | }) |
| | | }, |
| | | scan() { |
| | | uni.navigateTo({ |
| | | url: '/pages/authority/authority' |
| | | }) |
| | | }, |
| | | getCsmtr1(e) { |
| | | let that = this |
| | | that.csmtrList = [] |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | .city { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-right: 4px; |
| | | } |
| | | .uni-nav-bar-text { |
| | | font-size: 12px; |
| | | } |
| | | .c-list { |
| | | width: 96%; |
| | | min-height: 100rpx; |
| | |
| | | * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 |
| | | */ |
| | | |
| | | @import '@/uni_modules/uview-ui/theme.scss'; |
| | | /* 颜色变量 */ |
| | | |
| | | /* 行为相关颜色 */ |