优化页面展示

pull/16/head
nineven 4 years ago
parent c67b0d48ec
commit 00f70627ae
  1. 0
      fir_client/public/gt.js
  2. 1
      fir_client/public/index.html
  3. 4
      fir_client/public/short.html
  4. 2
      fir_client/src/assets/plane.svg
  5. 2
      fir_client/src/assets/propeller.svg
  6. 2
      fir_client/src/components/FirBase.vue
  7. 26
      fir_client/src/components/FirDownload.vue
  8. 2
      fir_client/src/components/FirFooter.vue
  9. 3
      fir_client/src/components/FirHeader.vue
  10. 2
      fir_client/src/components/FirIndex.vue
  11. 4
      fir_client/src/components/FirLogin.vue
  12. 4
      fir_client/src/components/FirRegist.vue
  13. 26
      fir_client/src/components/ShortDownload.vue
  14. 2
      fir_client/src/components/apps/FirAppInfosBase.vue
  15. 4
      fir_client/src/components/apps/FirAppInfosbaseinfo.vue
  16. 2
      fir_client/src/components/apps/FirAppInfoscombo.vue
  17. 4
      fir_client/src/components/apps/FirAppInfossecurity.vue
  18. 4
      fir_client/src/components/apps/FirAppInfossupersign.vue
  19. 2
      fir_client/src/components/apps/FirAppInfostimeline.vue
  20. 27
      fir_client/src/components/apps/FirApps.vue
  21. 4
      fir_client/src/components/user/FirSuperSignBase.vue
  22. 4
      fir_client/src/components/user/FirUserOrders.vue
  23. 4
      fir_client/src/components/user/FirUserProfileBase.vue
  24. 4
      fir_client/src/components/user/FirUserProfileCertification.vue
  25. 2
      fir_client/src/components/user/FirUserProfileChangePwd.vue
  26. 4
      fir_client/src/components/user/FirUserProfileInfo.vue
  27. 4
      fir_client/src/components/user/FirUserStorage.vue
  28. 125
      fir_client/src/main.js
  29. 13
      fir_client/src/main.short.js
  30. 2
      fir_client/src/restful/index.js
  31. 32
      fir_client/src/router/index.js
  32. 2
      fir_client/src/utils/index.js
  33. 8
      fir_client/vue.config.js

@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<script src="<%= BASE_URL %>config.js"></script> <script src="<%= BASE_URL %>config.js"></script>
<script src="<%= BASE_URL %>gt.js"></script>
<title>FLY分发平台</title> <title>FLY分发平台</title>
</head> </head>
<body> <body>

@ -1,12 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="zh">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<script src="<%= BASE_URL %>config.js"></script> <script src="<%= BASE_URL %>config.js"></script>
<title>App下载</title> <title>应用下载</title>
</head> </head>
<body> <body>
<noscript> <noscript>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" x="0px"
y="0px" y="0px"
width="800px" height="398.17px" viewBox="0 0 800 398.17" enable-background="new 0 0 800 398.17" width="800px" height="398.17px" viewBox="0 0 800 398.17" enable-background="new 0 0 800 398.17"
xml:space="preserve"> xml:space="preserve">

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" <svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
width="218px" width="218px"
height="55.42px" viewBox="0 0 218 55.42" enable-background="new 0 0 218 55.42" xml:space="preserve"> height="55.42px" viewBox="0 0 218 55.42" enable-background="new 0 0 218 55.42" xml:space="preserve">
<g id="图层_1"> <g id="图层_1">

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

