From afc7c8bdcd84357c6af2d0e36217a40e4fe229bf Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 13 十二月 2022 09:38:51 +0800
Subject: [PATCH] #
---
pages/login/login.vue | 2
pages/business/cstmr/csmtr.vue | 45 +++++++++++++++
pages/user/user.vue | 29 +++++++--
pages.json | 6 ++
pages/business/business.vue | 50 +++++-----------
5 files changed, 91 insertions(+), 41 deletions(-)
diff --git a/pages.json b/pages.json
index e9e2cf5..6967347 100644
--- a/pages.json
+++ b/pages.json
@@ -29,6 +29,12 @@
"style": {
"navigationBarTitleText": "涓汉涓績"
}
+ },
+ {
+ "path": "pages/business/cstmr/csmtr",
+ "style": {
+ "navigationBarTitleText": "鐢叉柟鍗曚綅"
+ }
}
diff --git a/pages/business/business.vue b/pages/business/business.vue
index 4e1dc08..be108a5 100644
--- a/pages/business/business.vue
+++ b/pages/business/business.vue
@@ -5,37 +5,7 @@
<y-title title="鍏徃璧勬枡搴�" />
</view>
<view class="grid-container">
- <view class="item">
- <view class="img">
- <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image>
- </view>
- <view>鐢叉柟鍗曚綅</view>
- </view>
- <view class="item">
- <view class="img">
- <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image>
- </view>
- <view>鐢叉柟鍗曚綅</view>
- </view>
- <view class="item">
- <view class="img">
- <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image>
- </view>
- <view>鐢叉柟鍗曚綅</view>
- </view>
- <view class="item">
- <view class="img">
- <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image>
- </view>
- <view>鐢叉柟鍗曚綅</view>
- </view>
- <view class="item">
- <view class="img">
- <image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image>
- </view>
- <view>鐢叉柟鍗曚綅</view>
- </view>
- <view class="item">
+ <view class="item" @click="select()">
<view class="img">
<image src="../../static/image/jiafangdanwei.png" mode="aspectFit"></image>
</view>
@@ -43,13 +13,27 @@
</view>
</view>
</view>
- <view class="item-sort">
+ <!-- <view class="item-sort">
<y-title title="閿�鍞鐞�"></y-title>
- </view>
+ </view> -->
</view>
</template>
<script>
+ export default {
+ data() {
+ return {
+
+ }
+ },
+ methods: {
+ select() {
+ uni.navigateTo({
+ url:'/pages/business/cstmr/csmtr'
+ })
+ }
+ }
+ }
</script>
diff --git a/pages/business/cstmr/csmtr.vue b/pages/business/cstmr/csmtr.vue
new file mode 100644
index 0000000..965389f
--- /dev/null
+++ b/pages/business/cstmr/csmtr.vue
@@ -0,0 +1,45 @@
+<template>
+ <view>
+ <!-- 鎼滅储妗� -->
+ <view></view>
+ <!-- 瀹㈡埛鍒楄〃 -->
+ <view class="c-list" @click="getCsmtr()">
+
+ </view>
+ </view>
+</template>
+
+<script>
+ export default {
+ data() {
+ return {
+ url: '127.0.0.1:9528'
+ }
+ },
+ methods: {
+ getCsmtr() {
+ let that = this
+ console.log(that.url);
+ uni.request({
+ url:'http://127.0.0.1:9528' + '/cstmr/page/auth',
+ header: {'token' : uni.getStorageSync('token'),
+ "content-type": "application/json"},
+ data: {curr:1,limit:16},
+ method:'POST',
+ success(result) {
+ console.log(result);
+ }
+ })
+ }
+ }
+ }
+</script>
+
+<style>
+ .c-list {
+ width: 96%;
+ min-height: 100rpx;
+ background-color: #acacac;
+ margin: 20rpx 2% 0 2%;
+ }
+</style>
\ No newline at end of file
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 722e0a9..bd3159a 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -65,7 +65,7 @@
onLogin() {
let that = this
uni.request({
- url: 'http://192.168.50.101:9528/login.action',
+ url: 'http://127.0.0.1:9528/login.action',
fail(result) {
uni.showToast({title: '璇锋眰澶辫触'})
},
diff --git a/pages/user/user.vue b/pages/user/user.vue
index 05c238d..97f4c69 100644
--- a/pages/user/user.vue
+++ b/pages/user/user.vue
@@ -3,17 +3,18 @@
<view class="user">
<!-- 澶村儚 -->
<view class="user-avatar">
- <img src="../../static/image/澶村儚.jpg" alt="">
+ <img src="" alt="">
<!-- <image src="" mode="aspectFit"></image> -->
</view>
<!-- 淇℃伅 -->
<view class="user-info">
- <view class="user-name">闄堥箯
- </view>
-
+ <view class="user-name">闄堥箯</view>
+ <view class="user-company">涓壃绔嬪簱鎶�鏈湁闄愬叕鍙�</view>
</view>
<!-- 鏇村 -->
- <view></view>
+ <view class="user-icons">
+ <uni-icons type="right"></uni-icons>
+ </view>
</view>
</view>
</template>
@@ -45,8 +46,22 @@
height: 200rpx;
display: grid;
grid-template-rows: 2fr 2fr;
- align-items: end;
-
/* background-color: aqua; */
}
+ .user-name {
+ height: 100rpx;
+ width: 100%;
+ display: flex;
+ align-items: flex-end;
+ font-size: 30rpx;
+ font-weight: 700;
+ }
+ .user-company {
+ height: 100rpx;
+ }
+ .user-icons {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
</style>
\ No newline at end of file
--
Gitblit v1.9.1