From 4802eef97e7cd5f66db92c7438beca78423f685e Mon Sep 17 00:00:00 2001 From: TianYu <332368756@qq.com> Date: Thu, 25 May 2023 13:47:20 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20h5=E5=8C=BA=E5=88=86=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E7=8E=AF=E5=A2=83=E5=92=8C=E5=BC=80=E5=8F=91=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-app/.hbuilderx/launch.json | 4 ++++ yudao-ui-app/config/app.js | 6 ++---- yudao-ui-app/package.json | 18 ++++++++++++++++++ 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/yudao-ui-app/.hbuilderx/launch.json b/yudao-ui-app/.hbuilderx/launch.json index ee5be7746..4bbcf3cba 100644 --- a/yudao-ui-app/.hbuilderx/launch.json +++ b/yudao-ui-app/.hbuilderx/launch.json @@ -10,6 +10,10 @@ { "launchtype" : "local" }, + "h5" : + { + "launchtype" : "local" + }, "mp-weixin" : { "launchtype" : "local" diff --git a/yudao-ui-app/config/app.js b/yudao-ui-app/config/app.js index 3f3bbf134..2932f77a1 100644 --- a/yudao-ui-app/config/app.js +++ b/yudao-ui-app/config/app.js @@ -1,14 +1,12 @@ -let domain = 'http://api.cyywl.top' -// let domain = 'http://192.168.1.147:48080' +let domain = process.env.APP_BASE_URL module.exports = { // 请求域名 格式: https://您的域名 // #ifdef MP HTTP_REQUEST_URL: domain, // #endif - HTTP_ADMIN_URL:'http://api.cyywl.top', //PC后台的API请求地址,上传图片用 - // HTTP_ADMIN_URL:'http://192.168.1.147:48080', //PC后台的API请求地址,上传图片用 + HTTP_ADMIN_URL: process.env.APP_BASE_URL, //PC后台的API请求地址,上传图片用 // #ifdef H5 //H5接口是浏览器地址 // HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host, diff --git a/yudao-ui-app/package.json b/yudao-ui-app/package.json index e147ae429..c33a2c9b1 100644 --- a/yudao-ui-app/package.json +++ b/yudao-ui-app/package.json @@ -13,5 +13,23 @@ "clipboard": "^2.0.11", "html-to-image": "^1.11.11", "qrcode": "^1.5.3" + }, + "uni-app": { + "scripts": { + "dev": { + "title": "开发版", + "env": { + "UNI_PLATFORM": "h5", + "APP_BASE_URL": "http://192.168.1.147:48080" + } + }, + "prod": { + "title": "生产版", + "env": { + "UNI_PLATFORM": "h5", + "APP_BASE_URL": "http://api.cyywl.top" + } + } + } } } From 149ea95d48393f40ddc76589ed9456fc2fbbd7d8 Mon Sep 17 00:00:00 2001 From: Jruome <2559028966@qq.com> Date: Thu, 25 May 2023 14:33:27 +0800 Subject: [PATCH 2/3] =?UTF-8?q?uniapp=20=E4=BC=9A=E5=91=98=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0=E7=94=B3=E8=AF=B7=E9=80=80=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../freightSet/creatTemplates.vue | 14 ++-- yudao-ui-app/api/member.js | 7 ++ yudao-ui-app/pages/member_back/index.vue | 2 +- yudao-ui-app/pages/member_equity/index.vue | 8 +-- yudao-ui-app/pages/member_record/index.vue | 67 +++++++++++-------- 5 files changed, 56 insertions(+), 42 deletions(-) diff --git a/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue b/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue index 2e151e6d6..9a1761ef2 100644 --- a/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue +++ b/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue @@ -6,7 +6,7 @@ width="70%" :before-close="handleClose" > - + @@ -31,7 +31,6 @@ collapse-tags clearable filterable - @change="changeRegion" /> @@ -306,9 +305,6 @@ export default { noRegion: [] } }, - changeRegion(value) { - console.log(value) - }, changeRadio(num) { this.columns = Object.assign({}, statusMap[num - 1]) }, @@ -346,8 +342,10 @@ export default { name: info.name, type: info.type, appoint: info.appoint, + noDelivery: info.noDelivery, sort: info.sort }) + console.log(this.ruleForm) this.columns = Object.assign({}, statusMap[this.ruleForm.type - 1]) this.$nextTick(() => { loadingInstance.close() @@ -394,11 +392,7 @@ export default { // 包邮 shippingNodelivery() { logistics.shippingNodelivery({ tempId: this.tempId }).then(res => { - res.data.forEach((item, index) => { - // item.title = JSON.parse(item.title) - item.city_ids = JSON.parse(item.title) - }) - this.ruleForm.noDelivery = res.data + this.ruleForm.noRegion = JSON.parse(res.data[0].title) }) }, removeChild(list){ diff --git a/yudao-ui-app/api/member.js b/yudao-ui-app/api/member.js index 6f93e6d05..5b62e3e21 100644 --- a/yudao-ui-app/api/member.js +++ b/yudao-ui-app/api/member.js @@ -15,6 +15,13 @@ export function memberOrderInfo(){ return request.get('api/order/member/memberOrderInfo', {}) } +/** + * 根据当前手机号获取账号的充值记录 + */ +export function memberOrderInfoByPhone(phone){ + return request.get(`api/order/member/memberOrderInfoByPhone?phone=${phone}`, {}) +} + /** * 查询权益档位信息 */ diff --git a/yudao-ui-app/pages/member_back/index.vue b/yudao-ui-app/pages/member_back/index.vue index 6eded3d16..5e86d3abf 100644 --- a/yudao-ui-app/pages/member_back/index.vue +++ b/yudao-ui-app/pages/member_back/index.vue @@ -47,7 +47,7 @@ - + diff --git a/yudao-ui-app/pages/member_equity/index.vue b/yudao-ui-app/pages/member_equity/index.vue index edb9e0303..b33bdf62d 100644 --- a/yudao-ui-app/pages/member_equity/index.vue +++ b/yudao-ui-app/pages/member_equity/index.vue @@ -10,7 +10,7 @@ 再升1级即可获得【XX】等6项权益 - 购买记录 + 购买记录 @@ -21,8 +21,8 @@ - 会员等级{{vipData.findIndex((item) => item == parseInt(memberDetail.grade)) +1}}级 - + 会员等级{{vipData.findIndex((item) => item == memberDetail.grade) +1}}级 + @@ -256,7 +256,7 @@ margin-bottom: 10rpx; } - button { + .right-button { border-radius: 18rpx; margin-top: 10rpx; padding: 7rpx 16rpx; diff --git a/yudao-ui-app/pages/member_record/index.vue b/yudao-ui-app/pages/member_record/index.vue index 447337b52..3e984fb51 100644 --- a/yudao-ui-app/pages/member_record/index.vue +++ b/yudao-ui-app/pages/member_record/index.vue @@ -9,7 +9,8 @@ 充值号码:{{item.userPhone}} - + + 申请退款中 充值档次:{{item.grade}} @@ -22,7 +23,7 @@