1.
陶杰
2024-10-17 5f902ea187c8d36e11ca129d02bf5ad72b29005d
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
<template>
    <view class="main-container user-container">
        
        <view class="user-utils m-20">
            
 
            <u-cell-group>
                <u-cell
                    title="单元格"
                    value="内容"
                    label="标签"
                    center
                >
                <view  slot="title" class="title" >我的客服</view>
                <view  slot="label">
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact"> 
                        客服电话:<span class="topic-gray">{{ tel }}</span>
                    </button>    
                </view>
                <view  slot="value" >
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact"> 
                        <image class="icon-clock m-r-6 m-t-2" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/63/63b766e95c1d4232a8d39505cddd49e7icon-wx.png"></image>
                    </button>
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact">
                        我的客服
                    </button>
                </view>
                </u-cell>
            </u-cell-group>
            
            <u-cell-group>
                <u-cell
                    title="单元格"
                    value="内容"
                    label="怎么下单/几天到货/新手疑问"
                    center
                >
                <view  slot="title" class="title" >新用户咨询</view>
                <view  slot="value">
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact">
                        <image class="icon-clock m-r-6 m-t-2" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/63/63b766e95c1d4232a8d39505cddd49e7icon-wx.png"></image>
                    </button>
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact">
                        新手咨询
                    </button>
                </view>
                </u-cell>
            </u-cell-group>
            
            <u-cell-group>
                <u-cell
                    title="单元格"
                    value="内容"
                    label="怎么下单/几天到货/新手疑问"
                    center
                >
                <view  slot="title" class="title" >订单客服(改单/补退/特殊需求)</view>
                <view  slot="value">
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact">
                        <image class="icon-clock m-r-6 m-t-2" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/63/63b766e95c1d4232a8d39505cddd49e7icon-wx.png"></image>
                    </button>
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact">
                        订单客服
                    </button>
                </view>
                </u-cell>
            </u-cell-group>
            
            <u-cell-group>
                <u-cell
                    title="单元格"
                    value="内容"
                    label="货到哪了/怎么选物流/价格时效/提货转货"
                    center
                >
                <view  slot="title" class="title" >物流客服</view>
                <view  slot="value">
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact">
                        <image class="icon-clock m-r-6 m-t-2" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/63/63b766e95c1d4232a8d39505cddd49e7icon-wx.png"></image>
                    </button>
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact">
                        物流客服
                    </button>
                </view>
                </u-cell>
            </u-cell-group>
 
            <u-cell-group>
                <u-cell
                    title="单元格"
                    value="内容"
                    label="断枝损伤/质量投诉/缺货漏发"
                    center
                >
                <view  slot="title" class="title" >售后客服</view>
                <view  slot="value">
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact">
                        <image class="icon-clock m-r-6 m-t-2" src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/63/63b766e95c1d4232a8d39505cddd49e7icon-wx.png"></image>
                    </button>
                    <button open-type="contact" class="component-button-contact"  @handleContact="handleContact">
                        售后客服
                    </button>
                </view>
                </u-cell>
            </u-cell-group>
            
 
        </view>
 
 
 
 
    </view>
</template>
 
<script>
    export default {
        computed: {
 
        },
        data() {
            return {
                CustomBar: uni.getStorageSync('CustomBar'),
                StatusBar: uni.getStorageSync('StatusBar'),
                tcode: '',
                inviterName: '',
                // StatusBar:0,
                tel: '15974805814',
                tj: {},
                tj_order: {},
                cacheUserId: '',
                signToday: false
                // order_pendding_num: 0,
 
            };
        },
        onShow() {
            this.cacheUserId = ''
        },
        onLoad(options) {
            // const url = options.q ? decodeURIComponent(options.q) : '';
            // const urlcode = options.url && decodeURIComponent(options.url) || ''
            // #ifdef PUB_CUSTOMER
            if (options.partnerUserId) {
                this.bindPartnerUser(options.partnerUserId, options.partnerUserName)
            }
            // #endif
 
 
        },
        created() {
 
        },
 
        async onPullDownRefresh() {
            await this.$store.dispatch('getCurrentInfo')
            uni.stopPullDownRefresh()
        },
        methods: {
            async bindPartnerUser(userId, name) {
                // await this.$message.confirm(`确定要绑定${name}合伙人吗?`)
                //调用接口绑定
                this.$message.showLoading()
                const {
                    code,
                    data
                } = await this.$http.request('post', '/api/customer/bind/partner', {
                    data: {
                        partnerUserId: userId
                    }
                })
                this.$message.hideLoading()
                if (code == 0) {
                    this.$message.showToast(`绑定合伙人${name}成功`)
                    await this.$store.dispatch('getCurrentInfo')
                }
            },
 
 
            async callTel() {
                await this.$message.confirm('是否拨打客服电话')
                uni.makePhoneCall({
                    phoneNumber: this.tel //仅为示例
                });
            },
        }
    }
</script>
 
 
<style lang="scss" scoped>
    .title{
        font-weight: 600;
        font-size: 32rpx;
        color: #000000;
        line-height: 44rpx;
        // margin-bottom: 20rpx;
    }
</style>