From e4fe2631b2aa50d134cf24e3d5a372c68e0c3b0a Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Wed, 10 Jan 2024 14:02:37 +0800
Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E7=AD=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apis/modules/goods.js | 6 -
apis/modules/order.js | 15 ++
components/order/order.vue | 21 ++-
config/goods.js | 2 +-
other/addGoods/addGoods.vue | 6 +-
other/goods/goods.vue | 20 +--
other/procure/procure.vue | 196 ++++++++++++++++++++++++++
other/procureDetail/procureDetail.vue | 138 ++++++++++++++++++
other/vouchers/vouchers.vue | 88 +++++++++++-
pages.json | 18 ++-
pages/index/index.vue | 4 +-
pages/login/login.vue | 4 +-
pages/person/person.vue | 13 +-
pages/supplier/supplier.vue | 5 +-
14 files changed, 494 insertions(+), 42 deletions(-)
create mode 100644 apis/modules/order.js
create mode 100644 other/procure/procure.vue
create mode 100644 other/procureDetail/procureDetail.vue
diff --git a/apis/modules/goods.js b/apis/modules/goods.js
index db4a013..284b7bd 100644
--- a/apis/modules/goods.js
+++ b/apis/modules/goods.js
@@ -24,10 +24,4 @@ export const categoryInfo = (data) => {
}
export const list = (data) => {
return get('nakadai/prod/list', data)
-}
-export const confirm = (data) => {
- return get('nakadai/order/order/confirm', data)
-}
-export const orderSubmit = (data) => {
- return get('nakadai/order/order/submit', data)
}
\ No newline at end of file
diff --git a/apis/modules/order.js b/apis/modules/order.js
new file mode 100644
index 0000000..e363df9
--- /dev/null
+++ b/apis/modules/order.js
@@ -0,0 +1,15 @@
+import request from '@/apis/request.js'
+const { get, post } = request
+
+export const myOrder = (data) => {
+ return get('nakadai/myOrder/myOrder', data)
+}
+export const orderDetail = (data) => {
+ return get('nakadai/myOrder/orderDetail', data)
+}
+export const confirm = (data) => {
+ return get('nakadai/order/order/confirm', data)
+}
+export const orderSubmit = (data) => {
+ return get('nakadai/order/order/submit', data)
+}
\ No newline at end of file
diff --git a/components/order/order.vue b/components/order/order.vue
index adacb35..e76ae07 100644
--- a/components/order/order.vue
+++ b/components/order/order.vue
@@ -15,12 +15,12 @@
- {{ item.name }}
- ¥23.00
+ {{ item.prodName }}
+ ¥{{ item.price }}
- {{ item.name }}
- 库存12
+ {{ item.skuName }}
+ 库存{{ item.stocks }}
@@ -41,7 +41,7 @@
+
+
diff --git a/other/procureDetail/procureDetail.vue b/other/procureDetail/procureDetail.vue
new file mode 100644
index 0000000..4b30ac9
--- /dev/null
+++ b/other/procureDetail/procureDetail.vue
@@ -0,0 +1,138 @@
+
+
+
+ 编号134561321
+
+
+ 采购内容
+
+
+ 测试11
+ 测试11
+
+
+ 测试11
+ 测试11
+
+
+
+
+ 采购方信息
+
+
+ 采购内容
+ 测试11
+
+
+ 联系方式
+ 测试11
+
+
+ 采购类型
+ 测试11
+
+
+ 所属幼儿园
+ 测试11
+
+
+ 提交时间
+ 测试11
+
+
+ 幼儿园是否已认证/是否已实名
+ 测试11
+
+
+
+
+
+
+
+
+
diff --git a/other/vouchers/vouchers.vue b/other/vouchers/vouchers.vue
index 17be2c1..96c79da 100644
--- a/other/vouchers/vouchers.vue
+++ b/other/vouchers/vouchers.vue
@@ -12,19 +12,34 @@
{{ item.competitionName }}
有效期 {{ item.playEndTime.substr(0, 16) }}
- 使用
+ 使用
+
+
+
+
@@ -182,4 +215,51 @@
background-color: $uni-primary;
}
}
+.sign-popup {
+ position: relative;
+ width: 80vw;
+ padding: 20rpx 0;
+ text-align: center;
+ box-sizing: border-box;
+ background-color: #fff;
+ border-radius: 8px;
+ .close {
+ position: absolute;
+ top: 20rpx;
+ right: 20rpx;
+ }
+ .activity-name {
+ font-size: 36rpx;
+ color: $uni-primary;
+ }
+ .title {
+ padding: 20rpx 0;
+ margin: 20rpx 0;
+ font-size: 32rpx;
+ color: #fff;
+ background-color: $uni-primary;
+ }
+ .qrcode {
+ width: 200rpx;
+ height: 200rpx;
+ }
+ .date {
+ margin: 20rpx;
+ font-size: 24rpx;
+ color: #8c8c8c;
+ }
+ .userName {
+ font-size: 30rpx;
+ color: #333;
+ }
+ .phone {
+ margin: 20rpx;
+ font-size: 24rpx;
+ color: #6f6f6f;
+ }
+ .org-name {
+ font-size: 24rpx;
+ color: #333;
+ }
+}
diff --git a/pages.json b/pages.json
index 602d8f7..c87c504 100644
--- a/pages.json
+++ b/pages.json
@@ -81,7 +81,7 @@
"path" : "addGoods/addGoods",
"style" :
{
- "navigationBarTitleText" : "",
+ "navigationBarTitleText" : "商品",
"enablePullDownRefresh" : false
}
},
@@ -92,6 +92,22 @@
"navigationBarTitleText" : "电子券",
"enablePullDownRefresh" : true
}
+ },
+ {
+ "path" : "procure/procure",
+ "style" :
+ {
+ "navigationBarTitleText" : "采购咨询",
+ "enablePullDownRefresh" : true
+ }
+ },
+ {
+ "path" : "procureDetail/procureDetail",
+ "style" :
+ {
+ "navigationBarTitleText" : "采购咨询详情",
+ "enablePullDownRefresh" : false
+ }
}
]
},
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 92e33cb..2e5f1bb 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -122,8 +122,8 @@
}
},
onShow() {
- // uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNzAzNDk1ODY2LCJleHAiOjE3MDQzNTk4NjYsImFjY291bnRJZCI6IjQ5MzEifQ.A5tQewZlfVz3yiQCjPscWXvyXjOJmWzheG5b82siZl4')
- // uni.setStorageSync('openId', 'o3hKk686kGjgMygKdPTJd5KQQ7CA')
+ // uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNzA0Nzg1NDg5LCJleHAiOjE3MDU2NDk0ODksImFjY291bnRJZCI6IjQ5ODMiLCJzaG9wSWQiOjYsInBsYXRmb3JtSWQiOjV9.B0gXKl9gOEi9oSNZl8M_gGcqFXf9hAYbqtVHygDoYxM')
+ // uni.setStorageSync('openId', 'o3hKk60jbhAuLm4K3weIgQGFmv2g')
this.keyword = ''
this.curTab = ''
this.per = true
diff --git a/pages/login/login.vue b/pages/login/login.vue
index f828e4b..f850763 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -78,8 +78,8 @@
}
},
onShow() {
- // uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNzAzNDk1ODY2LCJleHAiOjE3MDQzNTk4NjYsImFjY291bnRJZCI6IjQ5MzEifQ.A5tQewZlfVz3yiQCjPscWXvyXjOJmWzheG5b82siZl4')
- // uni.setStorageSync('openId', 'o3hKk686kGjgMygKdPTJd5KQQ7CA')
+ // uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNzA0Nzg1NDg5LCJleHAiOjE3MDU2NDk0ODksImFjY291bnRJZCI6IjQ5ODMiLCJzaG9wSWQiOjYsInBsYXRmb3JtSWQiOjV9.B0gXKl9gOEi9oSNZl8M_gGcqFXf9hAYbqtVHygDoYxM')
+ // uni.setStorageSync('openId', 'o3hKk60jbhAuLm4K3weIgQGFmv2g')
// 先授权用户信息,再授权手机号
this.checkLogin()
},
diff --git a/pages/person/person.vue b/pages/person/person.vue
index a67c3bf..db074d4 100644
--- a/pages/person/person.vue
+++ b/pages/person/person.vue
@@ -133,7 +133,7 @@
我要采购
-
+
商机线索
@@ -206,10 +206,8 @@
// #endif
this.platformId = uni.getStorageSync('platformId')
this.per = true
+ this.enterDisabled = 0
this.getInfo()
- if (this.platformId !== 7) {
- this.getTeams()
- }
this.getEnterInfo()
},
methods: {
@@ -240,7 +238,7 @@
// userAccountList里有两个身份,则显示企业的名字,否则显示个人姓名
const accountList = result.userAccountList
if (accountList && accountList.length) {
- const enter = accountList.find(e => e.platformId !== '7' && e.isEnable)
+ const enter = accountList.find(e => e.platformId !== '7' && e.isEnable) // 启用了的企业身份
this.curAccount = enter || accountList[0]
// 当前是个人身份,但是查询到了还有启用了的企业身份,则自动切换到企业身份
if (enter) {
@@ -249,7 +247,7 @@
this.platformId = platformId
} else {
// 如果没有企业的身份,则重置身份为个人
- this.enterDisabled = 1 // 有被禁用的企业身份,点击企业认证的时候不能认证
+ if (accountList.find(e => e.platformId !== '7' && !e.isEnable)) this.enterDisabled = 1 // 有被禁用的企业身份,点击企业认证的时候不能认证
uni.setStorageSync('platformId', 7)
this.platformId = 7
}
@@ -270,9 +268,12 @@
uni.clearStorageSync()
this.$util.to('/pages/login/login')
}, 1500)
+ return false
}
}
}
+
+ this.platformId !== 7 && this.getTeams()
},
// 企业认证信息
async getEnterInfo() {
diff --git a/pages/supplier/supplier.vue b/pages/supplier/supplier.vue
index a560723..27c15ab 100644
--- a/pages/supplier/supplier.vue
+++ b/pages/supplier/supplier.vue
@@ -11,7 +11,7 @@
-
+
{{ item.companyName }}
@@ -48,7 +48,6 @@