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] }} -

- +