hh-doctor-sdk 0.2.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205,19 +205,6 @@ Page({
205
205
  },
206
206
 
207
207
  changeDateTime(e) {
208
- wx.requestSubscribeMessage({
209
- tmplIds: ['wsBcrNpvBt8a8pneIRNY8JdHKXYxhHxjONrelT8K5zQ'],
210
- success: (res) => {
211
- wx.showToast({
212
- title: '订阅成功',
213
- })
214
- },
215
- fail: (error) => {
216
- wx.showToast({
217
- title: error,
218
- })
219
- }
220
- })
221
208
  this._changeDateTime(e)
222
209
  },
223
210
 
@@ -86,19 +86,6 @@ Component({
86
86
  * @param {*} e 事件回调参数
87
87
  */
88
88
  changeDateTime(e) {
89
- wx.requestSubscribeMessage({
90
- tmplIds: ['wsBcrNpvBt8a8pneIRNY8JdHKXYxhHxjONrelT8K5zQ'],
91
- success: (res) => {
92
- wx.showToast({
93
- title: '订阅成功',
94
- })
95
- },
96
- fail: (error) => {
97
- wx.showToast({
98
- title: error,
99
- })
100
- }
101
- })
102
89
  this.triggerEvent('changeDateTime', e)
103
90
  },
104
91
 
@@ -52,9 +52,9 @@ module.exports = Behavior({
52
52
  // console.error(JSON.stringify(orderModel))
53
53
  if (orderModel) {
54
54
  var orderGroups = []
55
- if (orderModel.requestOrderList && orderModel.requestOrderList.length > 0) {
56
- orderGroups.push(this._buildGroup(true, '我的咨询', orderModel.requestOrderList))
57
- }
55
+ // if (orderModel.requestOrderList && orderModel.requestOrderList.length > 0) {
56
+ // orderGroups.push(this._buildGroup(true, '我的咨询', orderModel.requestOrderList))
57
+ // }
58
58
  if (orderModel.responseOrderList && orderModel.responseOrderList.length > 0) {
59
59
  orderGroups.push(this._buildGroup(false, '我的回复', orderModel.responseOrderList))
60
60
  }
@@ -74,7 +74,7 @@ module.exports = Behavior({
74
74
  return {
75
75
  title: title,
76
76
  list: list,
77
- showSection: true,
77
+ showSection: false,
78
78
  }
79
79
  },
80
80
 
@@ -158,6 +158,6 @@ module.exports = Behavior({
158
158
  clickOrderItem: function (event) {
159
159
  var orderId = event.currentTarget.dataset.orderid
160
160
  hhNavigation.orderDetail(orderId.trim(), cache.doctorId(), cache.isTest())
161
- },
161
+ }
162
162
  }
163
163
  })
@@ -1,3 +1,4 @@
1
+ const hhDoctor = require('../../hh-doctor')
1
2
  const doctorLoader = require('../../public/doctor-loader')
2
3
  const cache = require('../../public/cache-data')
3
4
 
@@ -83,9 +84,16 @@ Page({
83
84
  complete: (res) => {
84
85
  if (wx.loginConfig && wx.loginConfig.judgeLogin) {
85
86
  if (res.cancel) {
87
+ // wx.switchTab({
88
+ // url: '/pages/recommend/recommend',
89
+ // })
86
90
  wx.loginConfig.directLogin(false)
87
91
  }
92
+
88
93
  if (res.confirm) {
94
+ // wx.navigateTo({
95
+ // url: '/pkgMine/pages/mine/loginpage',
96
+ // })
89
97
  wx.loginConfig.directLogin(true)
90
98
  }
91
99
  }
@@ -113,4 +121,18 @@ Page({
113
121
  onPullDownRefresh() {
114
122
  this.loadList()
115
123
  },
124
+
125
+ /**
126
+ * 页面上拉触底事件的处理函数
127
+ */
128
+ onReachBottom() {
129
+
130
+ },
131
+
132
+ /**
133
+ * 用户点击右上角分享
134
+ */
135
+ onShareAppMessage() {
136
+
137
+ }
116
138
  })
@@ -1,14 +1,10 @@
1
1
  <view class="match-parent">
2
- <view wx:if="{{!showEmpty}}" class="order-list-body">
2
+ <view wx:if="{{!showEmpty}}" class="chatting-body">
3
3
  <block wx:for="{{orderGroup}}" wx:key="orderGroup" wx:for-item="group">
4
- <view
5
- id="{{group.sectionId}}"
6
- wx:if="{{group.showSection}}"
7
- class="order-group"
4
+ <view wx:if="{{group.showSection}}" class="order-group"
5
+ >{{group.title}}</view
8
6
  >
9
- {{group.title}}
10
- </view>
11
- <view class="order-list">
7
+ <view class="chatting-body">
12
8
  <block
13
9
  wx:for="{{group.list}}"
14
10
  wx:key="order"
@@ -6,32 +6,17 @@ page {
6
6
  height: 100%;
7
7
  }
8
8
 
9
- .order-list-body {
10
- width: 100%;
11
- padding-bottom: constant(safe-area-inset-bottom); /* 兼容 IOS<11.2 */
12
- padding-bottom: env(safe-area-inset-bottom); /* 兼容 IOS>11.2 */
13
- }
14
-
15
- .order-list {
16
- width: 100%;
9
+ .chatting-body {
17
10
  display: flex;
18
11
  flex-direction: column;
12
+ padding-bottom: constant(safe-area-inset-bottom); /* 兼容 IOS<11.2 */
13
+ padding-bottom: env(safe-area-inset-bottom); /* 兼容 IOS>11.2 */
19
14
  }
20
15
 
21
16
  .order-group {
22
- display: flex;
23
- flex-direction: row;
24
- width: calc(100% - 30rpx);
25
- position: sticky;
26
- top: 0;
27
- height: 80rpx;
28
17
  font-size: 32rpx;
29
- font-weight: bold;
30
18
  color: #333333;
31
- padding: 0 0 0 30rpx;
32
- background-color: #f3f5fb;
33
- align-items: center;
34
- z-index: 2;
19
+ padding: 20rpx 0 20rpx 30rpx;
35
20
  }
36
21
 
37
22
  .order-item {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hh-doctor-sdk",
3
- "version": "0.2.8",
3
+ "version": "0.3.0",
4
4
  "description": "和缓名医小程序SDK",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"