| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <template>
- <uv-toast ref="toast"></uv-toast>
- <view class="">
- <navbar :title="$t('my_center')" size="48" :backtext="$t('back')" color="#fff" :backShow="false"></navbar>
- </view>
- <view class="app_content">
- <uv-cell-group :title="$t('policy')">
- <uv-cell :title="$t('privacy_policy')" :isLink="true" @click="showPrivacyPolicy"></uv-cell>
- </uv-cell-group>
- <br />
- <uv-cell-group title="">
- <uv-cell :title="$t('quit')" :isLink="true" @click="quit"></uv-cell>
- </uv-cell-group>
- <br />
- <!-- <uv-cell-group title="">
- <uv-cell :title="$t('cancel_account')" :isLink="true" @click="cancel_account"></uv-cell>
- </uv-cell-group> -->
- <uv-cell-group title="">
- <uv-cell>
- <template v-slot:title>
- <text class="cancel_account" @click="cancel_account">{{$t('cancel_account')}}</text>
- </template>
- </uv-cell>
- </uv-cell-group>
- </view>
- </template>
- <script>
- import {cancelaccount} from "@/common/api/user.js"
- export default {
- data() {
- return {
- userinfo:{},
- }
- },
- methods: {
- init_reload(){
- this.userinfo = uni.getStorageSync("userinfo")
- },
- quit(){
- uni.removeStorage({
- key: 'userinfo',
- });
- uni.redirectTo({
- url: '/pages/login/login'
- });
- },
- showPrivacyPolicy(){
- let weburl = 'https://app.chienxutech.com:30443/Uploads/ssjprivate_en.html';
- uni.navigateTo({
- url: '/pages/webview/webview?weburl='+weburl+'&title='+this.$t('privacy_policy')
- });
- },
- cancel_account(){
- let uid = this.userinfo.id
- let data={uid:uid}
- cancelaccount(data)
- }
- },
- mounted(){
- uni.setNavigationBarTitle({
- title: this.$t('my_center')
- });
- },
- onShow(option){
- this.init_reload()
- },
- }
- </script>
- <style scoped>
- .app_content{
- padding: 0 1em;
- }
- </style>
- <style lang="scss" scoped>
- .cancel_account{
- color: $uni-color-error;
- }
- </style>
|