Ver código fonte

修复加一单报错的问题+修改为打电话为复制手机号码

Yannay 2 meses atrás
pai
commit
7467822633

+ 13 - 13
pages/orderDetailNew/components/pageOne.vue

@@ -148,20 +148,20 @@ export default {
148 148
         handlePhoneClick() {
149 149
             console.log('电话卡片被点击', '电话号码:', this.orderDetail.phone)
150 150
             if (this.orderDetail.phone) {
151
-                //拨打电话
152
-                uni.makePhoneCall({
153
-                    phoneNumber: this.orderDetail.phone
154
-                });
151
+                //拨打电话,需要设置权限
152
+                // uni.makePhoneCall({
153
+                //     phoneNumber: this.orderDetail.phone
154
+                // });
155 155
                 //先暂时复制电话号码
156
-                // uni.setClipboardData({
157
-                //     data: this.orderDetail.phone,
158
-                //     success: () => {
159
-                //         uni.showToast({
160
-                //             title: '电话号码已复制',
161
-                //             icon: 'none'
162
-                //         })
163
-                //     }
164
-                // })
156
+                uni.setClipboardData({
157
+                    data: this.orderDetail.phone,
158
+                    success: () => {
159
+                        uni.showToast({
160
+                            title: '电话号码已复制',
161
+                            icon: 'none'
162
+                        })
163
+                    }
164
+                })
165 165
             } else {
166 166
                 uni.showToast({
167 167
                     title: '该订单暂时没有电话号码',

+ 2 - 1
pages/orderDetailNew/index.vue

@@ -182,7 +182,7 @@ export default {
182 182
 
183 183
         async handleAddClick() {
184 184
 
185
-            console.log('加一单')
185
+            console.log('点击了加一单')
186 186
             //判断如果当前有收单的id是‘’的话,说明是新增的收单订单
187 187
             //打开模态窗
188 188
             //选择品牌,型号。价格
@@ -253,6 +253,7 @@ export default {
253 253
             await uni.$u.api.addReceiptForm({
254 254
                 brand: this.currentAddBrand.dictValue,
255 255
                 sendFormId: this.orderId,
256
+                clueId: this.clueId
256 257
             })
257 258
             //刷新收单列表
258 259
             this.getReceiptList();