@tplc/business 0.4.63 → 0.4.65

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.4.65](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.79...v0.4.65) (2025-04-08)
6
+
7
+ ### [0.4.64](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.78...v0.4.64) (2025-04-07)
8
+
5
9
  ### [0.4.63](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.62...v0.4.63) (2025-04-07)
6
10
 
7
11
 
@@ -55,13 +55,14 @@
55
55
  </template>
56
56
 
57
57
  <script setup lang="ts">
58
- import { computed, ref } from 'vue'
58
+ import { computed, ref, inject, Ref } from 'vue'
59
59
  import { LcbActionViewProps } from './types'
60
60
  import { uploadFile } from '../../hooks/useUpload'
61
61
  import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
62
62
  import { getFinalUrl, onPageScrollSelector, getExposed } from '../../utils/utils'
63
63
  import SharePopup from '../lcb-nav/SharePopup/index.vue'
64
64
  import { useTranslate } from '@tplc/wot'
65
+ import { PAGE_PROVIDE_KEY, USER_BASIC_INFO } from '../../constants'
65
66
  const { translate } = useTranslate()
66
67
  defineOptions({
67
68
  name: 'LcbActionView',
@@ -72,6 +73,8 @@ defineOptions({
72
73
  },
73
74
  })
74
75
  const props = defineProps<LcbActionViewProps>()
76
+ const basicInfo = inject(USER_BASIC_INFO, {}) as unknown as Ref<Record<string, any>>
77
+ const pageInfo = inject(PAGE_PROVIDE_KEY) as unknown as Ref<Record<string, any>>
75
78
  const showPoster = ref(false)
76
79
  const emits = defineEmits<{
77
80
  (e: 'phone', value: { detail: { errMsg: string; encryptedData: string; iv: string } }): void
@@ -150,7 +153,10 @@ const onActionClick = async () => {
150
153
  phone: '',
151
154
  userName: '',
152
155
  headImgUrl: '',
156
+ loginFlag: false,
153
157
  })
158
+ pageInfo.value = {}
159
+ basicInfo.value = {}
154
160
  }
155
161
  },
156
162
  })
@@ -134,30 +134,34 @@
134
134
  </wd-cell>
135
135
  </block>
136
136
  </wd-cell-group>
137
- <view class="text-center text-3 mt-6" v-if="agreementType && fields">
138
- <wd-checkbox v-model="form.agreement">
139
- <view class="flex">
140
- <text>{{ affirmText }}</text>
141
- <view @click.stop>
142
- <lcb-agreement-view :type="agreementType">
143
- <template v-slot="{ text }">
144
- <text class="text-primary">《{{ text }}》</text>
145
- </template>
146
- </lcb-agreement-view>
137
+ <lcb-gap safeAreaBottom :height="200" v-if="bottomFixed" />
138
+ <view :class="{ 'bottom-fixed': bottomFixed, 'mt-3': !bottomFixed }">
139
+ <view class="text-center text-3 mt-3" v-if="agreementType && fields">
140
+ <wd-checkbox v-model="form.agreement">
141
+ <view class="flex">
142
+ <text>{{ affirmText }}</text>
143
+ <view @click.stop>
144
+ <lcb-agreement-view :type="agreementType">
145
+ <template v-slot="{ text }">
146
+ <text class="text-primary">《{{ text }}》</text>
147
+ </template>
148
+ </lcb-agreement-view>
149
+ </view>
147
150
  </view>
148
- </view>
149
- </wd-checkbox>
151
+ </wd-checkbox>
152
+ </view>
153
+ <wd-button
154
+ type="primary"
155
+ @click="submit"
156
+ block
157
+ size="large"
158
+ custom-class="!w-90% mt-3"
159
+ v-if="fields"
160
+ >
161
+ {{ t(submitText) }}
162
+ </wd-button>
163
+ <lcb-gap safeAreaBottom :height="24" />
150
164
  </view>
151
- <wd-button
152
- type="primary"
153
- @click="submit"
154
- block
155
- size="large"
156
- custom-class="!w-90% my-3"
157
- v-if="fields"
158
- >
159
- {{ t(submitText) }}
160
- </wd-button>
161
165
  </wd-form>
162
166
  </lcb-block>
163
167
  </template>
@@ -186,6 +190,7 @@ const formRef = ref()
186
190
  const props = withDefaults(defineProps<LcbFormProps>(), {
187
191
  submitText: '提交',
188
192
  affirmText: '同意',
193
+ bottomFixed: true,
189
194
  })
190
195
  const fields = ref<LcbFormField[]>()
191
196
  watch(
@@ -316,4 +321,13 @@ watch(
316
321
  gap: 8rpx;
317
322
  }
318
323
  }
324
+ .bottom-fixed {
325
+ position: fixed;
326
+ bottom: 0;
327
+ left: 0;
328
+ right: 0;
329
+ background-color: #fff;
330
+ z-index: 1;
331
+ box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
332
+ }
319
333
  </style>
@@ -78,4 +78,6 @@ export interface LcbFormProps extends LcbBlockProps {
78
78
  submitUrl?: string
79
79
  agreementType?: string
80
80
  affirmText?: string
81
+ // 底部悬浮
82
+ bottomFixed?: boolean
81
83
  }
@@ -143,7 +143,6 @@ const value = computed(() => {
143
143
  'inline text-[32rpx] font-bold',
144
144
  `line-clamp-${itemProps.titleLineClamp}`,
145
145
  ]"
146
- class="mr-1"
147
146
  :style="style"
148
147
  :value="value"
149
148
  >
@@ -152,7 +151,7 @@ const value = computed(() => {
152
151
  </slot>
153
152
 
154
153
  <slot :value="value" v-if="prop === 'level' && value && Number(value)" name="level">
155
- <view :class="className" :style="style" class="inline relative flex items-center">
154
+ <view :class="className" :style="style" class="inline-flex relative items-center ml-1">
156
155
  <wd-rate
157
156
  :model-value="Number(value)"
158
157
  :num="Number(value)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.63",
3
+ "version": "0.4.65",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.76"
14
+ "@tplc/wot": "0.1.79"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -5,6 +5,7 @@ declare const _default: import('vue').DefineComponent<
5
5
  {
6
6
  submitText: string
7
7
  affirmText: string
8
+ bottomFixed: boolean
8
9
  }
9
10
  >,
10
11
  {},
@@ -23,6 +24,7 @@ declare const _default: import('vue').DefineComponent<
23
24
  {
24
25
  submitText: string
25
26
  affirmText: string
27
+ bottomFixed: boolean
26
28
  }
27
29
  >
28
30
  >
@@ -30,6 +32,7 @@ declare const _default: import('vue').DefineComponent<
30
32
  {
31
33
  submitText: string
32
34
  affirmText: string
35
+ bottomFixed: boolean
33
36
  },
34
37
  {}
35
38
  >
@@ -77,4 +77,5 @@ export interface LcbFormProps extends LcbBlockProps {
77
77
  submitUrl?: string
78
78
  agreementType?: string
79
79
  affirmText?: string
80
+ bottomFixed?: boolean
80
81
  }