format code

pull/16/head
nineven 4 years ago
parent 270e47999c
commit c67b0d48ec
  1. 4
      fir_client/src/components/FirBase.vue
  2. 2
      fir_client/src/components/apps/FirAppInfosBase.vue
  3. 4
      fir_client/src/components/apps/FirAppInfosbaseinfo.vue
  4. 2
      fir_client/src/components/apps/FirAppInfoscombo.vue
  5. 0
      fir_client/src/components/apps/FirAppInfosdevices.vue
  6. 4
      fir_client/src/components/apps/FirAppInfossecurity.vue
  7. 4
      fir_client/src/components/apps/FirAppInfossupersign.vue
  8. 2
      fir_client/src/components/apps/FirAppInfostimeline.vue
  9. 30
      fir_client/src/components/apps/FirApps.vue
  10. 4
      fir_client/src/components/user/FirSuperSignBase.vue
  11. 4
      fir_client/src/components/user/FirUserOrders.vue
  12. 4
      fir_client/src/components/user/FirUserProfileBase.vue
  13. 4
      fir_client/src/components/user/FirUserProfileCertification.vue
  14. 2
      fir_client/src/components/user/FirUserProfileChangePwd.vue
  15. 4
      fir_client/src/components/user/FirUserProfileInfo.vue
  16. 4
      fir_client/src/components/user/FirUserStorage.vue
  17. 40
      fir_client/src/router/index.js
  18. 8
      fir_client/src/utils/index.js

