|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<view class="name">Hi, {{ session.user.userName }}</view>
|
|
|
|
|
<view class="logout" @click="session.logout()">
|
|
|
|
|
<u-icon name="info-circle"></u-icon>
|
|
|
|
|
<text>{{ $t("message.rawMenu_SignOut") }}</text>
|
|
|
|
|
<text>{{ $t('message.rawMenu_SignOut') }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="date">{{ today }}</view>
|
|
|
|
@ -14,22 +14,14 @@
|
|
|
|
|
<u-row :gutter="30">
|
|
|
|
|
<u-col :span="12" v-for="(item, index) in model.menuList" :key="index">
|
|
|
|
|
<u-button
|
|
|
|
|
@click="
|
|
|
|
|
@click.native="
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `${item.href}?childData=${JSON.stringify(
|
|
|
|
|
item.childResource
|
|
|
|
|
)}`,
|
|
|
|
|
url: `${item.href}?childData=${JSON.stringify(item.childResource)}`,
|
|
|
|
|
})
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<u-icon size="80" :name="item.iconClass"></u-icon>
|
|
|
|
|
<text class="name">
|
|
|
|
|
{{
|
|
|
|
|
session.lang == "en"
|
|
|
|
|
? index + 1 + " " + item.engResourceName
|
|
|
|
|
: index + 1 + " " + item.resourceName
|
|
|
|
|
}}</text
|
|
|
|
|
>
|
|
|
|
|
<text class="name"> {{ session.lang == 'en' ? index + 1 + ' ' + item.engResourceName : index + 1 + ' ' + item.resourceName }}</text>
|
|
|
|
|
</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
<!-- <u-col :span="12">
|
|
|
|
@ -68,15 +60,15 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { Component } from "vue-property-decorator";
|
|
|
|
|
import { BasePage } from "@/components/base/page";
|
|
|
|
|
import dayjs from "dayjs";
|
|
|
|
|
import model from "./model";
|
|
|
|
|
import { Component } from 'vue-property-decorator';
|
|
|
|
|
import { BasePage } from '@/components/base/page';
|
|
|
|
|
import dayjs from 'dayjs';
|
|
|
|
|
import model from './model';
|
|
|
|
|
|
|
|
|
|
@Component
|
|
|
|
|
export default class RawHome extends BasePage {
|
|
|
|
|
model = model;
|
|
|
|
|
today = dayjs().format("YYYY-MM-DD dddd");
|
|
|
|
|
today = dayjs().format('YYYY-MM-DD dddd');
|
|
|
|
|
onLoad() {
|
|
|
|
|
this.model.getMenuList();
|
|
|
|
|
}
|
|
|
|
|