Browse Source

优化内容

master
ltlzx 4 years ago
parent
commit
19c89904c6
  1. 4
      api/college.js
  2. 13
      i18n/lang/en.json
  3. 3
      i18n/lang/zh-TW.json
  4. 4
      pages/base/home.vue
  5. 8
      pages/base/index.vue
  6. 2
      pages/help/index.vue
  7. 8
      pages/service/service.vue

4
api/college.js

@ -9,8 +9,8 @@ class College {
return Serve.get(`/articleList`,data); return Serve.get(`/articleList`,data);
} }
static getCategoryList() { static getCategoryList(data) {
return Serve.get(`/categoryList`); return Serve.get(`/categoryList`,data);
} }
static getArticleDetail(data) { static getArticleDetail(data) {

13
i18n/lang/en.json

@ -361,13 +361,13 @@
"a1": "Regiser Account", "a1": "Regiser Account",
"a2": "Email", "a2": "Email",
"a3": "Enter your email address", "a3": "Enter your email address",
"a4": "Mailbox", "a4": "Email",
"a5": "Please enter the mailbox number", "a5": "Enter your email address",
"a6": "Email verification Code", "a6": "Email verification Code",
"a7": "Enter the email verification code", "a7": "Enter the email verification code",
"a8": "Password", "a8": "Password",
"a9": "Enter a password", "a9": "Enter your password",
"b0": "Confirm Password", "b0": "Confirm your password",
"b1": "Confirm your password", "b1": "Confirm your password",
"b2": "Recommended person", "b2": "Recommended person",
"b3": "Please enter the recommender", "b3": "Please enter the recommender",
@ -384,7 +384,7 @@
"c4": "Please fill in the mailbox number", "c4": "Please fill in the mailbox number",
"c5": "Registered successfully", "c5": "Registered successfully",
"c6":"Referral ID(required)", "c6":"Referral ID(required)",
"c7":"Fill in the referral ID" "c7":"Enter your referral code"
}, },
"safe": { "safe": {
"a0": "Untie", "a0": "Untie",
@ -492,7 +492,8 @@
"help": { "help": {
"a0": "Details", "a0": "Details",
"a1": "College", "a1": "College",
"a2": "Classification" "a2": "Classification",
"a3":"Learn"
}, },
"login": { "login": {
"a0": "Email", "a0": "Email",

3
i18n/lang/zh-TW.json

@ -490,7 +490,8 @@
"help": { "help": {
"a0": "詳情", "a0": "詳情",
"a1": "學院", "a1": "學院",
"a2": "分類" "a2": "分類",
"a3": "學院"
}, },
"login": { "login": {
"a0": "手機或郵箱號", "a0": "手機或郵箱號",

4
pages/base/home.vue

@ -337,6 +337,7 @@
<view class="right color-light">{{ $t("common.dark") }}</view> <view class="right color-light">{{ $t("common.dark") }}</view>
</view> </view>
</view> --> </view> -->
<img width="25px" height="25px" @click="changtTheme" :src="theme == 'light' ? 'static/img/moon.png' : 'static/img/sun.png'" /> <img width="25px" height="25px" @click="changtTheme" :src="theme == 'light' ? 'static/img/moon.png' : 'static/img/sun.png'" />
</view> </view>
<view class="information p-l-md m-t-xl"> <view class="information p-l-md m-t-xl">
@ -487,8 +488,7 @@
</view> </view>
<van-icon name="arrow" class="fn-18" /> <van-icon name="arrow" class="fn-18" />
</v-link> --> </v-link> -->
<v-link <v-link :to="'/pages/service/service?id=33&type=0'"
to="/pages/service/service?id=33"
tag="div" tag="div"
class="per-bot p-y-md p-x-sm d-flex align-center justify-between" class="per-bot p-y-md p-x-sm d-flex align-center justify-between"
> >

8
pages/base/index.vue

@ -46,6 +46,7 @@
import Home from "./home"; import Home from "./home";
import ExchangeOperation from "./exchange-operation"; import ExchangeOperation from "./exchange-operation";
import Purchase from "../purchase/index"; import Purchase from "../purchase/index";
import Help from "@/pages/help/index.vue"
import Mine from "./mine"; import Mine from "./mine";
import OptionList from "./option-list"; import OptionList from "./option-list";
// import List from "./list"; // import List from "./list";
@ -58,7 +59,8 @@ export default {
OptionList, OptionList,
Mine, Mine,
Contract, Contract,
Purchase Purchase,
Help
}, },
computed: { computed: {
navList() { navList() {
@ -84,8 +86,8 @@ export default {
{ {
// label: this.$t("base.a4"), // label: this.$t("base.a4"),
// tel: "option-list", // tel: "option-list",
label: this.$t("purchase.a5"), label: this.$t("help.a3"),
tel: "purchase", tel: "help",
icon: "static/img/base_qukuai_0.png", icon: "static/img/base_qukuai_0.png",
activeIcon: "static/img/base_qukuai_1.png", activeIcon: "static/img/base_qukuai_1.png",
}, },

2
pages/help/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="layout-page" :style="themeStyle"> <div class="layout-page" :style="themeStyle">
<v-header :title="$t('help.a1')"></v-header> <v-header :title="$t('help.a3')"></v-header>
<main class="layout-main"> <main class="layout-main">
<template v-for="parentItem in list"> <template v-for="parentItem in list">
<v-link <v-link

8
pages/service/service.vue

@ -4,8 +4,8 @@
<main class="layout-main p-md"> <main class="layout-main p-md">
<view class="top p-b-sm border-b"> <view class="top p-b-sm border-b">
<view class="title fn-lg fn-center m-b-md color-light">{{detail.title}}</view> <view class="title fn-lg fn-center m-b-md color-light">{{detail.title}}</view>
<!-- <view class="time fn-sm">{{detail.created_at}}</view> --> <view class="time fn-sm">{{detail.created_at}}</view>
<view class="time fn-sm">{{detail.created_ats | parseTime}}</view> <!-- <view class="time fn-sm">{{detail.created_ats | parseTime}}</view> -->
</view> </view>
<view class="edit-content m-t-md" v-html="detail.body"></view> <view class="edit-content m-t-md" v-html="detail.body"></view>
</main> </main>
@ -39,8 +39,8 @@ export default {
}, },
}, },
onLoad($ev) { onLoad($ev) {
this.query = $ev; this.query = $ev;
this.serviceDetail(); this.serviceDetail();
}, },
}; };
</script> </script>

Loading…
Cancel
Save