|
|
|
|
@ -17,8 +17,8 @@
|
|
|
|
|
<view class="boxTitle">当日预定
|
|
|
|
|
</view>
|
|
|
|
|
<view class="boxContentList">
|
|
|
|
|
<view class="boxItem" :class="{ boxItem_on: mod.isChecked}" @click="toChange" data-type="t" :data-item="mod" :data-index="index"
|
|
|
|
|
v-for="(mod,index) in list.t" :key="index">
|
|
|
|
|
<view class="boxItem" :class="{ boxItem_on: mod.isChecked}" @click="toChange" data-type="t"
|
|
|
|
|
:data-item="mod" :data-index="index" v-for="(mod,index) in list.t" :key="index">
|
|
|
|
|
<view class="boxItemLeft">
|
|
|
|
|
<image style="width: 149rpx;height: 149rpx;border-radius: 149rpx;" :src="mod.avatar_url">
|
|
|
|
|
</view>
|
|
|
|
|
@ -45,12 +45,15 @@
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="boxContentFooter" @click="toMore">
|
|
|
|
|
<view class="boxContentFooterBtn">查看更多 > </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="boxTitle">明日预定
|
|
|
|
|
</view>
|
|
|
|
|
<view class="boxContentList">
|
|
|
|
|
<view class="boxItem" :class="{ boxItem_on: mod.isChecked}" @click="toChange" :data-item="mod" :data-index="index" data-type="n"
|
|
|
|
|
v-for="(mod,index) in list.n" :key="index">
|
|
|
|
|
<view class="boxItem" :class="{ boxItem_on: mod.isChecked}" @click="toChange" :data-item="mod"
|
|
|
|
|
:data-index="index" data-type="n" v-for="(mod,index) in list.n" :key="index">
|
|
|
|
|
<view class="boxItemLeft">
|
|
|
|
|
<image style="width: 149rpx;height: 149rpx;border-radius: 149rpx;" :src="mod.avatar_url">
|
|
|
|
|
</view>
|
|
|
|
|
@ -78,14 +81,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="boxContentFooter" @click="toMore">
|
|
|
|
|
<view class="boxContentFooterBtn">查看更多 > </view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="footer">
|
|
|
|
|
<view class="footerLeft">
|
|
|
|
|
<text>单价:¥180/ 天</text>
|
|
|
|
|
<text>单价:¥{{selectPrice==0?buyInfo.selectProduct.minPrice:selectPrice}}/ 天</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="footerRight">
|
|
|
|
|
<view class="footerRight" @click="toStep" :class="{footerRightOn:buyInfo.paramedic_id!=''}">
|
|
|
|
|
<text>继续</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -102,6 +107,7 @@
|
|
|
|
|
t: [],
|
|
|
|
|
n: []
|
|
|
|
|
},
|
|
|
|
|
selectPrice: 0,
|
|
|
|
|
buyInfo: {
|
|
|
|
|
"selectArea": "住院部 一楼(51急诊病区)",
|
|
|
|
|
"selectbed": "101-31床",
|
|
|
|
|
@ -131,7 +137,8 @@
|
|
|
|
|
"maxPrice": 440
|
|
|
|
|
},
|
|
|
|
|
"selectProjectID": 3,
|
|
|
|
|
"selectedProject": "五金中医院"
|
|
|
|
|
"selectedProject": "五金中医院",
|
|
|
|
|
"paramedic_id": ""
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -143,6 +150,21 @@
|
|
|
|
|
onReady() {},
|
|
|
|
|
onHide() {},
|
|
|
|
|
methods: {
|
|
|
|
|
toStep() {
|
|
|
|
|
if (this.buyInfo.paramedic_id != "") {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: "/packages/packagesPro/pages/proBuy/proBuy"
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
util.alert("请选择护工")
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
toMore() {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: "/packages/packagesPro/pages/proCarerList/list"
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
toChange(t) {
|
|
|
|
|
var i = t.currentTarget.dataset.index;
|
|
|
|
|
var type = t.currentTarget.dataset.type;
|
|
|
|
|
@ -153,6 +175,8 @@
|
|
|
|
|
mod.isChecked = false;
|
|
|
|
|
}
|
|
|
|
|
this.list[type][i].isChecked = true;
|
|
|
|
|
this.selectPrice = this.list[type][i].price;
|
|
|
|
|
this.buyInfo.paramedic_id = this.list[type][i].id;
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
},
|
|
|
|
|
loadParamedics: function(x) {
|
|
|
|
|
@ -246,13 +270,17 @@
|
|
|
|
|
|
|
|
|
|
.footerRight {
|
|
|
|
|
width: 40%;
|
|
|
|
|
background: linear-gradient(90deg, #0ee2ba, #0CC7A4);
|
|
|
|
|
height: 100%;
|
|
|
|
|
line-height: 92rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
background: #ccc;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footerRightOn {
|
|
|
|
|
background: linear-gradient(90deg, #0ee2ba, #0CC7A4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.headerPrice {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #303233;
|
|
|
|
|
@ -318,4 +346,17 @@
|
|
|
|
|
color: #303233;
|
|
|
|
|
margin: 30rpx 0rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.boxContentFooterBtn {
|
|
|
|
|
width: 347rpx;
|
|
|
|
|
height: 72rpx;
|
|
|
|
|
background: linear-gradient(90deg, #0ee2ba, #67F7DC);
|
|
|
|
|
border-radius: 36rpx 36rpx 36rpx 36rpx;
|
|
|
|
|
line-height: 72rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
margin: 20rpx auto;
|
|
|
|
|
}
|
|
|
|
|
</style>
|