更新
This commit is contained in:
42
pages/clearOpen/clearOpen.vue
Normal file
42
pages/clearOpen/clearOpen.vue
Normal file
@@ -0,0 +1,42 @@
|
||||
<template>
|
||||
<view class="vertical content">
|
||||
<view class="text">{{text}}</view>
|
||||
<button class="btn" type="default" :disabled="text != '清理完成'" size="mini" @click="$Router.pushTab({name: 'Index'})">返回首页</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
text: 'Opneid清理中...'
|
||||
};
|
||||
},
|
||||
created() {
|
||||
uni.removeStorage({
|
||||
key : 'wxCode',
|
||||
success : res => {
|
||||
setTimeout(() => {
|
||||
this.text = '清理完成'
|
||||
},1000)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.content{
|
||||
text-align: center;
|
||||
height: 100vh;
|
||||
background: white;
|
||||
}
|
||||
.text{
|
||||
color: gray;
|
||||
padding-bottom: $padding*2;
|
||||
}
|
||||
.btn{
|
||||
background: $mian-color;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
@@ -304,7 +304,7 @@
|
||||
.btns{
|
||||
padding-top: $padding * 2;
|
||||
button{
|
||||
background: $mian-color-deep;
|
||||
background: $mian-color;
|
||||
border-radius: 0;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
|
||||
@@ -125,8 +125,8 @@
|
||||
],
|
||||
timeIndex : 0,
|
||||
times : [
|
||||
{ type: 2, text: '固定时间(区间范围)' },
|
||||
{ type: 1, text: '延期券(用户领取后有效天数)' }
|
||||
{ type: 1, text: '固定时间(区间范围)' },
|
||||
{ type: 2, text: '延期券(用户领取后有效天数)' }
|
||||
],
|
||||
showDatePicker : false, // 活动弹出层时间
|
||||
datePickerValue : [], // 活动时间
|
||||
@@ -211,7 +211,7 @@
|
||||
days : this.timeNumber,
|
||||
goodsable_ids : this.coupongoods
|
||||
}
|
||||
|
||||
console.log(valuss)
|
||||
pushCoupons(valuss).then(res => {
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</view>
|
||||
<block v-if="coupons.length > 0">
|
||||
<view class="coupons">
|
||||
<view class="coupons-flex" v-for="(item, index) in coupons" :key="index" @click="$Router.push({name: 'magDetails', params: {couponId: item.coupon_id}})">
|
||||
<view class="coupons-flex" v-for="(item, index) in coupons" :key="index" @click="$Router.push({name: 'couponsDetails', params: {couponId: item.coupon_id}})">
|
||||
<view class="item cover">
|
||||
<view v-if="item.type.value === 2">
|
||||
<view class="cover-price">{{item.price || 0}}<text>元</text></view>
|
||||
@@ -45,7 +45,7 @@
|
||||
</block>
|
||||
<block v-else>
|
||||
<view class="list-null">
|
||||
<view class="sub-title">暂无相关优惠券</view>
|
||||
<no-list name='no-counpon' txt="没有任何相关优惠券~" />
|
||||
</view>
|
||||
</block>
|
||||
<view class="basisc-btn">
|
||||
@@ -177,17 +177,8 @@
|
||||
// 空提示
|
||||
.list-null{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
@extend .vertical;
|
||||
.sub-title{
|
||||
color: $text-gray;
|
||||
font-size: $title-size-m;
|
||||
}
|
||||
.icon{
|
||||
width: 288rpx;
|
||||
}
|
||||
// height: 100vh;
|
||||
padding-top: 200rpx;
|
||||
}
|
||||
// 订单管理
|
||||
.coupons{
|
||||
|
||||
@@ -1,35 +1,38 @@
|
||||
<template>
|
||||
<view>
|
||||
<!-- 商品列表 -->
|
||||
<view class="lists">
|
||||
<view class="goods-item" v-for="(item, index) in goods" :key="index">
|
||||
<checkbox class="checkbox" :checked="item.isSelect" @click="onSelect(index)"/>
|
||||
<view class="mian">
|
||||
<image class="cover" :src="item.cover" mode="aspectFill" />
|
||||
<view class="title">{{item.title}}</view>
|
||||
<view class="subtitle">{{item.description}}</view>
|
||||
<view class="mian-flex">
|
||||
<view class="price"><text>¥</text>{{item.price}}</view>
|
||||
<view class="inventory">权证剩余{{item.stock}}</view>
|
||||
<block>
|
||||
<!-- 商品列表 -->
|
||||
<view class="lists">
|
||||
<view class="goods-item" v-for="(item, index) in goods" :key="index">
|
||||
<checkbox class="checkbox" :checked="item.isSelect" @click="onSelect(index)"/>
|
||||
<view class="mian">
|
||||
<image class="cover" :src="item.cover" mode="aspectFill" />
|
||||
<view class="title">{{item.title}}</view>
|
||||
<view class="subtitle">{{item.description}}</view>
|
||||
<view class="mian-flex">
|
||||
<view class="price"><text>¥</text>{{item.price}}</view>
|
||||
<view class="inventory">权证剩余{{item.stock}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="ios-bottom"></view>
|
||||
</view>
|
||||
<view class="ios-bottom"></view>
|
||||
</view>
|
||||
<!-- footer -->
|
||||
<view class="footer">
|
||||
<view class="footer-flex">
|
||||
<view class="flex-checkbox">
|
||||
<checkbox class="checkbox" :checked="allSelect" @click="onAllSelect"/>
|
||||
<label for="all">
|
||||
<view class="text">全选</view>
|
||||
<view class="sub-text">已选{{selectGoods.length}}件</view>
|
||||
</label>
|
||||
<!-- footer -->
|
||||
<view class="footer">
|
||||
<view class="footer-flex">
|
||||
<view class="flex-checkbox">
|
||||
<checkbox class="checkbox" :checked="allSelect" @click="onAllSelect"/>
|
||||
<label for="all">
|
||||
<view class="text">全选</view>
|
||||
<view class="sub-text">已选{{selectGoods.length}}件</view>
|
||||
</label>
|
||||
</view>
|
||||
<view class="flex-button" @click="setGoods">确定</view>
|
||||
</view>
|
||||
<view class="flex-button" @click="setGoods">确定</view>
|
||||
<view class="ios-bottom"></view>
|
||||
</view>
|
||||
<view class="ios-bottom"></view>
|
||||
</view>
|
||||
</block>
|
||||
<no-list v-if="goods.length === 0" name='no-goods' txt="没有任何可选商品~" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
</view>
|
||||
<view class="signBtn">
|
||||
<block v-if="sign.signCan">
|
||||
<view class="signBtn-go" @tap="signClick" style="cursor:pointer" >
|
||||
<view class="signBtn-go" @click="signClick" style="cursor:pointer" >
|
||||
签到领取能量碎片
|
||||
</view>
|
||||
</block>
|
||||
@@ -139,21 +139,17 @@
|
||||
|
||||
// 签到
|
||||
signClick() {
|
||||
uni.vibrateShort({
|
||||
success: () => {
|
||||
operateSign().then(res => {
|
||||
this.sign.signSuccess = res.task_crystals
|
||||
// 获取水晶签到信息
|
||||
this.sign.signShow = true
|
||||
this.signInfo();
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: err
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
operateSign().then(res => {
|
||||
this.sign.signSuccess = res.task_crystals
|
||||
// 获取水晶签到信息
|
||||
this.sign.signShow = true
|
||||
this.signInfo();
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: err
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 能量跳转
|
||||
@@ -323,9 +319,7 @@
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-top: -50rpx;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
margin-top: -50rpx;
|
||||
.signBtn-go {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
|
||||
@@ -26,9 +26,13 @@
|
||||
},
|
||||
created() {
|
||||
managesCategory().then(res => {
|
||||
console.log(res)
|
||||
this.loding = false
|
||||
this.category = res
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods:{
|
||||
|
||||
@@ -89,7 +89,8 @@
|
||||
wechatbind,
|
||||
resetUserInfo,
|
||||
getUserSettingInfo,
|
||||
companyStatus
|
||||
companyStatus,
|
||||
companyIsallow
|
||||
} from '@/apis/interfaces/setting'
|
||||
import {
|
||||
uploads
|
||||
@@ -141,9 +142,18 @@
|
||||
company(code) {
|
||||
if (code === -1) {
|
||||
// 跳转到企业认证页面
|
||||
this.$Router.push({
|
||||
name:'companyApprove'
|
||||
companyIsallow().then(res=>{
|
||||
this.$Router.push({
|
||||
name:'companyApprove'
|
||||
})
|
||||
}).catch(err=>{
|
||||
this.$refs.uToast.show({
|
||||
title: err.message,
|
||||
type: 'primary',
|
||||
duration: 3000
|
||||
})
|
||||
})
|
||||
|
||||
} else if (code === 2) {
|
||||
// 跳转到企业认证页面
|
||||
this.$Router.push({
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<swiper class="code-swiper" previous-margin="70rpx" next-margin="70rpx" @change="swiperChange">
|
||||
<swiper-item v-for="(item, index) in inviteData" :key="index">
|
||||
<view class="code-item">
|
||||
<view class="code-lay"></view>
|
||||
<image class="code-back-image" :src="item.cover" mode="aspectFill"></image>
|
||||
<view class="codDate">
|
||||
<view class="codDate-year">
|
||||
@@ -314,6 +315,12 @@
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0 $padding/2;
|
||||
.code-lay{
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
.code-back-image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
1976
pages/user/index.vue
1976
pages/user/index.vue
File diff suppressed because it is too large
Load Diff
1100
pages/user/new_file.vue
Normal file
1100
pages/user/new_file.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -6,23 +6,30 @@
|
||||
<view class="item" :class="{'show': larer == '1'}" @click="onTabs('1')">直接</view>
|
||||
<view class="item" :class="{'show': larer == '2'}" @click="onTabs('2')">间接</view>
|
||||
</view>
|
||||
|
||||
<view class="partner-list">
|
||||
<view class="partner-label" v-for="(item, index) in lists" :key="index" :larer='larer'>
|
||||
<image class="partner-avatar" :src="item.avatar ? item.avatar : '/static/user/user-portrait.png'" mode="aspectFill"></image>
|
||||
<view class="partner-cont">
|
||||
<view class="partner-name">
|
||||
<view class="partner-nickname">
|
||||
{{item.nickname}}
|
||||
</view>
|
||||
<image v-if="item.identity" class="partner-identity" :src="item.identity.cover" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="partner-tel">
|
||||
{{item.username}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block v-if="lists.length > 0">
|
||||
<view class="partner-list">
|
||||
<view class="partner-label" v-for="(item, index) in lists" :key="index" :larer='larer'>
|
||||
<image class="partner-avatar" :src="item.avatar ? item.avatar : '/static/user/user-portrait.png'" mode="aspectFill"></image>
|
||||
<view class="partner-cont">
|
||||
<view class="partner-name">
|
||||
<view class="partner-nickname">
|
||||
{{item.nickname}}
|
||||
</view>
|
||||
<image v-if="item.identity" class="partner-identity" :src="item.identity.cover" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="partner-tel">
|
||||
{{item.username}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-else>
|
||||
<view class="list-null">
|
||||
<image class="icon" src="@/static/icons/approve-icon.png" mode="widthFix"></image>
|
||||
<view class="sub-title">暂未数据</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -66,6 +73,34 @@
|
||||
.content{
|
||||
padding-top: 90rpx;
|
||||
}
|
||||
|
||||
// 空提示
|
||||
.list-null{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
padding-bottom: 20vh;
|
||||
box-sizing: border-box;
|
||||
background: white;
|
||||
text-align: center;
|
||||
@extend .vertical;
|
||||
.sub-title{
|
||||
color: $text-gray;
|
||||
font-size: $title-size-m;
|
||||
}
|
||||
.icon{
|
||||
width: 288rpx;
|
||||
}
|
||||
.sub-btn{
|
||||
width: 200rpx;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
text-align: center;
|
||||
background: $mian-color;
|
||||
color: white;
|
||||
display: inline-block;
|
||||
margin-top: $margin*2;
|
||||
}
|
||||
}
|
||||
|
||||
// tabs
|
||||
.tabs{
|
||||
|
||||
@@ -231,17 +231,20 @@ export default {
|
||||
},
|
||||
|
||||
// 微信支付
|
||||
wechatPay(id, wx) {
|
||||
wechatPay(id, wx) {
|
||||
vipWechatPay(id, {
|
||||
openid: this.$store.getters.getCode
|
||||
}).then(payConfig => {
|
||||
wx.chooseWXPay({...payConfig,
|
||||
success: ()=> {
|
||||
uni.showToast({
|
||||
title: '支付成功',
|
||||
icon: "success"
|
||||
})
|
||||
this.idenInfo();
|
||||
success() {
|
||||
uni.showModal({
|
||||
title : '提示',
|
||||
content : '支付成功,恭喜您成功开通',
|
||||
cancelColor: '#8b64fd',
|
||||
success() {
|
||||
this.$Router.back()
|
||||
}
|
||||
})
|
||||
},
|
||||
fail(err) {
|
||||
uni.showToast({
|
||||
@@ -250,7 +253,12 @@ export default {
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 勾选协议
|
||||
|
||||
@@ -26,14 +26,15 @@
|
||||
<view style="flex: 1;">
|
||||
<view class="inputTxt">提现数量</view>
|
||||
<input class="input_num" v-model="withdraw_input" @input='inputNum' type="number"
|
||||
placeholder-style="color:#999;font-weight:normal; font-size:34rpx;" placeholder="请输入提现数量" />
|
||||
placeholder-style="color:#999;font-weight:normal; font-size:34rpx;"
|
||||
placeholder="请输入提现数量" :disabled="balance===0" />
|
||||
</view>
|
||||
<view class="all" @click="all">全部提现</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="total" v-if="total">≈ ¥{{total.toFixed(2)}} </view>
|
||||
<view class="btn" @click="actions">提现至银行卡</view>
|
||||
<view class="des">预计5- 10个工作日到账 手续费: {{tax}}%</view>
|
||||
<view class="des">预计5- 10个工作日到账 手续费: {{tax === '0'?'免手续费':tax+'%'}}</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -73,6 +74,7 @@
|
||||
this.cost = res.cost
|
||||
this.bank_accounts = res.bank_accounts.length
|
||||
this.withdraw_input = Number(res.balance)
|
||||
this.total = Number(res.balance) * Number(res.cost)
|
||||
uni.setStorageSync('refresh', false)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
@@ -84,16 +86,30 @@
|
||||
// 输入提现能量球数量
|
||||
inputNum(e) {
|
||||
let number = Number(e.detail.value)
|
||||
if (number <= this.balance) {
|
||||
console.log(number, this.balance)
|
||||
if (number <= Number(this.balance)) {
|
||||
this.total = Number(e.detail.value) * this.cost
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '最大值能超过' + this.balance + '',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
this.withdraw_input = ''
|
||||
this.total = 0
|
||||
if (Number(this.balance) === 0) {
|
||||
uni.showToast({
|
||||
title: '当前不能提现',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
this.withdraw_input = 0
|
||||
this.total = 0
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '最大值能超过' + this.balance + '',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
this.withdraw_input = this.balance
|
||||
this.total = this.balance * this.cost
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
@@ -108,6 +124,7 @@
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
this.withdraw_input = 0
|
||||
}
|
||||
},
|
||||
// 提现
|
||||
@@ -132,7 +149,7 @@
|
||||
}
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: '您是否确认提现,将会扣除' + this.tax + '%手续费',
|
||||
content:this.tax === '0'?'您是否确认提现,交易将免手续费':'您是否确认提现,将会扣除' + this.tax + '%手续费',
|
||||
confirmColor: '#7c52fc',
|
||||
cancelColor: '#cacaca',
|
||||
cancelText: '我再想想',
|
||||
@@ -321,10 +338,12 @@
|
||||
color: #666;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
.inputTxt{
|
||||
|
||||
.inputTxt {
|
||||
color: #999;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.input_num {
|
||||
font-size: 60rpx;
|
||||
color: #3a3a3a;
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<image src="/static/imgs/record-icon.png" mode="widthFix" class="record-icon" />
|
||||
<view class="">
|
||||
<view class="record-list-item-top">
|
||||
<view class="title ellipsis-2">{{item.remark}}</view>
|
||||
<view class="title ellipsis-1">{{item.remark}} <span class='tags'>{{item.frozen.text}}</span></view>
|
||||
<view class="money" >{{item.amount}}</view>
|
||||
</view>
|
||||
<view class="record-list-item-date">{{item.created_at}}</view>
|
||||
@@ -222,7 +222,11 @@
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
width: 600rpx;
|
||||
|
||||
.tags{
|
||||
padding-left: 20rpx;
|
||||
color: #ff5500;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.title {
|
||||
font-size: 28rpx;
|
||||
width: 600rpx;
|
||||
|
||||
@@ -11,17 +11,19 @@
|
||||
</view>
|
||||
<view class="record-mouth-year">
|
||||
<view class="record-type-right">
|
||||
<view class="record-title">当前能量球</view>
|
||||
<view class="record-title">当前能量球
|
||||
<view class="record-type-left">
|
||||
<u-picker mode="time" v-model="show" :params="params" @confirm='confirm' title='筛选日期'
|
||||
start-year='2021' :end-year='currentYear' />
|
||||
<view @click="show = true">
|
||||
{{date?date:'选择日期'}}
|
||||
<uni-icons type="arrowdown" color="#fff" size="12" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="record-money">{{account || '0.00'}} </view>
|
||||
</view>
|
||||
<view class="record-type-left">
|
||||
<u-picker mode="time" v-model="show" :params="params" @confirm='confirm' title='筛选日期'
|
||||
start-year='2021' :end-year='currentYear' />
|
||||
<view @click="show = true">
|
||||
{{date?date:'选择日期'}}
|
||||
<uni-icons type="arrowdown" color="#fff" size="12" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<!-- <view class="record-title">碎片个数</view>
|
||||
<view class="record-money"><span>¥</span>{{account || '0.00'}}</view> -->
|
||||
@@ -337,6 +339,12 @@
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
padding: 0 0 20rpx 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.record-money {
|
||||
@@ -381,11 +389,13 @@
|
||||
font-size: 30rpx;
|
||||
padding-top: 10rpx;
|
||||
color: $text-price;
|
||||
.left-des{
|
||||
|
||||
.left-des {
|
||||
color: #999;
|
||||
font-size: 26rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
|
||||
span:nth-child(2) {
|
||||
color: #C0C0C0;
|
||||
font-weight: normal;
|
||||
|
||||
Reference in New Issue
Block a user