diff --git a/pages/index/index.vue b/pages/index/index.vue
index 3ccef19..3d28e27 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -29,7 +29,7 @@
-
+
diff --git a/pages/main/index.vue b/pages/main/index.vue
index d7a764c..67af311 100644
--- a/pages/main/index.vue
+++ b/pages/main/index.vue
@@ -30,7 +30,7 @@
地图
-
+
客服
@@ -48,6 +48,9 @@
@@ -74,9 +83,9 @@
margin-top: 89rpx;
border: 12rpx solid #fff;
}
+
.setItemBox {
width: 72rpx;
height: 72rpx;
}
-
\ No newline at end of file
diff --git a/pages/order/refund.vue b/pages/order/refund.vue
index ba417b4..5c3d649 100644
--- a/pages/order/refund.vue
+++ b/pages/order/refund.vue
@@ -111,7 +111,7 @@
-
+
联系客服
Number(this.fullPrice)) {
this.requestRefund_price = Number(this.fullPrice)
@@ -181,11 +183,11 @@
if (this.isPressed) { //防止提交订单按钮重复点击
return
}
-
+
this.isPressed = true
-
+
//提交前检查
- if(!this.refund_remarkDescription){
+ if (!this.refund_remarkDescription) {
uni.showToast({
title: '请填写退款说明',
icon: 'error'
@@ -193,7 +195,7 @@
this.isPressed = false
return
}
- if(Number(this.requestRefund_price)===0){
+ if (Number(this.requestRefund_price) === 0) {
uni.showToast({
title: '请填写退款额',
icon: 'error'
@@ -201,13 +203,13 @@
this.isPressed = false
return
}
-
+
//提交
uni.$u.http.post('/Api/Check/refundOrder', {
- order_sn:this.order_sn, //订单号
+ order_sn: this.order_sn, //订单号
shop_id: this.$store.state.shop_id, //商铺id
- apply_price:Number(this.requestRefund_price), //申请价格
- refund_remark:this.refund_remarkDescription //退款说明
+ apply_price: Number(this.requestRefund_price), //申请价格
+ refund_remark: this.refund_remarkDescription //退款说明
}, {
header: {
'Token': this.$store.state.userInfo.token,
diff --git a/utils/index.js b/utils/index.js
index ba26030..6dc5341 100644
--- a/utils/index.js
+++ b/utils/index.js
@@ -291,4 +291,43 @@ function initMqtt() {
}) //更新订单
}
})
+}
+
+/**
+ * 微信接口 拨打电话
+ * @param {string} tel 电话号码
+ */
+export function callPhone(tel) {
+ if (!tel) {
+ console.error("电话号码为空,无法拨打")
+ wx.showToast({
+ title: "电话号码为空",
+ icon: "none",
+ duration: 2000
+ })
+ return
+ }
+
+ wx.showActionSheet({
+ itemList: [`拨打电话:${tel}`],
+ success: () => {
+ wx.makePhoneCall({
+ phoneNumber: tel, // 电话号码来源
+ success: () => {
+ console.log("拨打电话成功")
+ wx.showToast({
+ title: "电话拨打完成",
+ icon: "success",
+ duration: 2000
+ })
+ },
+ fail: (err) => {
+ console.error("拨打电话失败", err)
+ }
+ })
+ },
+ fail: (err) => {
+ console.error("用户取消拨打电话", err)
+ }
+ })
}
\ No newline at end of file