|
@@ -2,25 +2,25 @@
|
|
|
<mobile-frame :frameStyle="frameStyle" @toPath="toPath">
|
|
|
<view class="main">
|
|
|
<view class="one">
|
|
|
- <view class="one_1" v-if="!form._id">
|
|
|
+ <view class="one_1" v-if="!user._id">
|
|
|
<text class="iconfont icon-geren2" @click="toOrrder('logo')"></text>
|
|
|
<view class="name">未登录</view>
|
|
|
</view>
|
|
|
<view class="one_1" v-else>
|
|
|
- <image :src="form.icon"></image>
|
|
|
+ <image :src="user.icon"></image>
|
|
|
<view class="name">
|
|
|
- <text>{{form.name||'暂无'}}</text>
|
|
|
+ <text>{{user.name||'暂无'}}</text>
|
|
|
<text>普通会员</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="one_2">
|
|
|
<view class="one_2_1">
|
|
|
- <text v-if="form._id">{{form.collect||0}}</text>
|
|
|
+ <text v-if="user._id">{{user.collect||0}}</text>
|
|
|
<text @click="toOrrder('收藏的商品')">收藏的商品</text>
|
|
|
</view>
|
|
|
<text class="link">|</text>
|
|
|
<view class="one_2_1">
|
|
|
- <text v-if="form._id">{{form.collect||0}}</text>
|
|
|
+ <text v-if="user._id">{{user.collect||0}}</text>
|
|
|
<text @click="toOrrder('收藏的店铺')">收藏的店铺</text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -45,8 +45,8 @@
|
|
|
<view class="two_1" v-for="(item, index) in menuList" :key="index" @click="toOrrder(item.type)">
|
|
|
<view class="title">{{item.title}}</view>
|
|
|
<view class="title">
|
|
|
- <text v-if="form._id&&item.title=='我的积分'">{{form.integral||0}}分</text>
|
|
|
- <text v-if="form._id&&item.title=='客服电话'">{{form.phone||'123-345-6780'}}</text>
|
|
|
+ <text v-if="user._id&&item.title=='我的积分'">{{user.integral||0}}分</text>
|
|
|
+ <text v-if="user._id&&item.title=='客服电话'">{{user.phone||'123-345-6780'}}</text>
|
|
|
<text class="iconfont icon-dayufuhao"></text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -62,7 +62,8 @@
|
|
|
frameStyle: {
|
|
|
useBar: true
|
|
|
},
|
|
|
- form: {},
|
|
|
+ // 用户信息
|
|
|
+ user: {},
|
|
|
// 图标菜单
|
|
|
orderList: [{
|
|
|
icon: 'icon-daifukuan',
|