123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <template>
- <view class="tui-set-box">
- <tui-list-cell padding="0" :lineLeft="false" :arrow="true" @click="href(1)">
- <view class="tui-list-cell tui-info-box">
- <image :src="memberinfo.userpic || '/static/images/my/mine_def_touxiang_3x.png'" class="tui-avatar"></image>
- <view>{{memberinfo.nickname}}</view>
- </view>
- </tui-list-cell>
- <tui-list-cell padding="0" :lineLeft="false" :arrow="true" @click="href(2)">
- <view class="tui-list-cell">
- 地址管理
- </view>
- </tui-list-cell>
- <!--
- <view class="tui-mtop">
- <tui-list-cell padding="0" :lineLeft="false" :arrow="true">
- <view class="tui-list-cell">
- 账户与安全
- </view>
- </tui-list-cell>
- <tui-list-cell padding="0" :lineLeft="false" :arrow="true">
- <view class="tui-list-cell">
- 支付设置
- </view>
- </tui-list-cell>
- <tui-list-cell padding="0" :lineLeft="false" :arrow="true" @click="href(3)">
- <view class="tui-list-cell">
- 消息提醒设置
- </view>
- </tui-list-cell>
- </view>
- <view class="tui-mtop">
- <tui-list-cell padding="0" :lineLeft="false" :arrow="true" @click="href(4)">
- <view class="tui-list-cell">
- 关于我们
- </view>
- </tui-list-cell>
- <tui-list-cell padding="0" :lineLeft="false" :arrow="true" @click="href(5)">
- <view class="tui-list-cell">
- 意见反馈
- </view>
- </tui-list-cell>
- </view>-->
- <view class="tui-exit">
- <tui-button @click="logout" shape="circle" shadow type="danger" height="88rpx">退出登录</tui-button>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- sex: '男',
- date: '请选择',
- memberinfo: [],
- }
- },
- onShow: function() {
- let _this = this;
- _this.$util.getUserInfo(function(userInfo) {
- //Console.log("adfs");
- _this.$request.get('member.detail', {
- samkey: (new Date()).valueOf()
- }).then(res => {
- if (res.errno == 0) {
- _this.memberinfo = res.data;
- _this.sex = res.data.sex;
- }
- });
- })
- },
- methods: {
- logout() {
- uni.navigateTo({
- url: '/pages/login/logout?ptype=member'
- });
- },
- href(page) {
- let url = "";
- switch (page) {
- case 1:
- url = "/pagesA/my/userInfo/userInfo"
- break;
- case 2:
- url = "/pagesA/my/address/address"
- break;
- case 3:
- url = "/pagesA/my/notice/notice"
- break;
- case 4:
- url = "/pages/common/about/about"
- break;
- case 5:
- url = "/pagesA/my/feedback/feedback?page=mall"
- break;
- default:
- break;
- }
- uni.navigateTo({
- url: url
- })
- }
- },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function() {
- setTimeout(() => {
- uni.stopPullDownRefresh()
- }, 200);
- },
- }
- </script>
- <style>
- .tui-set-box {
- padding-bottom: 20rpx;
- color: #333;
- }
- .tui-list-cell {
- display: flex;
- align-items: center;
- padding: 24rpx 30rpx;
- font-size: 30rpx;
- }
- .tui-info-box {
- font-size: 34rpx;
- }
- .tui-avatar {
- width: 140rpx;
- height: 140rpx;
- margin-right: 20rpx;
- }
- .tui-mtop {
- margin-top: 20rpx;
- }
- .tui-exit {
- padding: 100rpx 24rpx;
- }
- </style>
|