|
@@ -45,8 +45,7 @@
|
|
|
<view class="title">{{item.title}}</view>
|
|
|
<view class="title">
|
|
|
<text v-if="user.id&&item.title=='我的尊荣'">{{integral||0}}分</text>
|
|
|
- <text v-if="item.title=='客服电话'"
|
|
|
- @tap="makePhone(serviceContactInfo.phone)">{{serviceContactInfo.phone||''}}</text>
|
|
|
+ <text v-if="item.title=='客服电话'" @tap="makePhone(serviceContactInfo.phone)">{{serviceContactInfo.phone||''}}</text>
|
|
|
<text class="iconfont icon-jiantouyou"></text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -66,73 +65,10 @@
|
|
|
user: {},
|
|
|
// 客服信息
|
|
|
serviceContactInfo: {},
|
|
|
- // 图标菜单
|
|
|
- orderList: [ //订单列表
|
|
|
- {
|
|
|
- icon: 'icon-daifukuan',
|
|
|
- title: '待付款',
|
|
|
- status: '0',
|
|
|
- type: 'order',
|
|
|
- route: "pagesMy/order/index",
|
|
|
- },
|
|
|
- {
|
|
|
- icon: 'icon-daishouhuo',
|
|
|
- title: '待发货',
|
|
|
- status: '1',
|
|
|
- type: 'order',
|
|
|
- route: "pagesMy/order/index",
|
|
|
- },
|
|
|
- {
|
|
|
- icon: 'icon-daipinglun',
|
|
|
- title: '待收货',
|
|
|
- status: '2',
|
|
|
- type: 'order',
|
|
|
- route: "pagesMy/order/index",
|
|
|
- },
|
|
|
- {
|
|
|
- icon: 'icon-daipinglun',
|
|
|
- title: '已收货',
|
|
|
- status: '3',
|
|
|
- type: 'order',
|
|
|
- route: "pagesMy/order/index",
|
|
|
- },
|
|
|
- {
|
|
|
- icon: 'icon-shouhoufuwuicon',
|
|
|
- title: '售后',
|
|
|
- type: 'after',
|
|
|
- route: "pagesMy/order/after",
|
|
|
- },
|
|
|
- ],
|
|
|
+ // 订单图标菜单
|
|
|
+ orderList: [],
|
|
|
// 菜单
|
|
|
- menuList: [{
|
|
|
- title: '我的优惠劵',
|
|
|
- route: 'pagesMy/discount/index'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '我的尊荣',
|
|
|
- route: 'pagesMy/integral/index'
|
|
|
- },
|
|
|
- // {
|
|
|
- // title: '我的资产',
|
|
|
- // route: 'pagesMy/assets/index'
|
|
|
- // },
|
|
|
- {
|
|
|
- title: '我的拼团',
|
|
|
- route: 'pagesMy/dough/index'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '我的收货地址',
|
|
|
- route: 'pagesMy/address/index'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '账号管理',
|
|
|
- route: 'pagesMy/account/index'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '客服电话',
|
|
|
- route: ''
|
|
|
- },
|
|
|
- ],
|
|
|
+ menuList: [],
|
|
|
// 收藏商品
|
|
|
market_num: '',
|
|
|
// 收藏店铺
|
|
@@ -183,24 +119,19 @@
|
|
|
// 查询其他信息
|
|
|
async searchOther() {
|
|
|
const that = this;
|
|
|
+ let config = that.$config;
|
|
|
+ if (config) {
|
|
|
+ // 订单图标菜单
|
|
|
+ that.$set(that, `orderList`, config.my_orderList);
|
|
|
+ // 菜单
|
|
|
+ that.$set(that, `menuList`, config.my_menu);
|
|
|
+ }
|
|
|
let res;
|
|
|
res = await that.$api(`/serviceContact`, 'GET');
|
|
|
if (res.errcode == '0' && res.total > 0) {
|
|
|
that.$set(that, `serviceContactInfo`, res.data[0])
|
|
|
}
|
|
|
},
|
|
|
- // 底部菜单跳转
|
|
|
- toPath(e) {
|
|
|
- if (e && e.route && e.type == '0') {
|
|
|
- uni.redirectTo({
|
|
|
- url: `/${e.route}`
|
|
|
- })
|
|
|
- } else {
|
|
|
- uni.navigateTo({
|
|
|
- url: `/${e.route}`
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
// 公共跳转
|
|
|
toCommon(e) {
|
|
|
uni.getStorage({
|
|
@@ -247,7 +178,19 @@
|
|
|
uni.makePhoneCall({
|
|
|
phoneNumber: e
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 底部菜单跳转
|
|
|
+ toPath(e) {
|
|
|
+ let url = `/${e.route}`;
|
|
|
+ if (e.type == '0') uni.redirectTo({
|
|
|
+ url
|
|
|
+ })
|
|
|
+ else {
|
|
|
+ uni.navigateTo({
|
|
|
+ url
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|