Commit a54bfd04 by pangchong

feat: 代码合并整理

parent f27ea434
...@@ -8,20 +8,20 @@ export {} ...@@ -8,20 +8,20 @@ export {}
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
// 全局组件 // 全局组件
GlobalButton: typeof import('./src/components/global-button/global-button.vue')['default'] GlobalButton: typeof import('./src/mocp/components/global-button/global-button.vue')['default']
GlobalDate: typeof import('./src/components/global-date/global-date.vue')['default'] GlobalDate: typeof import('./src/mocp/components/global-date/global-date.vue')['default']
GlobalEmpty: typeof import('./src/components/global-empty/global-empty.vue')['default'] GlobalEmpty: typeof import('./src/mocp/components/global-empty/global-empty.vue')['default']
GlobalField: typeof import('./src/components/global-field/global-field.vue')['default'] GlobalField: typeof import('./src/mocp/components/global-field/global-field.vue')['default']
GlobalIcon: typeof import('./src/components/global-icon/global-icon.vue')['default'] GlobalIcon: typeof import('./src/mocp/components/global-icon/global-icon.vue')['default']
GlobalNavbar: typeof import('./src/components/global-navbar/global-navbar.vue')['default'] GlobalNavbar: typeof import('./src/mocp/components/global-navbar/global-navbar.vue')['default']
GlobalPage: typeof import('./src/components/global-page/global-page.vue')['default'] GlobalPage: typeof import('./src/mocp/components/global-page/global-page.vue')['default']
GlobalPageSwiper: typeof import('./src/components/global-page-swiper/global-page-swiper.vue')['default'] GlobalPageSwiper: typeof import('./src/mocp/components/global-page-swiper/global-page-swiper.vue')['default']
GlobalPageSwiperItem: typeof import('./src/components/global-page-swiper-item/global-page-swiper-item.vue')['default'] GlobalPageSwiperItem: typeof import('./src/mocp/components/global-page-swiper-item/global-page-swiper-item.vue')['default']
GlobalPicker: typeof import('./src/components/global-picker/global-picker.vue')['default'] GlobalPicker: typeof import('./src/mocp/components/global-picker/global-picker.vue')['default']
GlobalPopup: typeof import('./src/components/global-popup/global-popup.vue')['default'] GlobalPopup: typeof import('./src/mocp/components/global-popup/global-popup.vue')['default']
GlobalTabs: typeof import('./src/components/global-tabs/global-tabs.vue')['default'] GlobalTabs: typeof import('./src/mocp/components/global-tabs/global-tabs.vue')['default']
GlobalUpload: typeof import('./src/components/global-upload/global-upload.vue')['default'] GlobalUpload: typeof import('./src/mocp/components/global-upload/global-upload.vue')['default']
// 自定义组件 // 自定义组件
CustomScore: typeof import('./src/components/widget/custom-score.vue')['default'] CustomScore: typeof import('./src/mocp/components/widget/custom-score.vue')['default']
} }
} }
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"sourceMap": true, "sourceMap": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["./src/*"] "mocp/*": ["./src/mocp/*"]
}, },
"lib": ["esnext", "dom"], "lib": ["esnext", "dom"],
"types": [ "types": [
......
<script> <script>
import useUserStore from '@/store/user'
export default { export default {
onLaunch: function () { onLaunch: function () {
console.log('App Launch') console.log('App Launch')
}, },
onShow: function () { onShow: function () {
//退出登录
const userStore = useUserStore()
if (!userStore.token) {
userStore.handleLogOut()
}
console.log('App Show') console.log('App Show')
}, },
onHide: function () { onHide: function () {
...@@ -21,16 +15,10 @@ export default { ...@@ -21,16 +15,10 @@ export default {
<style lang="scss"> <style lang="scss">
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */ /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
@import 'uview-plus/index.scss'; @import 'uview-plus/index.scss';
// 加入主题相关样式
@import '@/static/css/theme.scss';
// 修改uview-plus样式 // 修改uview-plus样式
@import '@/static/css/uview-plus.scss'; @import 'mocpStatic/css/uview-plus.scss';
// 修改uni样式 // 加入mocp主题相关样式
@import '@/static/css/uni.scss'; @import 'mocpStatic/css/theme.scss';
/*每个页面公共css */ // 加入mocp字体图标
page { @import 'mocpStatic/font/iconfont.css';
font-size: 28rpx;
height: 100vh;
background: #f7f8fa;
}
</style> </style>
import { createSSRApp } from 'vue' import { createSSRApp } from 'vue'
import App from './App.vue' import App from './App.vue'
import pinia from './store' import pinia from 'mocp/store'
import uviewPlus from 'uview-plus' import uviewPlus from 'uview-plus'
import * as message from '@/utils/message' import * as message from 'mocp/utils/message'
import * as tool from '@/utils/tool' import * as tool from 'mocp/utils/tool'
// 引入字体 import * as jump from 'mocp/utils/jump'
import '@/static/font/iconfont.css' //mocp消息提示
//消息提示 uni.$mocpMessage = message
uni.$message = message //mocp工具方法
//工具方法 uni.$mocpTool = tool
uni.$tool = tool //mocp页面跳转
uni.$mocpJump = jump
export function createApp() { export function createApp() {
const app = createSSRApp(App) const app = createSSRApp(App)
app.use(pinia) app.use(pinia)
......
import { http } from '@/utils/http' import { http } from 'mocp/utils/http'
export const getRqmListApi = (data, config) => { export const getRqmListApi = (data, config) => {
return http({ return http({
......
import { http } from '@/utils/http' import { http } from 'mocp/utils/http'
export const getAircraftNumbersApi = (data, config) => { export const getAircraftNumbersApi = (data, config) => {
return http({ return http({
......
import { http } from '@/utils/http' import { http } from 'mocp/utils/http'
export const getGifCaptchaApi = (data, config) => { export const getGifCaptchaApi = (data, config) => {
return http({ return http({
......
@mixin global-button-primary { @mixin global-button-primary {
color: #fff; color: #fff;
background-color: $uni-primary-6; background-color: $mocp-primary-6;
} }
@mixin global-button-primary-active { @mixin global-button-primary-active {
color: darken(#fff, 10%); color: darken(#fff, 10%);
background-color: darken($uni-primary-7, 5%); background-color: darken($mocp-primary-7, 5%);
border-color: darken($uni-primary-7, 5%); border-color: darken($mocp-primary-7, 5%);
} }
@mixin global-button-success { @mixin global-button-success {
color: #fff; color: #fff;
background-color: $uni-success-6; background-color: $mocp-success-6;
} }
@mixin global-button-success-active { @mixin global-button-success-active {
color: darken(#fff, 10%); color: darken(#fff, 10%);
background-color: darken($uni-success-7, 5%); background-color: darken($mocp-success-7, 5%);
border-color: darken($uni-success-7, 5%); border-color: darken($mocp-success-7, 5%);
} }
@mixin global-button-warning { @mixin global-button-warning {
color: #fff; color: #fff;
background-color: $uni-warning-6; background-color: $mocp-warning-6;
} }
@mixin global-button-warning-active { @mixin global-button-warning-active {
color: darken(#fff, 10%); color: darken(#fff, 10%);
background-color: darken($uni-warning-7, 5%); background-color: darken($mocp-warning-7, 5%);
border-color: darken($uni-warning-7, 5%); border-color: darken($mocp-warning-7, 5%);
} }
@mixin global-button-danger { @mixin global-button-danger {
color: #fff; color: #fff;
background-color: $uni-danger-6; background-color: $mocp-danger-6;
} }
@mixin global-button-danger-active { @mixin global-button-danger-active {
color: darken(#fff, 10%); color: darken(#fff, 10%);
background-color: darken($uni-danger-7, 5%); background-color: darken($mocp-danger-7, 5%);
border-color: darken($uni-danger-7, 5%); border-color: darken($mocp-danger-7, 5%);
} }
.global-button { .global-button {
padding: 0 20rpx; padding: 0 20rpx;
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
} }
&.text { &.text {
padding: 0; padding: 0;
color: $uni-primary-6; color: $mocp-primary-6;
background-color: transparent; background-color: transparent;
&::after { &::after {
border: none; border: none;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<script setup> <script setup>
import { computed, ref, watch } from 'vue' import { computed, ref, watch } from 'vue'
import Day from '@/utils/dayjs' import Day from 'mocp/utils/dayjs'
const es = defineEmits(['update:modelValue', 'change']) const es = defineEmits(['update:modelValue', 'change'])
const ps = defineProps({ const ps = defineProps({
...@@ -154,7 +154,7 @@ const clear = () => { ...@@ -154,7 +154,7 @@ const clear = () => {
line-height: 48rpx; line-height: 48rpx;
&.placeholder { &.placeholder {
.date-value { .date-value {
color: $uni-text-3; color: $mocp-text-3;
} }
} }
&.disabled { &.disabled {
...@@ -162,7 +162,7 @@ const clear = () => { ...@@ -162,7 +162,7 @@ const clear = () => {
} }
} }
&-value { &-value {
color: $uni-text-4; color: $mocp-text-4;
margin-right: 8rpx; margin-right: 8rpx;
} }
&-icon { &-icon {
......
...@@ -36,7 +36,7 @@ const getImageStyle = computed(() => { ...@@ -36,7 +36,7 @@ const getImageStyle = computed(() => {
} }
}) })
const getImageSrc = computed(() => { const getImageSrc = computed(() => {
return `/static/image/empty/${ps.type}.png` return `/static/mocp/image/empty/${ps.type}.png`
}) })
const getTextStyle = computed(() => { const getTextStyle = computed(() => {
return { return {
......
<template> <template>
<!-- 全局标题+内容样式 --> <!-- 全局标题+内容样式 -->
<text class="txt" :class="class"> <text class="txt" :class="class">
<text class="color-text-5" :style="getLabelStyle" v-if="label">{{ label }}</text> <text class="mocp-color-text-5" :style="getLabelStyle" v-if="label">{{ label }}</text>
<text class="color-text-4" :style="getValueStyle" v-if="value">{{ value }}</text> <text class="mocp-color-text-4" :style="getValueStyle" v-if="value">{{ value }}</text>
</text> </text>
</template> </template>
......
<template> <template>
<!-- 全局自定义navbar --> <!-- 全局自定义navbar -->
<uni-nav-bar :title="title" :border="false" :backgroundColor="backgroundColor" left-icon="left" :leftWidth="leftWidth" :rightWidth="rightWidth"> <view class="navbar">
<template #left> <up-navbar :title="title" :fixed="false" :bgColor="bgColor" :safeAreaInsetTop="false">
<slot name="left"></slot> <template #left>
</template> <slot name="left"></slot>
<template #right> </template>
<slot name="right"></slot> <template #right>
</template> <slot name="right"></slot>
</uni-nav-bar> </template>
</up-navbar>
</view>
</template> </template>
<script setup> <script setup>
...@@ -16,17 +18,9 @@ const ps = defineProps({ ...@@ -16,17 +18,9 @@ const ps = defineProps({
type: String, type: String,
default: '' default: ''
}, },
backgroundColor: { bgColor: {
type: String, type: String,
default: '#f7f8fa' default: '#f7f8fa'
},
leftWidth: {
type: Number,
default: 80
},
rightWidth: {
type: Number,
default: 80
} }
}) })
</script> </script>
......
...@@ -123,7 +123,7 @@ const queryList = (pageIndex, pageSize) => { ...@@ -123,7 +123,7 @@ const queryList = (pageIndex, pageSize) => {
paging.value?.complete(res.list || []) paging.value?.complete(res.list || [])
firstLoaded.value = true firstLoaded.value = true
} else { } else {
uni.$message.showToast(res.message) uni.$mocpMessage.showToast(res.message)
} }
}) })
.catch(() => { .catch(() => {
......
<template> <template>
<!-- 全局page 带tab切换和左右滑动加载--> <!-- 全局page 带tab切换和左右滑动加载-->
<z-paging-swiper> <z-paging-swiper :swiper-style="getSwiperStyle">
<!-- 头部 --> <!-- 头部 -->
<template #top> <template #top>
<view :style="{ height: safeAreaInsets?.top + 'px' }" v-if="custom"></view> <view :style="{ height: safeAreaInsets?.top + 'px' }" v-if="custom"></view>
...@@ -61,8 +61,15 @@ import { computed, ref } from 'vue' ...@@ -61,8 +61,15 @@ import { computed, ref } from 'vue'
// 获取屏幕边界到安全区域距离 // 获取屏幕边界到安全区域距离
const { safeAreaInsets } = uni.getSystemInfoSync() const { safeAreaInsets } = uni.getSystemInfoSync()
const ps = defineProps({ const ps = defineProps({
background: {
type: String,
default: '#f7f8fa'
},
padding: {
type: [String, Number],
default: 0
},
padding: { padding: {
type: [String, Number], type: [String, Number],
default: 0 default: 0
...@@ -144,6 +151,14 @@ const ps = defineProps({ ...@@ -144,6 +151,14 @@ const ps = defineProps({
default: '160rpx' default: '160rpx'
} }
}) })
// z-swiper样式
const getSwiperStyle = computed(() => {
return {
fontSize: '28rpx',
background: ps.background
}
})
//滚动区域样式
const getStyle = computed(() => { const getStyle = computed(() => {
let padding = typeof ps.padding == 'number' ? ps.padding + 'rpx' : ps.padding let padding = typeof ps.padding == 'number' ? ps.padding + 'rpx' : ps.padding
let margin = typeof ps.margin == 'number' ? ps.margin + 'rpx' : ps.margin let margin = typeof ps.margin == 'number' ? ps.margin + 'rpx' : ps.margin
...@@ -156,7 +171,7 @@ const getStyle = computed(() => { ...@@ -156,7 +171,7 @@ const getStyle = computed(() => {
const current = ref(ps.current) const current = ref(ps.current)
//返回 //返回
const goBack = () => { const goBack = () => {
uni.navigateBack() uni.$mocpJump.navigateBack()
} }
// tabs通知swiper切换 // tabs通知swiper切换
const tabsChange = (item) => { const tabsChange = (item) => {
...@@ -176,8 +191,7 @@ defineExpose({ ...@@ -176,8 +191,7 @@ defineExpose({
} }
}) })
</script> </script>
<style scoped>
<style>
.swiper { .swiper {
height: 100%; height: 100%;
} }
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
show-refresher-update-time show-refresher-update-time
:hide-empty-view="!isDataList" :hide-empty-view="!isDataList"
@query="query" @query="query"
:paging-style="getPagingStyle"
> >
<template #empty v-if="refresherEnabled || loadingMoreEnabled"> <template #empty v-if="refresherEnabled || loadingMoreEnabled">
<global-empty></global-empty> <global-empty></global-empty>
...@@ -58,6 +59,10 @@ const dataList = ref([]) ...@@ -58,6 +59,10 @@ const dataList = ref([])
const es = defineEmits(['query', 'handleLeftClick', 'handleRightClick', 'handleFooterClick']) const es = defineEmits(['query', 'handleLeftClick', 'handleRightClick', 'handleFooterClick'])
const paging = ref() const paging = ref()
const ps = defineProps({ const ps = defineProps({
background: {
type: String,
default: '#f7f8fa'
},
padding: { padding: {
type: [String, Number], type: [String, Number],
default: 0 default: 0
...@@ -169,6 +174,14 @@ const ps = defineProps({ ...@@ -169,6 +174,14 @@ const ps = defineProps({
default: '160rpx' default: '160rpx'
} }
}) })
// z-page样式
const getPagingStyle = computed(() => {
return {
fontSize: '28rpx',
background: ps.background
}
})
//滚动区域样式
const getStyle = computed(() => { const getStyle = computed(() => {
let padding = typeof ps.padding == 'number' ? ps.padding + 'rpx' : ps.padding let padding = typeof ps.padding == 'number' ? ps.padding + 'rpx' : ps.padding
let margin = typeof ps.margin == 'number' ? ps.margin + 'rpx' : ps.margin let margin = typeof ps.margin == 'number' ? ps.margin + 'rpx' : ps.margin
...@@ -200,7 +213,7 @@ const query = (pageIndex, pageSize) => { ...@@ -200,7 +213,7 @@ const query = (pageIndex, pageSize) => {
//点击左边插槽 //点击左边插槽
const handleLeftClick = () => { const handleLeftClick = () => {
if (ps.navLeftClick == 'default') { if (ps.navLeftClick == 'default') {
uni.navigateBack() uni.$mocpJump.navigateBack()
} else { } else {
es('handleLeftClick') es('handleLeftClick')
} }
......
...@@ -182,7 +182,7 @@ const clear = () => { ...@@ -182,7 +182,7 @@ const clear = () => {
line-height: 48rpx; line-height: 48rpx;
&.placeholder { &.placeholder {
.picker-value { .picker-value {
color: $uni-text-3; color: $mocp-text-3;
} }
} }
&.disabled { &.disabled {
...@@ -190,7 +190,7 @@ const clear = () => { ...@@ -190,7 +190,7 @@ const clear = () => {
} }
} }
&-value { &-value {
color: $uni-text-4; color: $mocp-text-4;
margin-right: 8rpx; margin-right: 8rpx;
} }
&-icon { &-icon {
......
...@@ -102,7 +102,7 @@ const open = () => { ...@@ -102,7 +102,7 @@ const open = () => {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.title { .title {
color: $uni-text-5; color: $mocp-text-5;
font-size: 40rpx; font-size: 40rpx;
padding: 18rpx 32rpx; padding: 18rpx 32rpx;
} }
......
...@@ -85,11 +85,11 @@ const afterRead = async (event) => { ...@@ -85,11 +85,11 @@ const afterRead = async (event) => {
}) })
} else { } else {
fileList.value.splice(fileListLen, 1) fileList.value.splice(fileListLen, 1)
uni.$message.showToast(res.message || '请求错误') uni.$mocpMessage.showToast(res.message || '请求错误')
} }
} catch (error) { } catch (error) {
fileList.value.splice(fileListLen, 1) fileList.value.splice(fileListLen, 1)
uni.$message.showToast('上传失败') uni.$mocpMessage.showToast('上传失败')
} }
fileListLen++ fileListLen++
} }
......
...@@ -49,19 +49,19 @@ const getTag = computed(() => { ...@@ -49,19 +49,19 @@ const getTag = computed(() => {
&.success { &.success {
background: #e8ffea; background: #e8ffea;
.tag { .tag {
background: $uni-success-6; background: $mocp-success-6;
} }
.count { .count {
color: $uni-success-6; color: $mocp-success-6;
} }
} }
&.warning { &.warning {
background: #ffece8; background: #ffece8;
.tag { .tag {
background: $uni-danger-6; background: $mocp-danger-6;
} }
.count { .count {
color: $uni-danger-6; color: $mocp-danger-6;
} }
} }
} }
......
import { getRqmDetailsApi, getRqmOptionsApi } from '@/api/appraisal-record' import { getRqmDetailsApi, getRqmOptionsApi } from 'mocp/api/appraisal-record'
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
const useAppraisalRecordStore = defineStore('appraisalRecord', { const useAppraisalRecordStore = defineStore('appraisalRecord', {
...@@ -34,7 +34,7 @@ const useAppraisalRecordStore = defineStore('appraisalRecord', { ...@@ -34,7 +34,7 @@ const useAppraisalRecordStore = defineStore('appraisalRecord', {
this.details.file = JSON.parse(res.data.file) this.details.file = JSON.parse(res.data.file)
this.details.eventTime = String(res.data.eventTime) this.details.eventTime = String(res.data.eventTime)
} else { } else {
uni.$message.showToast(res.message) uni.$mocpMessage.showToast(res.message)
} }
}, },
setState(...args) { setState(...args) {
......
import { getAircraftNumbersApi } from '@/api/base' import { getAircraftNumbersApi } from 'mocp/api/base'
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
const useBaseStore = defineStore('base', { const useBaseStore = defineStore('base', {
......
...@@ -8,11 +8,11 @@ const menuList = ref([ ...@@ -8,11 +8,11 @@ const menuList = ref([
{ id: 5, name: '技术评估', icon: 'jspg', group: '技术支援', count: 0 }, { id: 5, name: '技术评估', icon: 'jspg', group: '技术支援', count: 0 },
{ id: 6, name: '运行调查', icon: 'yxdc', group: '维修控制', count: 0 }, { id: 6, name: '运行调查', icon: 'yxdc', group: '维修控制', count: 0 },
{ id: 7, name: '运行决策', icon: 'yxjc', group: '维修控制', count: 0 }, { id: 7, name: '运行决策', icon: 'yxjc', group: '维修控制', count: 0 },
{ id: 8, name: '布置工作', icon: 'bzgz', group: '维修控制', count: 0, url: '/pages/panel/assign-work/list' }, { id: 8, name: '布置工作', icon: 'bzgz', group: '维修控制', count: 0, url: '/panel/assign-work/list' },
{ id: 9, name: '航站管理', icon: 'hzgl', group: '航站管理', count: 0 }, { id: 9, name: '航站管理', icon: 'hzgl', group: '航站管理', count: 0 },
{ id: 10, name: '协议单位', icon: 'xydw', group: '航站管理', count: 0 }, { id: 10, name: '协议单位', icon: 'xydw', group: '航站管理', count: 0 },
{ id: 11, name: '不正常事件', icon: 'bzcsj', group: '运行品质', count: 0 }, { id: 11, name: '不正常事件', icon: 'bzcsj', group: '运行品质', count: 0 },
{ id: 12, name: '考核记录', icon: 'khjl', group: '运行品质', count: 0, url: '/pages/panel/appraisal-record/list' }, { id: 12, name: '考核记录', icon: 'khjl', group: '运行品质', count: 0, url: '/panel/appraisal-record/list' },
{ id: 13, name: 'AOG任务', icon: 'AOG', group: '运行品质', count: 0 }, { id: 13, name: 'AOG任务', icon: 'AOG', group: '运行品质', count: 0 },
{ id: 14, name: 'MCO', icon: 'MCO', group: '运行品质', count: 0 }, { id: 14, name: 'MCO', icon: 'MCO', group: '运行品质', count: 0 },
{ id: 15, name: '航班保障', icon: 'hbbz', group: '运行品质', count: 0 } { id: 15, name: '航班保障', icon: 'hbbz', group: '运行品质', count: 0 }
...@@ -69,14 +69,14 @@ const useUserStore = defineStore('user', { ...@@ -69,14 +69,14 @@ const useUserStore = defineStore('user', {
}) })
} }
//跳转工作台 //跳转工作台
uni.switchTab({ url: '/pages/panel/index' }) uni.$mocpJump.navigateTo('/panel/index')
}, },
//退出登录 //退出登录
handleLogOut() { handleLogOut() {
this.token = '' this.token = ''
this.userInfo = undefined this.userInfo = undefined
//返回登录页面 //返回登录页面
uni.redirectTo({ url: '/pages/login/index' }) uni.$mocpJump.redirectTo('/login/index')
}, },
//修改用户首页菜单 //修改用户首页菜单
changeHomeMenuList(menuList) { changeHomeMenuList(menuList) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* 4. 添加 token 请求头标识 * 4. 添加 token 请求头标识
*/ */
import useUserStore from '@/store/user' import useUserStore from 'mocp/store/user'
const baseURL = 'https://hna-platform.anyremote.cn' const baseURL = 'https://hna-platform.anyremote.cn'
...@@ -125,7 +125,7 @@ export const http = (options) => { ...@@ -125,7 +125,7 @@ export const http = (options) => {
// 2.1 提取核心数据 res.data // 2.1 提取核心数据 res.data
if (res.data.code == 403) { if (res.data.code == 403) {
const userStore = useUserStore() const userStore = useUserStore()
uni.$message.showToast(res.data.message) uni.$mocpMessage.showToast(res.data.message)
setTimeout(() => { setTimeout(() => {
userStore.handleLogOut() userStore.handleLogOut()
}, 500) }, 500)
...@@ -136,21 +136,21 @@ export const http = (options) => { ...@@ -136,21 +136,21 @@ export const http = (options) => {
} else if (statusCode == 401) { } else if (statusCode == 401) {
// 401错误 -> 清理用户信息,跳转到登录页 // 401错误 -> 清理用户信息,跳转到登录页
const userStore = useUserStore() const userStore = useUserStore()
uni.$message.showToast(res.data.message) uni.$mocpMessage.showToast(res.data.message)
setTimeout(() => { setTimeout(() => {
userStore.handleLogOut() userStore.handleLogOut()
}, 500) }, 500)
reject(res) reject(res)
} else { } else {
// 其他错误 -> 根据后端错误信息轻提示 // 其他错误 -> 根据后端错误信息轻提示
uni.$message.showToast(res.data.message || '请求错误') uni.$mocpMessage.showToast(res.data.message || '请求错误')
reject(res) reject(res)
} }
}, },
// 响应失败 // 响应失败
fail(err) { fail(err) {
serviceLoading.close() serviceLoading.close()
uni.$message.showToast('网络错误,换个网络试试') uni.$mocpMessage.showToast('网络错误,换个网络试试')
reject(err) reject(err)
} }
}) })
......
const getQueryString = (params = {}) => {
return Object.keys(params)
.map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
.join('&')
}
/**
* 封装 uni.navigateTo 为 Promise 版本
* @param {string} url 要跳转的页面路径
* @param {Object} params 要传递的参数对象
* @returns {Promise} 返回一个 Promise 对象,resolve 表示跳转成功,reject 表示跳转失败
*/
export const navigateTo = (url, params = {}) => {
return new Promise((resolve, reject) => {
// 将参数对象转换为查询字符串
const queryString = getQueryString(params)
// 拼接完整的 URL
const fullUrl = queryString ? `${url}?${queryString}` : url
// 调用 uni.navigateTo 并处理结果
uni.navigateTo({
url: '/pages/modules/mocp' + fullUrl,
success: () => {
resolve()
},
fail: (err) => {
reject(err)
}
})
})
}
/**
* 封装 uni.redirectTo 为 Promise 版本
* @param {string} url 要跳转的页面路径
* @param {Object} params 要传递的参数对象
* @returns {Promise} 返回一个 Promise 对象,resolve 表示跳转成功,reject 表示跳转失败
*/
export const redirectTo = (url, params = {}) => {
return new Promise((resolve, reject) => {
// 将参数对象转换为查询字符串
const queryString = getQueryString(params)
// 拼接完整的 URL
const fullUrl = queryString ? `${url}?${queryString}` : url
// 调用 uni.redirectTo 并处理结果
uni.redirectTo({
url: '/pages/modules/mocp' + fullUrl,
success: () => {
resolve()
},
fail: (err) => {
reject(err)
}
})
})
}
/**
* 封装 uni.reLaunch 为 Promise 版本
* @param {string} url 要跳转的页面路径
* @param {Object} params 要传递的参数对象
* @returns {Promise} 返回一个 Promise 对象,resolve 表示跳转成功,reject 表示跳转失败
*/
export const reLaunch = (url, params = {}) => {
return new Promise((resolve, reject) => {
// 将参数对象转换为查询字符串
const queryString = getQueryString(params)
// 拼接完整的 URL
const fullUrl = queryString ? `${url}?${queryString}` : url
// 调用 uni.reLaunch 并处理结果
uni.reLaunch({
url: '/pages/modules/mocp' + fullUrl,
success: () => {
resolve()
},
fail: (err) => {
reject(err)
}
})
})
}
/**
* 封装 uni.navigateBack 为 Promise 版本
* @param {string} url 要跳转的页面路径
* @param {Object} params 要传递的参数对象
* @returns {Promise} 返回一个 Promise 对象,resolve 表示跳转成功,reject 表示跳转失败
*/
export const navigateBack = (delta = 1) => {
return new Promise((resolve, reject) => {
// 调用 uni.navigateBack 并处理结果
uni.navigateBack({
delta,
success: () => {
resolve()
},
fail: (err) => {
reject(err)
}
})
})
}
...@@ -9,116 +9,118 @@ ...@@ -9,116 +9,118 @@
"^u--(.*)": "uview-plus/components/u-$1/u-$1.vue", "^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
"^up-(.*)": "uview-plus/components/u-$1/u-$1.vue", "^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
"^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue", "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue",
// 自定义组件 规则如下配置 // mocp全局组件 规则如下配置
"^custom-(.*)": "@/components/widget/custom-$1.vue" "^global-(.*)": "mocp/components/global-$1/global-$1.vue",
// mocp自定义组件 规则如下配置
"^custom-(.*)": "mocp/components/widget/custom-$1.vue"
} }
}, },
"pages": [ "pages": [
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{ {
"path": "pages/login/index", "path": "pages/modules/mocp/login/index",
"style": { "style": {
"navigationBarTitleText": "登录" "navigationBarTitleText": "登录"
} }
}, },
{ {
"path": "pages/panel/index", "path": "pages/modules/mocp/panel/index",
"style": { "style": {
"navigationBarTitleText": "工作台" "navigationBarTitleText": "工作台"
} }
}, },
{ {
"path": "pages/panel/app-center/index", "path": "pages/modules/mocp/panel/app-center/index",
"style": { "style": {
"navigationBarTitleText": "应用中心" "navigationBarTitleText": "应用中心"
} }
}, },
{ {
"path": "pages/chat/index", "path": "pages/modules/mocp/chat/index",
"style": { "style": {
"navigationBarTitleText": "沟通" "navigationBarTitleText": "沟通"
} }
}, },
{ {
"path": "pages/mine/index", "path": "pages/modules/mocp/mine/index",
"style": { "style": {
"navigationBarTitleText": "个人中心" "navigationBarTitleText": "个人中心"
} }
}, },
{ {
"path": "pages/experience/index", "path": "pages/modules/mocp/experience/index",
"style": { "style": {
"navigationBarTitleText": "经验库" "navigationBarTitleText": "经验库"
} }
}, },
{ {
"path": "pages/panel/appraisal-record/list", "path": "pages/modules/mocp/panel/appraisal-record/list",
"style": { "style": {
"navigationBarTitleText": "考核记录" "navigationBarTitleText": "考核记录"
} }
}, },
{ {
"path": "pages/panel/appraisal-record/details", "path": "pages/modules/mocp/panel/appraisal-record/details",
"style": { "style": {
"navigationBarTitleText": "考核记录详情" "navigationBarTitleText": "考核记录详情"
} }
}, },
{ {
"path": "pages/panel/appraisal-record/edit", "path": "pages/modules/mocp/panel/appraisal-record/edit",
"style": { "style": {
"navigationBarTitleText": "考核记录登记" "navigationBarTitleText": "考核记录登记"
} }
}, },
{ {
"path": "pages/panel/appraisal-record/add", "path": "pages/modules/mocp/panel/appraisal-record/add",
"style": { "style": {
"navigationBarTitleText": "添加公司值班信息" "navigationBarTitleText": "添加公司值班信息"
} }
}, },
{ {
"path": "pages/panel/assign-work/list", "path": "pages/modules/mocp/panel/assign-work/list",
"style": { "style": {
"navigationBarTitleText": "布置工作" "navigationBarTitleText": "布置工作"
} }
}, },
{ {
"path": "pages/panel/assign-work/details", "path": "pages/modules/mocp/panel/assign-work/details",
"style": { "style": {
"navigationBarTitleText": "早会工作详情" "navigationBarTitleText": "早会工作详情"
} }
}, },
{ {
"path": "pages/panel/assign-work/edit-work", "path": "pages/modules/mocp/panel/assign-work/edit-work",
"style": { "style": {
"navigationBarTitleText": "编辑早会工作详情" "navigationBarTitleText": "编辑早会工作详情"
} }
}, },
{ {
"path": "pages/panel/assign-work/edit-decompose", "path": "pages/modules/mocp/panel/assign-work/edit-decompose",
"style": { "style": {
"navigationBarTitleText": "添加分解计划", "navigationBarTitleText": "添加分解计划"
} }
}, },
{ {
"path": "pages/panel/assign-work/edit-approval", "path": "pages/modules/mocp/panel/assign-work/edit-approval",
"style": { "style": {
"navigationBarTitleText": "添加领导批示" "navigationBarTitleText": "添加领导批示"
} }
}, },
{ {
"path": "pages/panel/assign-work/edit-gzFeedback", "path": "pages/modules/mocp/panel/assign-work/edit-gzFeedback",
"style": { "style": {
"navigationBarTitleText": "跟踪反馈" "navigationBarTitleText": "跟踪反馈"
} }
}, },
{ {
"path": "pages/panel/assign-work/edit-followUpFeedback", "path": "pages/modules/mocp/panel/assign-work/edit-followUpFeedback",
"style": { "style": {
"navigationBarTitleText": "后续措施反馈" "navigationBarTitleText": "后续措施反馈"
} }
}, },
{ {
"path": "pages/panel/assign-work/edit-validate", "path": "pages/modules/mocp/panel/assign-work/edit-validate",
"style": { "style": {
"navigationBarTitleText": "工作验证" "navigationBarTitleText": "工作验证"
} }
...@@ -134,44 +136,44 @@ ...@@ -134,44 +136,44 @@
"hide": true "hide": true
} }
}, },
"tabBar": { // "tabBar": {
"color": "#1D2129", // "color": "#1D2129",
"selectedColor": "#0E42D2", // "selectedColor": "#0E42D2",
"borderStyle": "black", // "borderStyle": "black",
"iconWidth": "24px", // "iconWidth": "24px",
"backgroundColor": "#fff", // "backgroundColor": "#fff",
"list": [ // "list": [
{ // {
"pagePath": "pages/chat/index", // "pagePath": "pages/modules/mocp/chat/index",
"text": "沟通", // "text": "沟通",
"iconPath": "static/image/menu/chat.png", // "iconPath": "static/image/menu/chat.png",
"selectedIconPath": "static/image/menu/chat-select.png" // "selectedIconPath": "static/image/menu/chat-select.png"
}, // },
{ // {
"pagePath": "pages/panel/index", // "pagePath": "pages/modules/mocp/panel/index",
"text": "工作台", // "text": "工作台",
"iconPath": "static/image/menu/panel.png", // "iconPath": "static/image/menu/panel.png",
"selectedIconPath": "static/image/menu/panel-select.png" // "selectedIconPath": "static/image/menu/panel-select.png"
}, // },
{ // {
"pagePath": "pages/mine/index", // "pagePath": "pages/modules/mocp/mine/index",
"text": "个人中心", // "text": "个人中心",
"iconPath": "static/image/menu/mine.png", // "iconPath": "static/image/menu/mine.png",
"selectedIconPath": "static/image/menu/mine-select.png" // "selectedIconPath": "static/image/menu/mine-select.png"
} // }
] // ]
}, // },
"condition": { "condition": {
//模式配置,仅开发期间生效 //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项) "current": 0, //当前激活的模式(list 的索引项)
"list": [ "list": [
{ {
"name": "test", //模式名称 "name": "test", //模式名称
"path": "pages/panel/index" //启动页面,必选 "path": "pages/modules/mocp/panel/index" //启动页面,必选
}, },
{ {
"name": "login", //模式名称 "name": "login", //模式名称
"path": "pages/login/index" //启动页面,必选 "path": "pages/modules/mocp/login/index" //启动页面,必选
} }
] ]
} }
......
import { loginCode, loginForm } from './index.compositions' import { loginCode, loginForm } from './index.compositions'
import { getGifCaptchaApi } from '@/api/user' import { getGifCaptchaApi } from 'mocp/api/user'
//获取验证码 //获取验证码
export const getGifCaptcha = async () => { export const getGifCaptcha = async () => {
......
page {
background: #fff;
}
.login-wrap { .login-wrap {
padding: 48rpx; padding: 48rpx;
.login-header{ .login-header {
display: flex; display: flex;
align-items: center; align-items: center;
image{ image {
width: 38rpx; width: 38rpx;
height: 36rpx; height: 36rpx;
} }
.title{ .title {
margin-left: 16rpx; margin-left: 16rpx;
font-size: 32rpx; font-size: 32rpx;
color: #0A0D14; color: #0a0d14;
} }
} }
.login-title { .login-title {
margin: 64rpx 0; margin: 64rpx 0;
.p{ .p {
font-size: 48rpx; font-size: 48rpx;
color: #1A1C1E; color: #1a1c1e;
margin-bottom: 24rpx; margin-bottom: 24rpx;
} }
.txt{ .txt {
font-size: 28rpx; font-size: 28rpx;
color: #6C7278; color: #6c7278;
} }
} }
.verify-code { .verify-code {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
&-image{ &-image {
margin-left: 20rpx; margin-left: 20rpx;
width: 200rpx; width: 200rpx;
height: 70rpx; height: 70rpx;
background: #D9D9D9; background: #d9d9d9;
} }
} }
.login-btn { .login-btn {
width: 100%; width: 100%;
} }
} }
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<global-page :showNavbar="false"> <global-page :showNavbar="false">
<view class="login-wrap"> <view class="login-wrap">
<view class="login-header"> <view class="login-header">
<image src="/static/image/login/Vector.png" /> <image src="/static/mocp/image/login/Vector.png" />
<view class="title">海航技术</view> <view class="title">海航技术</view>
</view> </view>
<view class="login-title"> <view class="login-title">
...@@ -41,8 +41,8 @@ import { loginCode, loginForm, rules, loginFormRef } from './constants/index.com ...@@ -41,8 +41,8 @@ import { loginCode, loginForm, rules, loginFormRef } from './constants/index.com
import { getGifCaptcha } from './constants/index.functionals' import { getGifCaptcha } from './constants/index.functionals'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { ref, toRaw, watch } from 'vue' import { ref, toRaw, watch } from 'vue'
import useUserStore from '@/store/user' import useUserStore from 'mocp/store/user'
import { loginApi } from '@/api/user' import { loginApi } from 'mocp/api/user'
watch( watch(
() => loginForm.username, () => loginForm.username,
...@@ -68,11 +68,10 @@ const handleLogin = async () => { ...@@ -68,11 +68,10 @@ const handleLogin = async () => {
if (res.code == 200) { if (res.code == 200) {
userStore.setUserInfo(res.data) userStore.setUserInfo(res.data)
} else { } else {
uni.$message.showToast(res.message) uni.$mocpMessage.showToast(res.message)
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
@import './constants/index.scss'; @import './constants/index.scss';
</style> </style>
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</template> </template>
<script setup> <script setup>
import useUserStore from '@/store/user' import useUserStore from 'mocp/store/user'
//退出登录 //退出登录
const userStore = useUserStore() const userStore = useUserStore()
......
.cancel { .cancel {
font-size: 32rpx; font-size: 32rpx;
color: $uni-text-5; color: $mocp-text-5;
} }
.card { .card {
border-radius: 12rpx; border-radius: 12rpx;
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
margin-bottom: 14rpx; margin-bottom: 14rpx;
.card-title-txt { .card-title-txt {
font-size: 34rpx; font-size: 34rpx;
color: $uni-text-5; color: $mocp-text-5;
} }
} }
.menu-list { .menu-list {
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<script setup> <script setup>
import { computed, ref } from 'vue' import { computed, ref } from 'vue'
import MenuItem from '../components/menu-item.vue' import MenuItem from '../components/menu-item.vue'
import useUserStore from '@/store/user' import useUserStore from 'mocp/store/user'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { cloneDeep } from 'lodash' import { cloneDeep } from 'lodash'
...@@ -64,7 +64,7 @@ const handleLeftClick = () => { ...@@ -64,7 +64,7 @@ const handleLeftClick = () => {
navLeftType.value = 'icon' navLeftType.value = 'icon'
homeMenuList.value = cloneDeep(userStore.getHomeMenuList) homeMenuList.value = cloneDeep(userStore.getHomeMenuList)
} else { } else {
uni.navigateBack() uni.$mocpJump.navigateBack()
} }
} }
//保存 //保存
...@@ -72,7 +72,7 @@ const handleRightClick = () => { ...@@ -72,7 +72,7 @@ const handleRightClick = () => {
isEdit.value = false isEdit.value = false
navLeftType.value = 'icon' navLeftType.value = 'icon'
userStore.changeHomeMenuList(cloneDeep(homeMenuList.value)) userStore.changeHomeMenuList(cloneDeep(homeMenuList.value))
uni.$message.showToast('保存菜单成功') uni.$mocpMessage.showToast('保存菜单成功')
} }
//编辑 //编辑
const handleChange = () => { const handleChange = () => {
......
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
</template> </template>
<script setup> <script setup>
import { saveRqmOpinionApi } from '@/api/appraisal-record' import { saveRqmOpinionApi } from 'mocp/api/appraisal-record'
import { getAdminListApi } from '@/api/base' import { getAdminListApi } from 'mocp/api/base'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { reactive, ref } from 'vue' import { reactive, ref } from 'vue'
import useAppraisalRecordStore from '@/store/appraisal-record' import useAppraisalRecordStore from 'mocp/store/appraisal-record'
const appraisalRecordStore = useAppraisalRecordStore() const appraisalRecordStore = useAppraisalRecordStore()
//表单数据 //表单数据
...@@ -72,17 +72,17 @@ const getAdminList = async (realName) => { ...@@ -72,17 +72,17 @@ const getAdminList = async (realName) => {
} }
}) })
} else { } else {
uni.$message.showToast(res.message) uni.$mocpMessage.showToast(res.message)
} }
} }
const handleRightClick = async () => { const handleRightClick = async () => {
const res = await saveRqmOpinionApi(formData, { loading: true }) const res = await saveRqmOpinionApi(formData, { loading: true })
if (res.code == 200) { if (res.code == 200) {
uni.navigateBack() uni.$mocpJump.navigateBack()
appraisalRecordStore.getRqmDetails() appraisalRecordStore.getRqmDetails()
uni.$message.showToast(res.message) uni.$mocpMessage.showToast(res.message)
} else { } else {
uni.$message.showToast(res.message) uni.$mocpMessage.showToast(res.message)
} }
} }
</script> </script>
......
...@@ -24,7 +24,7 @@ const ps = defineProps({ ...@@ -24,7 +24,7 @@ const ps = defineProps({
margin-bottom: 16rpx; margin-bottom: 16rpx;
.label { .label {
min-width: 50%; min-width: 50%;
color: $uni-text-5; color: $mocp-text-5;
} }
text { text {
text-align: right; text-align: right;
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</template> </template>
<script setup> <script setup>
import { timeStampFormat } from '@/utils/tool' import { timeStampFormat } from 'mocp/utils/tool'
const es = defineEmits(['handleAdd']) const es = defineEmits(['handleAdd'])
const ps = defineProps({ const ps = defineProps({
// company,quality,appeal // company,quality,appeal
...@@ -75,7 +75,7 @@ const handleAdd = () => { ...@@ -75,7 +75,7 @@ const handleAdd = () => {
margin-top: 16rpx; margin-top: 16rpx;
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
border-radius: 12rpx; border-radius: 12rpx;
color: $uni-text-4; color: $mocp-text-4;
background: #ffffff; background: #ffffff;
&-title { &-title {
display: flex; display: flex;
...@@ -83,13 +83,13 @@ const handleAdd = () => { ...@@ -83,13 +83,13 @@ const handleAdd = () => {
justify-content: space-between; justify-content: space-between;
border-bottom: 2rpx solid #f4f4f4; border-bottom: 2rpx solid #f4f4f4;
padding-bottom: 16rpx; padding-bottom: 16rpx;
color: $uni-text-5; color: $mocp-text-5;
.left { .left {
display: flex; display: flex;
align-items: center; align-items: center;
.txt { .txt {
margin-left: 8rpx; margin-left: 8rpx;
color: $uni-text-5; color: $mocp-text-5;
} }
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
border-radius: 12rpx; border-radius: 12rpx;
background: #ffffff; background: #ffffff;
color: $uni-text-4; color: $mocp-text-4;
&-header { &-header {
&-top { &-top {
display: flex; display: flex;
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
align-items: center; align-items: center;
margin-bottom: 16rpx; margin-bottom: 16rpx;
.txt { .txt {
color: $uni-danger-6; color: $mocp-danger-6;
font-size: 32rpx; font-size: 32rpx;
} }
} }
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
&-footer { &-footer {
padding-top: 16rpx; padding-top: 16rpx;
&-top { &-top {
color: $uni-text-5; color: $mocp-text-5;
display: flex; display: flex;
align-items: center; align-items: center;
.txt { .txt {
...@@ -86,6 +86,6 @@ ...@@ -86,6 +86,6 @@
} }
} }
.appeal-status { .appeal-status {
color: $uni-text-5; color: $mocp-text-5;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
import { getAcReduceListApi } from '@/api/base' import { getAcReduceListApi } from 'mocp/api/base'
import { fileList, formData } from './edit.compositions' import { fileList, formData } from './edit.compositions'
//切换机号 //切换机号
...@@ -8,7 +8,7 @@ export const changeAc = async () => { ...@@ -8,7 +8,7 @@ export const changeAc = async () => {
formData.acOwn = res.data[0]?.zop3 formData.acOwn = res.data[0]?.zop3
formData.acType = res.data[0]?.zstortgc formData.acType = res.data[0]?.zstortgc
} else { } else {
uni.$message.showToast(res.message) uni.$mocpMessage.showToast(res.message)
} }
} }
//获取文件内容 //获取文件内容
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
align-items: center; align-items: center;
border-bottom: 2rpx solid #f4f4f4; border-bottom: 2rpx solid #f4f4f4;
text { text {
color: $uni-text-5; color: $mocp-text-5;
} }
} }
&-content { &-content {
......
...@@ -13,24 +13,24 @@ ...@@ -13,24 +13,24 @@
display: flex; display: flex;
align-items: center; align-items: center;
.type { .type {
color: $uni-danger-6; color: $mocp-danger-6;
font-size: 34rpx; font-size: 34rpx;
} }
.txt { .txt {
color: $uni-text-5; color: $mocp-text-5;
font-size: 34rpx; font-size: 34rpx;
margin: 0 16rpx; margin: 0 16rpx;
} }
.place { .place {
font-size: 28rpx; font-size: 28rpx;
color: $uni-text-3; color: $mocp-text-3;
} }
} }
} }
&-content { &-content {
padding-top: 16rpx; padding-top: 16rpx;
font-size: 30rpx; font-size: 30rpx;
color: $uni-text-4; color: $mocp-text-4;
line-height: 40rpx; line-height: 40rpx;
} }
} }
...@@ -86,9 +86,9 @@ ...@@ -86,9 +86,9 @@
<script setup> <script setup>
import CardDetails from './components/card-details.vue' import CardDetails from './components/card-details.vue'
import CardDetailsItem from './components/card-details-item.vue' import CardDetailsItem from './components/card-details-item.vue'
import { timeStampFormat } from '@/utils/tool' import { timeStampFormat } from 'mocp/utils/tool'
import { useGetDictByValue } from '@/components/global-picker/useDict' import { useGetDictByValue } from 'mocp/components/global-picker/useDict'
import useAppraisalRecordStore from '@/store/appraisal-record' import useAppraisalRecordStore from 'mocp/store/appraisal-record'
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
...@@ -101,9 +101,7 @@ onLoad(() => { ...@@ -101,9 +101,7 @@ onLoad(() => {
}) })
//跳转 //跳转
const handleRightClick = () => { const handleRightClick = () => {
uni.navigateTo({ uni.$mocpJump.navigateTo('/panel/appraisal-record/edit')
url: 'edit'
})
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -130,13 +130,13 @@ ...@@ -130,13 +130,13 @@
import CardDetails from './components/card-details.vue' import CardDetails from './components/card-details.vue'
import CardDetailsItem from './components/card-details-item.vue' import CardDetailsItem from './components/card-details-item.vue'
import { onShow } from '@dcloudio/uni-app' import { onShow } from '@dcloudio/uni-app'
import useBaseStore from '@/store/base' import useBaseStore from 'mocp/store/base'
import { useGetDictByValue } from '@/components/global-picker/useDict' import { useGetDictByValue } from 'mocp/components/global-picker/useDict'
import { rules, formData, fileList, formRef } from './constants/edit.compositions' import { rules, formData, fileList, formRef } from './constants/edit.compositions'
import { changeAc, handleUpload } from './constants/edit.functionals' import { changeAc, handleUpload } from './constants/edit.functionals'
import useAppraisalRecordStore from '@/store/appraisal-record' import useAppraisalRecordStore from 'mocp/store/appraisal-record'
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
import { updateRqmDataApi } from '@/api/appraisal-record' import { updateRqmDataApi } from 'mocp/api/appraisal-record'
const appraisalRecordStore = useAppraisalRecordStore() const appraisalRecordStore = useAppraisalRecordStore()
const { details, getFileList } = storeToRefs(appraisalRecordStore) const { details, getFileList } = storeToRefs(appraisalRecordStore)
...@@ -181,12 +181,12 @@ const handleSubmit = async () => { ...@@ -181,12 +181,12 @@ const handleSubmit = async () => {
const params = { ...formData, file: JSON.stringify(fileList.value) } const params = { ...formData, file: JSON.stringify(fileList.value) }
const res = await updateRqmDataApi(params, { loading: true }) const res = await updateRqmDataApi(params, { loading: true })
if (res.code == 200) { if (res.code == 200) {
uni.navigateBack() uni.$mocpJump.navigateBack()
appraisalRecordStore.getRqmDetails() appraisalRecordStore.getRqmDetails()
uni.$emit('appraisalRecordReload') uni.$emit('appraisalRecordReload')
uni.$message.showToast(res.message) uni.$mocpMessage.showToast(res.message)
} else { } else {
uni.$message.showToast(res.message) uni.$mocpMessage.showToast(res.message)
} }
} }
// 添加 // 添加
...@@ -200,11 +200,8 @@ const handleAdd = (isDuty) => { ...@@ -200,11 +200,8 @@ const handleAdd = (isDuty) => {
params = { id: details.value.id, isDuty, mid: details.value.qmUid, opinionType: details.value.qualityOpinionType, msg: details.value.qmMsg } params = { id: details.value.id, isDuty, mid: details.value.qmUid, opinionType: details.value.qualityOpinionType, msg: details.value.qmMsg }
realName = details.value.qmName realName = details.value.qmName
} }
uni.navigateTo({ uni.$mocpJump.navigateTo('/panel/appraisal-record/add').then(() => {
url: 'add', uni.$emit('appraisalRecordAdd', params, realName)
success: () => {
uni.$emit('appraisalRecordAdd', params, realName)
}
}) })
} }
</script> </script>
......
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
<script setup> <script setup>
import { ref } from 'vue' import { ref } from 'vue'
import { getRqmListApi } from '@/api/appraisal-record' import { getRqmListApi } from 'mocp/api/appraisal-record'
import { onLoad, onUnload } from '@dcloudio/uni-app' import { onLoad, onUnload } from '@dcloudio/uni-app'
import useAppraisalRecordStore from '@/store/appraisal-record' import useAppraisalRecordStore from 'mocp/store/appraisal-record'
const tabList = ref([ const tabList = ref([
{ name: 'OPEN', value: 1 }, { name: 'OPEN', value: 1 },
...@@ -31,8 +31,8 @@ const tabList = ref([ ...@@ -31,8 +31,8 @@ const tabList = ref([
]) ])
//跳转 //跳转
const goDetails = (data) => { const goDetails = (data) => {
uni.navigateTo({ uni.$mocpJump.navigateTo('/panel/appraisal-record/details', {
url: 'details?id=' + data.id id: data.id
}) })
} }
//加载下拉框数据 //加载下拉框数据
......
...@@ -28,18 +28,18 @@ const ps = defineProps({ ...@@ -28,18 +28,18 @@ const ps = defineProps({
padding: 16rpx 0; padding: 16rpx 0;
.title { .title {
font-size: 34rpx; font-size: 34rpx;
color: $uni-text-5; color: $mocp-text-5;
font-weight: 500; font-weight: 500;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
.label { .label {
font-size: 34rpx; font-size: 34rpx;
color: $uni-text-5; color: $mocp-text-5;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
.content { .content {
font-size: 30rpx; font-size: 30rpx;
color: $uni-text-4; color: $mocp-text-4;
line-height: 40rpx; line-height: 40rpx;
} }
} }
......
...@@ -29,7 +29,7 @@ const ps = defineProps({ ...@@ -29,7 +29,7 @@ const ps = defineProps({
margin-top: 16rpx; margin-top: 16rpx;
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
border-radius: 12rpx; border-radius: 12rpx;
color: $uni-text-4; color: $mocp-text-4;
background: #ffffff; background: #ffffff;
&-title { &-title {
display: flex; display: flex;
...@@ -38,13 +38,13 @@ const ps = defineProps({ ...@@ -38,13 +38,13 @@ const ps = defineProps({
border-bottom: 2rpx solid #f4f4f4; border-bottom: 2rpx solid #f4f4f4;
padding-bottom: 16rpx; padding-bottom: 16rpx;
font-size: 34rpx; font-size: 34rpx;
color: $uni-text-5; color: $mocp-text-5;
.left { .left {
display: flex; display: flex;
align-items: center; align-items: center;
.txt { .txt {
margin-left: 8rpx; margin-left: 8rpx;
color: $uni-text-5; color: $mocp-text-5;
} }
} }
} }
......
...@@ -25,7 +25,7 @@ defineExpose({ ...@@ -25,7 +25,7 @@ defineExpose({
.list { .list {
padding: 18rpx 32rpx; padding: 18rpx 32rpx;
.item { .item {
color: $uni-text-4; color: $mocp-text-4;
font-size: 30rpx; font-size: 30rpx;
background: #fff; background: #fff;
margin-bottom: 24rpx; margin-bottom: 24rpx;
......
.details { .details {
padding: 24rpx; padding: 24rpx;
color: $uni-text-4; color: $mocp-text-4;
background: #fff; background: #fff;
&-header { &-header {
&-top { &-top {
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
justify-content: space-between; justify-content: space-between;
.left { .left {
font-size: 48rpx; font-size: 48rpx;
color: $uni-danger-6; color: $mocp-danger-6;
} }
.right { .right {
color: $uni-text-5; color: $mocp-text-5;
} }
} }
&-center { &-center {
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
.left { .left {
.txt { .txt {
margin-left: 16rpx; margin-left: 16rpx;
color: $uni-text-5; color: $mocp-text-5;
} }
} }
} }
......
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
&-title { &-title {
padding: 20rpx 32rpx; padding: 20rpx 32rpx;
background: #f7f8fa; background: #f7f8fa;
color: $uni-text-5; color: $mocp-text-5;
} }
&-item { &-item {
padding: 0 32rpx; padding: 0 32rpx;
} }
} }
.textarea { .textarea {
color: $uni-text-3; color: $mocp-text-3;
line-height: 40rpx; line-height: 40rpx;
margin-top: 8rpx; margin-top: 8rpx;
} }
...@@ -25,13 +25,13 @@ ...@@ -25,13 +25,13 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
color: $uni-text-5; color: $mocp-text-5;
margin-top: 24rpx; margin-top: 24rpx;
.right { .right {
display: flex; display: flex;
align-items: center; align-items: center;
.circle { .circle {
background: $uni-primary-6; background: $mocp-primary-6;
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
display: flex; display: flex;
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
border-radius: 50%; border-radius: 50%;
} }
.text { .text {
color: $uni-primary-6; color: $mocp-primary-6;
} }
} }
} }
...@@ -60,12 +60,12 @@ ...@@ -60,12 +60,12 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
color: $uni-text-5; color: $mocp-text-5;
font-size: 24rpx; font-size: 24rpx;
} }
&-text { &-text {
margin: 8rpx 0; margin: 8rpx 0;
color: $uni-text-3; color: $mocp-text-3;
line-height: 40rpx; line-height: 40rpx;
} }
} }
......
...@@ -13,23 +13,23 @@ ...@@ -13,23 +13,23 @@
display: flex; display: flex;
align-items: center; align-items: center;
.type { .type {
color: $uni-danger-6; color: $mocp-danger-6;
font-size: 34rpx; font-size: 34rpx;
} }
.txt { .txt {
color: $uni-text-5; color: $mocp-text-5;
font-size: 34rpx; font-size: 34rpx;
margin: 0 16rpx; margin: 0 16rpx;
} }
} }
.right { .right {
color: $uni-primary-6; color: $mocp-primary-6;
} }
} }
&-content { &-content {
padding-top: 16rpx; padding-top: 16rpx;
font-size: 30rpx; font-size: 30rpx;
color: $uni-text-4; color: $mocp-text-4;
line-height: 40rpx; line-height: 40rpx;
} }
&-footer { &-footer {
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
针对股份1213飞机1月2日海口过站检查发现副驾驶氧气面罩盒测试电门损坏的情况,要求737机型中心分析原因。 针对股份1213飞机1月2日海口过站检查发现副驾驶氧气面罩盒测试电门损坏的情况,要求737机型中心分析原因。
</view> </view>
<view class="details-body-file"> <view class="details-body-file">
<image src="/static/image/login/upload.png" alt="" mode="widthFix" /> <image src="/static/mocp/image/login/upload.png" alt="" mode="widthFix" />
</view> </view>
</view> </view>
<view class="details-footer"> <view class="details-footer">
...@@ -93,7 +93,7 @@ const handleRightClick = () => { ...@@ -93,7 +93,7 @@ const handleRightClick = () => {
} }
//新增 //新增
const handleFooterClick = () => { const handleFooterClick = () => {
uni.navigateTo({ url: 'edit-work' }) uni.$mocpJump.navigateTo('/panel/assign-work/edit-work')
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</view> </view>
</up-form-item> </up-form-item>
<up-form-item label="计划完成时间" :borderBottom="true"> <up-form-item label="计划完成时间" :borderBottom="true">
<global-picker pickAlign="right" clearable mode="date" :emptyValue="-1" placeholder="请选择日期"></global-picker> <global-date pickAlign="right" clearable :emptyValue="-1" placeholder="请选择日期"></global-date>
</up-form-item> </up-form-item>
</view> </view>
</view> </view>
...@@ -87,10 +87,10 @@ ...@@ -87,10 +87,10 @@
</template> </template>
<script setup> <script setup>
import { ref, watch } from 'vue' import { ref } from 'vue'
const goTo = () => { const goTo = () => {
uni.navigateTo({ url: 'edit-decompose' }) uni.$mocpJump.navigateTo('/panel/assign-wor/edit-decompose')
} }
//开关 //开关
const value = ref(true) const value = ref(true)
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
<script setup> <script setup>
import { ref } from 'vue' import { ref } from 'vue'
import { getRqmListApi } from '@/api/appraisal-record' import { getRqmListApi } from 'mocp/api/appraisal-record'
import { onLoad, onUnload } from '@dcloudio/uni-app' import { onLoad, onUnload } from '@dcloudio/uni-app'
import useAppraisalRecordStore from '@/store/appraisal-record' import useAppraisalRecordStore from 'mocp/store/appraisal-record'
const tabList = ref([ const tabList = ref([
{ name: 'OPEN', value: 1 }, { name: 'OPEN', value: 1 },
...@@ -41,9 +41,7 @@ const tabList = ref([ ...@@ -41,9 +41,7 @@ const tabList = ref([
]) ])
//跳转 //跳转
const goDetails = (data) => { const goDetails = (data) => {
uni.navigateTo({ uni.$mocpJump.navigateTo('/panel/assign-work/edit-work', { id: data.id })
url: 'details?id=' + data.id
})
} }
//加载下拉框数据 //加载下拉框数据
const appraisalRecordStore = useAppraisalRecordStore() const appraisalRecordStore = useAppraisalRecordStore()
......
<template> <template>
<view class="menu-item" v-if="type == 'minus'"> <view class="menu-item" v-if="type == 'minus'">
<image :src="getUrl" /> <image :src="getUrl" />
<text class="color-text-5">{{ data.name }}</text> <text class="mocp-color-text-5">{{ data.name }}</text>
<view class="circle minus">-</view> <view class="circle minus">-</view>
</view> </view>
<view class="menu-item" v-else-if="type == 'plus'"> <view class="menu-item" v-else-if="type == 'plus'">
<image :src="getUrl" /> <image :src="getUrl" />
<text class="color-text-5">{{ data.name }}</text> <text class="mocp-color-text-5">{{ data.name }}</text>
<view class="circle plus">+</view> <view class="circle plus">+</view>
</view> </view>
<view class="menu-item" v-else> <view class="menu-item" v-else>
<image :src="getUrl" /> <image :src="getUrl" />
<text class="color-text-5">{{ data.name }}</text> <text class="mocp-color-text-5">{{ data.name }}</text>
<view class="count" v-if="getCount > 0">{{ getCount }}</view> <view class="count" v-if="getCount > 0">{{ getCount }}</view>
</view> </view>
</template> </template>
...@@ -36,7 +36,7 @@ const ps = defineProps({ ...@@ -36,7 +36,7 @@ const ps = defineProps({
} }
}) })
const getUrl = computed(() => { const getUrl = computed(() => {
return '/static/image/panel/' + ps.data.icon + '.png' return '/static/mocp/image/panel/' + ps.data.icon + '.png'
}) })
const getCount = computed(() => { const getCount = computed(() => {
if (ps.showCount) { if (ps.showCount) {
...@@ -77,7 +77,7 @@ const getCount = computed(() => { ...@@ -77,7 +77,7 @@ const getCount = computed(() => {
background: #c8c8c8; background: #c8c8c8;
} }
&.plus { &.plus {
background: $uni-primary-6; background: $mocp-primary-6;
} }
} }
.count { .count {
...@@ -85,7 +85,7 @@ const getCount = computed(() => { ...@@ -85,7 +85,7 @@ const getCount = computed(() => {
height: 32rpx; height: 32rpx;
line-height: 32rpx; line-height: 32rpx;
padding: 0 8rpx; padding: 0 8rpx;
background: $uni-danger-6; background: $mocp-danger-6;
position: absolute; position: absolute;
top: 0; top: 0;
right: 40rpx; right: 40rpx;
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
margin-bottom: 32rpx !important; margin-bottom: 32rpx !important;
} }
.menu-title { .menu-title {
color: $uni-text-5; color: $mocp-text-5;
margin-bottom: 32rpx; margin-bottom: 32rpx;
padding: 0 32rpx; padding: 0 32rpx;
font-size: 34rpx; font-size: 34rpx;
......
...@@ -51,12 +51,12 @@ ...@@ -51,12 +51,12 @@
} }
&-title { &-title {
font-size: 24rpx; font-size: 24rpx;
color: $uni-text-4; color: $mocp-text-4;
} }
&-txt { &-txt {
font-weight: bold; font-weight: bold;
font-size: 40rpx; font-size: 40rpx;
color: $uni-text-5; color: $mocp-text-5;
line-height: 56rpx; line-height: 56rpx;
} }
&-line { &-line {
......
<template> <template>
<image class="page-bg" src="/static/image/panel/page-bg.png" /> <image class="page-bg" src="/static/mocp/image/panel/page-bg.png" />
<global-page :showNavbar="false"> <global-page :showNavbar="false">
<!-- 导航栏 --> <!-- 导航栏 -->
<template #top> <template #top>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<script setup> <script setup>
import PanelNavbar from './panel-navbar.vue' import PanelNavbar from './panel-navbar.vue'
import PanelMenu from './panel-menu.vue' import PanelMenu from './panel-menu.vue'
import useBaseStore from '@/store/base' import useBaseStore from 'mocp/store/base'
const baseStore = useBaseStore() const baseStore = useBaseStore()
baseStore.getAircraftNumbers() baseStore.getAircraftNumbers()
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<script setup> <script setup>
import { ref } from 'vue' import { ref } from 'vue'
import MenuItem from './components/menu-item.vue' import MenuItem from './components/menu-item.vue'
import useUserStore from '@/store/user' import useUserStore from 'mocp/store/user'
const userStore = useUserStore() const userStore = useUserStore()
// 获取屏幕边界到安全区域距离 // 获取屏幕边界到安全区域距离
...@@ -48,14 +48,14 @@ const handleClick = (_, index) => { ...@@ -48,14 +48,14 @@ const handleClick = (_, index) => {
//跳转 //跳转
const goTo = (url) => { const goTo = (url) => {
if (url) { if (url) {
uni.navigateTo({ url }) uni.$mocpJump.navigateTo(url)
} else { } else {
uni.$message.showToast('暂未开放!') uni.$mocpMessage.showToast('暂未开放!')
} }
} }
//跳转应用中心 //跳转应用中心
const goAppCenter = () => { const goAppCenter = () => {
uni.navigateTo({ url: '/pages/panel/app-center/index' }) uni.$mocpJump.navigateTo('/app-center/index')
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
<view class="navbar"> <view class="navbar">
<view class="navbar-box"> <view class="navbar-box">
<view class="navbar-box-info"> <view class="navbar-box-info">
<image src="/static/image/panel/logo.png" /> <image src="/static/mocp/image/panel/logo.png" />
</view> </view>
<view class="navbar-box-weather"> <view class="navbar-box-weather">
<image src="/static/image/panel/weather.png" /> <image src="/static/mocp/image/panel/weather.png" />
<view class="info"> <view class="info">
<view class="place">武汉-WUH</view> <view class="place">武汉-WUH</view>
<view class="txt">晴转多云 22°</view> <view class="txt">晴转多云 22°</view>
...@@ -14,19 +14,19 @@ ...@@ -14,19 +14,19 @@
</view> </view>
<view class="navbar-bottom-list"> <view class="navbar-bottom-list">
<view class="list-item"> <view class="list-item">
<image class="list-item-image" src="/static/image/panel/wdrw.png" /> <image class="list-item-image" src="/static/mocp/image/panel/wdrw.png" />
<view class="list-item-title">我的任务</view> <view class="list-item-title">我的任务</view>
<view class="list-item-txt">24</view> <view class="list-item-txt">24</view>
</view> </view>
<view class="list-item-line"></view> <view class="list-item-line"></view>
<view class="list-item"> <view class="list-item">
<image class="list-item-image" src="/static/image/panel/gjrw.png" /> <image class="list-item-image" src="/static/mocp/image/panel/gjrw.png" />
<view class="list-item-title">跟机任务</view> <view class="list-item-title">跟机任务</view>
<view class="list-item-txt">24</view> <view class="list-item-txt">24</view>
</view> </view>
<!-- <view class="list-item-line"></view> <!-- <view class="list-item-line"></view>
<view class="list-item"> <view class="list-item">
<image class="list-item-image" src="/static/image/panel/AOGrw.png" /> <image class="list-item-image" src="static/mocp/image/mocp/panel/AOGrw.png" />
<view class="list-item-title">AOG任务</view> <view class="list-item-title">AOG任务</view>
<view class="list-item-txt">24</view> <view class="list-item-txt">24</view>
</view> --> </view> -->
......
/* 主色 */
.bg-primary-7 {
background: $uni-primary-7;
}
.bg-primary-6 {
background: $uni-primary-6;
}
.bg-primary-3 {
background: $uni-primary-3;
}
.bg-primary-2 {
background: $uni-primary-2;
}
.bg-primary-1 {
background: $uni-primary-1;
}
.color-primary-7 {
color: $uni-primary-7;
}
.color-primary-6 {
color: $uni-primary-6;
}
.color-primary-3 {
color: $uni-primary-3;
}
.color-primary-2 {
color: $uni-primary-2;
}
.color-primary-1 {
color: $uni-primary-1;
}
/* 填充 Fill */
.bg-fill-4 {
background: $uni-fill-4;
}
.bg-fill-3 {
background: $uni-fill-3;
}
.bg-fill-2 {
background: $uni-fill-2;
}
.bg-fill-1 {
background: $uni-fill-1;
}
/* 文字 Text */
.color-text-5 {
color: $uni-text-5;
}
.color-text-4 {
color: $uni-text-4;
}
.color-text-3 {
color: $uni-text-3;
}
.color-text-2 {
color: $uni-text-2;
}
.color-text-1 {
color: $uni-text-1;
}
/* 成功 Success */
.bg-success-7 {
background: $uni-success-7;
}
.bg-success-6 {
background: $uni-success-6;
}
.bg-success-3 {
background: $uni-success-3;
}
.bg-success-2 {
background: $uni-success-2;
}
.bg-success-1 {
background: $uni-success-1;
}
.color-success-7 {
color: $uni-success-7;
}
.color-success-6 {
color: $uni-success-6;
}
.color-success-3 {
color: $uni-success-3;
}
.color-success-2 {
color: $uni-success-2;
}
.color-success-1 {
color: $uni-success-1;
}
/* 警告/提醒 Warning/Notice */
.bg-warning-7 {
background: $uni-warning-7;
}
.bg-warning-6 {
background: $uni-warning-6;
}
.bg-warning-3 {
background: $uni-warning-3;
}
.bg-warning-2 {
background: $uni-warning-2;
}
.bg-warning-1 {
background: $uni-warning-1;
}
.color-warning-7 {
color: $uni-warning-7;
}
.color-warning-6 {
color: $uni-warning-6;
}
.color-warning-3 {
color: $uni-warning-3;
}
.color-warning-2 {
color: $uni-warning-2;
}
.color-warning-1 {
color: $uni-warning-1;
}
/* 错误 Danger */
.bg-danger-7 {
background: $uni-danger-7;
}
.bg-danger-6 {
background: $uni-danger-6;
}
.bg-danger-3 {
background: $uni-danger-3;
}
.bg-danger-2 {
background: $uni-danger-2;
}
.bg-danger-1 {
background: $uni-danger-1;
}
.color-danger-7 {
color: $uni-danger-7;
}
.color-danger-6 {
color: $uni-danger-6;
}
.color-danger-3 {
color: $uni-danger-3;
}
.color-danger-2 {
color: $uni-danger-2;
}
.color-danger-1 {
color: $uni-danger-1;
}
.uni-navbar__header {
padding: 0 24rpx !important;
.uni-nav-bar-text {
color: $uni-text-5 !important;
font-size: 34rpx !important;
}
}
/* 主色 */
.mocp-bg-primary-7 {
background: $mocp-primary-7;
}
.mocp-bg-primary-6 {
background: $mocp-primary-6;
}
.mocp-bg-primary-3 {
background: $mocp-primary-3;
}
.mocp-bg-primary-2 {
background: $mocp-primary-2;
}
.mocp-bg-primary-1 {
background: $mocp-primary-1;
}
.mocp-color-primary-7 {
color: $mocp-primary-7;
}
.mocp-color-primary-6 {
color: $mocp-primary-6;
}
.mocp-color-primary-3 {
color: $mocp-primary-3;
}
.mocp-color-primary-2 {
color: $mocp-primary-2;
}
.mocp-color-primary-1 {
color: $mocp-primary-1;
}
/* 填充 Fill */
.mocp-bg-fill-4 {
background: $mocp-fill-4;
}
.mocp-bg-fill-3 {
background: $mocp-fill-3;
}
.mocp-bg-fill-2 {
background: $mocp-fill-2;
}
.mocp-bg-fill-1 {
background: $mocp-fill-1;
}
/* 文字 Text */
.mocp-color-text-5 {
color: $mocp-text-5;
}
.mocp-color-text-4 {
color: $mocp-text-4;
}
.mocp-color-text-3 {
color: $mocp-text-3;
}
.mocp-color-text-2 {
color: $mocp-text-2;
}
.mocp-color-text-1 {
color: $mocp-text-1;
}
/* 成功 Success */
.mocp-bg-success-7 {
background: $mocp-success-7;
}
.mocp-bg-success-6 {
background: $mocp-success-6;
}
.mocp-bg-success-3 {
background: $mocp-success-3;
}
.mocp-bg-success-2 {
background: $mocp-success-2;
}
.mocp-bg-success-1 {
background: $mocp-success-1;
}
.mocp-color-success-7 {
color: $mocp-success-7;
}
.mocp-color-success-6 {
color: $mocp-success-6;
}
.mocp-color-success-3 {
color: $mocp-success-3;
}
.mocp-color-success-2 {
color: $mocp-success-2;
}
.mocp-color-success-1 {
color: $mocp-success-1;
}
/* 警告/提醒 Warning/Notice */
.mocp-bg-warning-7 {
background: $mocp-warning-7;
}
.mocp-bg-warning-6 {
background: $mocp-warning-6;
}
.mocp-bg-warning-3 {
background: $mocp-warning-3;
}
.mocp-bg-warning-2 {
background: $mocp-warning-2;
}
.mocp-bg-warning-1 {
background: $mocp-warning-1;
}
.mocp-color-warning-7 {
color: $mocp-warning-7;
}
.mocp-color-warning-6 {
color: $mocp-warning-6;
}
.mocp-color-warning-3 {
color: $mocp-warning-3;
}
.mocp-color-warning-2 {
color: $mocp-warning-2;
}
.mocp-color-warning-1 {
color: $mocp-warning-1;
}
/* 错误 Danger */
.mocp-bg-danger-7 {
background: $mocp-danger-7;
}
.mocp-bg-danger-6 {
background: $mocp-danger-6;
}
.mocp-bg-danger-3 {
background: $mocp-danger-3;
}
.mocp-bg-danger-2 {
background: $mocp-danger-2;
}
.mocp-bg-danger-1 {
background: $mocp-danger-1;
}
.mocp-color-danger-7 {
color: $mocp-danger-7;
}
.mocp-color-danger-6 {
color: $mocp-danger-6;
}
.mocp-color-danger-3 {
color: $mocp-danger-3;
}
.mocp-color-danger-2 {
color: $mocp-danger-2;
}
.mocp-color-danger-1 {
color: $mocp-danger-1;
}
// 表单
.u-form-item__body { .u-form-item__body {
padding: 24rpx 0 !important; padding: 24rpx 0 !important;
.u-form-item__body__left__content__label { .u-form-item__body__left__content__label {
color: $uni-text-5 !important; color: $mocp-text-5 !important;
font-size: 28rpx !important; font-size: 28rpx !important;
} }
.u-input__content__field-wrapper__field { .u-input__content__field-wrapper__field {
color: $uni-text-4 !important; color: $mocp-text-4 !important;
} }
.u-textarea { .u-textarea {
margin-top: 8rpx; margin-top: 8rpx;
.u-textarea__field { .u-textarea__field {
font-size: 28rpx !important; font-size: 28rpx !important;
color: $uni-text-4 !important; color: $mocp-text-4 !important;
} }
} }
} }
// 头部导航
.u-navbar__content__title {
color: $mocp-text-5 !important;
font-size: 34rpx !important;
}
/* 主色 */
$mocp-primary-7: #0e42d2;
$mocp-primary-6: #165dff;
$mocp-primary-3: #94bfff;
$mocp-primary-2: #bedaff;
$mocp-primary-1: #e8f3ff;
/* 线条 Line */
$uni-line-1: #e5e6eb;
/* 填充 Fill */
$mocp-fill-4: #c9cdd4;
$mocp-fill-3: #e5e6eb;
$mocp-fill-2: #f2f3f5;
$mocp-fill-1: #f7f8fa;
/* 文字 Text */
$mocp-text-5: #1d2129;
$mocp-text-4: #4e5969;
$mocp-text-3: #86909c;
$mocp-text-2: #c9cdd4;
$mocp-text-1: #ffffff;
/* 成功 Success */
$mocp-success-7: #009a29;
$mocp-success-6: #00b42a;
$mocp-success-3: #7be188;
$mocp-success-2: #aff0b5;
$mocp-success-1: #e8ffea;
/* 警告/提醒 Warning/Notice */
$mocp-warning-7: #d25f00;
$mocp-warning-6: #ff7d00;
$mocp-warning-3: #ffcf8b;
$mocp-warning-2: #ffe4ba;
$mocp-warning-1: #fff7e8;
/* 错误 Danger */
$mocp-danger-7: #cb2634;
$mocp-danger-6: #f53f3f;
$mocp-danger-3: #fbaca3;
$mocp-danger-2: #fdcdc5;
$mocp-danger-1: #ffece8;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment