|
|
@@ -10,8 +10,14 @@
|
|
|
<text class="user-name">
|
|
|
{{ userInfo.nickname }}
|
|
|
</text>
|
|
|
- <text class="user-id" @click="handleCopyId"
|
|
|
+ <!-- <text class="user-id" @click="handleCopyId"
|
|
|
>ID: {{ userInfo.show_id }} <text class="copy">复制</text></text
|
|
|
+ > -->
|
|
|
+ <text class="user-id" v-if="userInfo.bd"
|
|
|
+ >邀请人: {{ userInfo.bd }}</text
|
|
|
+ >
|
|
|
+ <navigator v-else class="user-id" url="/pages/my/edit"
|
|
|
+ ><text class="copy">填写邀请人</text></navigator
|
|
|
>
|
|
|
</view>
|
|
|
<!-- <button class="user-btn" @tap="logout">退出登录</button> -->
|
|
|
@@ -37,15 +43,15 @@
|
|
|
</view>
|
|
|
<view class="my-balance-item" @click="jump('./coupon')">
|
|
|
<view class="num">{{
|
|
|
- userInfo.coupon_count ? userInfo.coupon_count : "0"
|
|
|
+ userInfo.exchange_cnt ? userInfo.exchange_cnt : "0"
|
|
|
}}</view>
|
|
|
<view class="label">卡券</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<vip-card :user-info="userInfo" @login="handleLogin" />
|
|
|
- <!-- <view class="my-main">
|
|
|
- <view class="my-title">
|
|
|
+ <view class="my-main">
|
|
|
+ <!-- <view class="my-title">
|
|
|
<text>我的订单</text>
|
|
|
<view class="my-title-sub" @click="jump('../order/order?tabIndex=1')">
|
|
|
<text>全部订单</text>
|
|
|
@@ -65,7 +71,7 @@
|
|
|
<image class="my-icon" :src="item.image"></image>
|
|
|
{{ item.name }}
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="my-title">其他功能</view>
|
|
|
<view class="my-icon-list">
|
|
|
<view
|
|
|
@@ -82,7 +88,7 @@
|
|
|
{{ item.name }}
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view> -->
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -141,21 +147,21 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
datas1: [
|
|
|
- {
|
|
|
- name: "邀请好友",
|
|
|
- image: require("@/assets/my/icon-friend.png"),
|
|
|
- url: "./invite",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "收货地址",
|
|
|
- image: require("@/assets/my/icon-address.png"),
|
|
|
- url: "../address/address",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "我的客服",
|
|
|
- image: require("@/assets/my/icon-service.png"),
|
|
|
- url: "../help/help_contact",
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // name: "邀请好友",
|
|
|
+ // image: require("@/assets/my/icon-friend.png"),
|
|
|
+ // url: "./invite",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // name: "收货地址",
|
|
|
+ // image: require("@/assets/my/icon-address.png"),
|
|
|
+ // url: "../address/address",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // name: "我的客服",
|
|
|
+ // image: require("@/assets/my/icon-service.png"),
|
|
|
+ // url: "../help/help_contact",
|
|
|
+ // },
|
|
|
// {
|
|
|
// name: "消息中心",
|
|
|
// image: require("@/assets/my/icon-message.png"),
|