jmash-core-mp 0.1.14 → 0.1.16

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.
@@ -122,6 +122,9 @@ export const formatDateTime = (dateTimeString, format) => {
122
122
  if (format === "HH:mm:ss") {
123
123
  return hours + ":" + minutes + ":" + seconds;
124
124
  }
125
+ if (format === "HH:mm") {
126
+ return hours + ":" + minutes;
127
+ }
125
128
  return "";
126
129
  };
127
130
  /**
@@ -103,8 +103,8 @@ mpx.xfetch.interceptors.response.use(function (res) {
103
103
  }
104
104
  return Promise.reject(res);
105
105
  }
106
- // 也可以返回promise
107
- return res;
106
+ // 返回promise,通过catch ,处理 code,message.
107
+ return Promise.reject(res);
108
108
  });
109
109
  //刷新Token
110
110
  function refreshToken(refreshToken) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core-mp",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -142,10 +142,10 @@ $bg-card: #ffffff;
142
142
  .auth-user-box {
143
143
  display: flex;
144
144
  align-items: center;
145
- padding: 32rpx 24rpx;
145
+ padding: 32rpx 24rpx 32rpx 0;
146
146
  // background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
147
147
  border-radius: 20rpx;
148
- margin: 16rpx 16rpx 24rpx;
148
+ margin: 16rpx 16rpx 24rpx 0;
149
149
  // box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
150
150
  transition: all 0.3s;
151
151
  background: transparent;
@@ -163,7 +163,7 @@ $bg-card: #ffffff;
163
163
 
164
164
  .avatar-wrapper {
165
165
  position: relative;
166
- margin-right: 20rpx;
166
+ margin-right: 30rpx;
167
167
  flex-shrink: 0;
168
168
  cursor: pointer;
169
169
 
@@ -260,7 +260,7 @@ $bg-card: #ffffff;
260
260
  justify-content: center;
261
261
 
262
262
  .arrow-icon {
263
- font-size: 28rpx;
263
+ font-size: 66rpx;
264
264
  color: $text-3;
265
265
  font-weight: 300;
266
266
  line-height: 1;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <view class="auth-none-data" style="margin-top: {{ marginTop }}rpx; padding-top: {{ paddingTop }}rpx;">
3
3
  <image src="{{ resourceUrl + imgUrl }}" mode="heightFix" style="width: {{ imgWidth }};height: {{ imgHeight }};" />
4
- <view class="holder-text" style="color: {{ contentColor }};">{{ content }}</view>
4
+ <view class="holder-text" style="color: {{ contentColor }};margin-top: {{ imgTextGap }}rpx;">{{ content }}</view>
5
5
  </view>
6
6
  </template>
7
7
  <script lang="ts">
@@ -10,6 +10,11 @@ import { config } from "../../utils/config";
10
10
 
11
11
  createComponent({
12
12
  properties: {
13
+ // 图片与文本之间的间距
14
+ imgTextGap: {
15
+ type: Number,
16
+ value: 0
17
+ },
13
18
  // 上外边距
14
19
  marginTop: {
15
20
  type: Number,
@@ -126,6 +126,9 @@ export const formatDateTime = (dateTimeString: string, format?: any) => {
126
126
  if (format === "HH:mm:ss") {
127
127
  return hours + ":" + minutes + ":" + seconds;
128
128
  }
129
+ if (format === "HH:mm") {
130
+ return hours + ":" + minutes;
131
+ }
129
132
  return "";
130
133
  };
131
134
 
@@ -113,8 +113,8 @@ mpx.xfetch.interceptors.response.use(function (res) {
113
113
  }
114
114
  return Promise.reject(res);
115
115
  }
116
- // 也可以返回promise
117
- return res;
116
+ // 返回promise,通过catch ,处理 code,message.
117
+ return Promise.reject(res);
118
118
  });
119
119
 
120
120
  //刷新Token
@@ -1 +0,0 @@
1
- export {};
@@ -1,41 +0,0 @@
1
- /// <reference types="miniprogram-api-typings" />
2
- /// <reference types="miniprogram-api-typings" />
3
- export type ResponseData<T extends string | WechatMiniprogram.IAnyObject | ArrayBuffer = string | WechatMiniprogram.IAnyObject | ArrayBuffer> = WechatMiniprogram.RequestSuccessCallbackResult<T>;
4
- export interface AppConfig {
5
- tenant: string;
6
- name: string;
7
- baseUrl: string;
8
- resourceUrl: string;
9
- appId: string;
10
- componentAppid: string;
11
- wechatComponentAppId: string;
12
- wechatAppId: string;
13
- wechatBiz: string;
14
- siteId: string;
15
- dev: boolean;
16
- testNewUser: boolean;
17
- }
18
- export interface ValidateData {
19
- validate: boolean;
20
- message: string;
21
- }
22
- export interface EventBase {
23
- changedTouches?: any;
24
- currentTarget: EventTarget;
25
- target?: EventTarget;
26
- type?: string;
27
- detail?: any;
28
- touches: any;
29
- }
30
- export interface EventTarget {
31
- dataset: any;
32
- id: string | number;
33
- offsetLeft?: number;
34
- offsetTop?: number;
35
- }
36
- export interface CanvasResponse {
37
- width?: number;
38
- height?: number;
39
- nodeCanvasType?: string;
40
- node: any;
41
- }
package/lib/types/core.js DELETED
@@ -1 +0,0 @@
1
- export {};