|
|
@@ -1,51 +1,22 @@
|
|
|
<template>
|
|
|
<view class="invite-page app-content">
|
|
|
- <view class="tabs">
|
|
|
- <Tabs
|
|
|
- :tabs="pageTabs"
|
|
|
- :currentTab="pageIndex"
|
|
|
- @change="changePageTab"
|
|
|
- :itemWidth="'50%'"
|
|
|
- :padding="0"
|
|
|
- ></Tabs>
|
|
|
- </view>
|
|
|
<view class="info-view">
|
|
|
<view class="info-main">
|
|
|
<app-avatar-module :width="100" />
|
|
|
<view class="content">
|
|
|
<view class="name"> {{ userInfo.merchantName || "" }}</view>
|
|
|
- <view class="mark"> 三级代理 </view>
|
|
|
+ <view class="mark"> 普通代理 </view>
|
|
|
</view>
|
|
|
-<!-- <button id="sharekh" v-if="pageIndex == 0" class="user-wrap-right btn" open-type="share">-->
|
|
|
-<!-- <img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" alt mode="widthFix" />-->
|
|
|
-<!-- </button>-->
|
|
|
- <button v-if="pageIndex == 0" class="user-wrap-right btn" @tap="toProcedure">
|
|
|
+
|
|
|
+ <button class="user-wrap-right btn" @tap="toProcedure">
|
|
|
<img :src="`${constant.imgUrl}/retail/interest/invite-store.png`" alt mode="widthFix" />
|
|
|
</button>
|
|
|
- <navigator v-else class="user-wrap-right" :url="`/pagesClient/official/index?shopAdminId=${loginInfo.shopAdminId}`">
|
|
|
+ <navigator class="user-wrap-right" :url="`/pagesClient/official/index?shopAdminId=${loginInfo.shopAdminId}`">
|
|
|
<img :src="`${constant.imgUrl}/ghs/me/yqghs.png`" alt mode="widthFix" />
|
|
|
</navigator>
|
|
|
-<!-- <button id="shareGhs" v-else class="user-wrap-right" open-type="share">-->
|
|
|
-<!-- <img :src="`${constant.imgUrl}/ghs/me/yqghs.png`" alt mode="widthFix" />-->
|
|
|
-<!-- </button>-->
|
|
|
- <!-- <image
|
|
|
- v-if="pageIndex == 0"
|
|
|
- class="btn"
|
|
|
- src="/static/images/invite/invite_supplier.png"
|
|
|
- alt="商品图"
|
|
|
- />
|
|
|
- <image
|
|
|
- v-else
|
|
|
- class="btn"
|
|
|
- src="/static/images/invite/invite_shop.png"
|
|
|
- alt="商品图"
|
|
|
- /> -->
|
|
|
</view>
|
|
|
<view class="info-list">
|
|
|
- <view class="info-item">
|
|
|
- <view class="item-value">{{ balance || 0 }}</view>
|
|
|
- <view class="item-name">帐户余额(¥)</view>
|
|
|
- </view>
|
|
|
+
|
|
|
<view class="info-item">
|
|
|
<view class="item-value">{{ invitedNum || 0 }}</view>
|
|
|
<view class="item-name">已邀请</view>
|
|
|
@@ -55,8 +26,8 @@
|
|
|
<view class="item-name">已付费</view>
|
|
|
</view>
|
|
|
<view class="info-item">
|
|
|
- <view class="item-value">{{ income || 0 }}</view>
|
|
|
- <view class="item-name">累计收益(¥)</view>
|
|
|
+ <view class="item-value">{{ income || 0.00 }}</view>
|
|
|
+ <view class="item-name">累计收益</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -109,16 +80,6 @@ export default {
|
|
|
merchantInfo: {},
|
|
|
pageIndex: 0,
|
|
|
constant: this.$constant,
|
|
|
- pageTabs: [
|
|
|
- {
|
|
|
- name: "花店",
|
|
|
- key: "2"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "供货商",
|
|
|
- key: "1"
|
|
|
- }
|
|
|
- ],
|
|
|
tabIndex: 0,
|
|
|
tabs: [
|
|
|
{
|
|
|
@@ -134,11 +95,7 @@ export default {
|
|
|
key: "2"
|
|
|
},
|
|
|
{
|
|
|
- name: "未通过",
|
|
|
- key: "3"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "已付费",
|
|
|
+ name: "已购买",
|
|
|
key: "4"
|
|
|
},
|
|
|
{
|
|
|
@@ -146,7 +103,6 @@ export default {
|
|
|
key: "5"
|
|
|
}
|
|
|
],
|
|
|
- balance: "", //余额
|
|
|
invitedNum: "", //已邀请
|
|
|
payNum: "", //已付费数量
|
|
|
income: "" //累计收益
|
|
|
@@ -209,25 +165,16 @@ export default {
|
|
|
});
|
|
|
|
|
|
},
|
|
|
-
|
|
|
- // async initMerchant() {
|
|
|
- // try {
|
|
|
- // const { data } = await getMerchantDetail();
|
|
|
- // this.merchantInfo = data;
|
|
|
- // } catch (error) {}
|
|
|
- // },
|
|
|
async init() {
|
|
|
this._list();
|
|
|
},
|
|
|
_list() {
|
|
|
return appyleListApi({
|
|
|
- status: this.tabs[this.tabIndex].key,
|
|
|
- style: this.pageTabs[this.pageIndex].key
|
|
|
+ status: this.tabs[this.tabIndex].key
|
|
|
}).then(res => {
|
|
|
const {
|
|
|
- data: { balance, invitedNum, payNum, income }
|
|
|
+ data: { invitedNum, payNum, income }
|
|
|
} = res;
|
|
|
- this.balance = balance;
|
|
|
this.invitedNum = invitedNum;
|
|
|
this.payNum = payNum;
|
|
|
this.income = income;
|
|
|
@@ -290,7 +237,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.user-wrap-right {
|
|
|
- width: 230px;
|
|
|
+ width: 150upx;
|
|
|
background-color: #fff;
|
|
|
margin-right: 0;
|
|
|
padding: 0;
|
|
|
@@ -300,7 +247,6 @@ export default {
|
|
|
}
|
|
|
.btn {
|
|
|
flex-shrink: 0;
|
|
|
- width: 231upx;
|
|
|
height: 80upx;
|
|
|
}
|
|
|
}
|