diff --git a/api/api.js b/api/api.js index 8fada88..79c10c9 100644 --- a/api/api.js +++ b/api/api.js @@ -123,6 +123,13 @@ const config = { auth : true, showLoading : true, }, + // 分页查询我的客户 + getMyUserPage: { + url: '/shop/user', + method: 'GET', + auth : true, + showLoading : true, + }, //分页查询订单 @@ -172,6 +179,36 @@ const config = { method: 'POST', showLoading : true, }, + // 申请成为水洗店 + applyShopHotel: { + url: '/shop/apply', + method: 'POST', + showLoading : true, + auth : true, + }, + // 店铺申请提现 + storeWithdrawalApplication: { + url: '/shop/withdrawal/apply', + method: 'POST', + showLoading : true, + auth : true, + }, + // 提现日志 + withdrawalLog: { + url: '/withdrawal/page', + method: 'GET', + showLoading : true, + auth : true, + }, + // 水洗店首页数据 + laundryStoreHomeData: { + url: '/shop/index', + method: 'GET', + // showLoading : true, + auth : true, + }, + + } diff --git a/components/bottom/bottomBtn.vue b/components/bottom/bottomBtn.vue index eb9ddf1..e584057 100644 --- a/components/bottom/bottomBtn.vue +++ b/components/bottom/bottomBtn.vue @@ -24,16 +24,16 @@ export default { props: { color: { - default: '#000000' // 设置默认颜色值 + default: '#FFF' // 设置默认颜色值 }, backgroundColor: { - default: '#FFFFFF' // 设置默认背景颜色 + default: '#fd5100' // 设置默认背景颜色 }, fontSize: { default: '36rpx' // 设置默认字体大小 }, text: { - default: '按钮' // 设置默认文本内容 + default: '提交' // 设置默认文本内容 }, width: { default: '150rpx' // 设置默认宽度 diff --git a/pages/index/index.vue b/pages/index/index.vue index 107835e..18385eb 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -41,7 +41,7 @@ v-if="userShop"> @@ -141,16 +141,32 @@ records : [], total : 0, }, + userList:{ + records : [], + total : 0, + } } }, onShow() { - this.getGoodsPage() + // this.getGoodsPage() this.noticeList() this.banner() + + if(!this.userShop.shop){ + // 查询我的客户 + this.getUserPage() + }else{ + //查询桌布商品 + this.getGoodsPage() + } }, // 下拉刷新 onPullDownRefresh(){ - this.getGoodsPage() + if(!this.userShop.shop){ + this.getUserPage() + }else{ + this.getGoodsPage() + } this.noticeList() this.banner() }, @@ -158,13 +174,18 @@ onReachBottom() { if(this.queryParams.pageSize < this.productList.total){ this.queryParams.pageSize += 10 - this.getGoodsPage() + if(!this.userShop.shop){ + this.getUserPage() + }else{ + this.getGoodsPage() + } } }, computed : { ...mapGetters(['userShop']), }, methods: { + banner(){ this.$api('bannerList', res => { if(res.code == 200){ @@ -179,11 +200,23 @@ } }) }, + // 获取商品数据 getGoodsPage(){ this.$api('goodsPage', this.queryParams, res => { uni.stopPullDownRefresh() if(res.code == 200){ this.productList = res.result + console.log("===getGoodsPage=="); + } + }) + }, + // 获取客户数据 + getUserPage(){ + this.$api('getMyUserPage', this.queryParams, res => { + uni.stopPullDownRefresh() + if(res.code == 200){ + this.userList = res.result + console.log("===getUserPage=="); } }) }, diff --git a/pages_order/mine/purse.vue b/pages_order/mine/purse.vue index fe7dd19..02b72ee 100644 --- a/pages_order/mine/purse.vue +++ b/pages_order/mine/purse.vue @@ -10,27 +10,30 @@ 我要提现 - + - + - + - + + + + 提现说明 - + 1、本次提现必须通过银行卡提现,暂不支持其他途径。 + 2、如若遇到24小时提现未到账,请联系客服。 - 提交 + 提交 @@ -44,43 +47,62 @@ }, data() { return { - notice : '' + notice: '', + form: { + name: '', + phone: '', + money: '', + bankCard: '', + bankAddress: '', + } } }, methods: { - + submit() { + this.$api('storeWithdrawalApplication', this.queryParams, res => { + if (res.code == 200) { + uni.navigateBack(-1) + } + }) + }, } } \ No newline at end of file diff --git a/pages_order/mine/runningWater.vue b/pages_order/mine/runningWater.vue index a14a621..54d9c8f 100644 --- a/pages_order/mine/runningWater.vue +++ b/pages_order/mine/runningWater.vue @@ -1,23 +1,17 @@ @@ -25,45 +19,49 @@ export default { data() { return { - title : ['余额记录','提现记录','佣金记录'], - agentFlow : { - total : 0, - records : [ - { - type : 0, - money : 100, - createTime : '2024-04-02 20:00', - title : "佣金提现", + title: ['余额记录', '提现记录', '佣金记录'], + agentFlow: { + total: 1, + records: [{ + type: 0, + money: 100, + createTime: '2024-04-02 20:00', + title: "佣金提现", }, { - type : 0, - money : 100, - createTime : '2024-04-02 20:00', - title : "佣金提现", + type: 0, + money: 100, + createTime: '2024-04-02 20:00', + title: "佣金提现", }, { - type : 0, - money : 100, - createTime : '2024-04-02 20:00', - title : "佣金提现", + type: 0, + money: 100, + createTime: '2024-04-02 20:00', + title: "佣金提现", }, ] }, - x : ['+', '-' , '-' , '+'], - status : 0, + x: ['+', '-', '-', '+'], + status: 0, } }, onLoad(e) { this.status = e.status }, + onShow() { + this.getAgentFlow() + }, methods: { - leftClick() { //返回钱包 + leftClick() { //返回钱包 uni.navigateBack(-1) }, - getAgentFlow(){ //获取流水记录 + getAgentFlow() { //获取流水记录(余额记录 提现记录 佣金记录) let type = this.status; - this.$api('getAgentFlow', { type }, res => { - if(res.code == 200){ + this.$api('withdrawalLog', { + type + }, res => { + if (res.code == 200) { this.agentFlow = res.result } }) @@ -73,16 +71,17 @@ + \ No newline at end of file diff --git a/pages_order/order/applyLaundryStore.vue b/pages_order/order/applyLaundryStore.vue index 7c71002..d919279 100644 --- a/pages_order/order/applyLaundryStore.vue +++ b/pages_order/order/applyLaundryStore.vue @@ -5,45 +5,48 @@ - + 店铺信息 店铺名称 - + 您的姓名 - + 联系方式 - + + 所在地区 - - 湖南省 + + + + 定位 + + 详细地址 - + - - -