chore(组件): 全部使用easycom来处理组件问题
This commit is contained in:
@@ -152,9 +152,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import validate from 'common/js/validate.js';
|
||||
import uniPopup from '@/components/uni-popup/uni-popup.vue';
|
||||
import fenxiaoWords from 'common/js/fenxiao-words.js';
|
||||
import validate from '@/common/js/validate.js';
|
||||
import fenxiaoWords from '@/common/js/fenxiao-words.js';
|
||||
import htmlParser from '@/common/js/html-parser';
|
||||
export default {
|
||||
data() {
|
||||
@@ -187,9 +186,6 @@
|
||||
isOpen: false
|
||||
};
|
||||
},
|
||||
components: {
|
||||
uniPopup
|
||||
},
|
||||
mixins: [fenxiaoWords],
|
||||
onLoad(option) {
|
||||
setTimeout( () => {
|
||||
|
||||
@@ -22,12 +22,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
|
||||
export default {
|
||||
@@ -37,14 +34,11 @@ export default {
|
||||
showEmpty: true
|
||||
};
|
||||
},
|
||||
components: {
|
||||
nsLogin,
|
||||
MescrollUni,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
components: {
|
||||
MescrollUni,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
},
|
||||
onShow() {
|
||||
setTimeout( () => {
|
||||
|
||||
@@ -41,9 +41,6 @@
|
||||
|
||||
<script>
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
@@ -57,10 +54,7 @@ export default {
|
||||
};
|
||||
},
|
||||
components: {
|
||||
nsLogin,
|
||||
MescrollUni,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
|
||||
@@ -2,28 +2,28 @@
|
||||
<view class="content" :style="themeColor">
|
||||
<mescroll-uni ref="mescroll" @getData="getGoodsList">
|
||||
<block slot="list">
|
||||
<view class="goods-list" :style="{ backgroundImage: 'url(' + $util.img('public/uniapp/fenxiao/promote/promote_bg.png') + ')' }">
|
||||
<view class="goods-list"
|
||||
:style="{ backgroundImage: 'url(' + $util.img('public/uniapp/fenxiao/promote/promote_bg.png') + ')' }">
|
||||
<scroll-view class="quick-nav" scroll-x="true">
|
||||
<!-- #ifdef MP -->
|
||||
<view class="uni-scroll-view-content">
|
||||
<!-- #endif -->
|
||||
<view class="quick-nav-item" :class="{ selected: categoryId == 0 }" @click="changeCategory(0)">全部</view>
|
||||
<view
|
||||
class="quick-nav-item"
|
||||
v-for="item in categoryList"
|
||||
:key="item.category_id"
|
||||
<view class="quick-nav-item" :class="{ selected: categoryId == 0 }"
|
||||
@click="changeCategory(0)">全部</view>
|
||||
<view class="quick-nav-item" v-for="item in categoryList" :key="item.category_id"
|
||||
:class="{ selected: categoryId == item.category_id }"
|
||||
@click="changeCategory(item.category_id)"
|
||||
>
|
||||
@click="changeCategory(item.category_id)">
|
||||
{{ item.category_name }}
|
||||
</view>
|
||||
<!-- #ifdef MP -->
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</scroll-view>
|
||||
<view v-for="(item, index) in goodsList" :key="index" class="goods-item" @click="navToDetailPage(item)">
|
||||
<view v-for="(item, index) in goodsList" :key="index" class="goods-item"
|
||||
@click="navToDetailPage(item)">
|
||||
<view class="image-wrap">
|
||||
<image :src="$util.img(item.sku_image, { size: 'mid' })" @error="imageError(index)" mode="aspectFill" />
|
||||
<image :src="$util.img(item.sku_image, { size: 'mid' })" @error="imageError(index)"
|
||||
mode="aspectFill" />
|
||||
</view>
|
||||
<view class="goods-content">
|
||||
<view class="goods-name">
|
||||
@@ -132,22 +132,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
import list from './public/js/goods_list.js';
|
||||
import fenxiaoWords from 'common/js/fenxiao-words.js';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
nsLogin,
|
||||
MescrollUni,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
@@ -157,7 +151,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.quick-nav >>> .uni-scroll-view-content {
|
||||
.quick-nav>>>.uni-scroll-view-content {
|
||||
display: flex;
|
||||
}
|
||||
</style>
|
||||
@@ -165,8 +159,10 @@ export default {
|
||||
/deep/ .uni-popup__wrapper.uni-custom .uni-popup__wrapper-box {
|
||||
max-height: unset !important;
|
||||
}
|
||||
|
||||
.quick-nav {
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.quick-nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -190,6 +186,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
overflow: hidden;
|
||||
padding: 0 30rpx 160rpx;
|
||||
@@ -202,12 +199,14 @@ export default {
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
box-sizing: border-box;
|
||||
|
||||
.goods-item {
|
||||
margin-bottom: 20rpx;
|
||||
background: #ffffff;
|
||||
padding: $padding;
|
||||
display: flex;
|
||||
border-radius: 10rpx;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
@@ -221,6 +220,7 @@ export default {
|
||||
border-radius: 10rpx;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -241,6 +241,7 @@ export default {
|
||||
.goods-name {
|
||||
width: 100%;
|
||||
line-height: 1.3;
|
||||
|
||||
.name {
|
||||
line-height: 1.3;
|
||||
word-break: break-all;
|
||||
@@ -250,10 +251,12 @@ export default {
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.label-list {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 6rpx;
|
||||
|
||||
.label-item {
|
||||
padding: 4rpx 10rpx;
|
||||
font-size: $font-size-tag;
|
||||
@@ -285,6 +288,7 @@ export default {
|
||||
padding: 0 $padding;
|
||||
border-radius: 50rpx;
|
||||
border: 2rpx solid $base-color;
|
||||
|
||||
text {
|
||||
color: $base-color;
|
||||
border-radius: 40rpx;
|
||||
@@ -299,6 +303,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.active-btn {
|
||||
position: fixed;
|
||||
bottom: 40rpx;
|
||||
@@ -312,10 +317,12 @@ export default {
|
||||
border-radius: 50rpx;
|
||||
background-color: $base-color;
|
||||
color: #fff;
|
||||
|
||||
.btn {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.share-btn {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -355,6 +362,7 @@ export default {
|
||||
border: none;
|
||||
line-height: 1;
|
||||
height: auto;
|
||||
|
||||
text {
|
||||
margin-top: 20rpx;
|
||||
font-size: $font-size-tag;
|
||||
@@ -367,6 +375,7 @@ export default {
|
||||
font-size: 80rpx;
|
||||
line-height: initial;
|
||||
}
|
||||
|
||||
.icon-fuzhilianjie,
|
||||
.icon-pengyouquan,
|
||||
.icon-haowuquan,
|
||||
@@ -383,39 +392,48 @@ export default {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.poster-layer {
|
||||
.generate-poster {
|
||||
padding: 40rpx 0;
|
||||
|
||||
.iconfont {
|
||||
font-size: 80rpx;
|
||||
color: #07c160;
|
||||
line-height: initial;
|
||||
}
|
||||
> view {
|
||||
|
||||
>view {
|
||||
text-align: center;
|
||||
|
||||
&:last-child {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.image-wrap {
|
||||
width: 64%;
|
||||
height: 854rpx;
|
||||
margin: 60rpx auto 40rpx auto;
|
||||
box-shadow: 0 0 32rpx rgba(100, 100, 100, 0.3);
|
||||
|
||||
image {
|
||||
width: 480rpx;
|
||||
height: 854rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.msg {
|
||||
padding: 40rpx;
|
||||
}
|
||||
|
||||
.save {
|
||||
text-align: center;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
|
||||
.close {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
@@ -261,12 +261,8 @@
|
||||
|
||||
<script>
|
||||
import fenxiaoWords from '@/common/js/fenxiao-words.js';
|
||||
import uniPopup from '@/components/uni-popup/uni-popup.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
uniPopup
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
info: {
|
||||
|
||||
@@ -2,40 +2,51 @@
|
||||
<view :style="themeColor">
|
||||
<view class="withdraw-cate">
|
||||
<block v-for="(item, index) in category" :key="index">
|
||||
<view @click="selectCate(item.id)" class="cate-li" :class="{ 'active color-base-text color-base-bg-before': selectId == item.id }">{{ item.name }}</view>
|
||||
<view @click="selectCate(item.id)" class="cate-li"
|
||||
:class="{ 'active color-base-text color-base-bg-before': selectId == item.id }">{{ item.name }}
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<mescroll-uni ref="mescroll" @getData="getData" top="90" class="member-point" :size="8" v-if="storeToken">
|
||||
<view class="goods_list" slot="list">
|
||||
<view class="order-list">
|
||||
<view class="order-item" v-for="(orderItem, orderIndex) in orderList" :key="orderIndex" @click="toDetail(orderItem.fenxiao_order_id)">
|
||||
<view class="order-item" v-for="(orderItem, orderIndex) in orderList" :key="orderIndex"
|
||||
@click="toDetail(orderItem.fenxiao_order_id)">
|
||||
<view class="order-header">
|
||||
<text class="site-name font-size-base">{{ orderItem.order_no }}</text>
|
||||
<text class="status-name color-base-text" v-if="orderItem.is_refund == 1">已退款</text>
|
||||
<text class="status-name color-text-green" v-else-if="orderItem.is_settlement == 1">已结算</text>
|
||||
<text class="status-name color-text-green"
|
||||
v-else-if="orderItem.is_settlement == 1">已结算</text>
|
||||
<text class="status-name color-text-orange" v-else>待结算</text>
|
||||
</view>
|
||||
|
||||
<view class="order-body">
|
||||
<view class="goods-wrap">
|
||||
<view class="goods-img">
|
||||
<image :src="$util.img(orderItem.sku_image, { size: 'mid' })" @error="imageError(orderIndex)" mode="aspectFill" :lazy-load="true"></image>
|
||||
<image :src="$util.img(orderItem.sku_image, { size: 'mid' })"
|
||||
@error="imageError(orderIndex)" mode="aspectFill" :lazy-load="true"></image>
|
||||
</view>
|
||||
<view class="goods-info">
|
||||
<view class="top-wrap">
|
||||
<view class="goods-name font-size-base">{{ orderItem.sku_name }}</view>
|
||||
<view>
|
||||
<text class="color-tip">返{{ fenxiaoWords.account }}</text>
|
||||
<text class="price-color price-style small">{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="price-color price-style large" >{{ parseFloat(orderItem.commission).toFixed(2).split(".")[0] }}</text>
|
||||
<text class="price-color price-style small">.{{ parseFloat(orderItem.commission).toFixed(2).split(".")[1] }}</text>
|
||||
<text class="price-color price-style small">{{
|
||||
$lang('common.currencySymbol') }}</text>
|
||||
<text class="price-color price-style large">{{
|
||||
parseFloat(orderItem.commission).toFixed(2).split(".")[0] }}</text>
|
||||
<text class="price-color price-style small">.{{
|
||||
parseFloat(orderItem.commission).toFixed(2).split(".")[1] }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="goods-sub-section">
|
||||
<view class="goods-price">
|
||||
<text class="unit price-style small">{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="price-color price-style large" >{{ parseFloat(orderItem.price).toFixed(2).split(".")[0] }}</text>
|
||||
<text class="unit price-style small">.{{ parseFloat(orderItem.price).toFixed(2).split(".")[1] }}</text>
|
||||
<text class="unit price-style small">{{ $lang('common.currencySymbol')
|
||||
}}</text>
|
||||
<text class="price-color price-style large">{{
|
||||
parseFloat(orderItem.price).toFixed(2).split(".")[0] }}</text>
|
||||
<text class="unit price-style small">.{{
|
||||
parseFloat(orderItem.price).toFixed(2).split(".")[1] }}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>
|
||||
@@ -57,18 +68,24 @@
|
||||
<view class="total">
|
||||
<text>合计:</text>
|
||||
<text class="price-color">{{ $lang('common.currencySymbol') }}</text>
|
||||
<text class="price-color font-size-toolbar" >{{ parseFloat(orderItem.real_goods_money).toFixed(2).split(".")[0] }}</text>
|
||||
<text class="price-color">.{{ parseFloat(orderItem.real_goods_money).toFixed(2).split(".")[1] }}</text>
|
||||
<text class="price-color font-size-toolbar">{{
|
||||
parseFloat(orderItem.real_goods_money).toFixed(2).split(".")[0] }}</text>
|
||||
<text class="price-color">.{{
|
||||
parseFloat(orderItem.real_goods_money).toFixed(2).split(".")[1] }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cart-empty">
|
||||
<ns-empty text="暂无订单" :isIndex="false" v-if="selectId == 0 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
<ns-empty text="暂无待结算订单" :isIndex="false" v-if="selectId == 1 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
<ns-empty text="暂无已结算订单" :isIndex="false" v-if="selectId == 2 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
<ns-empty text="暂无已退款订单" :isIndex="false" v-if="selectId == 3 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
<ns-empty text="暂无订单" :isIndex="false"
|
||||
v-if="selectId == 0 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
<ns-empty text="暂无待结算订单" :isIndex="false"
|
||||
v-if="selectId == 1 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
<ns-empty text="暂无已结算订单" :isIndex="false"
|
||||
v-if="selectId == 2 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
<ns-empty text="暂无已退款订单" :isIndex="false"
|
||||
v-if="selectId == 3 && orderList.length == 0 && emptyShow"></ns-empty>
|
||||
</view>
|
||||
</view>
|
||||
</mescroll-uni>
|
||||
@@ -79,20 +96,14 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
import fenxiaoWords from 'common/js/fenxiao-words.js';
|
||||
export default {
|
||||
components: {
|
||||
nsLogin,
|
||||
MescrollUni,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
@@ -133,7 +144,7 @@ export default {
|
||||
if (option.type != undefined) this.selectId = option.type;
|
||||
},
|
||||
onShow() {
|
||||
setTimeout( () => {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启分销',
|
||||
@@ -144,9 +155,9 @@ export default {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
}, 2000);
|
||||
}
|
||||
},1000);
|
||||
}, 1000);
|
||||
|
||||
if(this.fenxiaoWords && this.fenxiaoWords.concept)this.$langConfig.title(this.fenxiaoWords.concept + '订单');
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.concept) this.$langConfig.title(this.fenxiaoWords.concept + '订单');
|
||||
|
||||
if (!this.storeToken) {
|
||||
this.$nextTick(() => {
|
||||
@@ -204,7 +215,7 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
storeToken: function(nVal, oVal) {
|
||||
storeToken: function (nVal, oVal) {
|
||||
if (nVal) {
|
||||
this.$refs.mescroll.refresh();
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<swiper-item v-for="(item, index) in poster" :key="index">
|
||||
<view class="swiper-item">
|
||||
<view class="poster-wrap">
|
||||
<image :src="$util.img(item)" mode="widthFix" :show-menu-by-longpress="true"/>
|
||||
<image :src="$util.img(item)" mode="widthFix" :show-menu-by-longpress="true" />
|
||||
</view>
|
||||
</view>
|
||||
</swiper-item>
|
||||
@@ -25,7 +25,8 @@
|
||||
<view class="action-wrap">
|
||||
<view @click="closeDialog">取消</view>
|
||||
<view>
|
||||
<button type="default" open-type="openSetting" @opensetting="closeDialog" hover-class="none">立即授权</button>
|
||||
<button type="default" open-type="openSetting" @opensetting="closeDialog"
|
||||
hover-class="none">立即授权</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -42,265 +43,261 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
Weixin
|
||||
} from 'common/js/wx-jssdk.js';
|
||||
import uniPopup from '@/components/uni-popup/uni-popup.vue';
|
||||
import {
|
||||
Weixin
|
||||
} from 'common/js/wx-jssdk.js';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
poster: [],
|
||||
fenxiaoInfo: {},
|
||||
posterIndex: 0,
|
||||
//海报模板id
|
||||
templateId: ['default'],
|
||||
mpShareData: null //小程序分享数据
|
||||
};
|
||||
},
|
||||
components: {
|
||||
uniPopup
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 获取分销海报
|
||||
*/
|
||||
getPoster(id) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$api.sendRequest({
|
||||
url: '/fenxiao/api/fenxiao/poster',
|
||||
data: {
|
||||
page: '/pages/index/index',
|
||||
qrcode_param: JSON.stringify({}),
|
||||
template_id: id
|
||||
},
|
||||
success: res => {
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
if (res.code >= 0) {
|
||||
resolve(res.data.path);
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
reject();
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
getIndex(e) {
|
||||
this.posterIndex = e.detail.current;
|
||||
},
|
||||
save() {
|
||||
// #ifdef MP
|
||||
uni.downloadFile({
|
||||
url: this.$util.img(this.poster[this.posterIndex]),
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
poster: [],
|
||||
fenxiaoInfo: {},
|
||||
posterIndex: 0,
|
||||
//海报模板id
|
||||
templateId: ['default'],
|
||||
mpShareData: null //小程序分享数据
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 获取分销海报
|
||||
*/
|
||||
getPoster(id) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$api.sendRequest({
|
||||
url: '/fenxiao/api/fenxiao/poster',
|
||||
data: {
|
||||
page: '/pages/index/index',
|
||||
qrcode_param: JSON.stringify({}),
|
||||
template_id: id
|
||||
},
|
||||
success: res => {
|
||||
if (res.statusCode === 200) {
|
||||
uni.saveImageToPhotosAlbum({
|
||||
filePath: res.tempFilePath,
|
||||
success: () => {
|
||||
this.$util.showToast({
|
||||
title: '保存成功'
|
||||
});
|
||||
},
|
||||
fail: res => {
|
||||
if (res.errMsg == 'saveImageToPhotosAlbum:fail auth deny' ||
|
||||
res.errMsg == 'saveImageToPhotosAlbum:fail:auth denied') {
|
||||
this.$refs.popupDialog.open();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '保存失败,请稍后重试'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '下载失败'
|
||||
});
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
if (res.code >= 0) {
|
||||
resolve(res.data.path);
|
||||
}
|
||||
},
|
||||
fail: res => {
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
reject();
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
getIndex(e) {
|
||||
this.posterIndex = e.detail.current;
|
||||
},
|
||||
save() {
|
||||
// #ifdef MP
|
||||
uni.downloadFile({
|
||||
url: this.$util.img(this.poster[this.posterIndex]),
|
||||
success: res => {
|
||||
if (res.statusCode === 200) {
|
||||
uni.saveImageToPhotosAlbum({
|
||||
filePath: res.tempFilePath,
|
||||
success: () => {
|
||||
this.$util.showToast({
|
||||
title: '保存成功'
|
||||
});
|
||||
},
|
||||
fail: res => {
|
||||
if (res.errMsg == 'saveImageToPhotosAlbum:fail auth deny' ||
|
||||
res.errMsg == 'saveImageToPhotosAlbum:fail:auth denied') {
|
||||
this.$refs.popupDialog.open();
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '保存失败,请稍后重试'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: '下载失败'
|
||||
});
|
||||
}
|
||||
});
|
||||
// #endif
|
||||
},
|
||||
getFenxiaoDetail() {
|
||||
this.poster = [];
|
||||
try {
|
||||
this.templateId.forEach((item, index) => {
|
||||
this.getPoster(item).then(resolve => {
|
||||
this.poster.push(resolve);
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
}).catch(reject => {
|
||||
throw reject;
|
||||
});
|
||||
});
|
||||
} catch {
|
||||
},
|
||||
fail: res => {
|
||||
this.$util.showToast({
|
||||
title: '海报生成失败'
|
||||
title: '下载失败'
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
closeDialog() {
|
||||
this.$refs.popupDialog.close();
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
setTimeout( () => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
}, 2000);
|
||||
}
|
||||
},1000);
|
||||
|
||||
if (option.templateId) {
|
||||
this.templateId = option.templateId.split(',');
|
||||
}
|
||||
|
||||
if (this.storeToken) {
|
||||
if(option.poster){
|
||||
this.poster = decodeURIComponent(option.poster).split(',')
|
||||
setTimeout(() => {
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
}, 500)
|
||||
}else{
|
||||
this.getFenxiaoDetail();
|
||||
}
|
||||
|
||||
} else {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/promote_code');
|
||||
});
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
//小程序分享
|
||||
// #ifdef MP-WEIXIN
|
||||
this.$util.getMpShare().then(res => {
|
||||
this.mpShareData = res;
|
||||
});
|
||||
// #endif
|
||||
},
|
||||
//分享给好友
|
||||
onShareAppMessage() {
|
||||
return this.mpShareData.appMessage;
|
||||
getFenxiaoDetail() {
|
||||
this.poster = [];
|
||||
try {
|
||||
this.templateId.forEach((item, index) => {
|
||||
this.getPoster(item).then(resolve => {
|
||||
this.poster.push(resolve);
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
}).catch(reject => {
|
||||
throw reject;
|
||||
});
|
||||
});
|
||||
} catch {
|
||||
this.$util.showToast({
|
||||
title: '海报生成失败'
|
||||
});
|
||||
}
|
||||
},
|
||||
//分享到朋友圈
|
||||
onShareTimeline() {
|
||||
return this.mpShareData.timeLine;
|
||||
},
|
||||
watch: {
|
||||
storeToken: function(nVal, oVal) {
|
||||
if (nVal) {
|
||||
this.getFenxiaoDetail();
|
||||
}
|
||||
|
||||
closeDialog() {
|
||||
this.$refs.popupDialog.close();
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启分销',
|
||||
mask: true,
|
||||
duration: 2000
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
}, 2000);
|
||||
}
|
||||
}, 1000);
|
||||
|
||||
if (option.templateId) {
|
||||
this.templateId = option.templateId.split(',');
|
||||
}
|
||||
|
||||
if (this.storeToken) {
|
||||
if (option.poster) {
|
||||
this.poster = decodeURIComponent(option.poster).split(',')
|
||||
setTimeout(() => {
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
}, 500)
|
||||
} else {
|
||||
this.getFenxiaoDetail();
|
||||
}
|
||||
|
||||
} else {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.login.open('/pages_promotion/fenxiao/promote_code');
|
||||
});
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
//小程序分享
|
||||
// #ifdef MP-WEIXIN
|
||||
this.$util.getMpShare().then(res => {
|
||||
this.mpShareData = res;
|
||||
});
|
||||
// #endif
|
||||
},
|
||||
//分享给好友
|
||||
onShareAppMessage() {
|
||||
return this.mpShareData.appMessage;
|
||||
},
|
||||
//分享到朋友圈
|
||||
onShareTimeline() {
|
||||
return this.mpShareData.timeLine;
|
||||
},
|
||||
watch: {
|
||||
storeToken: function (nVal, oVal) {
|
||||
if (nVal) {
|
||||
this.getFenxiaoDetail();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.container {
|
||||
width: 100vw;
|
||||
min-height: 100vh;
|
||||
background-color: #f5f5f5;
|
||||
.container {
|
||||
width: 100vw;
|
||||
min-height: 100vh;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.poster-wrap {
|
||||
padding: 40rpx 0;
|
||||
width: calc(100vw - 80rpx);
|
||||
margin: 0 40rpx;
|
||||
line-height: 1;
|
||||
|
||||
image {
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.poster-wrap {
|
||||
padding: 40rpx 0;
|
||||
width: calc(100vw - 80rpx);
|
||||
margin: 0 40rpx;
|
||||
line-height: 1;
|
||||
.swiper {
|
||||
height: 1240rpx;
|
||||
}
|
||||
|
||||
image {
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
margin: 0 80rpx;
|
||||
margin-top: 30rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
border-radius: $border-radius;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.swiper {
|
||||
height: 1240rpx;
|
||||
}
|
||||
.tips {
|
||||
text-align: center;
|
||||
font-size: $font-size-base;
|
||||
color: #999;
|
||||
font-weight: 600;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin: 0 80rpx;
|
||||
margin-top: 30rpx;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
border-radius: $border-radius;
|
||||
color: #fff;
|
||||
.dialog-popup {
|
||||
width: 580rpx;
|
||||
background: #fff;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10rpx;
|
||||
overflow: hidden;
|
||||
height: initial;
|
||||
|
||||
.title {
|
||||
padding: 30rpx 30rpx 0 30rpx;
|
||||
text-align: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tips {
|
||||
.message {
|
||||
padding: 0 30rpx;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
font-size: $font-size-base;
|
||||
color: #999;
|
||||
font-weight: 600;
|
||||
margin-top: 20rpx;
|
||||
line-height: 1.3;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
|
||||
.dialog-popup {
|
||||
width: 580rpx;
|
||||
background: #fff;
|
||||
box-sizing: border-box;
|
||||
border-radius: 10rpx;
|
||||
overflow: hidden;
|
||||
height: initial;
|
||||
.action-wrap {
|
||||
margin-top: 50rpx;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
border-top: 2rpx solid #eee;
|
||||
|
||||
.title {
|
||||
padding: 30rpx 30rpx 0 30rpx;
|
||||
&>view {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
line-height: 80rpx;
|
||||
|
||||
.message {
|
||||
padding: 0 30rpx;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
font-size: $font-size-base;
|
||||
line-height: 1.3;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
&:first-child {
|
||||
border-right: 2rpx solid #eee;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.action-wrap {
|
||||
margin-top: 50rpx;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
border-top: 2rpx solid #eee;
|
||||
|
||||
&>view {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
button {
|
||||
border: none;
|
||||
line-height: 80rpx;
|
||||
|
||||
&:first-child {
|
||||
border-right: 2rpx solid #eee;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
button {
|
||||
border: none;
|
||||
line-height: 80rpx;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -3,17 +3,22 @@
|
||||
<mescroll-uni ref="mescroll" @getData="getData" top="0" :size="10">
|
||||
<view slot="list">
|
||||
<block v-if="list.length != 0">
|
||||
<view class="banner" :style="{background: 'url('+ $util.img('public/uniapp/fenxiao/index/header_bg.png') +') no-repeat top left / 100% 100%'}">
|
||||
<view class="banner"
|
||||
:style="{ background: 'url(' + $util.img('public/uniapp/fenxiao/index/header_bg.png') + ') no-repeat top left / 100% 100%' }">
|
||||
<view class="info">
|
||||
<view class="info-pic">
|
||||
<image :src="info.headimg ? $util.img(info.headimg) : $util.getDefaultImage().head" @error="info.headimg = $util.getDefaultImage().head" mode="aspectFill"/>
|
||||
<image :src="info.headimg ? $util.img(info.headimg) : $util.getDefaultImage().head"
|
||||
@error="info.headimg = $util.getDefaultImage().head" mode="aspectFill" />
|
||||
</view>
|
||||
<view class="member-info">
|
||||
<view class="rank-info-box">
|
||||
<text class="name">{{info.nickname}}</text>
|
||||
<text class="name">{{ info.nickname }}</text>
|
||||
</view>
|
||||
<view class="withdrawal" @click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_apply')" v-if="type == 'profit'">点击提现</view>
|
||||
<view class="withdrawal" @click="$util.redirectTo('/pages_promotion/fenxiao/team')" v-if="type == 'invited_num'">我的团队</view>
|
||||
<view class="withdrawal"
|
||||
@click="$util.redirectTo('/pages_promotion/fenxiao/withdraw_apply')"
|
||||
v-if="type == 'profit'">点击提现</view>
|
||||
<view class="withdrawal" @click="$util.redirectTo('/pages_promotion/fenxiao/team')"
|
||||
v-if="type == 'invited_num'">我的团队</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -26,7 +31,7 @@
|
||||
</view>
|
||||
<view class="all-money-tit-wrap">
|
||||
<text class="all-money-tit">分销佣金</text>
|
||||
<text class="all-money-num">{{ info.today_commission}}元</text>
|
||||
<text class="all-money-num">{{ info.today_commission }}元</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -50,7 +55,7 @@
|
||||
</view>
|
||||
<view class="all-money-tit-wrap">
|
||||
<text class="all-money-tit">推广人数</text>
|
||||
<text class="all-money-num">{{ info.one_child_num}}人</text>
|
||||
<text class="all-money-num">{{ info.one_child_num }}人</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -67,20 +72,21 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="title-rakn-text" v-if="type == 'profit'">佣金排行</view>
|
||||
<view class="title-rakn-text" v-if="type == 'invited_num'">推广排行</view>
|
||||
<view class="title-rakn-text" v-if="type == 'profit'">佣金排行</view>
|
||||
<view class="title-rakn-text" v-if="type == 'invited_num'">推广排行</view>
|
||||
|
||||
<view class="ranking-list">
|
||||
<view class="ranking-item" v-for="(item, index) in list" :key="index">
|
||||
<view class="ranking price-font">{{ index + 1 }}</view>
|
||||
<view class="content">
|
||||
<view class="head-img">
|
||||
<image :src="item.headimg ? $util.img(item.headimg) : $util.getDefaultImage().head" @error="item.headimg = $util.getDefaultImage().head" mode="aspectFill"/>
|
||||
<image :src="item.headimg ? $util.img(item.headimg) : $util.getDefaultImage().head"
|
||||
@error="item.headimg = $util.getDefaultImage().head" mode="aspectFill" />
|
||||
</view>
|
||||
<view class="nickname">{{ item.nickname }}</view>
|
||||
</view>
|
||||
<view class="price-font price-style" v-if="type == 'profit'">
|
||||
¥{{ item.total_commission|moneyFormat }}</view>
|
||||
¥{{ item.total_commission | moneyFormat }}</view>
|
||||
<view class="price-font price-style" v-if="type == 'invited_num'">{{ item.child_num }}人
|
||||
</view>
|
||||
</view>
|
||||
@@ -97,337 +103,331 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
|
||||
|
||||
export default {
|
||||
components: {
|
||||
nsLogin,
|
||||
MescrollUni,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
emptyShow: false,
|
||||
type: '',
|
||||
ranking: 0,
|
||||
info: {}
|
||||
}
|
||||
},
|
||||
onLoad(data) {
|
||||
this.type = data.type;
|
||||
this.getRanking();
|
||||
this.getFenxiaoDetail();
|
||||
},
|
||||
methods: {
|
||||
getData(mescroll) {
|
||||
this.emptyShow = false;
|
||||
if (mescroll.num == 1) {
|
||||
this.list = [];
|
||||
}
|
||||
this.$api.sendRequest({
|
||||
url: '/fenxiao/api/fenxiao/rankinglist',
|
||||
data: {
|
||||
page_size: mescroll.size,
|
||||
page: mescroll.num,
|
||||
type: this.type
|
||||
},
|
||||
success: res => {
|
||||
this.emptyShow = true;
|
||||
let newArr = [];
|
||||
let msg = res.message;
|
||||
if (res.code == 0 && res.data) {
|
||||
newArr = res.data.list;
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: msg
|
||||
});
|
||||
}
|
||||
mescroll.endSuccess(newArr.length);
|
||||
//设置列表数据
|
||||
if (mescroll.num == 1) this.list = []; //如果是第一页需手动制空列表
|
||||
this.list = this.list.concat(newArr); //追加新数据
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
},
|
||||
fail: res => {
|
||||
mescroll.endErr();
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
}
|
||||
});
|
||||
},
|
||||
getRanking() {
|
||||
this.$api.sendRequest({
|
||||
url: '/fenxiao/api/fenxiao/ranking',
|
||||
data: {
|
||||
type: this.type
|
||||
},
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.ranking = res.data;
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getFenxiaoDetail() {
|
||||
this.$api.sendRequest({
|
||||
url: '/fenxiao/api/fenxiao/detail',
|
||||
success: res => {
|
||||
if (res.data) {
|
||||
this.info = res.data;
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
export default {
|
||||
components: {
|
||||
MescrollUni,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
emptyShow: false,
|
||||
type: '',
|
||||
ranking: 0,
|
||||
info: {}
|
||||
}
|
||||
},
|
||||
onLoad(data) {
|
||||
this.type = data.type;
|
||||
this.getRanking();
|
||||
this.getFenxiaoDetail();
|
||||
},
|
||||
methods: {
|
||||
getData(mescroll) {
|
||||
this.emptyShow = false;
|
||||
if (mescroll.num == 1) {
|
||||
this.list = [];
|
||||
}
|
||||
this.$api.sendRequest({
|
||||
url: '/fenxiao/api/fenxiao/rankinglist',
|
||||
data: {
|
||||
page_size: mescroll.size,
|
||||
page: mescroll.num,
|
||||
type: this.type
|
||||
},
|
||||
success: res => {
|
||||
this.emptyShow = true;
|
||||
let newArr = [];
|
||||
let msg = res.message;
|
||||
if (res.code == 0 && res.data) {
|
||||
newArr = res.data.list;
|
||||
} else {
|
||||
this.$util.showToast({
|
||||
title: msg
|
||||
});
|
||||
}
|
||||
mescroll.endSuccess(newArr.length);
|
||||
//设置列表数据
|
||||
if (mescroll.num == 1) this.list = []; //如果是第一页需手动制空列表
|
||||
this.list = this.list.concat(newArr); //追加新数据
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
},
|
||||
fail: res => {
|
||||
mescroll.endErr();
|
||||
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
}
|
||||
});
|
||||
},
|
||||
getRanking() {
|
||||
this.$api.sendRequest({
|
||||
url: '/fenxiao/api/fenxiao/ranking',
|
||||
data: {
|
||||
type: this.type
|
||||
},
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.ranking = res.data;
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getFenxiaoDetail() {
|
||||
this.$api.sendRequest({
|
||||
url: '/fenxiao/api/fenxiao/detail',
|
||||
success: res => {
|
||||
if (res.data) {
|
||||
this.info = res.data;
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
.container {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.banner {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
// background: $base-color;
|
||||
}
|
||||
.banner {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
// background: $base-color;
|
||||
}
|
||||
|
||||
.info {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 50rpx 80rpx 0;
|
||||
box-sizing: border-box;
|
||||
.info {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 50rpx 80rpx 0;
|
||||
box-sizing: border-box;
|
||||
|
||||
.info-pic {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
.info-pic {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50%;
|
||||
border: 4rpx solid #fff;
|
||||
position: relative;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
border: 4rpx solid #fff;
|
||||
position: relative;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.member-info {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
margin-left: 32rpx;
|
||||
display: flex;
|
||||
|
||||
view {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.rank-info-box {
|
||||
line-height: 1;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.withdrawal {
|
||||
border-radius: 4px;
|
||||
line-height: 23px;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.fenxiao-team {
|
||||
.member-info {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
margin-left: 32rpx;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin-top: 22rpx;
|
||||
|
||||
.fenxiao-index-other {
|
||||
margin: 0 24rpx 20rpx 24rpx;
|
||||
border-radius: 16rpx;
|
||||
background-color: #ffffff;
|
||||
padding: 30rpx 0;
|
||||
view {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.rank-info-box {
|
||||
line-height: 1;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-left: 0;
|
||||
.name {
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.withdrawal {
|
||||
border-radius: 4px;
|
||||
line-height: 23px;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.fenxiao-team {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin-top: 22rpx;
|
||||
|
||||
.fenxiao-index-other {
|
||||
margin: 0 24rpx 20rpx 24rpx;
|
||||
border-radius: 16rpx;
|
||||
background-color: #ffffff;
|
||||
padding: 30rpx 0;
|
||||
flex: 1;
|
||||
|
||||
&:last-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.all-money-item {
|
||||
margin: 0 30rpx;
|
||||
display: flex;
|
||||
font-size: $font-size-tag;
|
||||
align-items: center;
|
||||
|
||||
.img-wrap {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.all-money-item {
|
||||
margin: 0 30rpx;
|
||||
.all-money-tit-wrap {
|
||||
flex: 1;
|
||||
margin-left: 24rpx;
|
||||
display: flex;
|
||||
font-size: $font-size-tag;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
height: 70rpx;
|
||||
|
||||
.img-wrap {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.all-money-tit {
|
||||
line-height: 1;
|
||||
color: $color-title;
|
||||
font-size: $font-size-base;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.all-money-tit-wrap {
|
||||
flex: 1;
|
||||
margin-left: 24rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 70rpx;
|
||||
|
||||
.all-money-tit {
|
||||
line-height: 1;
|
||||
color: $color-title;
|
||||
font-size: $font-size-base;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.all-money-num {
|
||||
color: $color-tip;
|
||||
font-size: 24rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
.all-money-num {
|
||||
color: $color-tip;
|
||||
font-size: 24rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.icon-wenxiao {
|
||||
text-align: center;
|
||||
font-size: 50rpx;
|
||||
color: var(--base-color) !important;
|
||||
}
|
||||
.icon-wenxiao {
|
||||
text-align: center;
|
||||
font-size: 50rpx;
|
||||
color: var(--base-color) !important;
|
||||
}
|
||||
|
||||
.number {
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
.number {
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.info-text {
|
||||
font-size: 20rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.info-text {
|
||||
font-size: 20rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.info-title {
|
||||
font-size: 50rpx;
|
||||
font-weight: 900;
|
||||
color: #f5f5f5;
|
||||
text-align: center;
|
||||
}
|
||||
.info-title {
|
||||
font-size: 50rpx;
|
||||
font-weight: 900;
|
||||
color: #f5f5f5;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.info-rank {
|
||||
color: #f5f5f5;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.info-rank {
|
||||
color: #f5f5f5;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
|
||||
.title-rakn-text {
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
font-weight: 900;
|
||||
}
|
||||
.title-rakn-text {
|
||||
text-align: center;
|
||||
font-size: 30rpx;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.ranking-list {
|
||||
transform: translateY(-120rpx);
|
||||
margin: 200rpx 24rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
padding: 10rpx 20rpx;
|
||||
margin-top: 140rpx;
|
||||
.ranking-list {
|
||||
transform: translateY(-120rpx);
|
||||
margin: 200rpx 24rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
padding: 10rpx 20rpx;
|
||||
margin-top: 140rpx;
|
||||
|
||||
.ranking-item {
|
||||
.ranking-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20rpx 0;
|
||||
border-bottom: 2rpx solid #f5f5f5;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.ranking {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20rpx 0;
|
||||
border-bottom: 2rpx solid #f5f5f5;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
&:nth-child(1) .ranking {
|
||||
background: rgb(249, 186, 1);
|
||||
border-radius: 50%;
|
||||
border: 10rpx solid rgb(254, 220, 92);
|
||||
}
|
||||
|
||||
.ranking {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
&:nth-child(2) .ranking {
|
||||
background: rgb(172, 185, 194);
|
||||
border-radius: 50%;
|
||||
border: 10rpx solid rgb(215, 223, 229);
|
||||
}
|
||||
|
||||
&:nth-child(3) .ranking {
|
||||
background: rgb(211, 163, 136);
|
||||
border-radius: 50%;
|
||||
border: 10rpx solid rgb(235, 201, 190);
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
padding: 0 20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.head-img {
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
&:nth-child(1) .ranking {
|
||||
background: rgb(249, 186, 1);
|
||||
border-radius: 50%;
|
||||
border: 10rpx solid rgb(254, 220, 92);
|
||||
}
|
||||
overflow: hidden;
|
||||
|
||||
&:nth-child(2) .ranking {
|
||||
background: rgb(172, 185, 194);
|
||||
border-radius: 50%;
|
||||
border: 10rpx solid rgb(215, 223, 229);
|
||||
}
|
||||
|
||||
&:nth-child(3) .ranking {
|
||||
background: rgb(211, 163, 136);
|
||||
border-radius: 50%;
|
||||
border: 10rpx solid rgb(235, 201, 190);
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
padding: 0 20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.head-img {
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.nickname {
|
||||
color: #333;
|
||||
margin: 0 20rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.nickname {
|
||||
color: #333;
|
||||
margin: 0 20rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -73,9 +73,6 @@
|
||||
|
||||
<script>
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
@@ -83,10 +80,7 @@ import fenxiaoWords from 'common/js/fenxiao-words.js';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
nsLogin,
|
||||
MescrollUni,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
|
||||
@@ -84,19 +84,13 @@
|
||||
|
||||
<script>
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
import fenxiaoWords from 'common/js/fenxiao-words.js';
|
||||
export default {
|
||||
components: {
|
||||
nsLogin,
|
||||
MescrollUni,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
|
||||
@@ -5,16 +5,20 @@
|
||||
<block v-if="withdrawList.length">
|
||||
<view class="detailed-wrap">
|
||||
<view class="cont">
|
||||
<view class="detailed-item" v-for="(item, index) in withdrawList" :key="index" @click="toDetail(item.id)">
|
||||
<view class="detailed-item" v-for="(item, index) in withdrawList" :key="index"
|
||||
@click="toDetail(item.id)">
|
||||
<view class="info">
|
||||
<view class="event">{{ item.transfer_type=='balance'&&'余额' || item.transfer_type=='alipay'&&'支付宝' || item.transfer_type=='bank'&&'银行卡' || item.transfer_type=='wechatpay'&&'微信' }}</view>
|
||||
<view class="event">{{ item.transfer_type == 'balance' && '余额' ||
|
||||
item.transfer_type == 'alipay' && '支付宝' || item.transfer_type == 'bank' && '银行卡' ||
|
||||
item.transfer_type =='wechatpay'&&'微信' }}</view>
|
||||
<view>
|
||||
<text class="time">{{ $util.timeStampTurnTime(item.create_time) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="right-wrap">
|
||||
<view class="num color-base-text">¥{{ item.money }}</view>
|
||||
<view class="status-name" :style="withdrawState[item.status].color">{{ item.status_name }}</view>
|
||||
<view class="status-name" :style="withdrawState[item.status].color">{{
|
||||
item.status_name }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -30,25 +34,19 @@
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
import nsLogin from '@/components/ns-login/ns-login.vue';
|
||||
import loadingCover from '@/components/loading-cover/loading-cover.vue';
|
||||
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
|
||||
// #ifdef MP-WEIXIN
|
||||
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
|
||||
// #endif
|
||||
import fenxiaoWords from 'common/js/fenxiao-words.js';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
nsLogin,
|
||||
MescrollUni,
|
||||
loadingCover,
|
||||
nsEmpty,
|
||||
// #ifdef MP-WEIXIN
|
||||
privacyPopup
|
||||
// #endif
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
withdrawState: {
|
||||
@@ -74,7 +72,7 @@ export default {
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
setTimeout( () => {
|
||||
setTimeout(() => {
|
||||
if (!this.addonIsExist.fenxiao) {
|
||||
this.$util.showToast({
|
||||
title: '商家未开启分销',
|
||||
@@ -85,9 +83,9 @@ export default {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
}, 2000);
|
||||
}
|
||||
},1000);
|
||||
}, 1000);
|
||||
|
||||
if(this.fenxiaoWords && this.fenxiaoWords.withdraw)this.$langConfig.title(this.fenxiaoWords.withdraw + '明细');
|
||||
if (this.fenxiaoWords && this.fenxiaoWords.withdraw) this.$langConfig.title(this.fenxiaoWords.withdraw + '明细');
|
||||
|
||||
if (!this.storeToken) {
|
||||
this.$nextTick(() => {
|
||||
@@ -173,7 +171,7 @@ export default {
|
||||
display: flex;
|
||||
height: 90rpx;
|
||||
|
||||
& > view {
|
||||
&>view {
|
||||
flex: 1;
|
||||
text-align: left;
|
||||
padding: 0 $padding;
|
||||
|
||||
Reference in New Issue
Block a user