添加首页新增订单

master
lynn 9 months ago
parent 41158485c1
commit 81f1a12f70

@ -94,6 +94,14 @@
</view>
</u-popup>
</view>
<view class="add-order-btn-wrapper">
<u-button
type="primary"
shape="circle"
class="add-order-btn"
@click="addOrder"
>新增订单</u-button>
</view>
<TabBar :tabbarList="tabbarList" :current="currentTabIndex" />
</view>
</template>
@ -115,10 +123,9 @@
diff_price: '0.00',
myQrcode: '',
statusListStaff: [
{ id: 0, name: "待处理1" },
{ id: 1, name: "服务中1" },
{ id: 3, name: "待结清1" },
{ id: 4, name: "已完成1" }
{ id: 0, name: "待审核" },
{ id: 1, name: "待支付" },
{ id: 2, name: "已支付" }
],
typeText: {
1: { name: '诊', class: 'doctor' },
@ -286,6 +293,11 @@
this.select.page++
this.getStaffOrderList()
},
addOrder() {
uni.navigateTo({
url: '/package_sub/order/service'
})
},
}
}
</script>
@ -331,7 +343,7 @@
background: linear-gradient(to right, #476de4, #7bb9f7);
border-radius: 6rpx;
margin: 0 auto;
margin-top: -10rpx;
margin-top: 10rpx;
}
.order {
@ -514,4 +526,23 @@
justify-content: center;
}
}
.add-order-btn-wrapper {
position: fixed;
left: 0;
right: 0;
bottom: 180rpx;
display: flex;
justify-content: center;
z-index: 1001;
pointer-events: none;
}
.add-order-btn {
width: 40vw;
background: linear-gradient(to right, #476de4, #7bb9f7);
color: #fff;
font-size: 32rpx;
border-radius: 50rpx;
pointer-events: auto;
}
</style>

@ -18,10 +18,10 @@
<u-icon class="row__icon" name="heart" color="#1479ff"></u-icon>
<view>我的订单</view>
</view>
<view class="row" @click="createOrder">
<!-- <view class="row" @click="createOrder">
<u-icon class="row__icon" name="plus-circle" color="#1479ff"></u-icon>
<view>新建订单</view>
</view>
</view> -->
<view class="row" @click="loginOut">
<u-icon class="row__icon" name="account" color="#1479ff"></u-icon>
<view>退出</view>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -48,7 +48,7 @@
background: linear-gradient(to right, #476de4, #7bb9f7);
border-radius: 6rpx;
margin: 0 auto;
margin-top: -10rpx;
margin-top: 10rpx;
}
.order.data-v-4bdb3fb0 {
height: calc(100vh - 270rpx);
@ -197,4 +197,22 @@
display: flex;
justify-content: center;
}
.add-order-btn-wrapper.data-v-4bdb3fb0 {
position: fixed;
left: 0;
right: 0;
bottom: 180rpx;
display: flex;
justify-content: center;
z-index: 1001;
pointer-events: none;
}
.add-order-btn.data-v-4bdb3fb0 {
width: 40vw;
background: linear-gradient(to right, #476de4, #7bb9f7);
color: #fff;
font-size: 32rpx;
border-radius: 50rpx;
pointer-events: auto;
}

@ -1 +1 @@
<view class="container"><u-navbar vue-id="9f91bc1c-1" title="我的" is-back="{{false}}" back-icon-color="#fff" background="{{$root.a0}}" title-color="#fff" border-bottom="{{false}}" bind:__l="__l"></u-navbar><view class="b-border"></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="top" bindtap="__e"><image class="avatar" mode="aspectFit" src="{{avatar_img||vuex_default_icon}}"></image><view class="info"><view class="info-name">{{vuex_user.name||'微信用户'}}</view><view class="info-mobile">{{"手机号:"+(vuex_user.mobile||'')}}</view></view></view><view class="panel panel2"><view data-event-opts="{{[['tap',[['toUrl',['$event']]]]]}}" class="row" bindtap="__e"><u-icon class="row__icon" vue-id="9f91bc1c-2" name="heart" color="#1479ff" bind:__l="__l"></u-icon><view>我的订单</view></view><view data-event-opts="{{[['tap',[['createOrder',['$event']]]]]}}" class="row" bindtap="__e"><u-icon class="row__icon" vue-id="9f91bc1c-3" name="plus-circle" color="#1479ff" bind:__l="__l"></u-icon><view>新建订单</view></view><view data-event-opts="{{[['tap',[['loginOut',['$event']]]]]}}" class="row" bindtap="__e"><u-icon class="row__icon" vue-id="9f91bc1c-4" name="account" color="#1479ff" bind:__l="__l"></u-icon><view>退出</view></view></view><view class="myinfo"><u-popup bind:input="__e" vue-id="9f91bc1c-5" mode="bottom" border-radius="{{30}}" value="{{showMyInfo}}" data-event-opts="{{[['^input',[['__set_model',['','showMyInfo','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="form-wrapper"><u-form class="vue-ref" vue-id="{{('9f91bc1c-6')+','+('9f91bc1c-5')}}" model="{{form}}" label-width="140rpx" data-ref="uForm" bind:__l="__l" vue-slots="{{['default']}}"><u-form-item vue-id="{{('9f91bc1c-7')+','+('9f91bc1c-6')}}" label="头像" bind:__l="__l" vue-slots="{{['default']}}"><button class="btn-normal" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image src="{{avatar_img||vuex_default_icon}}"></image></button></u-form-item></u-form></view><view class="footer"><view class="btn-wrapper"><view data-event-opts="{{[['tap',[['saveInfo',['$event']]]]]}}" class="btn-item btn-item-main" bindtap="__e">保存</view></view></view></u-popup></view><tab-bar vue-id="9f91bc1c-8" tabbarList="{{tabbarList}}" current="{{currentTabIndex}}" bind:__l="__l"></tab-bar></view>
<view class="container"><u-navbar vue-id="9f91bc1c-1" title="我的" is-back="{{false}}" back-icon-color="#fff" background="{{$root.a0}}" title-color="#fff" border-bottom="{{false}}" bind:__l="__l"></u-navbar><view class="b-border"></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="top" bindtap="__e"><image class="avatar" mode="aspectFit" src="{{avatar_img||vuex_default_icon}}"></image><view class="info"><view class="info-name">{{vuex_user.name||'微信用户'}}</view><view class="info-mobile">{{"手机号:"+(vuex_user.mobile||'')}}</view></view></view><view class="panel panel2"><view data-event-opts="{{[['tap',[['toUrl',['$event']]]]]}}" class="row" bindtap="__e"><u-icon class="row__icon" vue-id="9f91bc1c-2" name="heart" color="#1479ff" bind:__l="__l"></u-icon><view>我的订单</view></view><view data-event-opts="{{[['tap',[['loginOut',['$event']]]]]}}" class="row" bindtap="__e"><u-icon class="row__icon" vue-id="9f91bc1c-3" name="account" color="#1479ff" bind:__l="__l"></u-icon><view>退出</view></view></view><view class="myinfo"><u-popup bind:input="__e" vue-id="9f91bc1c-4" mode="bottom" border-radius="{{30}}" value="{{showMyInfo}}" data-event-opts="{{[['^input',[['__set_model',['','showMyInfo','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="form-wrapper"><u-form class="vue-ref" vue-id="{{('9f91bc1c-5')+','+('9f91bc1c-4')}}" model="{{form}}" label-width="140rpx" data-ref="uForm" bind:__l="__l" vue-slots="{{['default']}}"><u-form-item vue-id="{{('9f91bc1c-6')+','+('9f91bc1c-5')}}" label="头像" bind:__l="__l" vue-slots="{{['default']}}"><button class="btn-normal" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image src="{{avatar_img||vuex_default_icon}}"></image></button></u-form-item></u-form></view><view class="footer"><view class="btn-wrapper"><view data-event-opts="{{[['tap',[['saveInfo',['$event']]]]]}}" class="btn-item btn-item-main" bindtap="__e">保存</view></view></view></u-popup></view><tab-bar vue-id="9f91bc1c-7" tabbarList="{{tabbarList}}" current="{{currentTabIndex}}" bind:__l="__l"></tab-bar></view>
Loading…
Cancel
Save