feat: 移除多余代码
This commit is contained in:
parent
e8812b9a1b
commit
9169a0d7de
2
main.js
2
main.js
|
|
@ -1,10 +1,8 @@
|
|||
import App from './App'
|
||||
import store from './store'
|
||||
import { createSSRApp } from 'vue'
|
||||
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
app.use(store)
|
||||
return {
|
||||
app
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,8 +57,8 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import {onLoad, onShow, onReachBottom} from '@dcloudio/uni-app'
|
||||
import {ref, reactive, computed, watch, inject} from 'vue'
|
||||
import {onLoad, onReachBottom} from '@dcloudio/uni-app'
|
||||
import {reactive, computed, inject} from 'vue'
|
||||
import MeIcon from "../../components/me-icon/me-icon";
|
||||
import MeButton from "../../components/me-button/me-button";
|
||||
import MeEmptySpace from "../../components/me-empty-space/me-empty-space";
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import MeIcon from "../../components/me-icon/me-icon.vue";
|
|||
import MeEmptySpace from "../../components/me-empty-space/me-empty-space.vue";
|
||||
import MeButton from "../../components/me-button/me-button.vue";
|
||||
import helpers from "../../utils/helpers";
|
||||
import {ref, computed} from 'vue'
|
||||
import {ref} from 'vue'
|
||||
import {onLoad} from '@dcloudio/uni-app'
|
||||
import api from "../../api/api";
|
||||
import {throttle} from "../../utils/throttle";
|
||||
|
|
|
|||
|
|
@ -166,24 +166,10 @@ import MeEmptySpace from "../../components/me-empty-space/me-empty-space.vue";
|
|||
import MeButton from "../../components/me-button/me-button.vue";
|
||||
import helpers from "../../utils/helpers";
|
||||
import {onLoad, onShow} from '@dcloudio/uni-app'
|
||||
import {ref, reactive, computed, watch, inject} from 'vue'
|
||||
import {ref, computed} from 'vue'
|
||||
import api from "../../api/api";
|
||||
import enums from "../../utils/enums";
|
||||
|
||||
//打开客户位置
|
||||
const openLocation = () => {
|
||||
uni.openLocation({
|
||||
latitude: Number(data.value.order_info.lat),
|
||||
longitude: Number(data.value.order_info.lng),
|
||||
success: function () {
|
||||
console.log('success');
|
||||
},
|
||||
fail: function () {
|
||||
helpers.showToast('客户经纬度不正确,请联系平台')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//是否可上报异常,未接单和已拒接的无法上报
|
||||
const canReportOrderException = computed(() => {
|
||||
return data.value.status !== enums.ORDER_DISPATCH_STATUS.STATUS_TOGET && data.value.status !== enums.ORDER_DISPATCH_STATUS.STATUS_REFUSED
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
import MeEmptySpace from "../../components/me-empty-space/me-empty-space.vue";
|
||||
import MeButton from "../../components/me-button/me-button.vue";
|
||||
import helpers from "../../utils/helpers";
|
||||
import {ref, reactive} from 'vue'
|
||||
import {onLoad} from '@dcloudio/uni-app'
|
||||
import api from "../../api/api";
|
||||
|
|
|
|||
|
|
@ -36,8 +36,7 @@
|
|||
<script setup>
|
||||
|
||||
import MeIcon from "../../components/me-icon/me-icon.vue";
|
||||
import MeButton from "../../components/me-button/me-button.vue";
|
||||
import { ref, reactive, computed, watch } from 'vue'
|
||||
import { ref } from 'vue'
|
||||
import helpers from "../../utils/helpers";
|
||||
import api from "../../api/api";
|
||||
import {throttle} from "../../utils/throttle";
|
||||
|
|
|
|||
|
|
@ -33,13 +33,14 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import {onLoad, onShow} from '@dcloudio/uni-app'
|
||||
import {ref, reactive, computed, watch, inject} from 'vue'
|
||||
import {onShow} from '@dcloudio/uni-app'
|
||||
import {ref, computed, inject} from 'vue'
|
||||
import MeIcon from "../../components/me-icon/me-icon";
|
||||
import MeEmptySpace from "../../components/me-empty-space/me-empty-space.vue";
|
||||
import MeTop from "../../components/me-top/me-top.vue";
|
||||
import api from "../../api/api";
|
||||
import helpers from "../../utils/helpers";
|
||||
|
||||
const listMarginTop = computed(() => {
|
||||
return (inject('globalData').statusBarH + (inject('globalData').customBarH - inject('globalData').statusBarH)) * 2
|
||||
})
|
||||
|
|
|
|||
|
|
@ -76,8 +76,8 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import {onLoad, onShow, onReachBottom} from '@dcloudio/uni-app'
|
||||
import {ref, reactive, computed, watch, inject} from 'vue'
|
||||
import {onShow, onReachBottom} from '@dcloudio/uni-app'
|
||||
import {ref, reactive, computed, inject} from 'vue'
|
||||
import MeIcon from "../../components/me-icon/me-icon";
|
||||
import MeEmptySpace from "../../components/me-empty-space/me-empty-space";
|
||||
import MeTop from "../../components/me-top/me-top.vue";
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
import { createStore } from 'vuex'
|
||||
const store = createStore({
|
||||
state:{
|
||||
filterMembersCondition: {},
|
||||
filterOrderCondition: {},
|
||||
currentMember: {},
|
||||
},
|
||||
mutations: {
|
||||
updateFilterMembersCondition(state, payload) {
|
||||
state.filterMembersCondition = payload
|
||||
},
|
||||
updateFilterOrderCondition(state, payload) {
|
||||
state.filterOrderCondition = payload
|
||||
},
|
||||
updateCurrentMember(state, payload) {
|
||||
state.currentMember = payload
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
export default store
|
||||
Loading…
Reference in New Issue
Block a user