From a54f8c3f0a55c4cedad887e878edf7fad108f59e Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Fri, 26 Jan 2024 09:28:51 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/packageIntegral/orderList.js | 17 + packageIntegral/orderDetails/index.vue | 322 ++++++++++++++ packageIntegral/orderList/index.vue | 279 ++++++++++++ packageIntegral/productList/index.vue | 323 ++++++++++++++ packageIntegral/takeGoods/index.vue | 298 +++++++++++++ pages.json | 16 + pages/home/home.vue | 18 + pages/index/index.vue | 118 ++--- uni_modules/xt-verify-code/changelog.md | 46 ++ .../components/xt-verify-code/config.js | 51 +++ .../components/xt-verify-code/util.js | 35 ++ .../xt-verify-code/xt-verify-code.vue | 408 ++++++++++++++++++ uni_modules/xt-verify-code/package.json | 79 ++++ uni_modules/xt-verify-code/readme.md | 20 + 14 files changed, 1971 insertions(+), 59 deletions(-) create mode 100644 api/packageIntegral/orderList.js create mode 100644 packageIntegral/orderDetails/index.vue create mode 100644 packageIntegral/orderList/index.vue create mode 100644 packageIntegral/productList/index.vue create mode 100644 packageIntegral/takeGoods/index.vue create mode 100644 uni_modules/xt-verify-code/changelog.md create mode 100644 uni_modules/xt-verify-code/components/xt-verify-code/config.js create mode 100644 uni_modules/xt-verify-code/components/xt-verify-code/util.js create mode 100644 uni_modules/xt-verify-code/components/xt-verify-code/xt-verify-code.vue create mode 100644 uni_modules/xt-verify-code/package.json create mode 100644 uni_modules/xt-verify-code/readme.md diff --git a/api/packageIntegral/orderList.js b/api/packageIntegral/orderList.js new file mode 100644 index 0000000..078d334 --- /dev/null +++ b/api/packageIntegral/orderList.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' + +export default{ + getByPageCloudMini(data) { + return request({ + url: `/oil-mall/mallOrderInfo/getByPageCloudMini`, + method: 'post', + data + }) + }, + get(id) { + return request({ + url: `/oil-mall/mallOrderInfo/get/${id}`, + method: 'get', + }) + } +} \ No newline at end of file diff --git a/packageIntegral/orderDetails/index.vue b/packageIntegral/orderDetails/index.vue new file mode 100644 index 0000000..e4559a7 --- /dev/null +++ b/packageIntegral/orderDetails/index.vue @@ -0,0 +1,322 @@ + + + + + diff --git a/packageIntegral/orderList/index.vue b/packageIntegral/orderList/index.vue new file mode 100644 index 0000000..b209ace --- /dev/null +++ b/packageIntegral/orderList/index.vue @@ -0,0 +1,279 @@ + + + + + diff --git a/packageIntegral/productList/index.vue b/packageIntegral/productList/index.vue new file mode 100644 index 0000000..c27b988 --- /dev/null +++ b/packageIntegral/productList/index.vue @@ -0,0 +1,323 @@ + + + + + diff --git a/packageIntegral/takeGoods/index.vue b/packageIntegral/takeGoods/index.vue new file mode 100644 index 0000000..871f00d --- /dev/null +++ b/packageIntegral/takeGoods/index.vue @@ -0,0 +1,298 @@ + + + + + diff --git a/pages.json b/pages.json index cd74b1b..311b280 100644 --- a/pages.json +++ b/pages.json @@ -87,6 +87,22 @@ } ], "subPackages": [{ + "root": "packageIntegral", + "pages": [{ + "path": "takeGoods/index", + "style": {} + },{ + "path": "orderDetails/index", + "style": {} + },{ + "path": "orderList/index", + "style": {} + },{ + "path": "productList/index", + "style": {} + }] + }, + { "root": "packageOrders", "pages": [{ "path": "pages/orderList/OrderDetail/OrderDetail", diff --git a/pages/home/home.vue b/pages/home/home.vue index 9147611..6d29304 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -421,6 +421,24 @@ obj.color = 'blue', obj.badge = 0 obj.name = list.roleName + } else if (list.roleName == '订单提货') { + obj.cuIcon = 'punch', + obj.path = '/packageIntegral/takeGoods/index', + obj.color = 'blue', + obj.badge = 0 + obj.name = list.roleName + } else if (list.roleName == '商城订单') { + obj.cuIcon = 'punch', + obj.path = '/packageIntegral/orderList/index', + obj.color = 'blue', + obj.badge = 0 + obj.name = list.roleName + }else if (list.roleName == '商品列表') { + obj.cuIcon = 'punch', + obj.path = '/packageIntegral/productList/index', + obj.color = 'blue', + obj.badge = 0 + obj.name = list.roleName } return obj }, diff --git a/pages/index/index.vue b/pages/index/index.vue index a0aca94..72499a2 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -173,65 +173,65 @@ }) }, - Splicing(list) { - let obj = { - cuIcon: '', - path: '', - color: '', - badge: 0, - name: '' - } - if (list.roleName == '扫码加油') { - obj.cuIcon = 'scan', - obj.path = '/pages/station-info/scan-camera/scan-camera', - obj.color = 'olive', - obj.badge = 0, - obj.name = list.roleName - } else if (list.roleName == '经营分析') { - obj.cuIcon = 'new', - obj.path = '', - obj.color = 'orange', - obj.badge = 0, - obj.name = list.roleName - } else if (list.roleName == '加油订单') { - obj.cuIcon = 'form', - obj.path = '/packageOrders/pages/orderList/orderList', - obj.color = 'yellow', - obj.badge = 0, - obj.name = list.roleName - } else if (list.roleName == '油站二维码') { - obj.cuIcon = 'qr_code', - obj.path = '/packageQr/pages/qrsite/QrCode_xy', - obj.color = 'cyan', - obj.badge = 0, - obj.name = list.roleName - } else if (list.roleName == '员工管理') { - obj.cuIcon = 'expressman', - obj.path = '/packageStaff/pages/staff/List/List', - obj.color = 'mauve', - obj.badge = 0, - obj.name = list.roleName - } else if (list.roleName == '油站信息') { - obj.cuIcon = 'punch', - obj.path = '/packageQr/pages/partnership/partnership', - obj.color = 'blue', - obj.badge = 0, - obj.name = list.roleName - } else if (list.roleName == '交易统计') { - obj.cuIcon = 'punch', - obj.path = '/pages/TransactionStatistics/TransactionStatistics', - obj.color = 'blue', - obj.badge = 0, - obj.name = list.roleName - } else if (list.roleName == '星油云站超级管理员') { - obj.cuIcon = 'punch', - obj.path = ' ', - obj.color = 'blue', - obj.badge = 0, - obj.name = list.roleName - } - return obj - }, + // Splicing(list) { + // let obj = { + // cuIcon: '', + // path: '', + // color: '', + // badge: 0, + // name: '' + // } + // if (list.roleName == '扫码加油') { + // obj.cuIcon = 'scan', + // obj.path = '/pages/station-info/scan-camera/scan-camera', + // obj.color = 'olive', + // obj.badge = 0, + // obj.name = list.roleName + // } else if (list.roleName == '经营分析') { + // obj.cuIcon = 'new', + // obj.path = '', + // obj.color = 'orange', + // obj.badge = 0, + // obj.name = list.roleName + // } else if (list.roleName == '加油订单') { + // obj.cuIcon = 'form', + // obj.path = '/packageOrders/pages/orderList/orderList', + // obj.color = 'yellow', + // obj.badge = 0, + // obj.name = list.roleName + // } else if (list.roleName == '油站二维码') { + // obj.cuIcon = 'qr_code', + // obj.path = '/packageQr/pages/qrsite/QrCode_xy', + // obj.color = 'cyan', + // obj.badge = 0, + // obj.name = list.roleName + // } else if (list.roleName == '员工管理') { + // obj.cuIcon = 'expressman', + // obj.path = '/packageStaff/pages/staff/List/List', + // obj.color = 'mauve', + // obj.badge = 0, + // obj.name = list.roleName + // } else if (list.roleName == '油站信息') { + // obj.cuIcon = 'punch', + // obj.path = '/packageQr/pages/partnership/partnership', + // obj.color = 'blue', + // obj.badge = 0, + // obj.name = list.roleName + // } else if (list.roleName == '交易统计') { + // obj.cuIcon = 'punch', + // obj.path = '/pages/TransactionStatistics/TransactionStatistics', + // obj.color = 'blue', + // obj.badge = 0, + // obj.name = list.roleName + // } else if (list.roleName == '星油云站超级管理员') { + // obj.cuIcon = 'punch', + // obj.path = ' ', + // obj.color = 'blue', + // obj.badge = 0, + // obj.name = list.roleName + // } + // return obj + // }, // getSiteInfo() { // //获取油站基本资料 // oliSiteApi.getSiteDetail(this.channelId) diff --git a/uni_modules/xt-verify-code/changelog.md b/uni_modules/xt-verify-code/changelog.md new file mode 100644 index 0000000..99a0317 --- /dev/null +++ b/uni_modules/xt-verify-code/changelog.md @@ -0,0 +1,46 @@ +## 1.3.1(2023-06-08) +- 修改验证码过小 出现两个光标的问题 +## 1.3.0(2023-05-20) +- 增加自定义输入文字的颜色 +## 1.2.6(2023-05-17) +- 光标增加层级 +## 1.2.5(2023-05-14) +- 处理多次触犯confirm 问题 +## 1.2.4(2023-05-07) +- 兼容vue3 h5打包后运行找到createSelectorQuery 函数的问题 +## 1.2.3(2023-04-25) +- 双向绑定v-model 写法兼容性 +## 1.2.2(2023-03-31) +- 抽离公共代码,部分优化 +## 1.2.1(2023-03-19) +- 处理vue2情况下,出现引入vue3api bug +## 1.2.0(2023-03-19) +- 增加vue3 环境 +## 1.1.6(2023-01-01) +- scss样式修改成css +- size 去除 数量限制,限制只能输入正整数 +## 1.1.5(2022-12-08) +- 修复支付宝小程序,因input组件遮蔽的问题。显示样式不一致问题 +## 1.1.4(2022-12-02) +- 修复密码形式ios手机失去焦点后再聚焦,不能删除的问题 +## 1.1.3(2022-12-02) +- 撤销对ios手机的特殊处理 +## 1.1.2(2022-11-13) +- 处理ios问题,添加ios机型判断 +## 1.1.1(2022-10-11) +- 优化对ios的input组件bug的处理 +## 1.1.0(2022-10-11) +- 修复ios环境下input组件,失去焦点后再次输入会自动清空bug +## 1.0.4(2021-12-27) +## 修改文档 +## 1.0.3(2021-10-18) +修改说明文档 +## 1.0.2(2021-10-18) +修改size 传入值,可以传入1~6 的值 + +## 1.0.1(2021-09-02) +- type 属性参数修改 box、middle、bottom 三种 +- 新增middle模式 +## 1.0.0(2021-08-31) +- 验证码输入 +- 提供两种显示模式 diff --git a/uni_modules/xt-verify-code/components/xt-verify-code/config.js b/uni_modules/xt-verify-code/components/xt-verify-code/config.js new file mode 100644 index 0000000..fbd5e1f --- /dev/null +++ b/uni_modules/xt-verify-code/components/xt-verify-code/config.js @@ -0,0 +1,51 @@ +export const propsMap = { + // #ifdef VUE2 + value: { + type: String, + default: () => '' + }, + // #endif + + // #ifdef VUE3 + modelValue: { + type: String, + default: () => '' + }, + // #endif + type: { + type: String, + default: () => 'box' + }, + inputType: { + type: String, + default: () => 'number' + }, + size: { + type: Number, + default: () => 6 + }, + isFocus: { + type: Boolean, + default: () => true + }, + isPassword: { + type: Boolean, + default: () => false + }, + cursorColor: { + type: String, + default: () => '#cccccc' + }, + boxNormalColor: { + type: String, + default: () => '#cccccc' + }, + boxActiveColor: { + type: String, + default: () => '#000000' + }, + color: { + type: String, + default: () => '#333333' + } +} \ No newline at end of file diff --git a/uni_modules/xt-verify-code/components/xt-verify-code/util.js b/uni_modules/xt-verify-code/components/xt-verify-code/util.js new file mode 100644 index 0000000..e73d1ad --- /dev/null +++ b/uni_modules/xt-verify-code/components/xt-verify-code/util.js @@ -0,0 +1,35 @@ +/** + * @description 获取元素节点 - 大小等信息 + * @param {string} elm - 节点的id、class 相当于 document.querySelect的参数 -eg: #id + * @param {string} type = [single|array] - 单个元素获取多个元素 默认是单个元素 + * @param {Function} callback - 回调函数 + * @param {object} that - 上下文环境 vue2:this ,vue3: getCurrentInstance(); + */ +export const getElementRect = (that) => (elm, type = 'single', callback) => { + + // #ifndef H5 + uni + .createSelectorQuery() + .in(that)[type === 'array' ? 'selectAll' : 'select'](elm) + .boundingClientRect() + .exec(data => { + callback(data[0]); + }); + // #endif + + // #ifdef H5 + let elmArr = []; + const result = []; + if (type === 'array') { + elmArr = document.querySelectorAll(elm); + } else { + elmArr.push(document.querySelector(elm)); + } + + for (let elm of elmArr) { + result.push(elm.getBoundingClientRect()); + } + console.log('result', result) + callback(type === 'array' ? result : result[0]); + // #endif +} \ No newline at end of file diff --git a/uni_modules/xt-verify-code/components/xt-verify-code/xt-verify-code.vue b/uni_modules/xt-verify-code/components/xt-verify-code/xt-verify-code.vue new file mode 100644 index 0000000..7559358 --- /dev/null +++ b/uni_modules/xt-verify-code/components/xt-verify-code/xt-verify-code.vue @@ -0,0 +1,408 @@ + + + + + + + + + + + diff --git a/uni_modules/xt-verify-code/package.json b/uni_modules/xt-verify-code/package.json new file mode 100644 index 0000000..856a562 --- /dev/null +++ b/uni_modules/xt-verify-code/package.json @@ -0,0 +1,79 @@ +{ + "id": "xt-verify-code", + "displayName": "xt-verify-code验证码输入", + "version": "1.3.1", + "description": "xt-verify-code验证码输入组件,提供三种显示模式", + "keywords": [ + "xt-verify-code", + "verify", + "验证码" + ], + "repository": "https://github.com/xiaodaweb/xt-ui/tree/main/uni_modules/xt-verify-code", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "1010161292" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "y" + }, + "App": { + "app-vue": "y", + "app-nvue": "u" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "y", + "联盟": "y" + } + } + } + } +} diff --git a/uni_modules/xt-verify-code/readme.md b/uni_modules/xt-verify-code/readme.md new file mode 100644 index 0000000..f347b56 --- /dev/null +++ b/uni_modules/xt-verify-code/readme.md @@ -0,0 +1,20 @@ +# 验证码输入框 +## 使用方法 +```vue + +``` + +## 参数 +|属性 |类型 |说明 |默认值 | +|-- |-- |-- |-- | +|value(v-model) |string |值(可双向绑定) |'' | +|type |string |验证输入框类型可选值: box、middle、bottom |box | +|inputType |string |输入类型 可选值:text、number |number | +|size |number |验证码框数量 |6 | +|isFocus |boolean|是否一开始聚焦 |true | +|isPassword |boolean|是否使用密码方式显示 |false | +|cursorColor |string |光标颜色 |#cccccc| +|boxNormalColor |string |显示框未选中的颜色 |#cccccc| +|boxActiveColor |string |显示框选中的颜色如果type='middle' 则是线的默认样式 |#000000| +|color |string |输入文字的颜色 |#333333| +|@confirm |event |输入完成的回调事件 {(code)=>{}} | | \ No newline at end of file From 72472034f95dd124964f3ba313b82290128733de Mon Sep 17 00:00:00 2001 From: zhangyouji Date: Fri, 26 Jan 2024 17:04:25 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageIntegral/productList/index.vue | 178 +++++++++++++++++++++----- packageIntegral/takeGoods/index.vue | 3 +- 2 files changed, 145 insertions(+), 36 deletions(-) diff --git a/packageIntegral/productList/index.vue b/packageIntegral/productList/index.vue index c27b988..c598dcb 100644 --- a/packageIntegral/productList/index.vue +++ b/packageIntegral/productList/index.vue @@ -16,16 +16,22 @@ - - 用户手机:{{item.customerPhone}}{{statusEnum[item.orderStatus].value}} + + + 已上架 - + {{item.productName}} - 规格:1 + 规格:默认 ¥{{item.marketPrice}} X{{item.orderNum}} - 共{{item.orderNum}}件商品已支付积分:{{item.payIntegral}} + 库存:{{item.orderNum}} + + {{statusEnum[1].value}} + + 删除 + 编辑 + 上架 @@ -34,6 +40,27 @@ 还没有订单哦~ + + + + 是否删除该商品? + + 取消 + 确认 + + + + + + + 是否上架/下架该商品? + + 取消 + 确认 + + + + @@ -59,7 +86,7 @@ customerphone: '' }, }, - dataList: [{},{}], + dataList: [{},{},{}], optionsList: [{ text: '全部', count: 0, @@ -77,22 +104,30 @@ count: 0, value: '' }], - statusEnum: { - '-1': { - color: 'red', - value: "已取消" - }, + identifying:{ 0: { - color: 'blue', - value: "订单新建" + background: '#F83D3D', + opacity: 1, + value: "已上架" }, 1: { - color: 'orange', - value: "待核销" + background: '#F83D3D', + opacity: 0.5, + value: "待上架" + } + }, + statusEnum: { + '-1': { + color: '#F83D3D', + value: "已驳回" + }, + 1: { + color: '#8D38FC', + value: "待审核" }, 2: { - color: 'blue', - value: "已核销" + color: '#FCB438', + value: "已审核" }, } } @@ -146,7 +181,10 @@ this.paramter.currentPage += 1 this.getByPageCloudMini() }, - determine() { + orderDelete(){ + this.$refs.delete.open('center') + }, + upDownFrame() { this.$refs.popup.open('center') }, confirm() { @@ -223,17 +261,22 @@ } .header { - padding: 26rpx 23rpx 0; - height: 80rpx; + // padding: 26rpx 23rpx 0; + height: 60rpx; // line-height: 83rpx; width: 100%; font-size: 30rpx; color: #666; - border-bottom: 1rpx solid #D7D7D7; + border-top: 1rpx solid #D7D7D7; - >text { - float: right; - // color: #F83D3D; + .identifying{ + width: 120rpx; + height: 60rpx; + line-height: 60rpx; + // background-color: #F83D3D; + color: #FFF; + text-align: center; + border-bottom-right-radius: 30rpx; } } @@ -271,16 +314,26 @@ &:nth-of-type(4) { margin-top: 11rpx; - font-size: 26rpx; - color: #333; + font-size: 28rpx; + color: #F83D3D; } } } + .examine{ + width: 120rpx; + height: 45rpx; + color: #FFF; + text-align: center; + line-height: 45rpx; + position: absolute; + right: 50rpx; + top: 180rpx; + } >.footer { position: relative; - margin-top: 40rpx; - line-height: 78rpx; + height: 58rpx; + line-height: 58rpx; padding: 0 34rpx 40rpx; font-size: 32rpx; color: #000; @@ -289,16 +342,71 @@ .button { position: absolute; top: 0; - right: 40rpx; - width: 198rpx; - height: 78rpx; - line-height: 78rpx; + width: 128rpx; + height: 58rpx; + line-height: 58rpx; text-align: center; font-size: 28rpx; - color: #FFF; - background: #FE0606; + color: #999; + background: #FFF; + border: 1px solid #999; border-radius: 10rpx; } + + >.button{ + &:nth-of-type(1){ + right: 360rpx; + } + &:nth-of-type(2){ + right: 200rpx; + } + &:nth-of-type(3){ + right: 40rpx; + } + + } + } + } + } + + .determine-frame { + padding-top: 85rpx; + width: 681rpx; + height: 340rpx; + background: #FFFFFF; + border-radius: 15rpx; + + >.title { + text-align: center; + font-size: 38rpx; + color: #000; + + } + + >.buttons { + + display: flex; + justify-content: space-evenly; + margin-top: 80rpx; + + >view { + width: 250rpx; + height: 76rpx; + text-align: center; + line-height: 76rpx; + border-radius: 10rpx; + font-size: 28rpx; + + &:nth-of-type(1) { + background: #FFFFFF; + border: 1rpx solid #B6B6B6; + color: #333; + } + + &:nth-of-type(2) { + background: #FE0505; + color: #fff; + } } } } diff --git a/packageIntegral/takeGoods/index.vue b/packageIntegral/takeGoods/index.vue index 871f00d..f4d7e50 100644 --- a/packageIntegral/takeGoods/index.vue +++ b/packageIntegral/takeGoods/index.vue @@ -47,7 +47,7 @@ 是否立即提货 - 取消 + 取消 确认 @@ -78,6 +78,7 @@ determine() { this.$refs.popup.open('center') }, + confirm() { this.controlWindows.code = false } From ac634dfaf87b25facc22e7ad09acf09dbd276ebf Mon Sep 17 00:00:00 2001 From: zhangyouji Date: Fri, 2 Feb 2024 13:44:55 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/packageIntegral/orderList.js | 9 +- packageIntegral/components/mulpicker.vue | 172 +++++++++++ packageIntegral/orderDetails/index.vue | 22 +- packageIntegral/orderList/index.vue | 8 +- packageIntegral/productAddition/index.vue | 281 ++++++++++++++++++ .../productAddition/productAddStep2.vue | 55 ++++ packageIntegral/productList/index.vue | 130 +++++++- packageIntegral/takeGoods/index.vue | 85 +++++- pages.json | 3 + pages/home/home.vue | 6 + 10 files changed, 732 insertions(+), 39 deletions(-) create mode 100644 packageIntegral/components/mulpicker.vue create mode 100644 packageIntegral/productAddition/index.vue create mode 100644 packageIntegral/productAddition/productAddStep2.vue diff --git a/api/packageIntegral/orderList.js b/api/packageIntegral/orderList.js index 078d334..5967824 100644 --- a/api/packageIntegral/orderList.js +++ b/api/packageIntegral/orderList.js @@ -13,5 +13,12 @@ export default{ url: `/oil-mall/mallOrderInfo/get/${id}`, method: 'get', }) - } + }, + takeOrder(data) { + return request({ + url: `/oil-mall/mallOrderInfo/takeOrder`, + method: 'post', + data + }) + }, } \ No newline at end of file diff --git a/packageIntegral/components/mulpicker.vue b/packageIntegral/components/mulpicker.vue new file mode 100644 index 0000000..eb1b465 --- /dev/null +++ b/packageIntegral/components/mulpicker.vue @@ -0,0 +1,172 @@ + + + + + \ No newline at end of file diff --git a/packageIntegral/orderDetails/index.vue b/packageIntegral/orderDetails/index.vue index e4559a7..339fbd1 100644 --- a/packageIntegral/orderDetails/index.vue +++ b/packageIntegral/orderDetails/index.vue @@ -23,13 +23,12 @@ 订单编号: {{info.orderCode}} 下单时间: {{info.createTime}} - 站点电话: 18879008956 支付方式: 积分 商品金额: ¥{{info.marketPrice}} 支付积分: {{info.integral}} - 确定提货 + 确定提货 @@ -103,8 +102,23 @@ } }) }, - confirm() { - this.controlWindows.code = false + submit(){ + + let data = {} + data.id = this.dataList[0].orderId + data.takeCode = this.dataList[0].takeCode + serve.takeOrder(data).then(res => { + if (res.code === 20000) { + uni.showToast({ + title: res.msg, + icon: 'none' + }); + this.$refs.popup.close(); + this.get(options.orderId) + + } + }) + } } } diff --git a/packageIntegral/orderList/index.vue b/packageIntegral/orderList/index.vue index b209ace..a13f107 100644 --- a/packageIntegral/orderList/index.vue +++ b/packageIntegral/orderList/index.vue @@ -6,8 +6,8 @@ - + @@ -49,7 +49,7 @@ currentPage: 1, pagesize: 20, params: { - customerphone: '' + customerPhone: '' }, }, dataList: [], @@ -109,7 +109,7 @@ getByPageCloudMini() { serve.getByPageCloudMini(this.paramter).then(res => { if (res.code === 20000) { - if (!res.data.list.length) { + if (!res.data.list.length && this.paramter.currentPage != 1) { uni.showToast({ title: '没有更多订单啦~', icon: 'none' diff --git a/packageIntegral/productAddition/index.vue b/packageIntegral/productAddition/index.vue new file mode 100644 index 0000000..04a0c16 --- /dev/null +++ b/packageIntegral/productAddition/index.vue @@ -0,0 +1,281 @@ + + + + + diff --git a/packageIntegral/productAddition/productAddStep2.vue b/packageIntegral/productAddition/productAddStep2.vue new file mode 100644 index 0000000..fa962aa --- /dev/null +++ b/packageIntegral/productAddition/productAddStep2.vue @@ -0,0 +1,55 @@ + + + + + \ No newline at end of file diff --git a/packageIntegral/productList/index.vue b/packageIntegral/productList/index.vue index c598dcb..54e62db 100644 --- a/packageIntegral/productList/index.vue +++ b/packageIntegral/productList/index.vue @@ -27,7 +27,7 @@ ¥{{item.marketPrice}} X{{item.orderNum}} 库存:{{item.orderNum}} - {{statusEnum[1].value}} + {{statusEnum[1].value}} 删除 编辑 @@ -40,7 +40,31 @@ 还没有订单哦~ - + + + + 审核详情 + + + + 审核时间 + {{item.createTime}} + + + 审核结果 + {{item.status}} + + + 反馈详情 + {{item.dateil}} + + + + 关闭 + + + + 是否删除该商品? @@ -50,7 +74,7 @@ - + 是否上架/下架该商品? @@ -60,7 +84,7 @@ - + @@ -73,7 +97,7 @@ }, data() { return { - + currentIndex: 0, code: '', controlWindows: { @@ -129,7 +153,24 @@ color: '#FCB438', value: "已审核" }, - } + }, + examineDetailList:[ + { + createTime:'2023.11.22', + status:'1', + dateil:'未审核' + }, + { + createTime:'2023.11.23', + status:'2', + dateil:'已审核' + }, + { + createTime:'2023.11.24', + status:'已驳回', + dateil:'图片不清晰,请重新上传图片' + } + ] } }, @@ -181,6 +222,9 @@ this.paramter.currentPage += 1 this.getByPageCloudMini() }, + examineDetail(){ + this.$refs.detail.open('center') + }, orderDelete(){ this.$refs.delete.open('center') }, @@ -352,7 +396,7 @@ border: 1px solid #999; border-radius: 10rpx; } - + >.button{ &:nth-of-type(1){ right: 360rpx; @@ -363,32 +407,86 @@ &:nth-of-type(3){ right: 40rpx; } - + } } } } - + + .determine-detail { + padding: 30rpx 0; + width: 681rpx; + background: #FFFFFF; + border-radius: 15rpx; + position: relative; + + >.title { + text-align: center; + font-size: 38rpx; + color: #000; + margin-bottom: 20rpx; + } + >uni-icons{ + position: absolute; + top: 30rpx; + right: 30rpx; + } + >.item{ + display: flex; + justify-content: space-evenly; + overflow-y: hidden; + font-size: 22rpx; + color: #666; + padding: 10rpx; + view{ + width: 200rpx; + line-height: 46rpx; + } + .header{ + font-size: 32rpx; + color: #000; + } + } + + >.buttons { + + display: flex; + justify-content: space-evenly; + margin-top: 50rpx; + + >view { + width: 550rpx; + height: 76rpx; + text-align: center; + line-height: 76rpx; + border-radius: 10rpx; + font-size: 28rpx; + background: #FE0505; + color: #fff; + } + } + } + .determine-frame { padding-top: 85rpx; width: 681rpx; height: 340rpx; background: #FFFFFF; border-radius: 15rpx; - + >.title { text-align: center; font-size: 38rpx; color: #000; - + } - + >.buttons { - + display: flex; justify-content: space-evenly; margin-top: 80rpx; - + >view { width: 250rpx; height: 76rpx; @@ -396,13 +494,13 @@ line-height: 76rpx; border-radius: 10rpx; font-size: 28rpx; - + &:nth-of-type(1) { background: #FFFFFF; border: 1rpx solid #B6B6B6; color: #333; } - + &:nth-of-type(2) { background: #FE0505; color: #fff; diff --git a/packageIntegral/takeGoods/index.vue b/packageIntegral/takeGoods/index.vue index f4d7e50..6fc91f1 100644 --- a/packageIntegral/takeGoods/index.vue +++ b/packageIntegral/takeGoods/index.vue @@ -5,21 +5,21 @@ 订单提货 - 提货码: 1899 + 提货码: {{code}} - 用户手机:18879008955待提货 + 用户手机:{{item.customerPhone}}{{item.statusMerge}} - - 康师傅方便面 经典红烧牛肉面*5+番茄鸡蛋牛肉*1 - 规格:默认 - ¥120.61 X1 - 共1件商品已支付积分:20000 + + {{item.productName}} + 规格:{{handler(item.attributeJson)}} + ¥{{item.marketPrice}} X{{item.orderNum}} + 共{{item.orderNum}}件商品已支付积分:{{item.payIntegral}} - 提货码:1899 - 确定提货 + 提货码:{{item.takeCode}} + 确定提货 @@ -48,7 +48,7 @@ 是否立即提货 取消 - 确认 + 确认 @@ -56,7 +56,7 @@