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 @@