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 @@ 我要采购