diff --git a/buyer/.npmrc b/buyer/.npmrc index c1abc22c..e7131d3c 100644 --- a/buyer/.npmrc +++ b/buyer/.npmrc @@ -1,5 +1,4 @@ -# 默认依赖包指定淘宝源 -registry=https://registry.npm.taobao.org/ -sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ -phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ -electron_mirror=https://npm.taobao.org/mirrors/electron/ \ No newline at end of file +registry "https://registry.npmmirror.com" +sass_binary_site "https://npmmirror.com/mirrors/node-sass" +phantomjs_cdnurl "https://npmmirror.com/mirrors/phantomjs" +electron_mirror "https://npmmirror.com/mirrors/electron" diff --git a/buyer/src/api/distribution.js b/buyer/src/api/distribution.js deleted file mode 100644 index 34e4f379..00000000 --- a/buyer/src/api/distribution.js +++ /dev/null @@ -1,110 +0,0 @@ -import request, {Method} from '@/plugins/request.js'; - -/** - * 获取当前会员分销信息 - */ -export function distribution () { - return request({ - url: `/buyer/distribution/distribution`, - method: Method.GET, - needToken: true - }); -} - -/** - * 申请成为分销员 - * @param idNumber 身份证号 - * @param name 名字 - */ -export function applyDistribution (params) { - return request({ - url: `/buyer/distribution/distribution`, - method: Method.POST, - needToken: true, - params - }); -} - -/** - * 获取分销员订单列表 - */ -export function getDistOrderList (params) { - return request({ - url: `/buyer/distribution/order`, - method: Method.GET, - needToken: true, - params - }); -} - -/** - * 获取分销员下级用户列表 - */ -export function getDistMemberList (params) { - return request({ - url: `/buyer/distribution/distribution/memberList`, - method: Method.GET, - needToken: true, - params - }); -} - -/** - * 获取分销商商品列表 - */ -export function getDistGoodsList (params) { - return request({ - url: `/buyer/distribution/goods`, - method: Method.GET, - needToken: true, - params - }); -} - -/** - * 分销员提现历史 - */ -export function distCashHistory (params) { - return request({ - url: `/buyer/distribution/cash`, - method: Method.GET, - needToken: true, - params - }); -} - -/** - * 分销员-团队列表 - */ -export function getDistGroupList (params) { - return request({ - url: `/buyer/distribution/distribution/groupList`, - method: Method.GET, - needToken: true, - params - }); -} - -/** - * 分销商提现 - */ -export function distCash (params) { - return request({ - url: `/buyer/distribution/cash`, - method: Method.POST, - needToken: true, - params - }); -} - -/** - * 绑定分销 - * @param distributionId 商品分销ID - */ -export function getGoodsDistribution (distributionId) { - return request({ - url: `/buyer/distribution/distribution/bindingDistribution/${distributionId}`, - method: Method.GET, - needToken: true - }); -} diff --git a/buyer/src/api/member.js b/buyer/src/api/member.js index ed2da4bc..eeb7de21 100644 --- a/buyer/src/api/member.js +++ b/buyer/src/api/member.js @@ -333,7 +333,92 @@ export function clearComplain (id) { }); } +/** + * 获取当前会员分销信息 + */ +export function distribution () { + return request({ + url: `/buyer/distribution/distribution`, + method: Method.GET, + needToken: true + }); +} +/** + * 申请成为分销商 + * @param idNumber 身份证号 + * @param name 名字 + */ +export function applyDistribution (params) { + return request({ + url: `/buyer/distribution/distribution`, + method: Method.POST, + needToken: true, + params + }); +} + +/** + * 获取分销商订单列表 + */ +export function getDistOrderList (params) { + return request({ + url: `/buyer/distribution/order`, + method: Method.GET, + needToken: true, + params + }); +} + +/** + * 获取分销商商品列表 + */ +export function getDistGoodsList (params) { + return request({ + url: `/buyer/distribution/goods`, + method: Method.GET, + needToken: true, + params + }); +} + +/** + * 绑定、解绑分销商品 + * @param distributionGoodsId 分销商品id + * @param checked 分销商品id,true为绑定,false为解绑 + */ +export function selectDistGoods (params) { + return request({ + url: `/buyer/distribution/goods/checked/${params.distributionGoodsId}`, + method: Method.GET, + needToken: true, + params + }); +} + +/** + * 分销商提现历史 + */ +export function distCashHistory (params) { + return request({ + url: `/buyer/distribution/cash`, + method: Method.GET, + needToken: true, + params + }); +} + +/** + * 分销商提现 + */ +export function distCash (params) { + return request({ + url: `/buyer/distribution/cash`, + method: Method.POST, + needToken: true, + params + }); +} /** * 我的足迹 diff --git a/buyer/src/pages/home/memberCenter/Distribution.vue b/buyer/src/pages/home/memberCenter/Distribution.vue index 33aa7526..1933950c 100644 --- a/buyer/src/pages/home/memberCenter/Distribution.vue +++ b/buyer/src/pages/home/memberCenter/Distribution.vue @@ -1,6 +1,6 @@
+

