luck 2 jaren geleden
bovenliggende
commit
7cb2dba504
3 gewijzigde bestanden met toevoegingen van 12 en 8 verwijderingen
  1. 4 5
      pages/sorting/add/add.js
  2. 5 0
      pages/sorting/enter/enter.js
  3. 3 3
      pages/sorting/enter/enter.wxml

+ 4 - 5
pages/sorting/add/add.js

@@ -444,12 +444,11 @@ getdata(){
     }, "post").then(function (res) {
       console.log(res);
       if (res.code != 200) {
-        wx.showLoading({
-          title: res.message.msg,
+        wx.showModal({
+          title: '错误',
+          content:  res.message.msg
         })
-        setTimeout(function () {
-          wx.hideLoading();
-        }, 1000);
+      
 
       } else {
         wx.hideLoading();

+ 5 - 0
pages/sorting/enter/enter.js

@@ -218,5 +218,10 @@ Page({
   
         console.log(222);
       })
+    },
+    coll(e){
+        wx.makePhoneCall({
+          phoneNumber: e.currentTarget.dataset.phone,
+        })
     }
 })

+ 3 - 3
pages/sorting/enter/enter.wxml

@@ -115,8 +115,8 @@
         <text>添加</text>
     </view>
 
-    <view class="btn btn-border flex ju-c">
-        <image src="/image/icon/service.png" class="icon m-right-10" data-phone="{{phone}}"></image>
+    <view class="btn btn-border flex ju-c" bindtap="coll" data-phone="{{phone}}">
+        <image src="/image/icon/service.png" class="icon m-right-10" ></image>
         <text>联系用户</text>
     </view>
     <view class="btn btn-sky" bindtap="submit">提交</view>
@@ -127,7 +127,7 @@
             <text lines="1" class="word1">用户下单信息</text>
             <block wx:for="{{order.list}}" wx:key="index">
             <view class="block1">
-                <view class="outer1"><image src="{{item.thumb?item.thumb:'/image/icon/shangyi.png'}}"></image></view>
+                <view class="outer1"><image src="{{item.thumb?item.thumb:'/image/icon/shangyi.png'}}" style="width: 115rpx;height: 115rpx;"></image></view>
                 <view class="outer2">
                     <text lines="1" class="infoBox1">{{item.title}}</text>
                     <view class="layer1">