绿满眶商城微信小程序-uniapp
zxl
2025-06-04 b62daf4aaca5fcb8eea7bfd4149dbb92b10f50de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<template>
    <view>
        <!-- 常用工具 -->
        <view class="interact-tools" style="margin-bottom: 15px">
 
            <div class="paddingBox">
                <view class="interact-container">
                    <view class="interact-item" @click="navigateTo('/pages/mine/address/addressManage')">
                        <image src="/static/mine/myaddress.png" mode=""></image>
                        <view>地址管理</view>
                    </view>
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/myTracks')">
                        <image src="/static/mine/logistics.png" mode=""></image>
                        <view>我的足迹</view>
                    </view>
 
                    <view class="interact-item" @click="navigateTo('/pages/order/evaluate/myEvaluate')">
                        <image src="/static/mine/feedback.png" mode=""></image>
                        <view>我的评价</view>
                    </view>
                    <!-- <view class="interact-item" @click="linkMsgDetail()">
              <image src="/static/mine/mycommit.png" mode=""></image>
              <view>我的消息</view>
            </view> -->
 
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/myCollect')">
                        <image src="/static/mine/myfavorite.png" mode=""></image>
                        <view>我的关注</view>
                    </view>
 
 
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/point/myPoint')">
                        <image src="/static/mine/mypoint.png" mode=""></image>
                        <view>我的积分</view>
                    </view>
 
                    <!--     <view class="interact-item" @click="distribution">
              <image src="/static/mine/distribution.png" mode=""></image>
              <view>我的分销</view>
            </view> -->
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/myCollect')">
                        <image src="/static/mine/shensu.png" mode=""></image>
                        <view>我的收藏</view>
                    </view>
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/activity/myActivity')">
                        <image src="/static/mine/shensu.png" mode=""></image>
                        <view>我的活动</view>
                    </view>
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/activity/reportActivity')">
                        <image src="/static/mine/shensu.png" mode=""></image>
                        <view>活动</view>
                    </view>
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/myCollect/myCollect')">
                        <image src="/static/mine/shensu.png" mode=""></image>
                        <view>我的收藏</view>
                    </view>
 
                    <view class="interact-item" @click="navigateTo('/pages/userPermissions/userPermissions')">
                        <image src="/static/mine/shensu.png" mode=""></image>
                        <view>用户权限</view>
                    </view>
 
                    <view class="interact-item" @click="navigateTo('/pages/customerManager/customerManager')">
                        <image src="/static/mine/shensu.png" mode=""></image>
                        <view>客户管理</view>
                    </view>
                    <view class="interact-item" @click="navigateTo('/pages/order/complain/complainList')">
                        <image src="/static/mine/shensu.png" mode=""></image>
                        <view>我的投诉</view>
                    </view>
 
                    <view class="interact-item" @click="navigateTo('/pages/cart/coupon/myCoupon')">
                        <image src="/static/mine/mycoupon.png" mode=""></image>
                        <view>优惠券</view>
                    </view>
 
 
 
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/signIn')">
                        <image src="/static/mine/sign.png" mode=""></image>
                        <view>每日签到</view>
                    </view>
 
 
 
 
 
 
                    <view class="interact-item" @click="navigateTo('/pages/cart/coupon/couponCenter')">
                        <image src="/static/mine/couponcenter.png" mode=""></image>
                        <view>领券中心</view>
                    </view>
 
 
 
                    <view class="interact-item" @click="navigateTo('/pages/promotion/bargain/log')">
                        <image src="/static/mine/kanjia.png" mode=""></image>
                        <view>砍价记录</view>
                    </view>
 
 
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/set/feedBack')">
                        <image src="/static/mine/feedback.png" mode=""></image>
                        <view>意见反馈</view>
                    </view>
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/set/editionIntro')">
                        <image src="/static/mine/pointgift.png" mode=""></image>
                        <view>关于</view>
                    </view>
 
                    <view class="interact-item" @click="navigateTo('/pages/passport/entry/seller/index')">
                        <image src="/static/mine/feedback.png" mode=""></image>
                        <view>店铺入驻</view>
                    </view>
 
 
                    <view class="interact-item" @click="navigateTo('/pages/mine/set/setUp')">
                        <image src="/static/mine/setting.png" mode=""></image>
                        <view>设置</view>
                    </view>
                    <view class="interact-item" @click="navigateTo('/pages/goods-manager/goodsList/goodsList')">
                        <image src="/static/mine/setting.png" mode=""></image>
                        <view>商品管理</view>
                    </view>
                    
 
                </view>
            </div>
        </view>
    </view>
</template>
 
<script>
    import {
        distribution
    } from "@/api/goods";
    import configs from "@/config/config";
    import storage from "@/utils/storage";
 
    export default {
        data() {
            return {
                configs,
                storage
            }
        },
 
        methods: {
            handleNavigate(url) {
                uni.navigateTo({
                    url,
                });
            },
            navigateTo(url) {
                const ignores = [
                    '/pages/mine/set/setUp',
                    '/pages/mine/set/editionIntro',
                    '/pages/mine/set/feedBack',
                    '/pages/goods-manager/goodsList/goodsList',
                    '/pages/mine/set/feedBack',
                    '/pages/mine/activity/myActivity',
                    '/pages/mine/myCollect/myCollect',
                    '/pages/mine/myCollect'
                ]
                if (!ignores.includes(url)) {
                    if (this.$options.filters.tipsToLogin('normal')) {
                        this.handleNavigate(url)
                    }
                } else {
                    this.handleNavigate(url)
                }
            },
 
            linkMsgDetail() {
                uni.navigateTo({
                    url: `/pages/mine/im/list`,
                });
            },
 
            distribution() {
                distribution().then((res) => {
                    if (res.data.result) {
                        let type = res.data.result.distributionStatus;
                        if (type == "PASS") {
                            uni.navigateTo({
                                url: "/pages/mine/distribution/home",
                            });
                        } else if (type == "REFUSE") {
                            uni.navigateTo({
                                url: "/pages/mine/distribution/auth",
                            });
                        } else if (type == "RETREAT") {
                            uni.showToast({
                                title: "您的分销资格已被清退。请联系管理员!",
                                duration: 2000,
                                icon: "none",
                            });
                        } else {
                            uni.showToast({
                                title: "您的信息正在审核",
                                duration: 2000,
                                icon: "none",
                            });
                        }
                    } else if (!res.data.success && res.data.code == 22000) {
                        uni.showToast({
                            title: "分销功能暂未开启",
                            duration: 2000,
                            icon: "none",
                        });
                    } else {
                        // 没有资格申请 先去实名认证
                        uni.navigateTo({
                            url: "/pages/mine/distribution/auth",
                        });
                    }
                });
            },
        },
    };
</script>
 
<style lang="scss" scoped>
    .interact-tools {
        border-left: none;
        border-right: none;
 
 
        .interactBox {
            height: 156rpx;
        }
 
        .interact-container {
            margin: 0 20rpx;
            background: #fff;
            border-radius: 20rpx;
            box-shadow: 0 4rpx 24rpx 0 rgba($color: #f6f6f6, $alpha: 1);
 
            .interact-item-img {
                width: 52rpx !important;
                height: 52rpx !important;
                // margin-bottom:  !important;
                margin: 0 auto 6rpx auto !important;
            }
 
            image {
                width: 52rpx;
                height: 52rpx;
                margin-bottom: 6rpx;
            }
 
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            text-align: center;
 
            .interact-item {
                font-size: $font-sm;
                width: 25%;
                height: 160rpx;
                padding: 30rpx;
            }
        }
    }
</style>