##
whycq
2022-12-05 9f0087680bcf63a6bf7a61da23ecbaac213a78d9
pages/basics/callEmpty.vue
@@ -1,7 +1,7 @@
<template>
   <view style="width: 100%;height: 100vh;">
      <view style="width: 100%;height: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;">
         <button size="default" class="cu-btn bg-blue lg  ">呼叫空板</button>
         <button size="default" class="cu-btn bg-blue lg " @click="callEmpty">呼叫空板</button>
      </view>
   </view>
</template>
@@ -32,7 +32,12 @@
         callEmpty() {
            let that = this
            uni.request({
               url:
               url: that.commonUrl + '/site/motherPallet',
               method:'POST',
               success(result) {
                  var res = result.data
                  uni.showToast({title: res.msg, icon: "none", position: 'top'})
               }
            })
         }
      }