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 @@ + + + + + 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) }} - 使用 + 使用 + + + + + {{ curRow.competitionName }} + 签到二维码 + + 有效期限{{ curRow.playStartTime.substr(0, 16) + ' ~ ' + curRow.playEndTime.substr(0, 16) }} + {{ info.hrUserInfo.userName }} + {{ info.hrUserInfo.phone }} + {{ info.organizationInfoList[0].organizationName }} + + @@ -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 @@ 我要采购