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 App from './App'
|
||||||
import store from './store'
|
|
||||||
import { createSSRApp } from 'vue'
|
import { createSSRApp } from 'vue'
|
||||||
|
|
||||||
export function createApp() {
|
export function createApp() {
|
||||||
const app = createSSRApp(App)
|
const app = createSSRApp(App)
|
||||||
app.use(store)
|
|
||||||
return {
|
return {
|
||||||
app
|
app
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {onLoad, onShow, onReachBottom} from '@dcloudio/uni-app'
|
import {onLoad, onReachBottom} from '@dcloudio/uni-app'
|
||||||
import {ref, reactive, computed, watch, inject} from 'vue'
|
import {reactive, computed, inject} from 'vue'
|
||||||
import MeIcon from "../../components/me-icon/me-icon";
|
import MeIcon from "../../components/me-icon/me-icon";
|
||||||
import MeButton from "../../components/me-button/me-button";
|
import MeButton from "../../components/me-button/me-button";
|
||||||
import MeEmptySpace from "../../components/me-empty-space/me-empty-space";
|
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 MeEmptySpace from "../../components/me-empty-space/me-empty-space.vue";
|
||||||
import MeButton from "../../components/me-button/me-button.vue";
|
import MeButton from "../../components/me-button/me-button.vue";
|
||||||
import helpers from "../../utils/helpers";
|
import helpers from "../../utils/helpers";
|
||||||
import {ref, computed} from 'vue'
|
import {ref} from 'vue'
|
||||||
import {onLoad} from '@dcloudio/uni-app'
|
import {onLoad} from '@dcloudio/uni-app'
|
||||||
import api from "../../api/api";
|
import api from "../../api/api";
|
||||||
import {throttle} from "../../utils/throttle";
|
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 MeButton from "../../components/me-button/me-button.vue";
|
||||||
import helpers from "../../utils/helpers";
|
import helpers from "../../utils/helpers";
|
||||||
import {onLoad, onShow} from '@dcloudio/uni-app'
|
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 api from "../../api/api";
|
||||||
import enums from "../../utils/enums";
|
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(() => {
|
const canReportOrderException = computed(() => {
|
||||||
return data.value.status !== enums.ORDER_DISPATCH_STATUS.STATUS_TOGET && data.value.status !== enums.ORDER_DISPATCH_STATUS.STATUS_REFUSED
|
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 MeEmptySpace from "../../components/me-empty-space/me-empty-space.vue";
|
||||||
import MeButton from "../../components/me-button/me-button.vue";
|
import MeButton from "../../components/me-button/me-button.vue";
|
||||||
import helpers from "../../utils/helpers";
|
|
||||||
import {ref, reactive} from 'vue'
|
import {ref, reactive} from 'vue'
|
||||||
import {onLoad} from '@dcloudio/uni-app'
|
import {onLoad} from '@dcloudio/uni-app'
|
||||||
import api from "../../api/api";
|
import api from "../../api/api";
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
||||||
import MeIcon from "../../components/me-icon/me-icon.vue";
|
import MeIcon from "../../components/me-icon/me-icon.vue";
|
||||||
import MeButton from "../../components/me-button/me-button.vue";
|
import { ref } from 'vue'
|
||||||
import { ref, reactive, computed, watch } from 'vue'
|
|
||||||
import helpers from "../../utils/helpers";
|
import helpers from "../../utils/helpers";
|
||||||
import api from "../../api/api";
|
import api from "../../api/api";
|
||||||
import {throttle} from "../../utils/throttle";
|
import {throttle} from "../../utils/throttle";
|
||||||
|
|
|
||||||
|
|
@ -33,13 +33,14 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {onLoad, onShow} from '@dcloudio/uni-app'
|
import {onShow} from '@dcloudio/uni-app'
|
||||||
import {ref, reactive, computed, watch, inject} from 'vue'
|
import {ref, computed, inject} from 'vue'
|
||||||
import MeIcon from "../../components/me-icon/me-icon";
|
import MeIcon from "../../components/me-icon/me-icon";
|
||||||
import MeEmptySpace from "../../components/me-empty-space/me-empty-space.vue";
|
import MeEmptySpace from "../../components/me-empty-space/me-empty-space.vue";
|
||||||
import MeTop from "../../components/me-top/me-top.vue";
|
import MeTop from "../../components/me-top/me-top.vue";
|
||||||
import api from "../../api/api";
|
import api from "../../api/api";
|
||||||
import helpers from "../../utils/helpers";
|
import helpers from "../../utils/helpers";
|
||||||
|
|
||||||
const listMarginTop = computed(() => {
|
const listMarginTop = computed(() => {
|
||||||
return (inject('globalData').statusBarH + (inject('globalData').customBarH - inject('globalData').statusBarH)) * 2
|
return (inject('globalData').statusBarH + (inject('globalData').customBarH - inject('globalData').statusBarH)) * 2
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {onLoad, onShow, onReachBottom} from '@dcloudio/uni-app'
|
import {onShow, onReachBottom} from '@dcloudio/uni-app'
|
||||||
import {ref, reactive, computed, watch, inject} from 'vue'
|
import {ref, reactive, computed, inject} from 'vue'
|
||||||
import MeIcon from "../../components/me-icon/me-icon";
|
import MeIcon from "../../components/me-icon/me-icon";
|
||||||
import MeEmptySpace from "../../components/me-empty-space/me-empty-space";
|
import MeEmptySpace from "../../components/me-empty-space/me-empty-space";
|
||||||
import MeTop from "../../components/me-top/me-top.vue";
|
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