From efd62e7e5729cbd5c052837cf4c264fc7cef4ab6 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期四, 19 十月 2023 14:23:00 +0800 Subject: [PATCH] # --- static/image/emptyList.png | 0 pages/business/cstmr/csmtr.vue | 64 +++++++++++++++++++++++++++++++- pages.json | 17 +++----- pages/api/user/user.js | 0 main.js | 2 + pages/authority/authority.vue | 8 ++++ uni.scss | 1 7 files changed, 80 insertions(+), 12 deletions(-) diff --git a/main.js b/main.js index 9770a12..c8ea646 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,9 @@ 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' diff --git a/pages.json b/pages.json index 4c9cafe..e97a417 100644 --- a/pages.json +++ b/pages.json @@ -41,16 +41,7 @@ "style": { // "navigationStyle": "custom" "navigationBarTitleText": "鐢叉柟鍗曚綅", - "titleNView": { - "buttons": [ - { - "text":"娣诲姞", - "fontSize":"14px", - "float":"right", - "width": "44px" - } - ] - } + "navigationStyle": "custom" } }, { @@ -152,6 +143,12 @@ "style": { "navigationBarTitleText": "璧勬枡璇︽儏" } + }, + { + "path": "pages/authority/authority", + "style": { + "navigationBarTitleText": "璐﹀彿" + } } diff --git a/pages/api/user/user.js b/pages/api/user/user.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/pages/api/user/user.js diff --git a/pages/authority/authority.vue b/pages/authority/authority.vue new file mode 100644 index 0000000..02409e3 --- /dev/null +++ b/pages/authority/authority.vue @@ -0,0 +1,8 @@ +<template> +</template> + +<script> +</script> + +<style> +</style> \ No newline at end of file diff --git a/pages/business/cstmr/csmtr.vue b/pages/business/cstmr/csmtr.vue index e504094..ae7601e 100644 --- a/pages/business/cstmr/csmtr.vue +++ b/pages/business/cstmr/csmtr.vue @@ -1,5 +1,15 @@ <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="瀹㈡埛浠e彿/鍚嶇О" bgColor="#f4f4f4" @confirm="search" /> @@ -21,7 +31,9 @@ </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> @@ -39,7 +51,6 @@ contentrefresh: '鍔犺浇涓�', contentnomore: '娌℃湁鏇村' }, - } }, // 鏂板缓鎸夐挳浜嬩欢 @@ -61,7 +72,48 @@ 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 = [] @@ -158,6 +210,14 @@ </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; diff --git a/static/image/emptyList.png b/static/image/emptyList.png new file mode 100644 index 0000000..77bbb95 --- /dev/null +++ b/static/image/emptyList.png Binary files differ diff --git a/uni.scss b/uni.scss index a05adb4..020d382 100644 --- a/uni.scss +++ b/uni.scss @@ -12,6 +12,7 @@ * 濡傛灉浣犵殑椤圭洰鍚屾牱浣跨敤浜唖css棰勫鐞嗭紝浣犱篃鍙互鐩存帴鍦ㄤ綘鐨� scss 浠g爜涓娇鐢ㄥ涓嬪彉閲忥紝鍚屾椂鏃犻渶 import 杩欎釜鏂囦欢 */ +@import '@/uni_modules/uview-ui/theme.scss'; /* 棰滆壊鍙橀噺 */ /* 琛屼负鐩稿叧棰滆壊 */ -- Gitblit v1.9.1