From 711d3b6f105f3f1f61c80a497b370814cbbf91bf Mon Sep 17 00:00:00 2001
From: zoujiandong <10130823232@qq.com>
Date: Mon, 22 Apr 2024 09:05:27 +0800
Subject: [PATCH] =?UTF-8?q?4.22=E5=8C=BB=E7=94=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
user/pages/yishi/orderdetail/index.js | 14 +++++++++++++
user/pages/yishi/orderdetail/index.wxml | 4 ++++
user/pages/yishi/orderdetail/index.wxss | 26 +++++++++++++++++++++++++
3 files changed, 44 insertions(+)
diff --git a/user/pages/yishi/orderdetail/index.js b/user/pages/yishi/orderdetail/index.js
index 5422e4b..9dcd891 100644
--- a/user/pages/yishi/orderdetail/index.js
+++ b/user/pages/yishi/orderdetail/index.js
@@ -4,6 +4,14 @@ const api = new API()
const app = getApp()
Page({
data: {
+ active:1,
+ tabList:[{
+ id:1,
+ name:'问诊订单'
+ },{
+ id:2,
+ name:'服务包订单'
+ }],
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '收益明细 ', //导航栏 中间的标题
@@ -42,6 +50,12 @@ Page({
onShow(){
this.getDoctorAccountInfo();
},
+ switchTab(e){
+ let {id}=e.currentTarget.dataset;
+ this.setData({
+ active:id,
+ })
+ },
getDoctorAccountInfo(){
let list = this.data.list
let params = {};
diff --git a/user/pages/yishi/orderdetail/index.wxml b/user/pages/yishi/orderdetail/index.wxml
index a3fa18e..24efe78 100644
--- a/user/pages/yishi/orderdetail/index.wxml
+++ b/user/pages/yishi/orderdetail/index.wxml
@@ -1,6 +1,10 @@
+
+ {{item.name}}
+
+
diff --git a/user/pages/yishi/orderdetail/index.wxss b/user/pages/yishi/orderdetail/index.wxss
index 09759f0..8343baa 100644
--- a/user/pages/yishi/orderdetail/index.wxss
+++ b/user/pages/yishi/orderdetail/index.wxss
@@ -79,3 +79,29 @@ page{
align-items: center;
font-size: 30rpx;
}
+.tabbox{
+ display: flex;
+ height: 100rpx;
+ background-color: #fff;
+ border-bottom: 1rpx solid #E5E5E5;
+}
+.tabbox .tab:first-child::after{
+ right:0;
+ top:26rpx;
+ width:rpx;
+ content:'|';
+ position:absolute;
+ color:#E5E5E5;
+
+ font-size: 32rpx;
+}
+.tabbox .tab{
+ position: relative;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex:1;
+}
+.tabbox .tab.active{
+ color: #3CC7C0;
+}
\ No newline at end of file