@ -21,7 +21,7 @@
<script> <script>
import FirHeader from "@/components/FirHeader"; import FirHeader from "@/components/FirHeader";
import FirFooter from "@/components/FirFooter"; import FirFooter from "@/components/FirFooter";
import {show_beautpic,} from "../utils"; import {show_beautpic,} from "@/utils";
export default { export default {
name: "FirBase", name: "FirBase",

@ -13,8 +13,8 @@
</div> </div>
<div v-else> <div v-else>
<!-- <span class="pattern left"><img src="../assets/down_left.png"></span>--> <!-- <span class="pattern left"><img src="@/assets/down_left.png"></span>-->
<!-- <span class="pattern right"><img src="../assets/down_right.png"></span>--> <!-- <span class="pattern right"><img src="@/assets/down_right.png"></span>-->
</div> </div>
<el-container class="out-container " v-if="wxeasytypeflag"> <el-container class="out-container " v-if="wxeasytypeflag">
@ -250,31 +250,31 @@
<script> <script>
import QRCode from 'qrcodejs2' import QRCode from 'qrcodejs2'
import {getShortAppinfo, getdownloadurl} from '../restful' import {getdownloadurl, getShortAppinfo} from '@/restful'
export default { export default {
name: "FirDownload", name: "FirDownload",
data() { data() {
return { return {
signhelplist: [ signhelplist: [
{msg: '第一步 允许打开配置描述文件', url: require('../assets/sign/step1.jpg')}, {msg: '第一步 允许打开配置描述文件', url: require('@/assets/sign/step1.jpg')},
{msg: '第二步 点击右上角安装按钮', url: require('../assets/sign/step2.jpg')}, {msg: '第二步 点击右上角安装按钮', url: require('@/assets/sign/step2.jpg')},
{msg: '第三步 输入开机解锁密码', url: require('../assets/sign/step3.jpg')}, {msg: '第三步 输入开机解锁密码', url: require('@/assets/sign/step3.jpg')},
{msg: '第四步 点击下方安装按钮', url: require('../assets/sign/step4.jpg')}, {msg: '第四步 点击下方安装按钮', url: require('@/assets/sign/step4.jpg')},
], ],
inhousehelplist: [ inhousehelplist: [
{ {
msg: '首次安装企业版应用时会出现"未受信任的企业级开发者" 提示', msg: '首次安装企业版应用时会出现"未受信任的企业级开发者" 提示',
url: require('../assets/inhouse/b1.png') url: require('@/assets/inhouse/b1.png')
}, },
{msg: '第一步 在手机中打开设置功能,选择 "通用" 功能', url: require('../assets/inhouse/b2.png')}, {msg: '第一步 在手机中打开设置功能,选择 "通用" 功能', url: require('@/assets/inhouse/b2.png')},
{msg: '第二步 在通用中,选择 "描述文件与设备管理" 功能', url: require('../assets/inhouse/b3.png')}, {msg: '第二步 在通用中,选择 "描述文件与设备管理" 功能', url: require('@/assets/inhouse/b3.png')},
{ {
msg: '第三步 选择要安装的企业应用的文件名称(与打开时的提示一致),点击进入', msg: '第三步 选择要安装的企业应用的文件名称(与打开时的提示一致),点击进入',
url: require('../assets/inhouse/b4.png') url: require('@/assets/inhouse/b4.png')
}, },
{msg: '第四步 确认企业签名中的公司名称与应用名称后,点击信任"企业签名公司名称"', url: require('../assets/inhouse/b5.png')}, {msg: '第四步 确认企业签名中的公司名称与应用名称后,点击信任"企业签名公司名称"', url: require('@/assets/inhouse/b5.png')},
{msg: '第五步 回到桌面,重新打开应用即可使用', url: require('../assets/inhouse/b6.png')}, {msg: '第五步 回到桌面,重新打开应用即可使用', url: require('@/assets/inhouse/b6.png')},
], ],
imagelist: [], imagelist: [],
currentappinfo: {}, currentappinfo: {},

@ -12,7 +12,7 @@
<a style="display: inline-block; text-decoration: none; height: 20px; line-height: 20px;" <a style="display: inline-block; text-decoration: none; height: 20px; line-height: 20px;"
:href="footer.gongAnBeiAn.url" :href="footer.gongAnBeiAn.url"
target="_blank" rel="noopener"> target="_blank" rel="noopener">
<img style="float: left;" src="../assets/beianlogo.png"/> <img style="float: left;" src="@/assets/beianlogo.png"/>
<el-link :underline="false" <el-link :underline="false"
style="float: left; height: 20px; line-height: 20px; margin: 0px 0px 0px 5px; color: #939393;"> style="float: left; height: 20px; line-height: 20px; margin: 0px 0px 0px 5px; color: #939393;">
{{ footer.gongAnBeiAn.text }} {{ footer.gongAnBeiAn.text }}

@ -72,8 +72,7 @@
</template> </template>
<script> <script>
// eslint-disable-next-line no-unused-vars import {apitoken, logout} from '@/restful'
import {logout, apitoken} from '../restful'
export default { export default {
name: "FirHeader", name: "FirHeader",

@ -11,7 +11,7 @@
<el-link>工具</el-link> <el-link>工具</el-link>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-link @click="$router.push({name:'FirApps'})"></el-link> <el-link @click="$router.push({name:'FirApps'})"></el-link>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-link @click="$router.push({name:'FirRegist'})">注册</el-link> <el-link @click="$router.push({name:'FirRegist'})">注册</el-link>

@ -79,8 +79,8 @@
</template> </template>
<script> <script>
import {loginFun, set_auth_token} from "../restful"; import {loginFun, set_auth_token} from "@/restful";
import {checkEmail, checkphone, geetest} from "../utils"; import {checkEmail, checkphone, geetest} from "@/utils";
export default { export default {
name: "FirLogin", name: "FirLogin",

@ -87,8 +87,8 @@
</template> </template>
<script> <script>
import {getAuthTokenFun, registerFun} from "../restful"; import {getAuthTokenFun, registerFun} from "@/restful";
import {checkEmail, checkphone, geetest} from "../utils"; import {checkEmail, checkphone, geetest} from "@/utils";
export default { export default {
name: "FirRegist", name: "FirRegist",

@ -34,8 +34,8 @@
</div> </div>
<div v-else> <div v-else>
<!-- <span class="pattern left"><img src="../assets/download_pattern_left.png"></span>--> <!-- <span class="pattern left"><img src="@/assets/download_pattern_left.png"></span>-->
<!-- <span class="pattern right"><img src="../assets/download_pattern_right.png"></span>--> <!-- <span class="pattern right"><img src="@/assets/download_pattern_right.png"></span>-->
</div> </div>
<div class="out-container " v-if="wxeasytypeflag"> <div class="out-container " v-if="wxeasytypeflag">
@ -247,31 +247,31 @@
<script> <script>
import QRCode from 'qrcodejs2' import QRCode from 'qrcodejs2'
import {getShortAppinfo, getdownloadurl} from '../restful/download' import {getdownloadurl, getShortAppinfo} from '@/restful/download'
export default { export default {
name: "ShortDownload", name: "ShortDownload",
data() { data() {
return { return {
signhelplist: [ signhelplist: [
{msg: '第一步 允许打开配置描述文件', url: require('../assets/sign/step1.jpg')}, {msg: '第一步 允许打开配置描述文件', url: require('@/assets/sign/step1.jpg')},
{msg: '第二步 点击右上角安装按钮', url: require('../assets/sign/step2.jpg')}, {msg: '第二步 点击右上角安装按钮', url: require('@/assets/sign/step2.jpg')},
{msg: '第三步 输入开机解锁密码', url: require('../assets/sign/step3.jpg')}, {msg: '第三步 输入开机解锁密码', url: require('@/assets/sign/step3.jpg')},
{msg: '第四步 点击下方安装按钮', url: require('../assets/sign/step4.jpg')}, {msg: '第四步 点击下方安装按钮', url: require('@/assets/sign/step4.jpg')},
], ],
inhousehelplist: [ inhousehelplist: [
{ {
msg: '首次安装企业版应用时会出现"未受信任的企业级开发者" 提示', msg: '首次安装企业版应用时会出现"未受信任的企业级开发者" 提示',
url: require('../assets/inhouse/b1.png') url: require('@/assets/inhouse/b1.png')
}, },
{msg: '第一步 在手机中打开设置功能,选择 "通用" 功能', url: require('../assets/inhouse/b2.png')}, {msg: '第一步 在手机中打开设置功能,选择 "通用" 功能', url: require('@/assets/inhouse/b2.png')},
{msg: '第二步 在通用中,选择 "描述文件与设备管理" 功能', url: require('../assets/inhouse/b3.png')}, {msg: '第二步 在通用中,选择 "描述文件与设备管理" 功能', url: require('@/assets/inhouse/b3.png')},
{ {
msg: '第三步 选择要安装的企业应用的文件名称(与打开时的提示一致),点击进入', msg: '第三步 选择要安装的企业应用的文件名称(与打开时的提示一致),点击进入',
url: require('../assets/inhouse/b4.png') url: require('@/assets/inhouse/b4.png')
}, },
{msg: '第四步 确认企业签名中的公司名称与应用名称后,点击信任"企业签名公司名称"', url: require('../assets/inhouse/b5.png')}, {msg: '第四步 确认企业签名中的公司名称与应用名称后,点击信任"企业签名公司名称"', url: require('@/assets/inhouse/b5.png')},
{msg: '第五步 回到桌面,重新打开应用即可使用', url: require('../assets/inhouse/b6.png')}, {msg: '第五步 回到桌面,重新打开应用即可使用', url: require('@/assets/inhouse/b6.png')},
], ],
imagelist: [], imagelist: [],
currentappinfo: {}, currentappinfo: {},

@ -98,7 +98,7 @@
</template> </template>
<script> <script>
import {apputils} from "../../restful"; import {apputils} from "@/restful";
import VueQr from 'vue-qr'; import VueQr from 'vue-qr';
export default { export default {

@ -89,8 +89,8 @@
</template> </template>
<script> <script>
import {apputils, getapppicurl, releaseapputils} from "../../restful" import {apputils, getapppicurl, releaseapputils} from "@/restful"
import {AvatarUploadUtils} from "../../utils"; import {AvatarUploadUtils} from "@/utils";
export default { export default {
name: "FirAppInfosbaseinfo", name: "FirAppInfosbaseinfo",

@ -80,7 +80,7 @@
</template> </template>
<script> <script>
import {getapps, apputils} from "../../restful"; import {apputils, getapps} from "@/restful";
export default { export default {
name: "FirAppInfoscombo" name: "FirAppInfoscombo"

@ -89,8 +89,8 @@
</template> </template>
<script> <script>
import {apputils,} from "../../restful" import {apputils,} from "@/restful"
import {deepCopy} from "../../utils"; import {deepCopy} from "@/utils";
export default { export default {
name: "FirAppInfossecurity", name: "FirAppInfossecurity",

@ -83,8 +83,8 @@
</template> </template>
<script> <script>
import {apputils,} from "../../restful" import {apputils,} from "@/restful"
import {deepCopy} from "../../utils"; import {deepCopy} from "@/utils";
export default { export default {
name: "FirAppInfossupersign", name: "FirAppInfossupersign",

@ -116,7 +116,7 @@
</template> </template>
<script> <script>
import {releaseapputils, getdownloadurl} from "../../restful" import {getdownloadurl, releaseapputils} from "@/restful"
export default { export default {
name: "FirAppInfostimeline", name: "FirAppInfostimeline",

@ -153,27 +153,27 @@
<div class="cube"> <div class="cube">
<!--前面图片 --> <!--前面图片 -->
<div class="out_front"> <div class="out_front">
<img src="../../assets/imgs/1.png" class="pic"> <img src="@/assets/imgs/1.png" class="pic">
</div> </div>
<!--后面图片 --> <!--后面图片 -->
<div class="out_back"> <div class="out_back">
<img src="../../assets/imgs/5.png" class="pic"> <img src="@/assets/imgs/5.png" class="pic">
</div> </div>
<!--左面图片 --> <!--左面图片 -->
<div class="out_left"> <div class="out_left">
<img src="../../assets/imgs/6.png" class="pic"> <img src="@/assets/imgs/6.png" class="pic">
</div> </div>
<!--右面图片 --> <!--右面图片 -->
<div class="out_right"> <div class="out_right">
<img src="../../assets/imgs/7.png" class="pic"> <img src="@/assets/imgs/7.png" class="pic">
</div> </div>
<!--上面图片 --> <!--上面图片 -->
<div class="out_top"> <div class="out_top">
<img src="../../assets/imgs/8.png" class="pic"> <img src="@/assets/imgs/8.png" class="pic">
</div> </div>
<!--下面图片 --> <!--下面图片 -->
<div class="out_bottom"> <div class="out_bottom">
<img src="../../assets/imgs/9.png" class="pic"> <img src="@/assets/imgs/9.png" class="pic">
</div> </div>
<!--小正方体 --> <!--小正方体 -->
@ -473,18 +473,19 @@
</template> </template>
<script> <script>
import {getapps, apputils, analyseApps, getuploadurl, get_package_prices, my_order} from "../../restful"; import {analyseApps, apputils, get_package_prices, getapps, getuploadurl, my_order} from "@/restful";
import { import {
dataURLtoFile,
format_money,
getappinfo,
getScrollHeight, getScrollHeight,
getScrollTop, getScrollTop,
getWindowHeight, getWindowHeight,
getappinfo, show_beautpic,
uploadqiniuoss,
dataURLtoFile,
uploadaliyunoss, uploadaliyunoss,
uploadlocalstorage, uploadlocalstorage,
format_money, show_beautpic uploadqiniuoss
} from "../../utils"; } from "@/utils";
export default { export default {
name: "FirApps", name: "FirApps",
@ -1037,7 +1038,7 @@
/*/deep/ .el-dialog__body {*/ /*/deep/ .el-dialog__body {*/
/* background-image: url("../assets/b6.png");*/ /* background-image: url("@/assets/b6.png");*/
/* border: 0;*/ /* border: 0;*/
/*}*/ /*}*/

@ -437,8 +437,8 @@
<script> <script>
import {iosdeveloper, iosdevices, iosdevicesudid, userinfos} from "../../restful"; import {iosdeveloper, iosdevices, iosdevicesudid, userinfos} from "@/restful";
import {removeAaary, IsNum} from "../../utils"; import {IsNum, removeAaary} from "@/utils";
export default { export default {
name: "FirSuperSignBase", name: "FirSuperSignBase",

@ -11,7 +11,7 @@
> >
<el-row :gutter="8"> <el-row :gutter="8">
<el-col :span="12" style="text-align: center"> <el-col :span="12" style="text-align: center">
<el-image :src="require('../../assets/wx_pay.jpg')" style="width: 320px;height: 320px" <el-image :src="require('@/assets/wx_pay.jpg')" style="width: 320px;height: 320px"
fit="fit"></el-image> fit="fit"></el-image>
<el-link>用微信扫描二维码</el-link> <el-link>用微信扫描二维码</el-link>
</el-col> </el-col>
@ -223,7 +223,7 @@
<script> <script>
import {my_order, userinfos} from "../../restful"; import {my_order, userinfos} from "@/restful";
export default { export default {
name: "FirUserOrders", name: "FirUserOrders",

@ -62,8 +62,8 @@
</template> </template>
<script> <script>
import {userinfos, getuserpicurl} from '../../restful'; import {getuserpicurl, userinfos} from '@/restful';
import {AvatarUploadUtils} from "../../utils"; import {AvatarUploadUtils} from "@/utils";
export default { export default {
name: "FirUserProfileBase", name: "FirUserProfileBase",

@ -216,8 +216,8 @@
</template> </template>
<script> <script>
import {getAuthcTokenFun, registerFun, user_certification} from "../../restful"; import {getAuthcTokenFun, registerFun, user_certification} from "@/restful";
import {AvatarUploadUtils, checkphone, geetest} from "../../utils"; import {AvatarUploadUtils, checkphone, geetest} from "@/utils";
export default { export default {
name: "FirUserProfileCertification", name: "FirUserProfileCertification",

@ -43,7 +43,7 @@
</template> </template>
<script> <script>
import {userinfos} from "../../restful"; import {userinfos} from "@/restful";
export default { export default {
name: "FirUserProfileChangePwd", name: "FirUserProfileChangePwd",

@ -176,8 +176,8 @@
</template> </template>
<script> <script>
import {userinfos, getAuthcTokenFun, registerFun} from '../../restful' import {getAuthcTokenFun, registerFun, userinfos} from '@/restful'
import {deepCopy} from "../../utils"; import {deepCopy} from "@/utils";
export default { export default {
name: "FirUserProfileInfo", name: "FirUserProfileInfo",

@ -305,8 +305,8 @@
</template> </template>
<script> <script>
import {getStorageinfo, userinfos} from "../../restful"; import {getStorageinfo, userinfos} from "@/restful";
import {deepCopy} from "../../utils"; import {deepCopy} from "@/utils";
export default { export default {
name: "FirUserStorage", name: "FirUserStorage",

@ -6,23 +6,73 @@ import 'element-ui/lib/theme-chalk/index.css'
import Vuex from 'vuex' import Vuex from 'vuex'
import qiniu from 'qiniu-js' import qiniu from 'qiniu-js'
import oss from 'ali-oss' import oss from 'ali-oss'
//使用vue-cookies
import VueCookies from 'vue-cookies'
//导入store实例
import store from "@/store";
import {
Aside,
Avatar,
Breadcrumb,
BreadcrumbItem,
Button,
ButtonGroup,
Card,
Checkbox,
CheckboxGroup,
Col,
Container,
DatePicker,
Dialog,
Divider,
Dropdown,
DropdownItem,
DropdownMenu,
Footer,
Form,
FormItem,
Header,
Image,
Input,
InputNumber,
Link,
Loading,
Main,
Message,
MessageBox,
Notification,
Option,
OptionGroup,
Pagination,
Popover,
Progress,
RadioButton,
RadioGroup,
Row,
Select,
Slider,
Switch,
Table,
TableColumn,
TabPane,
Tabs,
Tag,
Timeline,
TimelineItem,
Tooltip,
Upload
} from "element-ui";
import VueLazyload from 'vue-lazyload'
// 引入点击复制组件
import VueClipboard from 'vue-clipboard2'
// const qiniu = require('qiniu-js'); // const qiniu = require('qiniu-js');
// //
Vue.prototype.qiniu = qiniu; Vue.prototype.qiniu = qiniu;
Vue.prototype.oss = oss; Vue.prototype.oss = oss;
//使用vue-cookies
import VueCookies from 'vue-cookies'
Vue.use(VueCookies); Vue.use(VueCookies);
//导入全局的 geetest.js
import '@/assets/gt.js'
//导入store实例
import store from "@/store";
//全局导航守卫 //全局导航守卫
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
@ -45,59 +95,6 @@ router.beforeEach((to, from, next) => {
Vue.config.productionTip = false; Vue.config.productionTip = false;
import {
Button,
Select,
Table,
TableColumn,
Input,
DatePicker,
Container,
Aside,
Col,
Header,
Popover,
Main,
Dialog,
Checkbox,
CheckboxGroup,
Pagination,
Option,
Upload,
Tabs,
TabPane,
Form,
FormItem,
Divider,
Message,
Row,
ButtonGroup,
MessageBox,
Image,
Loading,
Tag,
Tooltip,
Switch,
Link,
BreadcrumbItem,
Slider,
DropdownMenu,
Dropdown,
Breadcrumb,
Avatar,
DropdownItem,
RadioButton,
RadioGroup,
OptionGroup,
Progress,
Timeline,
TimelineItem,
Card,
Notification,
Footer,
InputNumber
} from "element-ui";
Vue.use(Progress); Vue.use(Progress);
Vue.use(OptionGroup); Vue.use(OptionGroup);
Vue.use(Link); Vue.use(Link);
@ -154,16 +151,12 @@ Vue.prototype.$alert = MessageBox.alert;
// Vue.use(ElementUI); // Vue.use(ElementUI);
Vue.use(Vuex); Vue.use(Vuex);
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, { Vue.use(VueLazyload, {
loading: require('@/assets/loading.gif'), loading: require('@/assets/loading.gif'),
preLoad: 1 preLoad: 1
}); });
// 引入点击复制组件
import VueClipboard from 'vue-clipboard2'
VueClipboard.config.autoSetContainer = true; VueClipboard.config.autoSetContainer = true;
Vue.use(VueClipboard); Vue.use(VueClipboard);

@ -3,16 +3,8 @@ import Download from "@/Download";
import router from "@/router/download"; import router from "@/router/download";
import 'element-ui/lib/theme-chalk/index.css' import 'element-ui/lib/theme-chalk/index.css'
import { import {Button, Container, Divider, Input, Link, Main, Message} from "element-ui";
Button, import VueLazyload from 'vue-lazyload'
Input,
Container,
Main,
Message,
Link,
Divider
} from "element-ui";
Vue.use(Link); Vue.use(Link);
Vue.use(Input); Vue.use(Input);
@ -24,7 +16,6 @@ Vue.prototype.$message = Message;
Vue.config.productionTip = false; Vue.config.productionTip = false;
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, { Vue.use(VueLazyload, {
loading: require('./assets/loading.gif'), loading: require('./assets/loading.gif'),

@ -1,6 +1,6 @@
import Axios from 'axios' import Axios from 'axios'
import VueCookies from 'vue-cookies' import VueCookies from 'vue-cookies'
import router from "../router"; import router from "@/router";
// const https = require('https'); // const https = require('https');
const Base64 = require('js-base64').Base64; const Base64 = require('js-base64').Base64;

@ -26,7 +26,6 @@ const router = new VueRouter({
}, },
{ {
path: '/apps', path: '/apps',
// component: FirAppBase,
component: () => import("@/components/FirBase"), component: () => import("@/components/FirBase"),
children: [ children: [
@ -38,52 +37,38 @@ const router = new VueRouter({
, ,
{ {
path: ':id', path: ':id',
// component: FirAppInfosBase,
component: () => import("@/components/apps/FirAppInfosBase"), component: () => import("@/components/apps/FirAppInfosBase"),
children: [ children: [
{ {
path: '', path: '',
name: 'FirAppInfostimeline', name: 'FirAppInfostimeline',
// component: FirAppInfostimeline,
component: () => import("@/components/apps/FirAppInfostimeline"), component: () => import("@/components/apps/FirAppInfostimeline"),
} }
, ,
{ {
path: 'info', path: 'info',
name: 'FirAppInfosbaseinfo', name: 'FirAppInfosbaseinfo',
// component: FirAppInfosbaseinfo,
component: () => import("@/components/apps/FirAppInfosbaseinfo"), component: () => import("@/components/apps/FirAppInfosbaseinfo"),
}, },
{ {
path: 'security', path: 'security',
name: 'FirAppInfossecurity', name: 'FirAppInfossecurity',
// component: FirAppInfossecurity
component: () => import("@/components/apps/FirAppInfossecurity"), component: () => import("@/components/apps/FirAppInfossecurity"),
}, },
{ {
path: 'devices', path: 'devices',
name: 'FirAppInfosdevices', name: 'FirAppInfosdevices',
// component: FirAppInfosdevices
component: () => import("@/components/apps/FirAppInfosdevices"), component: () => import("@/components/apps/FirAppInfosdevices"),
}, },
{ {
path: 'combo', path: 'combo',
name: 'FirAppInfoscombo', name: 'FirAppInfoscombo',
// component: FirAppInfoscombo,
component: () => import("@/components/apps/FirAppInfoscombo"), component: () => import("@/components/apps/FirAppInfoscombo"),
}, },
{ {
path: 'supersign', path: 'supersign',
name: 'FirAppInfossupersign', name: 'FirAppInfossupersign',
// component: FirAppInfossupersign,
component: () => import("@/components/apps/FirAppInfossupersign"), component: () => import("@/components/apps/FirAppInfossupersign"),
} }
] ]
} }
@ -91,15 +76,11 @@ const router = new VueRouter({
}, },
{ {
path: '/user', path: '/user',
// component: FirAppBase,
component: () => import("@/components/FirBase"), component: () => import("@/components/FirBase"),
children: [ children: [
{ {
path: '', path: '',
// component: FirUserProfileBase,
component: () => import("@/components/user/FirUserProfileBase"), component: () => import("@/components/user/FirUserProfileBase"),
children: [ children: [
{ {
path: 'info', path: 'info',
@ -111,7 +92,6 @@ const router = new VueRouter({
path: 'setpasswd', path: 'setpasswd',
name: 'FirUserProfileChangePwd', name: 'FirUserProfileChangePwd',
meta: {label: '修改密码'}, meta: {label: '修改密码'},
// component: FirUserProfileChangePwd
component: () => import("@/components/user/FirUserProfileChangePwd"), component: () => import("@/components/user/FirUserProfileChangePwd"),
}, { }, {
@ -129,15 +109,12 @@ const router = new VueRouter({
{ {
path: '/login', path: '/login',
name: 'FirLogin', name: 'FirLogin',
// component: FirLogin
component: () => import("@/components/FirLogin"), component: () => import("@/components/FirLogin"),
}, },
{ {
path: '/supersign', path: '/user/supersign',
// component: FirAppBase,
component: () => import("@/components/FirBase"), component: () => import("@/components/FirBase"),
children: [ children: [
{ {
path: ':act', path: ':act',
@ -149,8 +126,7 @@ const router = new VueRouter({
] ]
}, },
{ {
path: '/storage', path: '/user/storage',
// component: FirAppBase,
component: () => import("@/components/FirBase"), component: () => import("@/components/FirBase"),
children: [ children: [
{ {
@ -163,7 +139,7 @@ const router = new VueRouter({
] ]
}, },
{ {
path: '/orders', path: '/user/orders',
component: () => import("@/components/FirBase"), component: () => import("@/components/FirBase"),
children: [ children: [
{ {
@ -178,14 +154,12 @@ const router = new VueRouter({
{ {
path: '/register', path: '/register',
name: 'FirRegist', name: 'FirRegist',
// component: FirRegist
component: () => import("@/components/FirRegist"), component: () => import("@/components/FirRegist"),
}, },
{ {
path: '/:short', path: '/:short',
name: 'FirDownload', name: 'FirDownload',
// component: FirDownload
component: () => import("@/components/FirDownload"), component: () => import("@/components/FirDownload"),
}, },

@ -171,7 +171,7 @@ export function uploadaliyunoss(file, certinfo, app, successcallback, processcal
} }
import {getuploadurl, loginFun, uploadimgs, uploadstorage} from '../restful' import {getuploadurl, loginFun, uploadimgs, uploadstorage} from '@/restful'
export function uploadlocalstorage(file, certinfo, app, successcallback, processcallback) { export function uploadlocalstorage(file, certinfo, app, successcallback, processcallback) {
uploadstorage(certinfo, file, successcallback, processcallback) uploadstorage(certinfo, file, successcallback, processcallback)

@ -1,4 +1,9 @@
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV) const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV);
const path = require('path');
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = { module.exports = {
pages: { pages: {
@ -66,6 +71,7 @@ module.exports = {
}) })
} }
config.resolve.alias.set('@',resolve("src"));
config.optimization.splitChunks({ config.optimization.splitChunks({
cacheGroups: { cacheGroups: {

Loading…
Cancel
Save