123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- <template>
- <view>
- <view v-if="!check.pass">
- <view class="main-center app-progress-area">
- <view class="cross-center dir-top-nowrap condition">
- <image v-if="check.all_children > -1" src="../image/no-member.png"></image>
- <image v-else-if="check.all_order > -1" src="../image/no-order.png"></image>
- <image v-else src="../image/no-money.png"></image>
- <view>0
- <text v-if="check.all_children > -1">人</text>
- <text v-else-if="check.all_order > -1">单</text>
- <text v-else>元</text>
- </view>
- </view>
- <view class="cross-center progress-item">
- <view class="progress"></view>
- <view class="active-progress" :style="{'width': `${rate + '%'}`}"></view>
- <view class="cross-center dir-top-nowrap active-icon">
- <view :style="{'left': `${rate + '%'}`}" class="condition-detail">
- <text v-if="check.all_children > -1">{{check.all_children}}</text>
- <text v-if="check.all_order > -1">{{check.all_order}}</text>
- <text v-if="check.all_money > -1">{{check.all_money}}</text>
- <text v-if="check.cash_money > -1">{{check.cash_money}}</text>
- <text v-if="check.total_money > -1">{{check.total_money}}</text>
- <text v-if="check.all_children > -1">人</text>
- <text v-else-if="check.all_order > -1">单</text>
- <text v-else>元</text>
- </view>
- <view :style="{'left': `${rate + '%'}`}" class="line"></view>
- <image :style="{'left': `${rate + '%'}`}" src="../image/progress.png"></image>
- </view>
- </view>
- <view class="cross-center dir-top-nowrap condition">
- <image v-if="check.all_children > -1" src="../image/member.png"></image>
- <image v-else-if="check.all_order > -1" src="../image/order.png"></image>
- <image v-else src="../image/money.png"></image>
- <view style='color: #ff4544'>{{check.condition}}
- <text v-if="check.all_children > -1">人</text>
- <text v-else-if="check.all_order > -1">单</text>
- <text v-else>元</text>
- </view>
- </view>
- </view>
- <view class="app-condition-info">
- <view>
- <text v-if="check.all_children > -1">下线总人数满</text>
- <text v-if="check.all_order > -1">分销订单总数满</text>
- <text v-if="check.all_money > -1">分销订单总金额满</text>
- <text v-if="check.cash_money > -1">已提现佣金总金额满</text>
- <text v-if="check.total_money > -1">累计佣金总金额满</text>
- <text class="condition-num">{{check.condition}}</text>
- <text v-if="check.all_children > -1">人</text>
- <text v-else-if="check.all_order > -1">单</text>
- <text v-else>元</text>
- <text v-if="setting.apply_type == 1 || setting.apply_type == 3">可申请成为股东</text>
- <text v-else>可自动成为股东</text>
- </view>
- <view>
- <text v-if="check.all_children > -1">您当前的下线总人数为</text>
- <text v-if="check.all_order > -1">您当前的分销订单总数为</text>
- <text v-if="check.all_money > -1">您当前的分销订单总金额为</text>
- <text v-if="check.cash_money > -1">您当前的已提现佣总金金额为</text>
- <text v-if="check.total_money > -1">您当前的累计佣金总金额为</text>
- <text class="condition-num" v-if="check.all_children > -1">{{check.all_children}}</text>
- <text class="condition-num" v-if="check.all_order > -1">{{check.all_order}}</text>
- <text class="condition-num" v-if="check.all_money > -1">{{check.all_money}}</text>
- <text class="condition-num" v-if="check.cash_money > -1">{{check.cash_money}}</text>
- <text class="condition-num" v-if="check.total_money > -1">{{check.total_money}}</text>
- <text v-if="check.all_children > -1">人</text>
- <text v-else-if="check.all_order > -1">单</text>
- <text v-else>元</text>
- </view>
- </view>
- <view @click="toIndex" class="app-to-index">去商城逛逛</view>
- </view>
- <view class="app-get" v-if="check.pass && !beApply">
- <image class="get-img" :src="stock.get"></image>
- <view class="get-text">您已达到成为股东条件</view>
- <view>
- <text v-if="check.all_children > -1">下线总人数:</text>
- <text v-if="check.all_order > -1">分销订单总数:</text>
- <text v-if="check.all_money > -1">分销订单总金额:</text>
- <text v-if="check.cash_money > -1">已提现佣金金额:</text>
- <text v-if="check.total_money > -1">累计佣金金额:</text>
- <text class="condition-num">{{check.condition}}</text>
- <text v-if="check.all_children > -1">人</text>
- <text v-else-if="check.all_order > -1">单</text>
- <text v-else>元</text>
- </view>
- <view class="apply-input cross-bottom main-center" v-if="setting.is_agreement == 1 && (setting.apply_type == 3 || setting.apply_type == 4)">
- <view class="read cross-bottom" @click="toggle">
- <image src="/static/image/icon/icon-uncheck.png" v-if="read == false"></image>
- <image src="/static/image/icon/icon-checkbox-checked-a.png" v-else></image>
- </view>
- <text>已阅读并同意《</text>
- <text class="agreement_title" @click="toRead">{{setting.agreement_title ? setting.agreement_title : '股东分红申请协议'}}</text>
- <text>》</text>
- </view>
- <view @click="toApply" class="app-to-index">申请成为股东</view>
- </view>
- </view>
- </template>
- <script>
- import { mapState } from "vuex";
- export default {
- name: 'app-condition',
- props: {
- check: {
- type: Object
- },
- read: {
- type: Boolean,
- default() {
- return false
- }
- },
- setting: {
- type: Object
- },
- rate: {
- type: Number,
- default() {
- return 0;
- }
- }
- },
- data() {
- return {
- beApply: false,
- }
- },
- computed: {
- ...mapState({
- stock: state => state.mallConfig.__wxapp_img.stock,
- })
- },
- methods: {
- toApply() {
- let that = this;
- if(that.setting.apply_type == 3 || that.setting.apply_type == 4) {
- that.$emit('submit');
- }else {
- that.beApply = true;
- that.$emit("update",that.beApply);
- }
- },
- toggle() {
- this.$emit("beRead");
- },
- toRead() {
- let that = this;
- that.$emit("toRead");
- },
- toIndex() {
- uni.reLaunch({
- url: '/pages/index/index'
- });
- },
- },
- creatd(options) {
- let that = this;
- }
- }
- </script>
- <style scoped lang="scss">
- .app-progress-area {
- margin-top: #{100rpx};
- .condition {
- font-size: #{24rpx};
- color: #999999;
- image {
- width: #{120rpx};
- height: #{100rpx};
- margin-bottom: #{8rpx};
- }
- }
- .progress-item {
- width: #{470rpx};
- height: #{5rpx};
- top: #{50rpx};
- border-radius: #{2.5rpx};
- background-color: #e3e3e3;
- position: relative;
- .active-progress {
- position: absolute;
- background-color: #ff4544;
- height: #{5rpx};
- top: 0;
- left: 0;
- height: 100%;
- }
- .active-icon {
- font-size: #{24rpx};
- color: #ff4544;
- .condition-detail {
- position: absolute;
- top: #{-68rpx};
- width: #{200rpx};
- margin-left: #{-100rpx};
- text-align: center;
- }
- .line {
- position: absolute;
- top: #{-30.5rpx};
- width: #{2rpx};
- height: #{30.5rpx};
- z-index: 5;
- background-color: #ff4544;
- }
- image {
- position: absolute;
- top: #{-17.5rpx};
- height: #{35rpx};
- width: #{35rpx};
- margin-left: #{-17.5rpx};
- z-index: 6;
- display: block;
- }
- }
- }
- }
- .app-condition-info {
- text-align: center;
- margin-top: #{70rpx};
- font-size: #{32rpx};
- color: #353535;
- view:first-of-type {
- margin-bottom: #{20rpx};
- }
- .condition-num {
- font-size: #{40rpx};
- color: #ff4544;
- font-family: DIN;
- }
- }
- .app-to-index {
- width: #{702rpx};
- height: #{80rpx};
- border-radius: #{40rpx};
- background-color: #ff4544;
- color: #fff;
- text-align: center;
- line-height: #{80rpx};
- font-size: #{32rpx};
- margin: #{210rpx} auto 0;
- }
- .app-get {
- font-size: #{28rpx};
- color: #353535;
- text-align: center;
- .get-img {
- width: #{650rpx};
- height: #{450rpx};
- margin: #{16rpx} auto;
- }
- .get-text {
- font-size: #{36rpx};
- margin-bottom: #{3rpx};
- }
- .app-to-index {
- margin-top: #{45rpx};
- width: #{440rpx};
- }
- .apply-input {
- height: #{60rpx};
- width: 100%;
- font-size: #{28rpx};
- color: #353535;
- .agreement_title {
- color:#ff4544;
- max-width: 360rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- text {
- display: inline-block;
- }
- .label {
- width: #{126rpx};
- }
- .read {
- width: #{42rpx};
- height: #{60rpx};
- padding-bottom: #{3rpx};
- padding-right: #{10rpx};
- image {
- height: #{32rpx};
- width: #{32rpx};
- display: block;
- }
- }
- }
- }
- </style>
|