MrShi
2024-04-17 b79a39d92db3baae7c3c8587e2858561bec0d6ca
wx/pages/details_dispatch_unit/details_dispatch_unit.vue
@@ -151,6 +151,7 @@
</template>
<script>
   import { mapState } from 'vuex'
   export default {
      data() {
         return {
@@ -182,7 +183,30 @@
      onReachBottom() {
         this.getList()
      },
      computed: {
         ...mapState(['userInfo'])
      },
      methods: {
         send () {
            this.$u.api.sendSms({
               phone: this.userInfo.mobile
            }).then(res => {
               if (res.code === 200) {
                  this.num = 60
                  this.setTime()
               }
            })
         },
         setTime () {
            this.timer = setInterval(() => {
               if (this.num === 0) {
                  clearInterval(this.timer)
                  this.timer = null
                  return
               }
               this.num = this.num - 1
            }, 1000)
         },
         // 签署
         confirm1() {
            if (!this.code) {