@ -24,7 +24,7 @@
import {show_beautpic,} from "../utils"; import {show_beautpic,} from "../utils";
export default { export default {
name: "FirAppBase", name: "FirBase",
components: {FirFooter, FirHeader}, components: {FirFooter, FirHeader},
data() { data() {
return { return {
@ -33,7 +33,7 @@
}, },
mounted() { mounted() {
let canvas = this.$refs.canvas; let canvas = this.$refs.canvas;
show_beautpic(this, canvas); show_beautpic(this, canvas, 200);
}, watch: {} }, watch: {}
, methods: { , methods: {
canvas_move(e) { canvas_move(e) {

@ -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 {getapps, apputils} 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 {releaseapputils, getdownloadurl} 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,7 +473,7 @@
</template> </template>
<script> <script>
import {getapps, apputils, analyseApps, getuploadurl, get_package_prices, my_order} from "../restful"; import {getapps, apputils, analyseApps, getuploadurl, get_package_prices, my_order} from "../../restful";
import { import {
getScrollHeight, getScrollHeight,
getScrollTop, getScrollTop,
@ -484,7 +484,7 @@
uploadaliyunoss, uploadaliyunoss,
uploadlocalstorage, uploadlocalstorage,
format_money, show_beautpic format_money, show_beautpic
} from "../utils"; } from "../../utils";
export default { export default {
name: "FirApps", name: "FirApps",
@ -629,6 +629,13 @@
this.analyseappinfo.is_new = data.data.is_new; this.analyseappinfo.is_new = data.data.is_new;
this.analyseappinfo.binary_url = data.data.binary_url; this.analyseappinfo.binary_url = data.data.binary_url;
this.willuploadApp = true; this.willuploadApp = true;
// eslint-disable-next-line no-unused-vars
this.timmer = setTimeout(data => {
let canvas = this.$refs.canvas;
show_beautpic(this, canvas, 666, 0.8);
}, 100);
} else { } else {
this.$message.error("上传token获取失败,请刷新重试") this.$message.error("上传token获取失败,请刷新重试")
} }
@ -669,7 +676,7 @@
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
this.timmer = setTimeout(data => { this.timmer = setTimeout(data => {
let canvas = this.$refs.canvas; let canvas = this.$refs.canvas;
show_beautpic(this, canvas, 999); show_beautpic(this, canvas, 888, 0.8);
}, 100); }, 100);
let file = dataURLtoFile(this.analyseappinfo.icon, this.analyseappinfo.png_key); let file = dataURLtoFile(this.analyseappinfo.icon, this.analyseappinfo.png_key);
@ -1470,10 +1477,7 @@
.canvas { .canvas {
position: absolute; position: absolute;
left: -0px; margin-top: -58px;
margin-top: -60px;
height: 100%;
z-index: 999; z-index: 999;
width: 100%;
} }
</style> </style>

@ -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 {removeAaary, IsNum} 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 {userinfos, getuserpicurl} 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 {userinfos, getAuthcTokenFun, registerFun} 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",

@ -27,26 +27,26 @@ const router = new VueRouter({
{ {
path: '/apps', path: '/apps',
// component: FirAppBase, // component: FirAppBase,
component: () => import("@/components/FirAppBase"), component: () => import("@/components/FirBase"),
children: [ children: [
{ {
path: '', path: '',
name: 'FirApps', name: 'FirApps',
component: () => import("@/components/FirApps"), component: () => import("@/components/apps/FirApps"),
} }
, ,
{ {
path: ':id', path: ':id',
// component: FirAppInfosBase, // component: FirAppInfosBase,
component: () => import("@/components/FirAppInfosBase"), component: () => import("@/components/apps/FirAppInfosBase"),
children: [ children: [
{ {
path: '', path: '',
name: 'FirAppInfostimeline', name: 'FirAppInfostimeline',
// component: FirAppInfostimeline, // component: FirAppInfostimeline,
component: () => import("@/components/FirAppInfostimeline"), component: () => import("@/components/apps/FirAppInfostimeline"),
} }
, ,
@ -54,35 +54,35 @@ const router = new VueRouter({
path: 'info', path: 'info',
name: 'FirAppInfosbaseinfo', name: 'FirAppInfosbaseinfo',
// component: FirAppInfosbaseinfo, // component: FirAppInfosbaseinfo,
component: () => import("@/components/FirAppInfosbaseinfo"), component: () => import("@/components/apps/FirAppInfosbaseinfo"),
}, },
{ {
path: 'security', path: 'security',
name: 'FirAppInfossecurity', name: 'FirAppInfossecurity',
// component: FirAppInfossecurity // component: FirAppInfossecurity
component: () => import("@/components/FirAppInfossecurity"), component: () => import("@/components/apps/FirAppInfossecurity"),
}, },
{ {
path: 'devices', path: 'devices',
name: 'FirAppInfosdevices', name: 'FirAppInfosdevices',
// component: FirAppInfosdevices // component: FirAppInfosdevices
component: () => import("@/components/FirAppInfosdevices"), component: () => import("@/components/apps/FirAppInfosdevices"),
}, },
{ {
path: 'combo', path: 'combo',
name: 'FirAppInfoscombo', name: 'FirAppInfoscombo',
// component: FirAppInfoscombo, // component: FirAppInfoscombo,
component: () => import("@/components/FirAppInfoscombo"), component: () => import("@/components/apps/FirAppInfoscombo"),
}, },
{ {
path: 'supersign', path: 'supersign',
name: 'FirAppInfossupersign', name: 'FirAppInfossupersign',
// component: FirAppInfossupersign, // component: FirAppInfossupersign,
component: () => import("@/components/FirAppInfossupersign"), component: () => import("@/components/apps/FirAppInfossupersign"),
} }
] ]
@ -92,33 +92,33 @@ const router = new VueRouter({
{ {
path: '/user', path: '/user',
// component: FirAppBase, // component: FirAppBase,
component: () => import("@/components/FirAppBase"), component: () => import("@/components/FirBase"),
children: [ children: [
{ {
path: '', path: '',
// component: FirUserProfileBase, // component: FirUserProfileBase,
component: () => import("@/components/FirUserProfileBase"), component: () => import("@/components/user/FirUserProfileBase"),
children: [ children: [
{ {
path: 'info', path: 'info',
name: 'FirUserProfileInfo', name: 'FirUserProfileInfo',
meta: {label: '个人资料'}, meta: {label: '个人资料'},
component: () => import("@/components/FirUserProfileInfo"), component: () => import("@/components/user/FirUserProfileInfo"),
}, { }, {
path: 'setpasswd', path: 'setpasswd',
name: 'FirUserProfileChangePwd', name: 'FirUserProfileChangePwd',
meta: {label: '修改密码'}, meta: {label: '修改密码'},
// component: FirUserProfileChangePwd // component: FirUserProfileChangePwd
component: () => import("@/components/FirUserProfileChangePwd"), component: () => import("@/components/user/FirUserProfileChangePwd"),
}, { }, {
path: 'certification', path: 'certification',
name: 'FirUserProfileCertification', name: 'FirUserProfileCertification',
meta: {label: '实名认证'}, meta: {label: '实名认证'},
component: () => import("@/components/FirUserProfileCertification"), component: () => import("@/components/user/FirUserProfileCertification"),
}, },
] ]
@ -136,14 +136,14 @@ const router = new VueRouter({
{ {
path: '/supersign', path: '/supersign',
// component: FirAppBase, // component: FirAppBase,
component: () => import("@/components/FirAppBase"), component: () => import("@/components/FirBase"),
children: [ children: [
{ {
path: ':act', path: ':act',
name: 'FirSuperSignBase', name: 'FirSuperSignBase',
meta: {label: '超级签名'}, meta: {label: '超级签名'},
component: () => import("@/components/FirSuperSignBase"), component: () => import("@/components/user/FirSuperSignBase"),
} }
] ]
@ -151,26 +151,26 @@ const router = new VueRouter({
{ {
path: '/storage', path: '/storage',
// component: FirAppBase, // component: FirAppBase,
component: () => import("@/components/FirAppBase"), component: () => import("@/components/FirBase"),
children: [ children: [
{ {
path: ':act', path: ':act',
name: 'FirUserStorage', name: 'FirUserStorage',
meta: {label: '存储管理'}, meta: {label: '存储管理'},
component: () => import("@/components/FirUserStorage"), component: () => import("@/components/user/FirUserStorage"),
} }
] ]
}, },
{ {
path: '/orders', path: '/orders',
component: () => import("@/components/FirAppBase"), component: () => import("@/components/FirBase"),
children: [ children: [
{ {
path: '', path: '',
name: 'FirUserOrders', name: 'FirUserOrders',
meta: {label: '订单详情'}, meta: {label: '订单详情'},
component: () => import("@/components/FirUserOrders"), component: () => import("@/components/user/FirUserOrders"),
} }
] ]

@ -344,7 +344,7 @@ export function format_money(s, n = 2) {
return new_format_money return new_format_money
} }
export function show_beautpic(father, canvas, nb = 666) { export function show_beautpic(father, canvas, nb = 666, sp = 0.3) {
let ctx = canvas.getContext('2d'); let ctx = canvas.getContext('2d');
canvas.width = window.innerWidth; canvas.width = window.innerWidth;
canvas.height = window.innerHeight; canvas.height = window.innerHeight;
@ -359,7 +359,7 @@ export function show_beautpic(father, canvas, nb = 666) {
let dots = { let dots = {
nb: nb, nb: nb,
distance: 100, distance: 100,
d_radius: 150, d_radius: 180,
array: [] array: []
}; };
@ -438,8 +438,8 @@ export function show_beautpic(father, canvas, nb = 666) {
} }
function connectDots() { function connectDots() {
for (let i = 0; i < dots.nb * 0.3; i++) { for (let i = 0; i < dots.nb * sp; i++) {
for (let j = 0; j < dots.nb * 0.3; j++) { for (let j = 0; j < dots.nb * sp; j++) {
let i_dot = dots.array[i]; let i_dot = dots.array[i];
let j_dot = dots.array[j]; let j_dot = dots.array[j];

Loading…
Cancel
Save