|
@@ -25,18 +25,25 @@
|
|
|
<CellGroup round>
|
|
<CellGroup round>
|
|
|
<Cell icon="/static/images/user/icon-edit.png" title="我的投稿" showArrow touchable @click="$emit('goSubmit')" />
|
|
<Cell icon="/static/images/user/icon-edit.png" title="我的投稿" showArrow touchable @click="$emit('goSubmit')" />
|
|
|
<Cell icon="/static/images/user/icon-profile.png" title="编辑资料" showArrow touchable @click="goUserProfile" />
|
|
<Cell icon="/static/images/user/icon-profile.png" title="编辑资料" showArrow touchable @click="goUserProfile" />
|
|
|
- <Cell icon="/static/images/user/icon-function.png" title="关于我们" showArrow touchable />
|
|
|
|
|
- <Cell icon="/static/images/user/icon-chat.png" title="商务合作" showArrow touchable />
|
|
|
|
|
|
|
+ <Cell icon="/static/images/user/icon-function.png" title="关于我们" showArrow touchable @click="navTo('/pages/home/about/about')" />
|
|
|
|
|
+ <Cell icon="/static/images/user/icon-chat.png" title="商务合作" showArrow touchable @click="navTo('/pages/home/about/contract')" />
|
|
|
<Cell v-if="userInfo" icon="/static/images/user/icon-quit.png" title="退出登录" showArrow touchable @click="doLogout" />
|
|
<Cell v-if="userInfo" icon="/static/images/user/icon-quit.png" title="退出登录" showArrow touchable @click="doLogout" />
|
|
|
</CellGroup>
|
|
</CellGroup>
|
|
|
|
|
+ <Touchable direction="column" center :padding="40" :gap="10" @click="showBuildInfo">
|
|
|
|
|
+ <Text
|
|
|
|
|
+ color="text.second"
|
|
|
|
|
+ :fontSize="22"
|
|
|
|
|
+ :text="`软件版本 ${AppCofig.version}`"
|
|
|
|
|
+ />
|
|
|
|
|
+ </Touchable>
|
|
|
</FlexCol>
|
|
</FlexCol>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { useAuthStore } from '@/store/auth';
|
|
import { useAuthStore } from '@/store/auth';
|
|
|
import { computed } from 'vue';
|
|
import { computed } from 'vue';
|
|
|
-import { confirm } from '@/components/utils/DialogAction';
|
|
|
|
|
import { navTo } from '@/components/utils/PageAction';
|
|
import { navTo } from '@/components/utils/PageAction';
|
|
|
|
|
+import { alert, confirm } from '@/components/dialog/CommonRoot';
|
|
|
import UserHead from '@/static/images/user/avatar.png';
|
|
import UserHead from '@/static/images/user/avatar.png';
|
|
|
import CellGroup from '@/components/basic/CellGroup.vue';
|
|
import CellGroup from '@/components/basic/CellGroup.vue';
|
|
|
import Cell from '@/components/basic/Cell.vue';
|
|
import Cell from '@/components/basic/Cell.vue';
|
|
@@ -45,10 +52,24 @@ import H4 from '@/components/typography/H4.vue';
|
|
|
import Height from '@/components/layout/space/Height.vue';
|
|
import Height from '@/components/layout/space/Height.vue';
|
|
|
import Touchable from '@/components/feedback/Touchable.vue';
|
|
import Touchable from '@/components/feedback/Touchable.vue';
|
|
|
import FlexCol from '@/components/layout/FlexCol.vue';
|
|
import FlexCol from '@/components/layout/FlexCol.vue';
|
|
|
|
|
+import Text from '@/components/basic/Text.vue';
|
|
|
|
|
+import AppCofig from '@/common/config/AppCofig';
|
|
|
|
|
+import { DateUtils } from '@imengyu/imengyu-utils';
|
|
|
|
|
|
|
|
const authStore = useAuthStore();
|
|
const authStore = useAuthStore();
|
|
|
const userInfo = computed(() => authStore.userInfo);
|
|
const userInfo = computed(() => authStore.userInfo);
|
|
|
|
|
+const buildTime = `${__BUILD_TIMESTAMP__}`
|
|
|
|
|
+const buildInfo = `${__BUILD_GUID__}`
|
|
|
|
|
|
|
|
|
|
+function showBuildInfo() {
|
|
|
|
|
+ alert({
|
|
|
|
|
+ title: '关于程序',
|
|
|
|
|
+ content: '版本: ' + AppCofig.version +
|
|
|
|
|
+ '\n构建时间:' + DateUtils.formatDate(new Date(parseInt(buildTime)), 'yyyy-MM-dd HH:mm:ss') +
|
|
|
|
|
+ ' (' + buildTime + ')' +
|
|
|
|
|
+ '\n构建GUID:' + buildInfo,
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
function goUserProfile() {
|
|
function goUserProfile() {
|
|
|
userInfo.value ? navTo('/pages/user/update/profile') : navTo('/pages/user/login');
|
|
userInfo.value ? navTo('/pages/user/update/profile') : navTo('/pages/user/login');
|
|
|
}
|
|
}
|