Commit b7254392 by huahua

提交

parent 521633c7
uni_modules
\ No newline at end of file
module.exports = {
// 指定换行的行长<int>,默认80
printWidth: 80,
// 指定每个缩进级别的空格数<int>,默认2
tabWidth: 2,
// 用制表符而不是空格缩进<bool>,默认false
useTabs: false,
// 在语句末尾添加分号<bool>,默认true
semi: true,
// 使用单引号而不是双引号<bool>,默认false
singleQuote: false,
// object对象中key值是否加引号<as-needed|consistent|preserve>,默认as-needed
// as-needed-仅在需要时在对象属性周围添加引号
// consistent-如果一个对象中至少有一个属性需要引号,所有属性添加引号
// preserve-保留对象属性中用户输入使用的引号
quoteProps: "as-needed",
// 在 JSX 中使用单引号而不是双引号<bool>,默认false
jsxSingleQuote: false,
// 在多行逗号分隔的句法结构中尽可能打印尾随逗号<es5|none|all>,默认es5
// es5-在 ES5 中有效的尾随逗号(对象、数组等),TypeScript 的类型参数中没有尾随逗号
// none-没有尾随逗号
// all-尽可能以逗号结尾(包括函数参数和调用)。要运行以这种方式格式化的 JavaScript 代码需要一个支持 ES2017(Node.js 8+ 或现代浏览器)或下层编译的引擎。这还会在 TypeScript 的类型参数中启用尾随逗号(自 2018 年 1 月发布的 TypeScript 2.7 起支持)
trailingComma: "es5",
// 对象字面量中括号之间的空格<bool>,默认true
bracketSpacing: true,
// 将>放在多行 HTML(HTML、JSX、Vue、Angular)元素最后一行的末尾,而不是单独放在下一行(不适用于自关闭元素)<bool>,默认false
// true:
// <button
// className="prettier-class"
// id="prettier-id"
// onClick={this.handleClick}>
// Click Here
// </button>
// false:
// <button
// className="prettier-class"
// id="prettier-id"
// onClick={this.handleClick}
// >
// Click Here
// </button>
bracketSameLine: true,
// 在唯一的箭头函数参数周围包含括号<always|avoid>,默认always
// always-始终包含括号
// avoid-尽可能省略括号
arrowParens: "always",
// Prettier 可以限制自己只格式化在文件顶部包含特殊注释(称为 pragma)的文件。这在逐渐将大型、未格式化的代码库过渡到 Prettier 时非常有用<bool>,默认false
requirePragma: false,
// Prettier可以在文件的顶部插入一个 @format 的特殊注释,以表明该文件已经被Prettier格式化过了。在使用 --require-pragma 参数处理一连串的文件时这个功能将十分有用。如果文件顶部已经有一个doclock,这个选项将新建一行注释,并打上 @format 标记<bool>,默认false
insertPragma: false,
// 超过最大宽度是否换行<always|never|preserve>,默认preserve
// always-如果超过最大宽度换行
// never-不要换行
// preserve-按原样显示
proseWrap: "preserve",
// 指定 HTML、Vue、Angular 和 Handlebars 的全局空格敏感度<css|strict|ignore>,默认css
// css-遵循CSS属性的默认值
// strict-所有标签周围的空格(或缺少空格)被认为是重要的
// ignore-所有标签周围的空格(或缺少空格)被认为是无关紧要的
htmlWhitespaceSensitivity: "ignore",
// vue文件script和style标签中是否缩进<bool>,默认false
vueIndentScriptAndStyle: false,
// 行尾换行符<lf|crlf|cr|auto>,默认lf
endOfLine: "lf",
// 控制 Prettier 是否格式化嵌入在文件中的引用代码<off|auto>,默认auto
// auto–如果 Prettier 可以自动识别,则格式化嵌入代码
// off-从不自动格式化嵌入代码
embeddedLanguageFormatting: "auto",
// 在 HTML、Vue 和 JSX 中强制执行每行单个属性<bool>,默认false
singleAttributePerLine: false,
};
<template> <template>
<view class="full-width content-color full-height" style="overflow: hidden; margin: auto;" :style="{width:isShowPc?$base.isPcWidth + 'px':'100%'}"> <view class="full-width content-color full-height" style="overflow: hidden; margin: auto;" :style="{width:isShowPc?$base.isPcWidth + 'px':'100%'}">
<!-- 裁剪图片 -->
<!-- <view class="full-width content-color full-height" style="background: black;" v-show="state">
<kpsImageCutter @ok="onok" @cancel="oncancle" ref="index" :fixed="false" :properties="properties"
:widthAndHeightScan="ruleHeightScale" :windowWidth="data.editorWidth" :windowHeight="data.editorHeight"
:editory="editory">
</kpsImageCutter>
</view>-->
<!-- :style="{left:isShowPc?'calc(50% - '+ ($base.isPcWidth / 2 - 10) +'px)':'20upx'}" -->
<view v-if="loadTitleHeight" @click="backUpperPage()" <view v-if="loadTitleHeight" @click="backUpperPage()"
style="position: absolute; z-index: 9997; width: 150upx; left: 20upx; top: 15px;align-items: center; style="position: absolute; z-index: 9997; width: 150upx; left: 20upx; top: 15px;align-items: center;
display: flex; display: flex;
......
// 开发版 // 开发版
//const baseURL = "http://bake.refinecolor.com/api/" const baseURL = "http://bake.refinecolor.com/api/"
//正式服:bake.colorpark.cn //正式服:bake.colorpark.cn
//测试服:bake.refinecolor.com //测试服:bake.refinecolor.com
//正式版 //正式版
const baseURL = "https://bake.colorpark.cn/api/" //const baseURL = "https://bake.colorpark.cn/api/";
//正式服: //正式服:
//https://tprint.colorpark.cn/ 改成 https://h5.colorpark.cn/api/ //https://tprint.colorpark.cn/ 改成 https://h5.colorpark.cn/api/
...@@ -13,10 +13,10 @@ const baseURL = "https://bake.colorpark.cn/api/" ...@@ -13,10 +13,10 @@ const baseURL = "https://bake.colorpark.cn/api/"
//http://h5.refinecolor.com/api/ //http://h5.refinecolor.com/api/
const Env = { const Env = {
getDevBaseURL: () => baseURL, getDevBaseURL: () => baseURL,
getBaseURL: () => baseURL getBaseURL: () => baseURL,
} };
export default Env export default Env;
// 测试服:100024 // 测试服:100024
// 正式服:100069 // 正式服:100069
// 正式服:100072 // 正式服:100072
...@@ -26,4 +26,4 @@ export default Env ...@@ -26,4 +26,4 @@ export default Env
//例子:http:/bake.colorpark.cn/#/?language=en-us&machine_id=100160 //例子:http:/bake.colorpark.cn/#/?language=en-us&machine_id=100160
//http:/bake.refinecolor.com/#/?machine_id=7122001 //测试 //http:/bake.refinecolor.com/#/?machine_id=7122001 //测试
////正式 ////正式
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment