From ef51049ed41b685c437a49f12d231f9b33937ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Thu, 1 Jul 2021 11:16:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=94=80=E5=95=86=E9=93=BA=E8=A7=A3?= =?UTF-8?q?=E7=BB=91=EF=BC=8C=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E5=94=AE?= =?UTF-8?q?=E5=90=8E=E9=83=A8=E5=88=86=E7=9A=84=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/goods.js | 5 +- config/api.js | 2 + manifest.json | 4 +- pages/mine/distribution/history.vue | 35 ++++++-- pages/mine/distribution/home.vue | 8 +- pages/mine/distribution/list.vue | 120 +++++++++++++++++++------- pages/order/afterSales/afterSales.vue | 20 +++-- pages/order/myOrder.vue | 36 +++++--- pages/passport/codeLogin.vue | 5 +- pages/tabbar/cart/cartList.vue | 3 +- 10 files changed, 173 insertions(+), 65 deletions(-) diff --git a/api/goods.js b/api/goods.js index 2545438..89097f9 100644 --- a/api/goods.js +++ b/api/goods.js @@ -197,10 +197,11 @@ export function distributionGoods(params) { /** * 选择分销商品 分销商品id */ -export function checkedDistributionGoods(id) { +export function checkedDistributionGoods(params) { return http.request({ - url: `/distributionGoods/checked/${id}`, + url: `/distributionGoods/checked/${params.id}`, method: Method.GET, + params }); } diff --git a/config/api.js b/config/api.js index 96131ba..eed88ad 100644 --- a/config/api.js +++ b/config/api.js @@ -6,6 +6,8 @@ const dev = { common: "https://common-api.pickmall.cn", buyer: "https://buyer-api.pickmall.cn", + // common: "http://192.168.0.109:8890", + // buyer: "http://192.168.0.109:8888", }; // 生产环境 const prod = { diff --git a/manifest.json b/manifest.json index 852b56d..023f197 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "lili商城", "appid" : "__UNI__C100675", "description" : "", - "versionName" : "4.0.21", - "versionCode" : 4000021, + "versionName" : "4.0.22", + "versionCode" : 4000022, "transformPx" : false, "app-plus" : { "compatible" : { diff --git a/pages/mine/distribution/history.vue b/pages/mine/distribution/history.vue index dc03eb0..91db9fc 100644 --- a/pages/mine/distribution/history.vue +++ b/pages/mine/distribution/history.vue @@ -1,6 +1,7 @@ @@ -30,7 +43,8 @@ import { cashLog, distributionOrderList } from "@/api/goods"; export default { data() { return { - datas: "", //数据集合 + cashLogData: [], //提现记录数据集合 + achievementData: [], //分销业绩数据合集, status: "loadmore", iconType: "flower", empty: false, @@ -71,7 +85,18 @@ export default { methods: { // 业绩 achievement() { - distributionOrderList(this.achParams).then((res) => {}); + uni.showLoading({ + title: "加载中", + }); + distributionOrderList(this.achParams).then((res) => { + if (res.data.success && res.data.result.records.length >= 1) { + this.achievementData = res.data.result.records; + } else { + this.status = "nomore"; + this.empty = true; + } + uni.hideLoading(); + }); }, // 初始化提现历史 history() { @@ -80,7 +105,7 @@ export default { }); cashLog(this.params).then((res) => { if (res.data.success && res.data.result.records.length >= 1) { - this.datas = res.data.result.records; + this.cashLogData = res.data.result.records; } else { this.status = "nomore"; this.empty = true; diff --git a/pages/mine/distribution/home.vue b/pages/mine/distribution/home.vue index 468ff01..7dda626 100644 --- a/pages/mine/distribution/home.vue +++ b/pages/mine/distribution/home.vue @@ -82,7 +82,7 @@ export default { }); }, }, - mounted() { + onShow() { this.init(); }, }; @@ -90,21 +90,15 @@ export default { diff --git a/pages/passport/codeLogin.vue b/pages/passport/codeLogin.vue index 15999eb..ebce160 100644 --- a/pages/passport/codeLogin.vue +++ b/pages/passport/codeLogin.vue @@ -102,10 +102,12 @@ export default { duration: 2000, icon: "none", }); + this.flage = false; } }) .catch((e) => { - this.$refs.uCode.start(); + this.flage = false; + this.codeFlag = true; }); } else { this.$u.toast("请倒计时结束后再发送"); @@ -209,6 +211,7 @@ export default { uni.hideLoading(); }, 2000); } + if (!this.$u.test.mobile(this.codeForm.mobile)) { uni.showToast({ title: "请输入正确手机号", diff --git a/pages/tabbar/cart/cartList.vue b/pages/tabbar/cart/cartList.vue index 1ffa29d..d0ff19f 100644 --- a/pages/tabbar/cart/cartList.vue +++ b/pages/tabbar/cart/cartList.vue @@ -100,13 +100,12 @@ .{{ formatPrice(skuItem.priceDetailDTO.flowPrice)[1] }} -

- +