diff --git a/api/user/userApi.js b/api/user/userApi.js index e006ab8..242ecf9 100644 --- a/api/user/userApi.js +++ b/api/user/userApi.js @@ -217,5 +217,31 @@ export function queryDict(_objData){ }) } +/** + * 查询活动列表 + */ +export function generatorUserQrCode( _that) { + let obj = { + tel: '123' + }; + return new Promise( + (resolve, reject) => { + request({ + url: url.generatorUserQrCode, + method: "POST", + data: obj, + //动态数据 + success: function(res) { + uni.hideLoading(); + resolve(res.data); + }, + fail: function(e) { + uni.hideLoading(); + reject(); + } + }); + }) +} + diff --git a/components/my/my-person.vue b/components/my/my-person.vue index 6402c3a..a3d8d7b 100644 --- a/components/my/my-person.vue +++ b/components/my/my-person.vue @@ -9,7 +9,9 @@ {{ userName }} {{ userPhone }} {{ communityName }} - + + + @@ -218,6 +220,11 @@ url: '/pages/coupon/myCoupons', }) }, + _viewUserQrCode:function(){ + this.vc.navigateTo({ + url:'/pages/my/userQrCode' + }) + } } } @@ -285,4 +292,8 @@ background: #eee; } } + .cuIcon-qrcode{ + font-size: 48upx; + + } diff --git a/constant/url.js b/constant/url.js index 6a7db26..83bcb67 100755 --- a/constant/url.js +++ b/constant/url.js @@ -142,11 +142,11 @@ export default { queryShopType: baseUrl + 'app/shopType/queryShopType', //查询店铺类型 // 家政服务类型(菜单) queryHousekeepingType: baseUrl + 'app/housekeepingType/queryHousekeepingType', - queryMainCategoryAllGoods: baseUrl + "app/productCategory/queryMainCategoryAllGoods", - queryPhoneMainCategoryProduct: baseUrl + "app/product.queryPhoneMainCategoryProduct", - - queryMainCategory: baseUrl + "app/productCategory/queryMainCategory", - + queryMainCategoryAllGoods: baseUrl + "app/productCategory/queryMainCategoryAllGoods", + queryPhoneMainCategoryProduct: baseUrl + "app/product.queryPhoneMainCategoryProduct", + + queryMainCategory: baseUrl + "app/productCategory/queryMainCategory", + queryShopCommunity: baseUrl + "app/shop/queryShopCommunity", saveAddVisit: baseUrl + "app/visit.saveVisit", queryReportInfoAnswerByOpenId: baseUrl + "app/reportInfoAnswer/queryReportInfoAnswerByOpenId", @@ -169,45 +169,45 @@ export default { unifiedPayment: baseUrl + "app/payment.unifiedPayment", // 修改预约订单 - saveCommunitySpacePersonTime: baseUrl + "app/communitySpace.saveCommunitySpacePersonTime", - listEquipmentAccount:baseUrl +"app/equipmentAccount.listEquipmentAccount", - listMaintainanceTaskDetail:baseUrl +"app/maintainanceTask.listMaintainanceTaskDetail", - listInspectionTaskDetails:baseUrl +"app/inspectionTaskDetail.listInspectionTaskDetails", - // 优惠券核销二维码生成 - generatorCouponQrcode:baseUrl +"app/couponProperty.generatorCouponQrcode", - computePayFeeCoupon:baseUrl +"app/coupon.computePayFeeCoupon", - //查询停车场 - listParkingAreas:baseUrl+"app/parkingArea.listParkingAreas", - couponPropertyUserGiftCar:baseUrl+"app/couponProperty.couponPropertyUserGiftCar", - listReserveCatalog:baseUrl+"app/reserve.listReserveCatalog", // 查询预约目录 - listReserveGoods:baseUrl+"app/reserve.listReserveGoods", // 查询预约商品 - listReserveParams:baseUrl+"app/reserve.listReserveParams", // 查询预约商品 - listReserveGoodsOrderTime:baseUrl+"app/reserveOrder.listMyReserveGoodsOrderTime", // 查询预约订单 - deleteReserveGoodsPerson:baseUrl+"app/reserveOrder.deleteReserveGoodsPerson", // 查询预约订单 - listProductSeckill: baseUrl + "app/productSeckill.listProductSeckill", + saveCommunitySpacePersonTime: baseUrl + "app/communitySpace.saveCommunitySpacePersonTime", + listEquipmentAccount: baseUrl + "app/equipmentAccount.listEquipmentAccount", + listMaintainanceTaskDetail: baseUrl + "app/maintainanceTask.listMaintainanceTaskDetail", + listInspectionTaskDetails: baseUrl + "app/inspectionTaskDetail.listInspectionTaskDetails", + // 优惠券核销二维码生成 + generatorCouponQrcode: baseUrl + "app/couponProperty.generatorCouponQrcode", + computePayFeeCoupon: baseUrl + "app/coupon.computePayFeeCoupon", + //查询停车场 + listParkingAreas: baseUrl + "app/parkingArea.listParkingAreas", + couponPropertyUserGiftCar: baseUrl + "app/couponProperty.couponPropertyUserGiftCar", + listReserveCatalog: baseUrl + "app/reserve.listReserveCatalog", // 查询预约目录 + listReserveGoods: baseUrl + "app/reserve.listReserveGoods", // 查询预约商品 + listReserveParams: baseUrl + "app/reserve.listReserveParams", // 查询预约商品 + listReserveGoodsOrderTime: baseUrl + "app/reserveOrder.listMyReserveGoodsOrderTime", // 查询预约订单 + deleteReserveGoodsPerson: baseUrl + "app/reserveOrder.deleteReserveGoodsPerson", // 查询预约订单 + listProductSeckill: baseUrl + "app/productSeckill.listProductSeckill", listProductGroup: baseUrl + "app/productGroup.listProductGroup", - listRegisterProtocol: baseUrl + "app/system.listRegisterProtocol", + listRegisterProtocol: baseUrl + "app/system.listRegisterProtocol", queryCurrentOwner: baseUrl + "app/owner.queryCurrentOwner", - listItemReleaseType: baseUrl+"app/itemRelease.listItemReleaseType", - queryFirstAuditStaff: baseUrl+"app/oaWorkflow.queryFirstAuditStaff", - saveItemRelease: baseUrl+"app/itemRelease.saveItemRelease", - listMyItemRelease: baseUrl+"app/itemRelease.listMyItemRelease", - listItemReleaseRes: baseUrl+"app/itemRelease.listItemReleaseRes", - queryOaWorkflowUser: baseUrl+"app/oaWorkflow/queryOaWorkflowUser", - listChargeMachine:baseUrl+"app/chargeMachine.listChargeMachine", - listChargeMachinePort:baseUrl+"app/chargeMachine.listChargeMachinePort", - listExamineStaff:baseUrl+"app/examine.listExamineStaff", // 查询打分员工 - startCharge:baseUrl+"app/chargeMachine.startCharge", // 开始充电 - stopCharge:baseUrl+"app/chargeMachine.stopCharge", // 结束充电 - listChargeMachineOrder:baseUrl+"app/chargeMachine.listChargeMachineOrder", // 查询充电订单 - saveExamineStaffValue:baseUrl+"app/examine.saveExamineStaffValue", // 查询充电订单 - listExamineStaffValue:baseUrl+"app/examine.listExamineStaffValue", // 查询充电订单 - listMeterMachine:baseUrl+"app/meterMachine.listMeterMachine", - queryDict:baseUrl+"callComponent/core/list", - listCommunityPublicity:baseUrl+"app/publicity.listCommunityPublicity", - listChargeMonthOrder:baseUrl+"app/chargeCard.listChargeMonthOrder", - listChargeMonthCard:baseUrl+"app/chargeCard.listChargeMonthCard", - + listItemReleaseType: baseUrl + "app/itemRelease.listItemReleaseType", + queryFirstAuditStaff: baseUrl + "app/oaWorkflow.queryFirstAuditStaff", + saveItemRelease: baseUrl + "app/itemRelease.saveItemRelease", + listMyItemRelease: baseUrl + "app/itemRelease.listMyItemRelease", + listItemReleaseRes: baseUrl + "app/itemRelease.listItemReleaseRes", + queryOaWorkflowUser: baseUrl + "app/oaWorkflow/queryOaWorkflowUser", + listChargeMachine: baseUrl + "app/chargeMachine.listChargeMachine", + listChargeMachinePort: baseUrl + "app/chargeMachine.listChargeMachinePort", + listExamineStaff: baseUrl + "app/examine.listExamineStaff", // 查询打分员工 + startCharge: baseUrl + "app/chargeMachine.startCharge", // 开始充电 + stopCharge: baseUrl + "app/chargeMachine.stopCharge", // 结束充电 + listChargeMachineOrder: baseUrl + "app/chargeMachine.listChargeMachineOrder", // 查询充电订单 + saveExamineStaffValue: baseUrl + "app/examine.saveExamineStaffValue", // 查询充电订单 + listExamineStaffValue: baseUrl + "app/examine.listExamineStaffValue", // 查询充电订单 + listMeterMachine: baseUrl + "app/meterMachine.listMeterMachine", + queryDict: baseUrl + "callComponent/core/list", + listCommunityPublicity: baseUrl + "app/publicity.listCommunityPublicity", + listChargeMonthOrder: baseUrl + "app/chargeCard.listChargeMonthOrder", + listChargeMonthCard: baseUrl + "app/chargeCard.listChargeMonthCard", + generatorUserQrCode: baseUrl + "app/user.generatorUserQrCode", NEED_NOT_LOGIN_PAGE: [ 'pages/login/login', diff --git a/pages.json b/pages.json index f047fbb..55844a7 100755 --- a/pages.json +++ b/pages.json @@ -898,6 +898,15 @@ } } + ,{ + "path" : "pages/my/userQrCode", + "style" : + { + "navigationBarTitleText": "用户二维码", + "enablePullDownRefresh": false + } + + } ], "tabBar": { "color": "#272636", diff --git a/pages/login/login.vue b/pages/login/login.vue index 429aba8..273a57f 100755 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -60,8 +60,8 @@ data() { return { logoUrl: '', - username: '', - password: '', + username: '17797171234', + password: '123456', appId: "", code: "", loginByPhone: false, diff --git a/pages/my/userQrCode.vue b/pages/my/userQrCode.vue new file mode 100644 index 0000000..55daaaa --- /dev/null +++ b/pages/my/userQrCode.vue @@ -0,0 +1,71 @@ + + + + +