提交 4451f36b 编写于 作者: 张磊's avatar 张磊

auto commit

上级 40df5a43
#!/bin/bash
hasGit=`which git` # 判断是否存在git
msg=${1:-'auto commit'} # 获取终端输入的第一个参数,若为空则为auto commit
if [ ! $hasGit ];then
echo 'Please download git first!';
exit 1;
else
git fetch --all
result=`git symbolic-ref --short -q HEAD` # 获取分支名
current_id=`git log -n 1 release --pretty=format:"%H"`
git reset --soft $current_id
git add .
git commit -m "$msg"
echo "curBranch $result"
git push origin -f $result # 提交代码到github(修改了远程项目名)
fi
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
"build:test": "cross-env BUILD_ENV=test node build/build.js", "build:test": "cross-env BUILD_ENV=test node build/build.js",
"build:test2": "cross-env BUILD_ENV=test2 node build/build.js", "build:test2": "cross-env BUILD_ENV=test2 node build/build.js",
"build:uat": "cross-env BUILD_ENV=uat node build/build.js", "build:uat": "cross-env BUILD_ENV=uat node build/build.js",
"build:pro": "cross-env BUILD_ENV=pro node build/build.js" "build:pro": "cross-env BUILD_ENV=pro node build/build.js",
"push": "bash gitPush.sh"
}, },
"dependencies": { "dependencies": {
"@babel/polyfill": "^7.2.5", "@babel/polyfill": "^7.2.5",
......
...@@ -218,6 +218,7 @@ html,body{ ...@@ -218,6 +218,7 @@ html,body{
border: 1px solid #449284 !important; border: 1px solid #449284 !important;
opacity: 0.5; opacity: 0.5;
} }
// .el-button--default:focus, .el-button--default:hover { // .el-button--default:focus, .el-button--default:hover {
// color: #449284 !important; // color: #449284 !important;
// border-color: #449284 !important; // border-color: #449284 !important;
......
...@@ -41,3 +41,11 @@ export const getTowns = (params) => { ...@@ -41,3 +41,11 @@ export const getTowns = (params) => {
params: params, params: params,
}); });
}; };
// /*获取机构地址*/
export const getDetectTowns = (params) => {
return fetch({
url: getBaseUrl(`store/detect/address/province/city/${params.storeId || 0}/${params.addressId || 0}`),
method: "get",
});
};
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册