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";
export default {
name: "FirAppBase",
name: "FirBase",
components: {FirFooter, FirHeader},
data() {
return {
@ -33,7 +33,7 @@
},
mounted() {
let canvas = this.$refs.canvas;
show_beautpic(this, canvas);
show_beautpic(this, canvas, 200);
}, watch: {}
, methods: {
canvas_move(e) {

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

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

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

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

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

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

@ -153,27 +153,27 @@
<div class="cube">
<!--前面图片 -->
<div class="out_front">
<img src="../assets/imgs/1.png" class="pic">
<img src="../../assets/imgs/1.png" class="pic">
</div>
<!--后面图片 -->
<div class="out_back">
<img src="../assets/imgs/5.png" class="pic">
<img src="../../assets/imgs/5.png" class="pic">
</div>
<!--左面图片 -->
<div class="out_left">
<img src="../assets/imgs/6.png" class="pic">
<img src="../../assets/imgs/6.png" class="pic">
</div>
<!--右面图片 -->
<div class="out_right">
<img src="../assets/imgs/7.png" class="pic">
<img src="../../assets/imgs/7.png" class="pic">
</div>
<!--上面图片 -->
<div class="out_top">
<img src="../assets/imgs/8.png" class="pic">
<img src="../../assets/imgs/8.png" class="pic">
</div>
<!--下面图片 -->
<div class="out_bottom">
<img src="../assets/imgs/9.png" class="pic">
<img src="../../assets/imgs/9.png" class="pic">
</div>
<!--小正方体 -->
@ -473,7 +473,7 @@
</template>
<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 {
getScrollHeight,
getScrollTop,
@ -484,7 +484,7 @@
uploadaliyunoss,
uploadlocalstorage,
format_money, show_beautpic
} from "../utils";
} from "../../utils";
export default {
name: "FirApps",
@ -629,6 +629,13 @@
this.analyseappinfo.is_new = data.data.is_new;
this.analyseappinfo.binary_url = data.data.binary_url;
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 {
this.$message.error("上传token获取失败,请刷新重试")
}
@ -669,7 +676,7 @@
// eslint-disable-next-line no-unused-vars
this.timmer = setTimeout(data => {
let canvas = this.$refs.canvas;
show_beautpic(this, canvas, 999);
show_beautpic(this, canvas, 888, 0.8);
}, 100);
let file = dataURLtoFile(this.analyseappinfo.icon, this.analyseappinfo.png_key);
@ -1470,10 +1477,7 @@
.canvas {
position: absolute;
left: -0px;
margin-top: -60px;
height: 100%;
margin-top: -58px;
z-index: 999;
width: 100%;
}
</style>

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

@ -11,7 +11,7 @@
>
<el-row :gutter="8">
<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>
<el-link>用微信扫描二维码</el-link>
</el-col>
@ -223,7 +223,7 @@
<script>
import {my_order, userinfos} from "../restful";
import {my_order, userinfos} from "../../restful";
export default {
name: "FirUserOrders",

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

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

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

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

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

@ -27,26 +27,26 @@ const router = new VueRouter({
{
path: '/apps',
// component: FirAppBase,
component: () => import("@/components/FirAppBase"),
component: () => import("@/components/FirBase"),
children: [
{
path: '',
name: 'FirApps',
component: () => import("@/components/FirApps"),
component: () => import("@/components/apps/FirApps"),
}
,
{
path: ':id',
// component: FirAppInfosBase,
component: () => import("@/components/FirAppInfosBase"),
component: () => import("@/components/apps/FirAppInfosBase"),
children: [
{
path: '',
name: 'FirAppInfostimeline',
// component: FirAppInfostimeline,
component: () => import("@/components/FirAppInfostimeline"),
component: () => import("@/components/apps/FirAppInfostimeline"),
}
,
@ -54,35 +54,35 @@ const router = new VueRouter({
path: 'info',
name: 'FirAppInfosbaseinfo',
// component: FirAppInfosbaseinfo,
component: () => import("@/components/FirAppInfosbaseinfo"),
component: () => import("@/components/apps/FirAppInfosbaseinfo"),
},
{
path: 'security',
name: 'FirAppInfossecurity',
// component: FirAppInfossecurity
component: () => import("@/components/FirAppInfossecurity"),
component: () => import("@/components/apps/FirAppInfossecurity"),
},
{
path: 'devices',
name: 'FirAppInfosdevices',
// component: FirAppInfosdevices
component: () => import("@/components/FirAppInfosdevices"),
component: () => import("@/components/apps/FirAppInfosdevices"),
},
{
path: 'combo',
name: 'FirAppInfoscombo',
// component: FirAppInfoscombo,
component: () => import("@/components/FirAppInfoscombo"),
component: () => import("@/components/apps/FirAppInfoscombo"),
},
{
path: 'supersign',
name: 'FirAppInfossupersign',
// component: FirAppInfossupersign,
component: () => import("@/components/FirAppInfossupersign"),
component: () => import("@/components/apps/FirAppInfossupersign"),
}
]
@ -92,33 +92,33 @@ const router = new VueRouter({
{
path: '/user',
// component: FirAppBase,
component: () => import("@/components/FirAppBase"),
component: () => import("@/components/FirBase"),
children: [
{
path: '',
// component: FirUserProfileBase,
component: () => import("@/components/FirUserProfileBase"),
component: () => import("@/components/user/FirUserProfileBase"),
children: [
{
path: 'info',
name: 'FirUserProfileInfo',
meta: {label: '个人资料'},
component: () => import("@/components/FirUserProfileInfo"),
component: () => import("@/components/user/FirUserProfileInfo"),
}, {
path: 'setpasswd',
name: 'FirUserProfileChangePwd',
meta: {label: '修改密码'},
// component: FirUserProfileChangePwd
component: () => import("@/components/FirUserProfileChangePwd"),
component: () => import("@/components/user/FirUserProfileChangePwd"),
}, {
path: 'certification',
name: 'FirUserProfileCertification',
meta: {label: '实名认证'},
component: () => import("@/components/FirUserProfileCertification"),
component: () => import("@/components/user/FirUserProfileCertification"),
},
]
@ -136,14 +136,14 @@ const router = new VueRouter({
{
path: '/supersign',
// component: FirAppBase,
component: () => import("@/components/FirAppBase"),
component: () => import("@/components/FirBase"),
children: [
{
path: ':act',
name: 'FirSuperSignBase',
meta: {label: '超级签名'},
component: () => import("@/components/FirSuperSignBase"),
component: () => import("@/components/user/FirSuperSignBase"),
}
]
@ -151,26 +151,26 @@ const router = new VueRouter({
{
path: '/storage',
// component: FirAppBase,
component: () => import("@/components/FirAppBase"),
component: () => import("@/components/FirBase"),
children: [
{
path: ':act',
name: 'FirUserStorage',
meta: {label: '存储管理'},
component: () => import("@/components/FirUserStorage"),
component: () => import("@/components/user/FirUserStorage"),
}
]
},
{
path: '/orders',
component: () => import("@/components/FirAppBase"),
component: () => import("@/components/FirBase"),
children: [
{
path: '',
name: 'FirUserOrders',
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
}
export function show_beautpic(father, canvas, nb = 666) {
export function show_beautpic(father, canvas, nb = 666, sp = 0.3) {
let ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
@ -359,7 +359,7 @@ export function show_beautpic(father, canvas, nb = 666) {
let dots = {
nb: nb,
distance: 100,
d_radius: 150,
d_radius: 180,
array: []
};
@ -438,8 +438,8 @@ export function show_beautpic(father, canvas, nb = 666) {
}
function connectDots() {
for (let i = 0; i < dots.nb * 0.3; i++) {
for (let j = 0; j < dots.nb * 0.3; j++) {
for (let i = 0; i < dots.nb * sp; i++) {
for (let j = 0; j < dots.nb * sp; j++) {
let i_dot = dots.array[i];
let j_dot = dots.array[j];

Loading…
Cancel
Save