分销下线付款之后会生成分销订单。

-

交易完成后返佣可提现。

+

+ 冻结金额:用户提现金额即为冻结金额,审核通过后扣除冻结金额,审核拒绝之后冻结金额返回可提现金额。 +

+

可提现金额:分销订单佣金T+1解冻后可变为可提现金额。

+
- - - - - - - -
-
- -
-
- + - @@ -116,8 +101,15 @@ type="success" size="small" style="margin-right: 5px" - @click="fenxiao(row)">邀请好友 - + @click="fenxiao(row)" + >分销商品 +
@@ -132,30 +124,48 @@ >
- - - diff --git a/manager/src/components/lili/upload-pic-input.vue b/manager/src/components/lili/upload-pic-input.vue index 1bcfe01f..3e7cab05 100644 --- a/manager/src/components/lili/upload-pic-input.vue +++ b/manager/src/components/lili/upload-pic-input.vue @@ -47,7 +47,7 @@ - + diff --git a/manager/src/router/router.js b/manager/src/router/router.js index 803414ce..89e9b6a7 100644 --- a/manager/src/router/router.js +++ b/manager/src/router/router.js @@ -276,19 +276,7 @@ export const otherRouter = { title: "查看直播", name: "live-detail", component: () => import("@/views/promotions/live/live-detail.vue") - }, - { - path: "group-list", - title: "分销团队", - name: "group-list", - component: () => import("@/views/distribution/distributionGroup.vue") - }, - { - path: "distribution-member", - title: "分销会员列表", - name: "distribution-member", - component: () => import("@/views/distribution/distributionMember.vue") - }, + } ] }; diff --git a/manager/src/views/distribution/distribution.vue b/manager/src/views/distribution/distribution.vue index 3f762f12..5d5e2ba6 100644 --- a/manager/src/views/distribution/distribution.vue +++ b/manager/src/views/distribution/distribution.vue @@ -1,7 +1,7 @@ - - -
- -
-
+ + + + + + + + + + + + + + +
+
@@ -474,7 +476,7 @@ - + @@ -490,7 +492,7 @@ import {uploadFile} from "@/libs/axios"; import {regular} from "@/utils"; import DPlayer from 'dplayer'; // import ossManage from "@/views/sys/oss-manage/ossManage"; -import ossManage from "@/views/shop/ossManage"; +import ossManage from "@/views/shop/ossManages"; export default { @@ -746,8 +748,9 @@ export default { if (val && this.selectedFormBtnName == 'selectedSkuImages') { this.selectedSku.images.push(val); } else { - this.baseInfoForm[this.selectedFormBtnName].push(val); + this.baseInfoForm[this.selectedFormBtnName].push(val.url); } + }, confirmUrls() { if (this.selectedImage && this.selectedFormBtnName == 'selectedSkuImages') { diff --git a/seller/src/views/lili-components/editor/upload-image.vue b/seller/src/views/lili-components/editor/upload-image.vue index b1e3c553..6373db62 100644 --- a/seller/src/views/lili-components/editor/upload-image.vue +++ b/seller/src/views/lili-components/editor/upload-image.vue @@ -57,7 +57,7 @@ - + diff --git a/seller/src/views/my-components/lili/upload-pic-thumb.vue b/seller/src/views/my-components/lili/upload-pic-thumb.vue index 96d6c991..630bb1e8 100644 --- a/seller/src/views/my-components/lili/upload-pic-thumb.vue +++ b/seller/src/views/my-components/lili/upload-pic-thumb.vue @@ -57,7 +57,7 @@ - + @@ -65,7 +65,7 @@ diff --git a/seller/src/views/shop/wap/decorate.vue b/seller/src/views/shop/wap/decorate.vue index b53e89c7..d7dd8802 100644 --- a/seller/src/views/shop/wap/decorate.vue +++ b/seller/src/views/shop/wap/decorate.vue @@ -221,13 +221,13 @@ > - +