feat:新增退出
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
"appid" : "__UNI__4910728",
|
"appid" : "__UNI__4910728",
|
||||||
"description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。",
|
"description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。",
|
||||||
"versionName" : "1.0.6",
|
"versionName" : "1.0.6",
|
||||||
"versionCode" : 173,
|
"versionCode" : 175,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<qiaobao-assistant page-key="pages/mine_package/mine_settings/mine_settings" title="账户设置" />
|
<qiaobao-assistant page-key="pages/mine_package/mine_settings/mine_settings" title="账户设置" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -116,7 +116,7 @@ export default {
|
|||||||
cancelAccount() {
|
cancelAccount() {
|
||||||
clear();
|
clear();
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/login_package/login/login'
|
url: 'pages/rwa_package/accountOut/accountOut'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
jumpInfo(type) {
|
jumpInfo(type) {
|
||||||
@@ -141,9 +141,9 @@ export default {
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/mine_package/mine_product_agreement/mine_product_agreement'
|
url: '/pages/mine_package/mine_product_agreement/mine_product_agreement'
|
||||||
})
|
})
|
||||||
}else if(type === 'contract'){
|
} else if (type === 'contract') {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/rwa_package/insights/index'
|
url: '/pages/rwa_package/insights/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -24,13 +24,14 @@
|
|||||||
<view class="bottom-btn">
|
<view class="bottom-btn">
|
||||||
<MyBtn text="已清楚风险,确定注销" @ok="onZhu"></MyBtn>
|
<MyBtn text="已清楚风险,确定注销" @ok="onZhu"></MyBtn>
|
||||||
</view>
|
</view>
|
||||||
<u-modal :show="tipsShow" title="提示" showCancelButton @cancel="onCancel" @confirm="onConfirm" :content='content'></u-modal>
|
<u-modal :show="tipsShow" title="提示" showCancelButton @cancel="onCancel" @confirm="onConfirm"
|
||||||
|
:content='content'></u-modal>
|
||||||
<up-toast ref="uToastRef"></up-toast>
|
<up-toast ref="uToastRef"></up-toast>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getUserInfo,updateName,deleteAccount } from '@/api/auth.js';
|
import { getUserInfo, updateName, deleteAccount } from '@/api/auth.js';
|
||||||
import Header from '@/components/common/header.vue';
|
import Header from '@/components/common/header.vue';
|
||||||
import { clear } from '@/utils/auth.js';
|
import { clear } from '@/utils/auth.js';
|
||||||
import TopSafe from '@/components/common/top-safe.nvue'
|
import TopSafe from '@/components/common/top-safe.nvue'
|
||||||
@@ -38,13 +39,13 @@ import MyBtn from '@/components/common/my-btn.vue'
|
|||||||
import func from '@/utils/func.js';
|
import func from '@/utils/func.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Header, TopSafe,MyBtn },
|
components: { Header, TopSafe, MyBtn },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userInfo: null,
|
userInfo: null,
|
||||||
inputText:'',
|
inputText: '',
|
||||||
tipsShow:false,
|
tipsShow: false,
|
||||||
content:'是否确定注销账号?'
|
content: '是否确定注销账号?'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -57,35 +58,35 @@ export default {
|
|||||||
init() {
|
init() {
|
||||||
this.userinfo()
|
this.userinfo()
|
||||||
},
|
},
|
||||||
onJump(){
|
onJump() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pages/rwa_package/outAgreement/outAgreement'
|
url: '/pages/rwa_package/outAgreement/outAgreement'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onZhu(){
|
onZhu() {
|
||||||
this.tipsShow = true;
|
this.tipsShow = true;
|
||||||
},
|
},
|
||||||
onConfirm(){
|
onConfirm() {
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
// url:'/pages/rwa_package/outCode/outCode'
|
// url:'/pages/rwa_package/outCode/outCode'
|
||||||
// })
|
// })
|
||||||
this.onCancel();
|
this.onCancel();
|
||||||
deleteAccount().then(res=>{
|
deleteAccount().then(res => {
|
||||||
if (res.bizcode == 100) {
|
if (res.bizcode == 100) {
|
||||||
clear()
|
clear()
|
||||||
this.$refs.uToastRef.show({
|
this.$refs.uToastRef.show({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: "注销成功",
|
message: "注销成功",
|
||||||
});
|
});
|
||||||
setTimeout(()=>{
|
setTimeout(() => {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url:'/pages/login_package/login/login'
|
url: '/pages/login_package/login/login'
|
||||||
})
|
})
|
||||||
},2000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onCancel(){
|
onCancel() {
|
||||||
this.tipsShow = false;
|
this.tipsShow = false;
|
||||||
},
|
},
|
||||||
userinfo() {
|
userinfo() {
|
||||||
@@ -101,9 +102,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.bottom-btn{
|
.bottom-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom:92rpx;
|
margin-bottom: 92rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -112,6 +113,7 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.setting-view {
|
.setting-view {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 88rpx - 92rpx - 88rpx - var(--status-bar-height));
|
height: calc(100% - 88rpx - 92rpx - 88rpx - var(--status-bar-height));
|
||||||
@@ -122,37 +124,41 @@ export default {
|
|||||||
padding: 0 32rpx;
|
padding: 0 32rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
position: relative;
|
position: relative;
|
||||||
.name-box{
|
|
||||||
width:100%;
|
.name-box {
|
||||||
|
width: 100%;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 64rpx 32rpx;
|
padding: 64rpx 32rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-top:24rpx;
|
margin-top: 24rpx;
|
||||||
.mid-view{
|
|
||||||
width:100%;
|
.mid-view {
|
||||||
|
width: 100%;
|
||||||
padding: 40rpx 32rpx;
|
padding: 40rpx 32rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
border:2rpx solid #eaeaea;
|
border: 2rpx solid #eaeaea;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
margin-top:48rpx;
|
margin-top: 48rpx;
|
||||||
}
|
}
|
||||||
.top-view{
|
|
||||||
width:100%;
|
.top-view {
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.input-view{
|
|
||||||
|
.input-view {
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
margin-top:52rpx;
|
margin-top: 52rpx;
|
||||||
width:100%;
|
width: 100%;
|
||||||
padding: 0 32rpx;
|
padding: 0 32rpx;
|
||||||
min-height:104rpx;
|
min-height: 104rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -4,20 +4,18 @@
|
|||||||
<Header title="设置" />
|
<Header title="设置" />
|
||||||
<view class="setting-view">
|
<view class="setting-view">
|
||||||
<view class="item-list mt-24">
|
<view class="item-list mt-24">
|
||||||
<view class="flex-r-lr item-box" @click="onHead(index)"
|
<view class="flex-r-lr item-box" @click="onHead(index)" v-for="(item, index) in headList" :key="index"
|
||||||
v-for="(item,index) in headList" :key="index"
|
:style="{ borderWidth: index == headList.length - 1 ? '0' : '2rpx' }">
|
||||||
:style="{borderWidth:index == headList.length - 1 ? '0' : '2rpx'}"
|
<view class="flex-r">
|
||||||
>
|
<text class="text-gray text-32">{{ item.text }}</text>
|
||||||
<view class="flex-r" >
|
|
||||||
<text class="text-gray text-32">{{item.text}}</text>
|
|
||||||
<view class="yi-view" v-if="item.type == 'text1' && item.she">
|
<view class="yi-view" v-if="item.type == 'text1' && item.she">
|
||||||
<text class="text-zi text-24">{{item.she}}</text>
|
<text class="text-zi text-24">{{ item.she }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-r-e" style="align-items: center;">
|
<view class="flex-r-e" style="align-items: center;">
|
||||||
<text class="text-zu text-32" v-if="item.type == 'text'">{{item.value}}</text>
|
<text class="text-zu text-32" v-if="item.type == 'text'">{{ item.value }}</text>
|
||||||
|
|
||||||
<text class="text-fu text-32" v-if="item.type == 'text1'">{{item.value}}</text>
|
<text class="text-fu text-32" v-if="item.type == 'text1'">{{ item.value }}</text>
|
||||||
<u-icon size="16" name="arrow-right" color="#666" style="margin-left:12rpx"></u-icon>
|
<u-icon size="16" name="arrow-right" color="#666" style="margin-left:12rpx"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -25,7 +23,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<up-toast ref="uToastRef"></up-toast>
|
<up-toast ref="uToastRef"></up-toast>
|
||||||
<qiaobao-assistant page-key="pages/rwa_package/accountSafe/accountSafe" title="账户设置" />
|
<qiaobao-assistant page-key="pages/rwa_package/accountSafe/accountSafe" title="账户设置" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -36,24 +34,24 @@ import MyBtn from '@/components/common/my-btn.vue'
|
|||||||
import func from '@/utils/func.js';
|
import func from '@/utils/func.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Header, TopSafe,MyBtn },
|
components: { Header, TopSafe, MyBtn },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
type: false,
|
type: false,
|
||||||
userInfo: null,
|
userInfo: null,
|
||||||
headList:[
|
headList: [
|
||||||
{text:'注册手机号',type:'text',value:''},
|
{ text: '注册手机号', type: 'text', value: '' },
|
||||||
{text:'交易密码设置',type:'text1',she:'',value:'设置密码'},
|
{ text: '交易密码设置', type: 'text1', she: '', value: '设置密码' },
|
||||||
{text:'登录密码设置',type:'text1',she:'',value:'设置密码'},
|
{ text: '登录密码设置', type: 'text1', she: '', value: '设置密码' },
|
||||||
{text:'注销账号',type:'text',value:''},
|
{ text: '注销账号', type: 'text', value: '' },
|
||||||
],
|
],
|
||||||
bottomList:[
|
bottomList: [
|
||||||
{text:'账号与安全'},
|
{ text: '账号与安全' },
|
||||||
{text:'我的合同'},
|
{ text: '我的合同' },
|
||||||
{text:'用户协议'},
|
{ text: '用户协议' },
|
||||||
{text:'隐私协议'},
|
{ text: '隐私协议' },
|
||||||
{text:'售后保障协议'},
|
{ text: '售后保障协议' },
|
||||||
{text:'关于我们'},
|
{ text: '关于我们' },
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -67,18 +65,18 @@ export default {
|
|||||||
init() {
|
init() {
|
||||||
this.userinfo()
|
this.userinfo()
|
||||||
},
|
},
|
||||||
onHead(index){
|
onHead(index) {
|
||||||
if(index == 1){
|
if (index == 1) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`/pages/rwa_package/forgotPass/forgotPass?type=1`
|
url: `/pages/rwa_package/forgotPass/forgotPass?type=1`
|
||||||
})
|
})
|
||||||
}else if(index == 2){
|
} else if (index == 2) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`/pages/rwa_package/forgotPass/forgotPass?type=2`
|
url: `/pages/rwa_package/forgotPass/forgotPass?type=2`
|
||||||
})
|
})
|
||||||
}else if(index == 3){
|
} else if (index == 3) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`/pages/rwa_package/setting/account-out`
|
url: `/pages/rwa_package/accountOut/accountOut`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -87,17 +85,17 @@ export default {
|
|||||||
if (res.bizcode == 100) {
|
if (res.bizcode == 100) {
|
||||||
this.userInfo = res.data;
|
this.userInfo = res.data;
|
||||||
this.headList[0].value = this.userInfo.mobile;
|
this.headList[0].value = this.userInfo.mobile;
|
||||||
this.headList[0].value = this.headList[0].value.replace(this.headList[0].value.substring(3,7),'****')
|
this.headList[0].value = this.headList[0].value.replace(this.headList[0].value.substring(3, 7), '****')
|
||||||
if(res.data.tradePassword){
|
if (res.data.tradePassword) {
|
||||||
this.headList[1].she = '已设置';
|
this.headList[1].she = '已设置';
|
||||||
this.headList[1].value = '修改密码';
|
this.headList[1].value = '修改密码';
|
||||||
}else{
|
} else {
|
||||||
this.headList[1].value = '设置密码';
|
this.headList[1].value = '设置密码';
|
||||||
}
|
}
|
||||||
if(res.data.password){
|
if (res.data.password) {
|
||||||
this.headList[2].she = '已设置';
|
this.headList[2].she = '已设置';
|
||||||
this.headList[2].value = '修改密码';
|
this.headList[2].value = '修改密码';
|
||||||
}else{
|
} else {
|
||||||
this.headList[2].value = '设置密码';
|
this.headList[2].value = '设置密码';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -108,16 +106,17 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.yi-view{
|
.yi-view {
|
||||||
width:104rpx;
|
width: 104rpx;
|
||||||
height:44rpx;
|
height: 44rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
background: rgba(122,53,246,0.1);
|
background: rgba(122, 53, 246, 0.1);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
margin-left:12rpx;
|
margin-left: 12rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.setting-view {
|
.setting-view {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 88rpx - var(--status-bar-height));
|
height: calc(100% - 88rpx - var(--status-bar-height));
|
||||||
@@ -127,21 +126,24 @@ export default {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 0 32rpx;
|
padding: 0 32rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
.item-list{
|
|
||||||
width:100%;
|
.item-list {
|
||||||
|
width: 100%;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
.item-box{
|
|
||||||
min-height:108rpx;
|
.item-box {
|
||||||
|
min-height: 108rpx;
|
||||||
padding: 0 32rpx;
|
padding: 0 32rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-bottom:solid #EAEAEA;
|
border-bottom: solid #EAEAEA;
|
||||||
.ava-img{
|
|
||||||
width:60rpx;
|
.ava-img {
|
||||||
height:60rpx;
|
width: 60rpx;
|
||||||
|
height: 60rpx;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user