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

da ka

上级 b6a02ab3
#!/bin/bash #!/bin/bash
hasGit=`which git` # 判断是否存在git hasGit=`which git` # 判断是否存在git
msg=${1:-'auto commit'} # 获取终端输入的第一个参数,若为空则为auto commit msg=${1:-'auto commit'} # 获取终端输入的第一个参数,若为空则为auto commit
originBranch = 'origin/develop'
if [ ! $hasGit ];then if [ ! $hasGit ];then
echo 'Please download git first!'; echo 'Please download git first!';
exit 1; exit 1;
else else
git remote update
git fetch --all git fetch --all
result=`git symbolic-ref --short -q HEAD` # 获取分支名 result=`git symbolic-ref --short -q HEAD` # 获取分支名
current_id=`git log -n 1 origin/release --pretty=format:"%H"` diff=`git diff $result $originBranch | grep -i ">>>>>>"`
empty=""
if test $diff -eq $empty
then
echo "没有冲突,继续"
current_id=`git log -n 1 $originBranch --pretty=format:"%H"`
git reset --soft $current_id git reset --soft $current_id
git add . git add .
git commit -m "$msg" git commit -m "$msg"
echo "curBranch $result" echo "curBranch $result"
git push -f origin $result # 提交代码到github(修改了远程项目名) git push origin --force-with-lease $result # 提交代码到github(修改了远程项目名)
else
git add .
git commit -m "auto commit"
git push origin $result
echo "本地分支和origin/release存在冲突"
echo "result: $result $diff"
fi
fi fi
\ No newline at end of file
...@@ -112,9 +112,11 @@ export default { ...@@ -112,9 +112,11 @@ export default {
// 获取机构列表 // 获取机构列表
getScheduling() { getScheduling() {
const {projectEquityNo, hospitalId} = this; const {projectEquityNo, hospitalId} = this;
if(projectEquityNo && hospitalId) {
getScheduling({ projectEquityNo, hospitalId }).then(res => { getScheduling({ projectEquityNo, hospitalId }).then(res => {
this.timsArray = res.data; this.timsArray = res.data;
}); });
}
}, },
selectItem() { selectItem() {
if (this.selectTimes === '') { if (this.selectTimes === '') {
......
import Cookies from 'js-cookie';
const VUE_APP_ENV = process.env.VUE_APP_ENV;
const VUE_APP_DOMAIN = process.env.VUE_APP_DOMAIN;
const localDomain = VUE_APP_ENV === 'development' ? window.location.hostname : VUE_APP_DOMAIN;
export const setCookie = (
cname,
cvalue,
params = {
path: '/',
expires: 7,
domain: localDomain,
},
) => {
delCookie(cname);
Cookies.set(cname, cvalue, params);
};
export const getCookie = (
cname,
params = { path: '/', domain: localDomain },
) => {
const data = Cookies.get(cname, params);
return data;
};
export const delCookie = (cname) => {
Cookies.remove(cname, {
path: '/',
domain: localDomain,
});
Cookies.remove(cname, {
path: '/',
domain: '.yunqueyi.com',
});
Cookies.remove(cname, {
path: '/',
});
};
import * as cookieFun from './cookieFun';
export const setCookie = cookieFun.setCookie;
export const getCookie = cookieFun.getCookie;
export const delCookie = cookieFun.delCookie;
export const formatDate = (datetime) => { export const formatDate = (datetime) => {
var date = new Date(datetime); // 时间戳为10位需*1000,时间戳为13位的话不需乘1000 var date = new Date(datetime); // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
var year = date.getFullYear(), var year = date.getFullYear(),
......
...@@ -57,9 +57,9 @@ export default { ...@@ -57,9 +57,9 @@ export default {
web_data:{projectEquityNo: projectEquityNo, externalOrderNo: n}, web_data:{projectEquityNo: projectEquityNo, externalOrderNo: n},
}); });
this.initMap(data); this.initMap(data);
} }
if (this.query.referer) { if (this.query.referer) {
this.$loading.show();
const url = this.query.referer; const url = this.query.referer;
const yunOrderNo = url.split('@@')[1]; const yunOrderNo = url.split('@@')[1];
console.log('this.query.referer', yunOrderNo); console.log('this.query.referer', yunOrderNo);
...@@ -73,7 +73,11 @@ export default { ...@@ -73,7 +73,11 @@ export default {
component_tag: '7802854#0#0#中转页', component_tag: '7802854#0#0#中转页',
web_data:{yunOrderNo: yunOrderNo}, web_data:{yunOrderNo: yunOrderNo},
}); });
this.initMap(data); const that = this;
setTimeout(function () {
that.initMap(data);
}, 2000);
} }
}, },
......
.insurance-quickDetection-detail { .insurance-quickDetection-detail-demo {
background-color: #f5f6f8; background-color: #f5f6f8;
padding-top: 10px;
min-height: 100vh; min-height: 100vh;
width: 100%; width: 100%;
position: relative; position: relative;
......
<template> <template>
<div class="insurance-quickDetection-detail"> <div class="insurance-quickDetection-detail-demo">
<page-model <page-model
v-if="picaWechat != 'wechat'" v-if="picaWechat != 'wechat'"
ref="PageModel" ref="PageModel"
...@@ -177,7 +177,8 @@ ...@@ -177,7 +177,8 @@
class="result-list-tips" class="result-list-tips"
> >
<div class="list-tips-item"> <div class="list-tips-item">
1.请将带有阳性检测结果的试剂盒和包装盒上的条码一起拍照上传,确保两个元素在同一张照片里.<span @click="showSample(2)">示例图</span> 1.请将带有阳性检测结果的试剂盒和包装盒上的条码一起拍照上传,确保两个元素在同一张照片里.
<!-- <span @click="showSample(2)">示例图</span>-->
</div> </div>
<div <div
class="list-tips-item" class="list-tips-item"
...@@ -323,13 +324,9 @@ export default { ...@@ -323,13 +324,9 @@ export default {
this.saveOrder(); this.saveOrder();
}, },
saveOrder() { saveOrder() {
const { yunOrderNo, externalOrderNo} = this.$route.query; const { yunOrderNo} = this.$route.query;
const data = {}; const data = {};
if (this.result) { if (this.result) {
// const data = {
// yunOrderNo,
// resultFlag:this.result
// };
data.yunOrderNo = yunOrderNo; data.yunOrderNo = yunOrderNo;
data.resultFlag = this.result; data.resultFlag = this.result;
} else { } else {
...@@ -343,12 +340,12 @@ export default { ...@@ -343,12 +340,12 @@ export default {
hospitalId: 139136, hospitalId: 139136,
idType:1, idType:1,
hospitalName:'人民医院和平社区健康服务中心', hospitalName:'人民医院和平社区健康服务中心',
yunOrderNo:yunOrderNo, yunOrderNoOne:yunOrderNo,
idCard: item.idCard, idCard: item.idCard,
externalOrderNo, externalOrderNo: 'SZ' + Math.floor(new Date().getTime() / 1000),
projectEquityNo:this.projectEquityNo, projectEquityNo:this.projectEquityNo,
mobilePhone: item.phoneNum, mobilePhone: item.phoneNum,
patientName: item.name patientName: item.name,
}; };
createOrder(data).then(res => { createOrder(data).then(res => {
console.log(res); console.log(res);
......
...@@ -17,12 +17,13 @@ ...@@ -17,12 +17,13 @@
</div> </div>
</div> </div>
<div class="bottom-btn"> <div class="bottom-btn">
<div <van-button
class="btn" class="btn"
:disabled="!person"
@click="toPage" @click="toPage"
> >
领取权益 领取权益
</div> </van-button>
</div> </div>
</div> </div>
<van-popup <van-popup
...@@ -30,7 +31,7 @@ ...@@ -30,7 +31,7 @@
closeable closeable
round round
position="bottom" position="bottom"
:style="{ height: '40%' }" :style="{ height: '270px' }"
> >
<div class="popup-title"> <div class="popup-title">
选择被保险人 选择被保险人
...@@ -65,13 +66,14 @@ ...@@ -65,13 +66,14 @@
</van-cell-group> </van-cell-group>
</van-radio-group> </van-radio-group>
</div> </div>
<div <van-button
class="popup-btn" class="popup-btn"
:disabled="!person"
@click="show=false @click="show=false
" "
> >
领取权益 领取权益
</div> </van-button>
</van-popup> </van-popup>
</div> </div>
</template> </template>
...@@ -88,13 +90,13 @@ export default { ...@@ -88,13 +90,13 @@ export default {
id:1, id:1,
name: '陈琳', name: '陈琳',
phoneNum: '15966877677', phoneNum: '15966877677',
idCard:'610321********0429' idCard:'110101197109017455'
}, },
{ {
id:2, id:2,
name: '刘鑫琳', name: '刘鑫琳',
phoneNum: '15966877677', phoneNum: '15966877677',
idCard:'610321********0429' idCard:'110101197109014051'
}, },
] ]
}; };
...@@ -170,6 +172,7 @@ export default { ...@@ -170,6 +172,7 @@ export default {
background: #FFFFFF; background: #FFFFFF;
box-shadow: inset 0px 1px 0px 0px #E9E9E9; box-shadow: inset 0px 1px 0px 0px #E9E9E9;
overflow: hidden; overflow: hidden;
text-align: center;
.btn{ .btn{
width: 351px; width: 351px;
height: 40px; height: 40px;
...@@ -235,17 +238,17 @@ export default { ...@@ -235,17 +238,17 @@ export default {
} }
} }
.popup-btn{ .popup-btn{
margin: 4px auto;
width: 351px; width: 351px;
height: 40px; height: 40px;
background: #00BDA5; background: #00BDA5;
border-radius: 20px; border-radius: 20px;
font-size: 16px; font-size: 16px;
text-align: center; text-align: center;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600; font-weight: 600;
color: #FFFFFF; color: #FFFFFF;
line-height: 40px; line-height: 40px;
margin: 0 auto;
display: block;
} }
/deep/ .van-radio__icon--checked .van-icon{ /deep/ .van-radio__icon--checked .van-icon{
background: #00bda5; background: #00bda5;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册