|
@@ -39,9 +39,8 @@
|
|
|
<view class="order-out-box">
|
|
|
<view class="order-inner-box">
|
|
|
<u-grid :border="false" col="4" style="background-color: #fff">
|
|
|
- <u-grid-item v-for="(listItem, listIndex) in list2" :key="listIndex">
|
|
|
- <u-icon :customStyle="{ paddingTop: 20 + 'rpx' }" :name="listItem.name" :size="34"
|
|
|
- @tap="gotoOrder(listItem)"></u-icon>
|
|
|
+ <u-grid-item v-for="(listItem, listIndex) in list2" :key="listIndex" @tap="gotoOrder(listItem)">
|
|
|
+ <u-icon :customStyle="{ paddingTop: 20 + 'rpx' }" :name="listItem.name" :size="34"></u-icon>
|
|
|
<text class="grid-text">{{ listItem.title }}</text>
|
|
|
</u-grid-item>
|
|
|
</u-grid>
|
|
@@ -51,7 +50,7 @@
|
|
|
|
|
|
<!-- 我的收益 -->
|
|
|
<view class="income-out-box">
|
|
|
- <view class="income-inner-box">
|
|
|
+ <view class="income-inner-box" @click="handlerSkipMyProfit">
|
|
|
<view class="income-head">
|
|
|
<text class="my-income">我的收益</text>
|
|
|
<u-icon name="arrow-right" />
|
|
@@ -75,10 +74,13 @@
|
|
|
<view class="other-out-box">
|
|
|
<view class="other-inner-box">
|
|
|
<u-cell-group :border="false">
|
|
|
- <u-cell size="large" :border="false" icon="setting-fill" title="我的团队" isLink url="" @tap="$Router.push('/pages/user/mygroup/index')"></u-cell>
|
|
|
- <u-cell size="large" :border="false" icon="setting-fill" title="关于我们" isLink url="" @tap="$Router.push('/pages/user/aboutmy/index')"></u-cell>
|
|
|
+ <u-cell size="large" :border="false" icon="setting-fill" title="我的团队" isLink url=""
|
|
|
+ @tap="$Router.push('/pages/user/mygroup/index')"></u-cell>
|
|
|
+ <u-cell size="large" :border="false" icon="setting-fill" title="关于我们" isLink url=""
|
|
|
+ @tap="$Router.push('/pages/user/aboutmy/index')"></u-cell>
|
|
|
<!-- <u-cell size="large" :border="false" icon="setting-fill" title="隐私条款" isLink url="" @tap="$Router.push('/pages/user/privacypolicy/index')"></u-cell> -->
|
|
|
- <u-cell size="large" :border="false" icon="setting-fill" title="客服中心" isLink url="" @tap="$Router.push('/pages/user/servicecenter/index')"></u-cell>
|
|
|
+ <u-cell size="large" :border="false" icon="setting-fill" title="客服中心" isLink url=""
|
|
|
+ @tap="$Router.push('/pages/user/servicecenter/index')"></u-cell>
|
|
|
</u-cell-group>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -86,7 +88,9 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
// import { mapGetters } from 'vuex';
|
|
|
- import { maintainUserInfo } from "@/api/mine.js"
|
|
|
+ import {
|
|
|
+ maintainUserInfo
|
|
|
+ } from "@/api/mine.js"
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -114,19 +118,22 @@
|
|
|
list2: [{
|
|
|
name: 'photo',
|
|
|
title: '我的订单',
|
|
|
+ type: 0
|
|
|
},
|
|
|
{
|
|
|
name: 'lock',
|
|
|
title: '待付款',
|
|
|
- order: true,
|
|
|
+ type: 1
|
|
|
},
|
|
|
{
|
|
|
name: 'star',
|
|
|
title: '已完成',
|
|
|
+ type: 2
|
|
|
},
|
|
|
{
|
|
|
name: 'hourglass',
|
|
|
title: '待评价',
|
|
|
+ type: 3
|
|
|
},
|
|
|
],
|
|
|
incomeList: [{
|
|
@@ -146,27 +153,31 @@
|
|
|
title: '可提现',
|
|
|
},
|
|
|
],
|
|
|
- user_info:[] // 个人信息
|
|
|
+ user_info: [] // 个人信息
|
|
|
};
|
|
|
},
|
|
|
- computed: {
|
|
|
- // ...mapGetters(['user_info']),
|
|
|
- },
|
|
|
+
|
|
|
mounted() {
|
|
|
this.handlerInitUserMessage()
|
|
|
},
|
|
|
methods: {
|
|
|
// 获取当前用户信息
|
|
|
- handlerInitUserMessage(){
|
|
|
- maintainUserInfo().then(res=>{
|
|
|
+ handlerInitUserMessage() {
|
|
|
+ maintainUserInfo().then(res => {
|
|
|
this.user_info = res.data
|
|
|
- // this.$store.dispatch("SET_MERCGANT_ID",res.data.id)
|
|
|
})
|
|
|
},
|
|
|
+ // 点击跳转到全部订单
|
|
|
gotoOrder(item) {
|
|
|
- if (item.order) {
|
|
|
- this.$Router.push('/pages/order/order');
|
|
|
- }
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/tabbar/mine/allorder?type=${item.type}`
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 点击跳转到我的收益
|
|
|
+ handlerSkipMyProfit() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/tabbar/mine/profit/index'
|
|
|
+ })
|
|
|
},
|
|
|
},
|
|
|
};
|