MrShi
2025-08-21 7332db34d8927cb4e13ab2c8593c352fec48f0c4
small-program/pages/index/index.vue
@@ -318,6 +318,7 @@
<script>
   import { mapState } from 'vuex'
   import sunuiMverify from '@/components/sunui-mverify/sunui-mverify.vue';
   var QQMapWX = require('@/utils/qqmap-wx-jssdk.js');
   export default {
      components: { sunuiMverify },
      computed: {
@@ -331,6 +332,7 @@
            show: false,
            isLogin: false,
            typeId: 0,
            qqmapsdk: null,
            type: [
               { name: '用工', id: 0 },
               { name: '运货', id: 1 },
@@ -392,10 +394,16 @@
      },
      async onLoad() {
         await this.$onLaunched;
         if(this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}') {
         if (this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}') {
            this.getOrderList()
            this.getCategoryLists()
         }
         this.qqmapsdk = new QQMapWX({
            key: '4PXBZ-JLBC7-LCLXG-P2SZX-C4HYE-LDBLQ'
         });
         this.form.linkPhone = this.userInfo.telephone
      },
      onShow(options) {
@@ -474,6 +482,7 @@
      methods: {
         // 手动接单
         getaccept(e, orderId, index) {
            if (!e.msg) return;
            this.$u.api.accept({ orderId })
               .then(res => {
                  if (res.code === 200) {