4.28更新

This commit is contained in:
zoujiandong 2024-04-28 09:12:52 +08:00
parent 7ba9510ee7
commit fb681b8a93
3 changed files with 154 additions and 111 deletions

View File

@ -26,6 +26,7 @@ Page({
threePrice:null,
sixPrice:null,
yearPrice:null,
static_host: api.getStaticHost(),
items:[{
service_period:'',
service_price:''

View File

@ -23,7 +23,7 @@
<view class="vontent">
<view class="checked_box">
<view class="title">服务内容</view>
<view class="price_steup_box" style="height:240rpx" wx:for="{{items}}" wx:key="index">
<view class="price_steup_box" style="height:260rpx" wx:for="{{items}}" wx:key="index">
<view class="price_steup_box_top" bind:tap="openCycle" data-id="{{index}}">
<view class="price_steup_box_top_title">服务周期</view>
<view class="price_steup_box_top_stepper">
@ -40,8 +40,12 @@
</view>
<view class="tips" wx:if="{{tuwenPrice}}">
<view >建议服务价格设置为:{{(item.service_period/30)==1?'¥'+onePrice:(item.service_period/30)==3?'¥'+threePrice:(item.service_period/30)==6?'¥'+sixPrice:(item.service_period/30)==12?'¥'+yearPrice:'单次图文*10次*0.5'}}</view>
<view wx:if="{{items.length>1}}" bind:tap="delService" data-id="{{index}}">删除</view>
<view class="advice_price">建议服务价格设置为:{{(item.service_period/30)==1?'¥'+onePrice:(item.service_period/30)==3?'¥'+threePrice:(item.service_period/30)==6?'¥'+sixPrice:(item.service_period/30)==12?'¥'+yearPrice:'单次图文*10次*0.5'}}</view>
<image class="del_img" src="{{static_host}}/applet/doctor/static/images/yishi/service_del.png" mode=""
bind:tap="delService" data-id="{{index}}" wx:if="{{items.length>1}}"/>
<!-- <view >删除</view> -->
</view>
</view>
</view>

View File

@ -1,11 +1,13 @@
page {
background-color: #F6F6F6;
}
.page {
overflow: hidden;
display: flex;
flex-direction: column;
}
.title {
width: 90vw;
margin: 0 auto 20rpx;
@ -13,9 +15,11 @@ page{
font-size: 32rpx;
color: rgba(0, 0, 0, 0.85);
}
.checked_box {
margin-top: 30rpx;
}
.price_title {
width: 90vw;
margin: 20rpx auto 0 auto;
@ -24,6 +28,7 @@ page{
/* font-family: "AlibabaPuHuiTi-2-55-Regular"; */
color: #333333;
}
.price_steup_box {
display: flex;
width: 90vw;
@ -33,6 +38,7 @@ page{
flex-direction: column;
background-color: rgb(255, 255, 255);
}
.price_steup_box_top {
position: relative;
display: flex;
@ -41,6 +47,7 @@ page{
align-items: center;
padding-bottom: 30rpx;
}
.price_steup_box_bottom {
position: relative;
display: flex;
@ -48,7 +55,9 @@ page{
margin: 0rpx 20rpx 0rpx 30rpx;
align-items: center;
}
.price_steup_box_top_title, .price_steup_box_bottom_title{
.price_steup_box_top_title,
.price_steup_box_bottom_title {
flex: 1;
font-size: 32rpx;
color: #333;
@ -58,6 +67,7 @@ page{
text-align: right !important;
font-size: 28rpx;
}
.price_steup_box_bottom_num {
flex: 1.5;
display: flex;
@ -65,13 +75,16 @@ page{
text-align: right;
align-items: center;
}
.ipt {
font-size: 28rpx;
color: #E34D59;
}
.unit {
font-size: 28rpx;
}
.price_steup_box_top::after {
position: absolute;
box-sizing: border-box;
@ -83,11 +96,13 @@ page{
border-bottom: 1px solid var(--td-cell-border-color, var(--td-gray-color-3, #e7e7e7));
transform: scaleY(0.5);
}
.price_steup_box_top_stepper {
display: flex;
text-align: right;
align-items: center;
}
.bottom {
width: 90vw;
margin: -20rpx auto;
@ -96,6 +111,7 @@ page{
font-size: 28rpx;
line-height: 40rpx;
}
.go {
position: fixed;
left: 50%;
@ -103,26 +119,32 @@ page{
bottom: 100rpx;
width: 90vw;
}
.weui-input {
color: red;
display: inline-block;
text-align: right;
}
.price {
text-align: center;
flex: 1;
}
.green {
color: #3CC7C0;
}
.tips {
margin: 15rpx 30rpx;
margin-right: 0;
font-weight: 400;
font-size: 24rpx;
display: flex;
justify-content: space-between;
color: #E34D59;
}
.continueadd {
font-size: 30rpx;
@ -136,6 +158,7 @@ color: #E34D59;
background: rgba(44, 241, 248, 0.28);
border-radius: 8rpx;
}
.btn {
bottom: 60rpx;
position: fixed;
@ -152,26 +175,41 @@ border-radius: 8rpx;
background: #3CC7C0;
border-radius: 8rpx;
}
.van-picker__cancel {
font-size: 32rpx !important;
color: rgba(0, 0, 0, 0.6) !important;
}
.van-picker__confirm {
font-size: 32rpx !important;
color: #3CC7C0 !important;
}
.van-picker__title {
font-size: 32rpx !important;
}
.van-picker__toolbar {
border-bottom: .5px solid #E7E7E7;
}
.amount.nodata {
font-size: 28rpx;
color: rgba(0, 0, 0, 0.45);
}
.vontent {
flex: 1;
margin-bottom: 150rpx;
overflow-y: scroll;
}
.del_img {
width: 160rpx;
height: 64rpx;
}
.advice_price {
margin-top: 10rpx;
}