302 lines
7.6 KiB
Vue
302 lines
7.6 KiB
Vue
<template>
|
||
<view :style="themeColor">
|
||
<view class="page">
|
||
<view class="flex benben-position-layout flex flex-wrap align-center reasonForAccountCancellation_flex_0"
|
||
:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
|
||
<view class='flex flex-wrap align-center justify-between flex-sub reasonForAccountCancellation_fd0_0'>
|
||
<view class='flex flex-wrap align-center reasonForAccountCancellation_fd0_0_c0'
|
||
@tap.stop="handleJumpDiy" data-type="back" data-url="1">
|
||
<text class='fu-iconfont2 reasonForAccountCancellation_fd0_0_c0_c0'></text>
|
||
</view>
|
||
<text class='reasonForAccountCancellation_fd0_0_c1'>注销账号</text>
|
||
<view class='flex flex-wrap align-center reasonForAccountCancellation_fd0_0_c0'>
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|
||
<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
|
||
<!---注销账号原因-带图flex布局开始-->
|
||
<view class="flex flex-direction flex-wrap align-stretch reasonForAccountCancellation_flex_1">
|
||
<view class='flex flex-wrap align-center reasonForAccountCancellation_fd1_0'>
|
||
<text class='reasonForAccountCancellation_fd1_0_c0'>账号注销</text>
|
||
</view>
|
||
<text class='reasonForAccountCancellation_fd1_1'>永久注销且无法恢复,请谨慎操作</text>
|
||
<view class='flex flex-wrap align-center reasonForAccountCancellation_fd1_2'>
|
||
<text class='reasonForAccountCancellation_fd1_0_c0'>请选择注销账号的原因:</text>
|
||
</view>
|
||
<benben-select-diy ref="showSelectPopup1681204058787"
|
||
class-name='flex flex-direction align-stretch flex' :items.sync="dataMessage" v-model="changeId"
|
||
default-type="aid" default-label="name" :allow-cancel='false' type="radio" :disabled='false'>
|
||
<template v-for='(item,key0) in dataMessage'>
|
||
<view v-if="item.isSelected" class='flex flex reasonForAccountCancellation_fd1_0' :key="key0"
|
||
@tap="$refs.showSelectPopup1681204058787.tapHandle(key0)">
|
||
<image class='reasonForAccountCancellation_fd1_3_c0_c0' mode="aspectFit"
|
||
:src='STATIC_URL+"44.png"'></image>
|
||
<text class='reasonForAccountCancellation_fd1_3_c0_c1'>{{item.name}}</text>
|
||
</view>
|
||
<view v-else class='flex flex reasonForAccountCancellation_fd1_0' :key="key0"
|
||
@tap="$refs.showSelectPopup1681204058787.tapHandle(key0)">
|
||
<image class='reasonForAccountCancellation_fd1_3_c0_c0' mode="aspectFit"
|
||
:src='STATIC_URL+"117.png"'></image>
|
||
<text class='reasonForAccountCancellation_fd1_3_c1_c1'>{{item.name}}</text>
|
||
</view>
|
||
</template>
|
||
</benben-select-diy>
|
||
<text class='reasonForAccountCancellation_fd1_4'>请填写注销原因</text>
|
||
<view class='flex flex-wrap reasonForAccountCancellation_fd1_5'>
|
||
<textarea class='flex reasonForAccountCancellation_input_fd1_5' confirm-type="done"
|
||
:placeholder="'请输入'" :maxlength="240" placeholder-style="color:#999;font-size:28rpx"
|
||
v-model="body" />
|
||
|
||
</view>
|
||
</view>
|
||
|
||
<!---注销账号原因-带图flex布局结束-->
|
||
<view
|
||
class="flex flex-wrap align-start justify-center benben-position-layout flex reasonForAccountCancellation_flex_2">
|
||
<button class='flex-sub reasonForAccountCancellation_fd2_0' @tap.stop="goRichFunc()">下一步</button>
|
||
|
||
</view>
|
||
<view :style="{height: '150rpx'}"></view>
|
||
|
||
|
||
</view>
|
||
</view>
|
||
</template>
|
||
<script>
|
||
import {
|
||
validate
|
||
} from '@/common/utils/validate.js'
|
||
|
||
export default {
|
||
components: {},
|
||
|
||
|
||
data() {
|
||
return {
|
||
"dataMessage": [],
|
||
"changeType": [{
|
||
"name": "多账号,释放手机号",
|
||
"value": "1",
|
||
"image": ""
|
||
}, {
|
||
"name": "不想使用了",
|
||
"value": "2",
|
||
"image": ""
|
||
}, {
|
||
"name": "其他",
|
||
"value": "3",
|
||
"image": ""
|
||
}],
|
||
"changeId": "",
|
||
"body": ""
|
||
};
|
||
},
|
||
computed: {
|
||
themeColor() {
|
||
return this.$store.getters.themeColor
|
||
},
|
||
|
||
},
|
||
watch: {},
|
||
onLoad(options) {
|
||
this.getReasonFunc()
|
||
},
|
||
onUnload() {
|
||
|
||
},
|
||
onReady() {
|
||
|
||
},
|
||
onShow() {
|
||
|
||
},
|
||
onHide() {
|
||
|
||
},
|
||
onResize() {
|
||
|
||
},
|
||
onPullDownRefresh() {
|
||
|
||
},
|
||
onReachBottom(e) {
|
||
|
||
},
|
||
onPageScroll(e) {
|
||
|
||
},
|
||
methods: {
|
||
//跳转风险
|
||
goRichFunc() {
|
||
if (!validate(this.changeId, 'require')) {
|
||
this.$message.info('请选择注销原因');
|
||
return false;
|
||
}
|
||
if (!validate(this.body, 'require')) {
|
||
this.$message.info('请填写注销原因');
|
||
return false;
|
||
}
|
||
this.$urouter.navigateTo(`/pages/xtsz/accountCancel02/index?cancel_type=${this.changeId}&cancel_reason=${this.body}`);
|
||
},
|
||
//获取注销原因
|
||
async getReasonFunc() {
|
||
//请求方法
|
||
//数据验证
|
||
|
||
let datadataMessage = await this.$api.get(global.apiUrls.post637c458b131e3, {
|
||
|
||
});
|
||
|
||
if (datadataMessage.data.code != 1) {
|
||
this.$message.info(datadataMessage.data.msg);
|
||
return
|
||
}
|
||
let infodataMessage = datadataMessage.data;
|
||
this.dataMessage = infodataMessage.data
|
||
|
||
}
|
||
}
|
||
};
|
||
</script>
|
||
<style lang="scss" scoped>
|
||
.page {
|
||
width: 100vw;
|
||
overflow-x: hidden;
|
||
min-height: calc(100vh - var(--window-bottom));
|
||
background: #fff;
|
||
background-size: 100% auto;
|
||
}
|
||
|
||
.reasonForAccountCancellation_flex_0 {
|
||
border-bottom: 1px solid #eee;
|
||
background: #fff;
|
||
width: 750rpx;
|
||
height: 88rpx;
|
||
overflow: hidden;
|
||
z-index: 10;
|
||
top: 0rpx;
|
||
background-size: 100% auto !important;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd0_0_c1 {
|
||
font-size: 36rpx;
|
||
font-weight: 500;
|
||
color: #333;
|
||
line-height: 50rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd0_0_c0_c0 {
|
||
font-size: 32rpx;
|
||
font-weight: 500;
|
||
color: #333;
|
||
line-height: 88rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd0_0_c0 {
|
||
width: 120rpx;
|
||
height: 88rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd0_0 {
|
||
padding: 0rpx 32rpx 0rpx 32rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_flex_1 {
|
||
background: #fff;
|
||
font-size: 32rpx;
|
||
background-size: 100% auto !important;
|
||
padding: 0rpx 32rpx 32rpx 32rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_input_fd1_5 {
|
||
border-bottom: 1px solid var(--benbenbdColor0);
|
||
width: 100%;
|
||
height: 100rpx;
|
||
font-size: 28rpx;
|
||
font-weight: 400;
|
||
color: #333;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd1_5 {
|
||
border: 1px solid #eee;
|
||
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
||
padding: 24rpx 24rpx 24rpx 24rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd1_4 {
|
||
border-top: 1px solid #eee;
|
||
font-size: 32rpx;
|
||
font-weight: 700;
|
||
color: #333333;
|
||
margin: 0rpx 0rpx 32rpx 0rpx;
|
||
padding: 32rpx 0rpx 0rpx 0rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd1_3_c1_c1 {
|
||
color: #333;
|
||
font-size: 28rpx;
|
||
font-weight: 500;
|
||
line-height: 40rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd1_3_c0_c1 {
|
||
font-size: 28rpx;
|
||
font-weight: 500;
|
||
color: #333;
|
||
line-height: 40rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd1_3_c0_c0 {
|
||
width: 36rpx;
|
||
height: 36rpx;
|
||
border-radius: 18rpx 18rpx 18rpx 18rpx;
|
||
margin: 0rpx 24rpx 0rpx 0rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd1_2 {
|
||
border-top: 1px solid #eee;
|
||
padding: 32rpx 0rpx 12rpx 0rpx;
|
||
margin: 32rpx 0rpx 0rpx 0rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd1_1 {
|
||
line-height: 40rpx;
|
||
font-size: 28rpx;
|
||
font-weight: 500;
|
||
color: #333333;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd1_0_c0 {
|
||
line-height: 45rpx;
|
||
font-size: 32rpx;
|
||
font-weight: 700;
|
||
color: #333333;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd1_0 {
|
||
padding: 32rpx 0rpx 32rpx 0rpx;
|
||
}
|
||
|
||
.reasonForAccountCancellation_flex_2 {
|
||
background: #fff;
|
||
width: 750rpx;
|
||
height: 150rpx;
|
||
overflow: hidden;
|
||
z-index: 10;
|
||
bottom: calc(0rpx + var(--window-bottom));
|
||
background-size: 100% auto !important;
|
||
}
|
||
|
||
.reasonForAccountCancellation_fd2_0 {
|
||
background: #ff9300;
|
||
border-radius: 44rpx 44rpx 44rpx 44rpx;
|
||
font-size: 32rpx;
|
||
color: #fff;
|
||
margin: 0rpx 32rpx 0rpx 32rpx;
|
||
height: 88rpx;
|
||
line-height: 88rpx;
|
||
width: 640rpx;
|
||
}
|
||
</style>
|