diff --git a/common/api/market/distribution.js b/common/api/market/distribution.js index 89f453f..85f66e0 100644 --- a/common/api/market/distribution.js +++ b/common/api/market/distribution.js @@ -136,6 +136,15 @@ export const getInviteCode = (data) => { data: data, }); }; +export const autoGetInviteCode = (data) => { + return request({ + url: prveUrl + "/user/distribution/autoGetInviteCode", + method: "get", + data: data, + }); +}; + + // 获取配置 export const getConfig = (data) => { @@ -147,3 +156,11 @@ export const getConfig = (data) => { }; +// 分销员中心-无感-绑定邀请人 +export const autoBindInviteUser = (data) => { + return request({ + url: prveUrl + "/user/distribution/autoBindInviteUser", + method: "post", + data: data, + }); +}; \ No newline at end of file diff --git a/common/api/market/index.js b/common/api/market/index.js index 4f69fdb..94afe52 100644 --- a/common/api/market/index.js +++ b/common/api/market/index.js @@ -1,6 +1,8 @@ // 引入 request 文件 import request from '@/common/api/request.js' -import {prveUrl} from './config.js' +import { + prveUrl +} from './config.js' export const consumeDiscount = (data) => { return request({ @@ -16,3 +18,11 @@ export const homeData = (data) => { data: data }) } + +// 清除所有分销绑定关系 +export const distributionClear = (data) => { + return request({ + url: prveUrl + '/user/distribution/clean', + method: 'get' + }) +} \ No newline at end of file diff --git a/common/api/order/pointGoods.js b/common/api/order/pointGoods.js index 8dca627..38d3c79 100644 --- a/common/api/order/pointGoods.js +++ b/common/api/order/pointGoods.js @@ -20,6 +20,12 @@ export const pointGoodsPage = (data) => { data: data }) } +export const pointsGoods = (data) => { + return request({ + url: url + '/user/pointGoods/'+data.id, + method: 'get', + }) +} export const exchange = (data) => { diff --git a/common/api/request.js b/common/api/request.js index c6a2e1b..8e7f50f 100644 --- a/common/api/request.js +++ b/common/api/request.js @@ -52,7 +52,7 @@ export default async (params) => { //获取成功 if (res.code == 200) { uni.hideLoading(); - uni.hideToast(); + // uni.hideToast(); resolve(res.data ? res.data : true); } else { switch (res.code) { @@ -135,7 +135,7 @@ export default async (params) => { // 不管成功还是失败都会执行 setTimeout((res) => { uni.hideLoading(); - uni.hideToast(); + // uni.hideToast(); }, 10000); }, }); diff --git a/common/config.js b/common/config.js index 91fe54d..1273981 100644 --- a/common/config.js +++ b/common/config.js @@ -1,12 +1,9 @@ // const debug = process.env.NODE_ENV == 'development' ? true : false; // const debug = false; // false线上 true本地 -const debug = false; // false线上 true本地 +const debug = true; // false线上 true本地 let baseUrl = '' let baseUrlwws = '' - - - const version = "100"; const autoRemoveCache = { count: 100000, diff --git a/common/css/common.scss b/common/css/common.scss index 425b73c..0957cdb 100644 --- a/common/css/common.scss +++ b/common/css/common.scss @@ -44,6 +44,9 @@ page, image { display: block; } + .relative{ + position: relative; + } .absolute{ position: absolute; } diff --git a/components/ymf-components/ymf-share.vue b/components/ymf-components/ymf-share.vue new file mode 100644 index 0000000..62b7bf2 --- /dev/null +++ b/components/ymf-components/ymf-share.vue @@ -0,0 +1,38 @@ + + + + + \ No newline at end of file diff --git a/distribution/shop-detail/components/share-popup.vue b/distribution/shop-detail/components/share-popup.vue index f8fc284..c828f94 100644 --- a/distribution/shop-detail/components/share-popup.vue +++ b/distribution/shop-detail/components/share-popup.vue @@ -1,228 +1,260 @@ - - - \ No newline at end of file diff --git a/distribution/shop-detail/index.vue b/distribution/shop-detail/index.vue index 9fb1639..3da5184 100644 --- a/distribution/shop-detail/index.vue +++ b/distribution/shop-detail/index.vue @@ -1,908 +1,867 @@ - + - + \ No newline at end of file + diff --git a/groupBuying/goodsDetail/goodsDetail.vue b/groupBuying/goodsDetail/goodsDetail.vue index d40fa20..91839cb 100644 --- a/groupBuying/goodsDetail/goodsDetail.vue +++ b/groupBuying/goodsDetail/goodsDetail.vue @@ -10,30 +10,30 @@ - ¥{{item.groupPrice}} - ¥{{item.originalPrice}} + ¥{{ item.groupPrice }} + ¥{{ item.originalPrice }} - 限购{{item.limitBuyNum}}份 - 已团:{{item.groupedNum||0}} + 限购{{ item.limitBuyNum }}份 + 已团:{{ item.groupedNum || 0 }} - {{item.wareName}} + {{ item.wareName }} - {{item.wareDetail}} + {{ item.wareDetail }} - 可核销门店: - {{item.shopName}} + 可核销门店: + {{ item.shopName }} - 门店地址: - {{item.shopAddress}} + 门店地址: + {{ item.shopAddress }} @@ -41,55 +41,46 @@ 立即拼团 - + - 立即购买购 - {{item.nickName}} - 差{{returnNeedPerpole(item)}}人拼成 + + 立即购买购 + {{ item.nickName }} + 差{{ returnNeedPerpole(item) }}人拼成 剩余: - {{getRemainingHMS(item)}} + {{ getRemainingHMS(item) }} 快速拼成 - - - - - - - + 商品详情 - - + - {{returnBtmText}} + {{ returnBtmText }} - {{returnBtmText}} + {{ returnBtmText }} - - @@ -101,31 +92,29 @@ - {{item.wareName}} + {{ item.wareName }} - {{item.wareDetail}} + {{ item.wareDetail }} - ¥{{item.groupPrice}} - ¥{{item.originalPrice}} - 限购{{item.limitBuyNum}} + ¥{{ item.groupPrice }} + ¥{{ item.originalPrice }} + 限购{{ item.limitBuyNum }} - - + 合计: - {{totalPrice}} + {{ totalPrice }} - {{number}} + {{ number }} - @@ -137,574 +126,562 @@ \ No newline at end of file +} + diff --git a/groupBuying/index/index.vue b/groupBuying/index/index.vue index b748001..f9c2549 100644 --- a/groupBuying/index/index.vue +++ b/groupBuying/index/index.vue @@ -2,71 +2,63 @@ - + - {{shopInfo.shopName||''}} + {{ shopInfo.shopName || '' }} - - {{index+1}} - {{item}} - - - 套餐商品 - - {{showGroup?'收起':'展开'}} - + + {{ showGroup ? '收起' : '展开' }} + - - + - {{item.name}} - {{item.packageProducts.length}}选{{item.num}} + {{ item.name }} + {{ item.packageProducts.length }}选{{ item.num }} - - {{goods.name}} + + {{ goods.name }} - x{{goods.num}} - ¥{{goods.price}} + x{{ goods.num }} + ¥{{ goods.price }} - - - - - - - + 分享说明 - - {{showDesc?'收起':'展开'}} - + + {{ showDesc ? '收起' : '展开' }} + - - - - - - - + 使用说明 - - {{useDescShow?'收起':'展开'}} - + + {{ useDescShow ? '收起' : '展开' }} + - - - - - - - + 商品详情 - - + - + - {{returnBtmText}} + {{ returnBtmText }} - - 发起助力 - - + 发起助力 - - @@ -213,31 +168,29 @@ - {{item.packageName}} + {{ item.packageName }} - {{item.otherDesc}} + {{ item.otherDesc }} - ¥{{item.price}} - ¥{{item.originPrice}} - 限购{{item.limitBuyNum}} + ¥{{ item.price }} + ¥{{ item.originPrice }} + 限购{{ item.limitBuyNum }} - - + 合计: - {{totalPrice}} + {{ totalPrice }} - {{number}} + {{ number }} - @@ -249,636 +202,614 @@ \ No newline at end of file +} + +.guodu { + transition: all 0.3s; +} + diff --git a/userPackage/order/detail.vue b/userPackage/order/detail.vue index a73ae05..c5023bc 100644 --- a/userPackage/order/detail.vue +++ b/userPackage/order/detail.vue @@ -1,171 +1,169 @@