邀请码页面绘制

This commit is contained in:
zhangmanman
2021-09-29 15:39:11 +08:00
320 changed files with 829 additions and 757 deletions

View File

@@ -57,9 +57,6 @@
}
},
onShow(){
console.log(this.$Route)
this.parentId = this.$Route.query.invite || ''
},
methods: {

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,11 @@
</view>
<u-icon name="edit-pen-fill" @click='editBank(item.bank_account_id)' color="rgba(255,255,255,0.6)"
size='50' />
</view>
</view>
<!-- 底部新增按钮 -->
<view class="addBtn" @click="$Router.push({ name: 'addBank'})">
<u-icon name="plus" label-pos='bottom' color='#fff' label-color='#fff' label='新增' />
</view>
<!-- 无列表 -->
<no-list v-if="lists.length === 0" name='no-shop' txt="没有任何提现银行 ~ " />
<!-- <u-toast ref="uToast" /> -->
@@ -81,8 +85,8 @@
editBank(id) {
this.$Router.push({
name: 'addBank',
params:{
id:id
params: {
id: id
}
})
},
@@ -101,9 +105,9 @@
withdrawsAccountsDelete(id).then(res => {
console.log(res)
that.lists.splice(index, 1)
if(that.lists.length === 0){
if (that.lists.length === 0) {
uni.navigateBack({})
uni.setStorageSync('refresh',true)
uni.setStorageSync('refresh', true)
}
}).catch(err => {
this.$refs.uToast.show({
@@ -133,6 +137,24 @@
</script>
<style lang="scss" scoped>
.addBtn{
position: fixed;
bottom: 0;
margin: 40rpx;
text-align: center;
width: 130rpx;
height: 130rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
border-radius: 50%;
z-index: 100;
right: 0;
box-shadow: 0 0 20rpx 20rpx rgba($color: #fff, $alpha: .5);
background-image: linear-gradient(to right, #7c52fc, #976dff);
}
.selectCard {
width: 100%;
min-height: 100vh;

View File

@@ -330,7 +330,6 @@
color: #3a3a3a;
font-weight: bolder;
flex: 1;
}
}

46
pages/wxAuth/wxAuth.vue Normal file
View File

@@ -0,0 +1,46 @@
<template>
<view class="content vertical">
<u-loading mode="flower"></u-loading>
</view>
</template>
<script>
import { wxCode, wxOpenid } from '@/apis/interfaces/wx'
export default {
data() {
return {
};
},
created() {
// 微信鉴权
if(!this.$Route.query.code){
wxCode({
pages: 'wechat-auth'
}).then(res => {
window.location.href = res
})
}else{
wxOpenid({
code: this.$Route.query.code
}).then(res => {
this.$store.commit('setCode', res.openid)
this.$Router.replaceAll({name: 'Index'})
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
}
}
}
</script>
<style lang="scss">
.content{
background: white;
height: 100vh;
text-align: center;
}
</style>