From 18740bdd1eb435972b63934db87daed92fcb94e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com>
Date: Thu, 22 Jul 2021 10:30:01 +0800
Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E6=88=90]=20=E4=BE=9B=E5=BA=94?=
=?UTF-8?q?=E5=95=86=E7=99=BB=E5=BD=95=20[=E5=AE=8C=E6=88=90]=20=E4=BE=9B?=
=?UTF-8?q?=E5=BA=94=E5=95=86=E9=A6=96=E9=A1=B5=E6=8E=A5=E5=8F=A3=E5=AF=B9?=
=?UTF-8?q?=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 71 ------------------------------------
common/api.js | 10 ++++-
common/http.interceptor.js | 9 ++++-
common/http.js | 20 ++++++----
common/mixin.js | 55 ++++++++++++++++++++++++----
manifest.json | 6 +++
pages.json | 20 ++++++----
pages/empty/index.vue | 28 ++++++++++++++
pages/supply/index/index.vue | 66 +++++++++++++++++++--------------
pages/supply/login/index.vue | 37 +++++++++++++++----
10 files changed, 189 insertions(+), 133 deletions(-)
create mode 100644 pages/empty/index.vue
diff --git a/App.vue b/App.vue
index a09ff03..3d711a3 100644
--- a/App.vue
+++ b/App.vue
@@ -1,7 +1,6 @@
+
+
diff --git a/pages/supply/index/index.vue b/pages/supply/index/index.vue
index 7c8bf08..a1ef904 100644
--- a/pages/supply/index/index.vue
+++ b/pages/supply/index/index.vue
@@ -1,40 +1,25 @@
-
- 广西美味餐厅供应链有限公司
+
+ {{ supplier.subject_name }}
-
+
-
- 发起报价
-
-
-
-
-
-
-
-
- 报价订单
-
-
-
-
-
-
-
-
- 供货订单
+
+ {{ item.name }}
+
-
+
@@ -43,14 +28,36 @@
export default {
data(){
return {
-
+ supplier: {},
+ block_list: []
}
},
onLoad(){
-
+ this.getData();
},
methods: {
-
+ // 退出登录
+ loginOut(){
+ uni.showModal({
+ title: '温馨提示',
+ content: '确定退出登录吗?',
+ confirmColor: '#1833F2',
+ success: result => {
+ if(result.confirm){
+ uni.removeStorageSync('supply_token');
+ this.$redirectToLogin('您已退出登录, 即将跳转...');
+ }
+ }
+ })
+ },
+ // 获取数据
+ getData(){
+ this.$http(this.API.API_SUPPLIER_INDEX).then(res => {
+ console.log("data", res);
+ this.supplier = res.data.supplier;
+ this.block_list = res.data.block;
+ });
+ }
}
}
@@ -101,8 +108,11 @@
}
.exit{
padding: 0 32rpx;
- bottom: 50rpx;
+ // bottom: 50rpx;
+ padding-top: 10rpx;
+ padding-bottom: 50rpx;
box-sizing: border-box;
+ background-color: #F6F6F6;
button{
background-color: #f0f0f0;
color: #777777;
diff --git a/pages/supply/login/index.vue b/pages/supply/login/index.vue
index fbce844..0f60974 100644
--- a/pages/supply/login/index.vue
+++ b/pages/supply/login/index.vue
@@ -8,13 +8,13 @@
登录账号
-
+
登录密码
-
+
@@ -26,18 +26,21 @@