From dd8b697d12757ad15f713410b8290310ba64410b Mon Sep 17 00:00:00 2001
From: zhangxingye <892562066@qq.com>
Date: Sat, 22 Feb 2025 17:51:09 +0800
Subject: [PATCH] 1.5.0
---
.../components/diy-form-detail/index.vue | 59 +++
.../src/addon/components/diy-form/index.vue | 191 ++++++++++
.../src/addon/components/diy/group/index.vue | 119 ++++--
.../addon/components/diy/group/useDiyGroup.ts | 50 ++-
.../addon/components/fixed/group/index.scss | 0
.../addon/components/fixed/group/index.vue | 13 -
uni-app/src/addon/end.vue | 8 -
uni-app/src/app/api/auth.ts | 42 ++-
uni-app/src/app/api/diy.ts | 2 +-
uni-app/src/app/api/diy_form.ts | 29 ++
uni-app/src/app/api/member.ts | 10 +
uni-app/src/app/api/system.ts | 6 +
.../app/components/diy/active-cube/index.vue | 21 +-
.../components/diy/carousel-search/index.vue | 20 +-
.../app/components/diy/float-btn/index.vue | 12 +-
.../app/components/diy/form-address/index.vue | 96 +++++
.../components/diy/form-checkbox/index.vue | 325 ++++++++++++++++
.../components/diy/form-date-scope/index.vue | 314 ++++++++++++++++
.../app/components/diy/form-date/index.vue | 272 ++++++++++++++
.../app/components/diy/form-email/index.vue | 200 ++++++++++
.../app/components/diy/form-file/index.vue | 119 ++++++
.../diy/form-identity-privacy/index.vue | 44 +++
.../components/diy/form-identity/index.vue | 228 +++++++++++
.../app/components/diy/form-image/index.vue | 315 ++++++++++++++++
.../app/components/diy/form-input/index.vue | 196 ++++++++++
.../components/diy/form-location/index.vue | 96 +++++
.../app/components/diy/form-mobile/index.vue | 227 +++++++++++
.../app/components/diy/form-number/index.vue | 202 ++++++++++
.../components/diy/form-privacy-pop/index.vue | 43 +++
.../app/components/diy/form-privacy/index.vue | 49 +++
.../app/components/diy/form-radio/index.vue | 331 ++++++++++++++++
.../app/components/diy/form-submit/index.vue | 348 +++++++++++++++++
.../app/components/diy/form-table/index.vue | 96 +++++
.../components/diy/form-textarea/index.vue | 209 +++++++++++
.../components/diy/form-time-scope/index.vue | 354 ++++++++++++++++++
.../app/components/diy/form-time/index.vue | 231 ++++++++++++
.../app/components/diy/form-video/index.vue | 124 ++++++
.../components/diy/form-wechat-name/index.vue | 96 +++++
.../app/components/diy/graphic-nav/index.vue | 11 +-
.../app/components/diy/horz-blank/index.vue | 8 +-
.../app/components/diy/horz-line/index.vue | 8 +-
.../src/app/components/diy/hot-area/index.vue | 8 +-
.../app/components/diy/image-ads/index.vue | 13 +-
.../app/components/diy/member-info/index.vue | 25 +-
.../app/components/diy/member-level/index.vue | 17 +-
.../src/app/components/diy/notice/index.vue | 13 +-
.../app/components/diy/picture-show/index.vue | 29 +-
.../app/components/diy/rich-text/index.vue | 9 +-
.../app/components/diy/rubik-cube/index.vue | 9 +-
uni-app/src/app/components/diy/text/index.vue | 9 +-
.../app/components/fixed/demo-index/index.vue | 15 -
.../locale/zh-Hans/pages.member.account.json | 6 +-
.../zh-Hans/pages.member.account_edit.json | 12 +-
.../zh-Hans/pages.member.apply_cash_out.json | 5 +-
.../zh-Hans/pages.member.cash_out_detail.json | 16 +-
uni-app/src/app/pages/auth/bind.vue | 2 +-
uni-app/src/app/pages/auth/index.vue | 78 +++-
uni-app/src/app/pages/auth/login.vue | 26 +-
uni-app/src/app/pages/auth/register.vue | 12 +-
uni-app/src/app/pages/friendspay/money.vue | 5 +-
uni-app/src/app/pages/friendspay/share.vue | 19 +-
uni-app/src/app/pages/index/diy.vue | 19 +-
uni-app/src/app/pages/index/diy_form.vue | 119 ++++++
.../src/app/pages/index/diy_form_detail.vue | 28 ++
.../src/app/pages/index/diy_form_result.vue | 83 ++++
uni-app/src/app/pages/index/index.vue | 15 +-
uni-app/src/app/pages/index/nosite.vue | 4 +-
uni-app/src/app/pages/member/account.vue | 5 +-
uni-app/src/app/pages/member/account_edit.vue | 94 ++++-
uni-app/src/app/pages/member/address_edit.vue | 8 +-
.../src/app/pages/member/apply_cash_out.vue | 112 +++++-
uni-app/src/app/pages/member/balance.vue | 2 +
.../src/app/pages/member/cash_out_detail.vue | 140 +++++--
uni-app/src/app/pages/member/index.vue | 17 +-
uni-app/src/app/pages/member/point_detail.vue | 4 +-
uni-app/src/app/pages/member/sign_in.vue | 4 +-
uni-app/src/app/stores/diy.ts | 12 +-
77 files changed, 5726 insertions(+), 392 deletions(-)
create mode 100644 uni-app/src/addon/components/diy-form-detail/index.vue
create mode 100644 uni-app/src/addon/components/diy-form/index.vue
delete mode 100644 uni-app/src/addon/components/fixed/group/index.scss
delete mode 100644 uni-app/src/addon/components/fixed/group/index.vue
delete mode 100644 uni-app/src/addon/end.vue
create mode 100644 uni-app/src/app/api/diy_form.ts
create mode 100644 uni-app/src/app/components/diy/form-address/index.vue
create mode 100644 uni-app/src/app/components/diy/form-checkbox/index.vue
create mode 100644 uni-app/src/app/components/diy/form-date-scope/index.vue
create mode 100644 uni-app/src/app/components/diy/form-date/index.vue
create mode 100644 uni-app/src/app/components/diy/form-email/index.vue
create mode 100644 uni-app/src/app/components/diy/form-file/index.vue
create mode 100644 uni-app/src/app/components/diy/form-identity-privacy/index.vue
create mode 100644 uni-app/src/app/components/diy/form-identity/index.vue
create mode 100644 uni-app/src/app/components/diy/form-image/index.vue
create mode 100644 uni-app/src/app/components/diy/form-input/index.vue
create mode 100644 uni-app/src/app/components/diy/form-location/index.vue
create mode 100644 uni-app/src/app/components/diy/form-mobile/index.vue
create mode 100644 uni-app/src/app/components/diy/form-number/index.vue
create mode 100644 uni-app/src/app/components/diy/form-privacy-pop/index.vue
create mode 100644 uni-app/src/app/components/diy/form-privacy/index.vue
create mode 100644 uni-app/src/app/components/diy/form-radio/index.vue
create mode 100644 uni-app/src/app/components/diy/form-submit/index.vue
create mode 100644 uni-app/src/app/components/diy/form-table/index.vue
create mode 100644 uni-app/src/app/components/diy/form-textarea/index.vue
create mode 100644 uni-app/src/app/components/diy/form-time-scope/index.vue
create mode 100644 uni-app/src/app/components/diy/form-time/index.vue
create mode 100644 uni-app/src/app/components/diy/form-video/index.vue
create mode 100644 uni-app/src/app/components/diy/form-wechat-name/index.vue
delete mode 100644 uni-app/src/app/components/fixed/demo-index/index.vue
create mode 100644 uni-app/src/app/pages/index/diy_form.vue
create mode 100644 uni-app/src/app/pages/index/diy_form_detail.vue
create mode 100644 uni-app/src/app/pages/index/diy_form_result.vue
diff --git a/uni-app/src/addon/components/diy-form-detail/index.vue b/uni-app/src/addon/components/diy-form-detail/index.vue
new file mode 100644
index 000000000..b095948bf
--- /dev/null
+++ b/uni-app/src/addon/components/diy-form-detail/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/addon/components/diy-form/index.vue b/uni-app/src/addon/components/diy-form/index.vue
new file mode 100644
index 000000000..8ac1171ab
--- /dev/null
+++ b/uni-app/src/addon/components/diy-form/index.vue
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/addon/components/diy/group/index.vue b/uni-app/src/addon/components/diy/group/index.vue
index 00ce92e25..f0dd5f8b6 100644
--- a/uni-app/src/addon/components/diy/group/index.vue
+++ b/uni-app/src/addon/components/diy/group/index.vue
@@ -8,53 +8,114 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -65,19 +126,22 @@
import { useDiyGroup } from './useDiyGroup'
import useDiyStore from '@/app/stores/diy';
- import { ref } from 'vue';
+ import { ref,getCurrentInstance } from 'vue';
- const props = defineProps(['data', 'pullDownRefreshCount']);
+ const props = defineProps(['data']);
+
+ const instance: any = getCurrentInstance();
+ const getFormRef = () => {
+ return {
+ componentRefs: instance.refs
+ }
+ }
- const topTabbarRef = ref(null);
const diyStore = useDiyStore();
+
const diyGroup = useDiyGroup({
...props,
- getFormRef() {
- return {
- topTabbarRef: topTabbarRef.value
- }
- }
+ getFormRef
});
const data = ref(diyGroup.data)
@@ -89,7 +153,8 @@
diyGroup.onPageScroll()
defineExpose({
- refresh: diyGroup.refresh
+ refresh: diyGroup.refresh,
+ getFormRef
})
diff --git a/uni-app/src/addon/end.vue b/uni-app/src/addon/end.vue
deleted file mode 100644
index aee126479..000000000
--- a/uni-app/src/addon/end.vue
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
diff --git a/uni-app/src/app/api/auth.ts b/uni-app/src/app/api/auth.ts
index c599f089c..830eb5d97 100644
--- a/uni-app/src/app/api/auth.ts
+++ b/uni-app/src/app/api/auth.ts
@@ -3,8 +3,8 @@ import request from '@/utils/request'
/**
* 用户名登录
*/
-export function usernameLogin(data : AnyObject) {
- if(uni.getStorageSync('pid')){
+export function usernameLogin(data: AnyObject) {
+ if (uni.getStorageSync('pid')) {
data.pid = uni.getStorageSync('pid');
}
return request.get('login', data, { showErrorMessage: true })
@@ -13,8 +13,8 @@ export function usernameLogin(data : AnyObject) {
/**
* 手机验证码登录
*/
-export function mobileLogin(data : AnyObject) {
- if(uni.getStorageSync('pid')){
+export function mobileLogin(data: AnyObject) {
+ if (uni.getStorageSync('pid')) {
data.pid = uni.getStorageSync('pid');
}
return request.post('login/mobile', data, { showErrorMessage: true })
@@ -37,9 +37,9 @@ export function logout() {
/**
* 用户名注册
*/
-export function usernameRegister(data : AnyObject) {
+export function usernameRegister(data: AnyObject) {
let url = 'register'
- if(uni.getStorageSync('pid')){
+ if (uni.getStorageSync('pid')) {
data.pid = uni.getStorageSync('pid');
}
return request.post(url, data, { showErrorMessage: true })
@@ -48,9 +48,9 @@ export function usernameRegister(data : AnyObject) {
/**
* 手机号注册
*/
-export function mobileRegister(data : AnyObject) {
+export function mobileRegister(data: AnyObject) {
let url = 'register/mobile'
- if(uni.getStorageSync('pid')){
+ if (uni.getStorageSync('pid')) {
data.pid = uni.getStorageSync('pid');
}
return request.post(url, data, { showErrorMessage: true })
@@ -59,15 +59,15 @@ export function mobileRegister(data : AnyObject) {
/**
* 微信公众号授权信息
*/
-export function wechatUser(data : AnyObject) {
+export function wechatUser(data: AnyObject) {
return request.get('wechat/user', data, { showErrorMessage: false })
}
/**
* 微信公众号授权信息登录(openid)
*/
-export function wechatUserLogin(data : AnyObject) {
- if(uni.getStorageSync('pid')){
+export function wechatUserLogin(data: AnyObject) {
+ if (uni.getStorageSync('pid')) {
data.pid = uni.getStorageSync('pid');
}
return request.post('wechat/userlogin', data, { showErrorMessage: true })
@@ -76,24 +76,25 @@ export function wechatUserLogin(data : AnyObject) {
/**
* 微信公众号授权登录
*/
-export function wechatLogin(data : AnyObject) {
- if(uni.getStorageSync('pid')){
+export function wechatLogin(data: AnyObject) {
+ if (uni.getStorageSync('pid')) {
data.pid = uni.getStorageSync('pid');
}
return request.post('wechat/login', data, { showErrorMessage: false })
}
+
/**
* 微信公众号号修改openid
*/
-export function updateWechatOpenid(data : AnyObject) {
+export function updateWechatOpenid(data: AnyObject) {
return request.put('wechat/update_openid', data, { showErrorMessage: false })
}
/**
* 微信小程序授权登录
*/
-export function weappLogin(data : AnyObject) {
- if(uni.getStorageSync('pid')){
+export function weappLogin(data: AnyObject) {
+ if (uni.getStorageSync('pid')) {
data.pid = uni.getStorageSync('pid');
}
return request.post('weapp/login', data, { showErrorMessage: false })
@@ -102,15 +103,16 @@ export function weappLogin(data : AnyObject) {
/**
* 微信小程序修改openid
*/
-export function updateWeappOpenid(data : AnyObject) {
+export function updateWeappOpenid(data: AnyObject) {
return request.put('weapp/update_openid', data, { showErrorMessage: false })
}
+
/**
* 绑定手机号
*/
-export function bind(data : AnyObject) {
+export function bind(data: AnyObject) {
let url = 'bind'
- if(uni.getStorageSync('pid')){
+ if (uni.getStorageSync('pid')) {
data.pid = uni.getStorageSync('pid');
}
return request.post(url, data, { showErrorMessage: true })
@@ -119,6 +121,6 @@ export function bind(data : AnyObject) {
/**
* 记录会员访问日志【目前只更新最后访问时间】
*/
-export function memberLog(data : AnyObject) {
+export function memberLog(data: AnyObject) {
return request.post('member/log', data, { showErrorMessage: false })
}
diff --git a/uni-app/src/app/api/diy.ts b/uni-app/src/app/api/diy.ts
index 45a545d44..a6595028e 100644
--- a/uni-app/src/app/api/diy.ts
+++ b/uni-app/src/app/api/diy.ts
@@ -19,4 +19,4 @@ export function getTabbarList(params: Record) {
*/
export function getShareInfo(params: Record) {
return request.get('diy/share', params)
-}
\ No newline at end of file
+}
diff --git a/uni-app/src/app/api/diy_form.ts b/uni-app/src/app/api/diy_form.ts
new file mode 100644
index 000000000..cb2b7d5bd
--- /dev/null
+++ b/uni-app/src/app/api/diy_form.ts
@@ -0,0 +1,29 @@
+import request from '@/utils/request'
+
+/**
+ * 获取自定义表单信息
+ */
+export function getDiyFormInfo(params: Record) {
+ return request.get(`diy/form`,params)
+}
+
+/**
+ * 提交表单数据
+ */
+export function addFormRecord(params: Record) {
+ return request.post('diy/form/record', params)
+}
+
+/**
+ * 获取表单填写结果信息
+ */
+export function getFormResultInfo(params: Record) {
+ return request.get('diy/form/result', params)
+}
+
+/**
+ * 获取表单填写记录
+ */
+export function getFormRecord(params: Record) {
+ return request.get(`diy/form/record`,params)
+}
diff --git a/uni-app/src/app/api/member.ts b/uni-app/src/app/api/member.ts
index f892dcb8c..eb2613683 100644
--- a/uni-app/src/app/api/member.ts
+++ b/uni-app/src/app/api/member.ts
@@ -56,6 +56,16 @@ export function bindMobile(data: AnyObject) {
return request.put('member/mobile', data, { showErrorMessage: true })
}
+/**
+ * 获取手机号
+ */
+export function getMobile(data: AnyObject) {
+ if (uni.getStorageSync('pid')) {
+ data.pid = uni.getStorageSync('pid');
+ }
+ return request.put('member/getmobile', data, { showErrorMessage: true })
+}
+
/**
* 提现转账方式
*/
diff --git a/uni-app/src/app/api/system.ts b/uni-app/src/app/api/system.ts
index 4f76dc6aa..33c19c9a1 100644
--- a/uni-app/src/app/api/system.ts
+++ b/uni-app/src/app/api/system.ts
@@ -70,6 +70,12 @@ export function fetchBase64Image(data: AnyObject) {
return request.post('file/image/base64', data)
}
+/**
+ * 上传视频
+ */
+export function uploadVideo(data: AnyObject) {
+ return request.upload('file/video', data, { showErrorMessage: true })
+}
/**
* 获取站点信息
*/
diff --git a/uni-app/src/app/components/diy/active-cube/index.vue b/uni-app/src/app/components/diy/active-cube/index.vue
index 624969a44..287625473 100644
--- a/uni-app/src/app/components/diy/active-cube/index.vue
+++ b/uni-app/src/app/components/diy/active-cube/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -54,7 +54,7 @@
-
+
{{ item.title.text }}
@@ -88,7 +88,7 @@
-
+
@@ -118,7 +118,7 @@
import useDiyStore from '@/app/stores/diy';
import { img } from '@/utils/common';
- const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
+ const props = defineProps(['component', 'index']);
const diyStore = useDiyStore();
@@ -196,7 +196,7 @@
itemStyle4.value= 'margin-right:14rpx;'
// #endif
};
-
+
// 公共模块颜色
const commonTempCss = (data: any)=>{
var style = '';
@@ -209,23 +209,16 @@
if (diyComponent.value.topElementRounded) style += 'border-top-right-radius:' + diyComponent.value.topElementRounded * 2 + 'rpx;';
if (diyComponent.value.bottomElementRounded) style += 'border-bottom-left-radius:' + diyComponent.value.bottomElementRounded * 2 + 'rpx;';
if (diyComponent.value.bottomElementRounded) style += 'border-bottom-right-radius:' + diyComponent.value.bottomElementRounded * 2 + 'rpx;';
- style += 'overflow: hidden';
+ style += 'overflow: hidden;';
return style;
}
-
+
const btnCss = (item:any) => {
var style = '';
style += `background:linear-gradient(90deg,${item.startColor},${item.endColor});`;
return style;
};
- watch(
- () => props.pullDownRefreshCount,
- (newValue, oldValue) => {
- // 处理下拉刷新业务
- }
- )
-
onMounted(() => {
refresh();
// 装修模式下刷新
diff --git a/uni-app/src/app/components/diy/carousel-search/index.vue b/uni-app/src/app/components/diy/carousel-search/index.vue
index 7b5c57b20..92b8998f7 100644
--- a/uni-app/src/app/components/diy/carousel-search/index.vue
+++ b/uni-app/src/app/components/diy/carousel-search/index.vue
@@ -77,7 +77,7 @@
-
@@ -170,4 +164,4 @@
.float-btn-border{
border: 4rpx dashed var(--primary-color);
}
-
\ No newline at end of file
+
diff --git a/uni-app/src/app/components/diy/form-address/index.vue b/uni-app/src/app/components/diy/form-address/index.vue
new file mode 100644
index 000000000..7b0bce15c
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-address/index.vue
@@ -0,0 +1,96 @@
+
+
+ 表单 地址组件
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/src/app/components/diy/form-checkbox/index.vue b/uni-app/src/app/components/diy/form-checkbox/index.vue
new file mode 100644
index 000000000..6bc7304fc
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-checkbox/index.vue
@@ -0,0 +1,325 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ item.text}}、
+
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ item.text}}、
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.text}},
+
+ {{checkboxPlaceholder}}
+
+
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.text}},
+
+ {{checkboxPlaceholder}}
+
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('cancel') }}
+ {{ t('confirm') }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-date-scope/index.vue b/uni-app/src/app/components/diy/form-date-scope/index.vue
new file mode 100644
index 000000000..b62edd82c
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-date-scope/index.vue
@@ -0,0 +1,314 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ diyComponent.field.value.start.date }}
+ -
+ {{ diyComponent.field.value.end.date }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ diyComponent.field.value.start.date }}
+ -
+ {{ diyComponent.field.value.end.date }}
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+
+
+
+ {{ startDate }}
+
+
+ -
+
+
+
+ {{ endDate }}
+
+
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+ {{ startDate }}
+
+ -
+
+ {{ endDate }}
+
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-date/index.vue b/uni-app/src/app/components/diy/form-date/index.vue
new file mode 100644
index 000000000..a6914e235
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-date/index.vue
@@ -0,0 +1,272 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value.date}}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value.date}}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+
+
+ {{ startDate }}
+
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+ {{ startDate }}
+
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-email/index.vue b/uni-app/src/app/components/diy/form-email/index.vue
new file mode 100644
index 000000000..e157e8e62
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-email/index.vue
@@ -0,0 +1,200 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/src/app/components/diy/form-file/index.vue b/uni-app/src/app/components/diy/form-file/index.vue
new file mode 100644
index 000000000..514697ed9
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-file/index.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-identity-privacy/index.vue b/uni-app/src/app/components/diy/form-identity-privacy/index.vue
new file mode 100644
index 000000000..7954e687f
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-identity-privacy/index.vue
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-identity/index.vue b/uni-app/src/app/components/diy/form-identity/index.vue
new file mode 100644
index 000000000..b186bab1b
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-identity/index.vue
@@ -0,0 +1,228 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ formattedIdentity }}
+ {{ t('view') }}
+
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ formattedIdentity }}
+ {{ t('view') }}
+
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-image/index.vue b/uni-app/src/app/components/diy/form-image/index.vue
new file mode 100644
index 000000000..525d2a5ba
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-image/index.vue
@@ -0,0 +1,315 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+
+
+
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 拍照上传
+
+
+
+
+
+
+
+ 从相册中选择
+
+
+
+
+
+
+
+
+ {{diyComponent.uploadMode.indexOf('take_pictures') > -1 ? '拍照上传' : '从相册选择'}}
+
+
+
+
+
+ {{ t('uploadTips') }}
+
+
+
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('uploadTips') }}
+
+
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-input/index.vue b/uni-app/src/app/components/diy/form-input/index.vue
new file mode 100644
index 000000000..2408b15e7
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-input/index.vue
@@ -0,0 +1,196 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-location/index.vue b/uni-app/src/app/components/diy/form-location/index.vue
new file mode 100644
index 000000000..f43abd167
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-location/index.vue
@@ -0,0 +1,96 @@
+
+
+ form-location
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-mobile/index.vue b/uni-app/src/app/components/diy/form-mobile/index.vue
new file mode 100644
index 000000000..b913348bd
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-mobile/index.vue
@@ -0,0 +1,227 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ formattedPhoneNumber }}
+ {{ t('view') }}
+
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ formattedPhoneNumber }}
+ {{ t('view') }}
+
+
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-number/index.vue b/uni-app/src/app/components/diy/form-number/index.vue
new file mode 100644
index 000000000..f3aa8a120
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-number/index.vue
@@ -0,0 +1,202 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+ {{diyComponent.unit}}
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+ {{diyComponent.unit}}
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-privacy-pop/index.vue b/uni-app/src/app/components/diy/form-privacy-pop/index.vue
new file mode 100644
index 000000000..17d2d3ea0
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-privacy-pop/index.vue
@@ -0,0 +1,43 @@
+
+
+
+
+ {{ t('prompt') }}
+
+ {{data}}
+
+
+ {{ t('know') }}
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-privacy/index.vue b/uni-app/src/app/components/diy/form-privacy/index.vue
new file mode 100644
index 000000000..6be485ac1
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-privacy/index.vue
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-radio/index.vue b/uni-app/src/app/components/diy/form-radio/index.vue
new file mode 100644
index 000000000..e923a744d
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-radio/index.vue
@@ -0,0 +1,331 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ item.text}}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ item.text}}
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{getSelectRadioName}}
+
+ {{radioPlaceholder}}
+
+
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{getSelectRadioName}}
+
+ {{radioPlaceholder}}
+
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-submit/index.vue b/uni-app/src/app/components/diy/form-submit/index.vue
new file mode 100644
index 000000000..1a82777dc
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-submit/index.vue
@@ -0,0 +1,348 @@
+
+
+
+
+
+
+ {{ diyComponent.submitBtn.text }}
+ {{ diyComponent.resetBtn.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-table/index.vue b/uni-app/src/app/components/diy/form-table/index.vue
new file mode 100644
index 000000000..8778d3363
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-table/index.vue
@@ -0,0 +1,96 @@
+
+
+ // 表单 表格组件
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-textarea/index.vue b/uni-app/src/app/components/diy/form-textarea/index.vue
new file mode 100644
index 000000000..36c5130d6
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-textarea/index.vue
@@ -0,0 +1,209 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-time-scope/index.vue b/uni-app/src/app/components/diy/form-time-scope/index.vue
new file mode 100644
index 000000000..cab8012bb
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-time-scope/index.vue
@@ -0,0 +1,354 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ diyComponent.field.value.start.date }}
+ -
+ {{ diyComponent.field.value.end.date }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ diyComponent.field.value.start.date }}
+ -
+ {{ diyComponent.field.value.end.date }}
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+
+
+
+ {{ startTime }}
+
+
+ -
+
+
+
+ {{ endTime }}
+
+
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+ {{ startTime }}
+
+ -
+
+ {{ endTime }}
+
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-time/index.vue b/uni-app/src/app/components/diy/form-time/index.vue
new file mode 100644
index 000000000..074ae5294
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-time/index.vue
@@ -0,0 +1,231 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ t('hidden') }}
+
+
+ {{errorInfo.message}}
+
+
+
+
+ {{ startTime }}
+
+
+
+ {{item.title}}
+
+
+
+ {{ t('hidden') }}
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+ {{ startTime }}
+
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-video/index.vue b/uni-app/src/app/components/diy/form-video/index.vue
new file mode 100644
index 000000000..78346bee8
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-video/index.vue
@@ -0,0 +1,124 @@
+
+
+ form-video
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/form-wechat-name/index.vue b/uni-app/src/app/components/diy/form-wechat-name/index.vue
new file mode 100644
index 000000000..a85338bd4
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-wechat-name/index.vue
@@ -0,0 +1,96 @@
+
+
+ form-wechat-name
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/components/diy/graphic-nav/index.vue b/uni-app/src/app/components/diy/graphic-nav/index.vue
index 342f53855..48573d8a2 100644
--- a/uni-app/src/app/components/diy/graphic-nav/index.vue
+++ b/uni-app/src/app/components/diy/graphic-nav/index.vue
@@ -167,7 +167,7 @@
import { img } from '@/utils/common';
import useDiyStore from '@/app/stores/diy';
- const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
+ const props = defineProps(['component', 'index']);
const diyStore = useDiyStore();
@@ -226,13 +226,6 @@
return style;
}
- watch(
- () => props.pullDownRefreshCount,
- (newValue, oldValue) => {
- // 处理下拉刷新业务
- }
- )
-
const swiperIndex = ref(0);
const swiperChange = e => {
@@ -320,7 +313,7 @@
}
}
}
-
+
return false;
}
diff --git a/uni-app/src/app/components/diy/horz-blank/index.vue b/uni-app/src/app/components/diy/horz-blank/index.vue
index 42c10edd3..17d4f98b2 100644
--- a/uni-app/src/app/components/diy/horz-blank/index.vue
+++ b/uni-app/src/app/components/diy/horz-blank/index.vue
@@ -7,7 +7,7 @@
import { computed, watch } from 'vue';
import useDiyStore from '@/app/stores/diy';
- const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
+ const props = defineProps(['component', 'index']);
const diyStore = useDiyStore();
@@ -33,12 +33,6 @@
return style;
})
- watch(
- () => props.pullDownRefreshCount,
- (newValue, oldValue) => {
- // 处理下拉刷新业务
- }
- )
diff --git a/uni-app/src/app/components/diy/horz-line/index.vue b/uni-app/src/app/components/diy/horz-line/index.vue
index bcab0130a..f9ecd1b53 100644
--- a/uni-app/src/app/components/diy/horz-line/index.vue
+++ b/uni-app/src/app/components/diy/horz-line/index.vue
@@ -11,7 +11,7 @@
import { computed, watch } from 'vue';
import useDiyStore from '@/app/stores/diy';
- const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
+ const props = defineProps(['component', 'index']);
const diyStore = useDiyStore();
@@ -29,12 +29,6 @@
return style;
})
- watch(
- () => props.pullDownRefreshCount,
- (newValue, oldValue) => {
- // 处理下拉刷新业务
- }
- )
diff --git a/uni-app/src/app/components/diy/hot-area/index.vue b/uni-app/src/app/components/diy/hot-area/index.vue
index 6bc95eb91..547c50fe5 100644
--- a/uni-app/src/app/components/diy/hot-area/index.vue
+++ b/uni-app/src/app/components/diy/hot-area/index.vue
@@ -25,7 +25,7 @@
import useDiyStore from '@/app/stores/diy';
import { img } from '@/utils/common';
- const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
+ const props = defineProps(['component', 'index']);
const diyStore = useDiyStore();
@@ -79,12 +79,6 @@
}
}
- watch(
- () => props.pullDownRefreshCount,
- (newValue, oldValue) => {
- // 处理下拉刷新业务
- }
- )
\ No newline at end of file
+
diff --git a/uni-app/src/app/components/diy/rich-text/index.vue b/uni-app/src/app/components/diy/rich-text/index.vue
index 73613ccb2..d24b48f96 100644
--- a/uni-app/src/app/components/diy/rich-text/index.vue
+++ b/uni-app/src/app/components/diy/rich-text/index.vue
@@ -38,7 +38,7 @@
import useDiyStore from '@/app/stores/diy';
import { img } from '@/utils/common';
- const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
+ const props = defineProps(['component', 'index']);
const diyStore = useDiyStore();
@@ -87,13 +87,6 @@
return style;
});
- watch(
- () => props.pullDownRefreshCount,
- (newValue, oldValue) => {
- // 处理下拉刷新业务
- }
- )
-
onMounted(() => {
refresh();
// 装修模式下刷新
diff --git a/uni-app/src/app/components/diy/rubik-cube/index.vue b/uni-app/src/app/components/diy/rubik-cube/index.vue
index 1f5f8f32c..f3e3bcbdb 100644
--- a/uni-app/src/app/components/diy/rubik-cube/index.vue
+++ b/uni-app/src/app/components/diy/rubik-cube/index.vue
@@ -78,7 +78,7 @@
import useDiyStore from '@/app/stores/diy';
import { img } from '@/utils/common';
- const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
+ const props = defineProps(['component', 'index']);
const diyStore = useDiyStore();
@@ -189,13 +189,6 @@
return obj;
}
- watch(
- () => props.pullDownRefreshCount,
- (newValue, oldValue) => {
- // 处理下拉刷新业务
- }
- )
-
onMounted(() => {
refresh();
// 装修模式下刷新
diff --git a/uni-app/src/app/components/diy/text/index.vue b/uni-app/src/app/components/diy/text/index.vue
index bb4fd1cec..518e6c87f 100644
--- a/uni-app/src/app/components/diy/text/index.vue
+++ b/uni-app/src/app/components/diy/text/index.vue
@@ -43,7 +43,7 @@
import useDiyStore from '@/app/stores/diy';
import { img } from '@/utils/common';
- const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
+ const props = defineProps(['component', 'index']);
const diyStore = useDiyStore();
const diyComponent = computed(() => {
@@ -91,13 +91,6 @@
return style;
});
- watch(
- () => props.pullDownRefreshCount,
- (newValue, oldValue) => {
- // 处理下拉刷新业务
- }
- )
-
onMounted(() => {
refresh();
// 装修模式下刷新
diff --git a/uni-app/src/app/components/fixed/demo-index/index.vue b/uni-app/src/app/components/fixed/demo-index/index.vue
deleted file mode 100644
index df0379ab2..000000000
--- a/uni-app/src/app/components/fixed/demo-index/index.vue
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- 固定模板示例,我也可以装修
-
-
-
-
-
-
-
-
diff --git a/uni-app/src/app/locale/zh-Hans/pages.member.account.json b/uni-app/src/app/locale/zh-Hans/pages.member.account.json
index c853542cd..9a4b374ba 100644
--- a/uni-app/src/app/locale/zh-Hans/pages.member.account.json
+++ b/uni-app/src/app/locale/zh-Hans/pages.member.account.json
@@ -1,7 +1,9 @@
{
- "alipayAccountNo": "支付宝账号",
+ "alipayAccountNo": "支付宝收款码",
+ "wechatCode":"微信收款码",
"addBankCard": "添加银行卡",
- "addAlipayAccount": "添加支付宝账号",
+ "addWechatCode":"添加微信收款码",
+ "addAlipayAccount": "添加支付宝收款码",
"endNumber": "尾号",
"bankCard": "银行卡"
}
\ No newline at end of file
diff --git a/uni-app/src/app/locale/zh-Hans/pages.member.account_edit.json b/uni-app/src/app/locale/zh-Hans/pages.member.account_edit.json
index 2d06229dc..e1a24dc51 100644
--- a/uni-app/src/app/locale/zh-Hans/pages.member.account_edit.json
+++ b/uni-app/src/app/locale/zh-Hans/pages.member.account_edit.json
@@ -5,10 +5,14 @@
"addBankCardTips": "请添加持卡人本人的银行卡",
"editBankCard": "编辑银行卡",
"editBankCardTips": "请编辑持卡人本人的银行卡",
- "addAlipayAccount": "添加支付宝账号",
+ "addAlipayAccount": "添加支付宝收款码",
"addAlipayAccountTips": "请添加已实名的支付宝账号",
- "editAlipayAccount": "编辑支付宝账号",
+ "editAlipayAccount": "编辑支付宝收款码",
"editAlipayAccountTips": "请编辑已实名的支付宝账号",
+ "addWechatCodeAccount": "添加微信收款码",
+ "addWechatCodeAccountTips": "请添加已实名的微信账号",
+ "editWechatCodeAccount": "编辑微信收款码",
+ "editWechatCodeAccountTips": "请编辑已实名的微信账号",
"bankRealname": "持卡人姓名",
"bankRealnamePlaceholder": "请输入持卡人姓名",
"bankName": "银行名称",
@@ -19,5 +23,9 @@
"alipayRealnamePlaceholder": "请输入真实姓名",
"alipayAccountNo": "支付宝账号",
"alipayAccountNoPlaceholder": "请输入支付宝账号",
+ "wechatCodeAccountNo": "微信账号",
+ "wechatCodeAccountNoPlaceholder": "请输入微信账号",
+ "alipayAccountImgPlaceholder": "请上传支付宝收款码",
+ "wechatCodeAccountImgPlaceholder": "请上传微信收款码",
"deleteConfirm": "确定要删除该账号吗?"
}
\ No newline at end of file
diff --git a/uni-app/src/app/locale/zh-Hans/pages.member.apply_cash_out.json b/uni-app/src/app/locale/zh-Hans/pages.member.apply_cash_out.json
index f12234bd6..86a2a8805 100644
--- a/uni-app/src/app/locale/zh-Hans/pages.member.apply_cash_out.json
+++ b/uni-app/src/app/locale/zh-Hans/pages.member.apply_cash_out.json
@@ -10,13 +10,16 @@
"minWithdrawal": "最小提现金额为",
"commissionTo": "手续费为",
"cashOutList": "提现记录",
- "cashOutToWechat": "提现至微信",
+ "cashOutToWechat": "提现至微信零钱",
"cashOutToWechatTips": "提现至微信零钱",
"cashOutToAlipay": "提现至支付宝",
"cashOutToAlipayTips": "请先添加支付宝账号",
"cashOutToBank": "提现至银行卡",
"cashOutToBankTips": "请先添加银行卡",
+ "cashOutToWechatCode": "提现至微信",
+ "cashOutToWechatCodeTips": "请先添加微信号",
"alipayAccountNo": "支付宝账号",
+ "wechatCodeAccountNo": "微信号",
"debitCard": "储蓄卡",
"abnormalOperation": "异常操作",
"noAvailableCashOutType": "没有可用的提现方式",
diff --git a/uni-app/src/app/locale/zh-Hans/pages.member.cash_out_detail.json b/uni-app/src/app/locale/zh-Hans/pages.member.cash_out_detail.json
index 3f17229ab..ab6f690fc 100644
--- a/uni-app/src/app/locale/zh-Hans/pages.member.cash_out_detail.json
+++ b/uni-app/src/app/locale/zh-Hans/pages.member.cash_out_detail.json
@@ -1,12 +1,22 @@
{
"statusName": "当前状态",
- "cashOutNo": "交易号",
+ "cashOutNo": "提现单号",
"serviceMoney": "手续费",
"createTime": "申请时间",
"auditTime": "审核时间",
"transferBank": "银行名称",
"transferAccount": "收款账号",
"refuseReason": "拒绝理由",
- "transferTypeName": "转账方式名称",
- "transferTime": "转账时间"
+ "transferTypeName": "转账方式",
+ "transferTime": "转账时间",
+ "transferVoucher":"付款凭证",
+ "transferRemark":"转账补充说明",
+ "realname":"真实姓名",
+ "bankRealname":"持卡人姓名",
+ "transferCode":"收款码",
+ "proceedsInfo":"收款方信息",
+ "transferInfo":"转账信息",
+ "transferNickname":"收款方昵称",
+ "transferImg":"收款方头像",
+ "transferNo":"转账单号"
}
\ No newline at end of file
diff --git a/uni-app/src/app/pages/auth/bind.vue b/uni-app/src/app/pages/auth/bind.vue
index a5eac8305..334a6eefb 100644
--- a/uni-app/src/app/pages/auth/bind.vue
+++ b/uni-app/src/app/pages/auth/bind.vue
@@ -66,7 +66,7 @@
const headerHeight = computed(()=>{
return Object.keys(menuButtonInfo).length ? pxToRpx(Number(menuButtonInfo.height)) + pxToRpx(menuButtonInfo.top) + pxToRpx(8)+'rpx':'auto'
})
-
+
const memberStore = useMemberStore()
const info = computed(() => memberStore.info)
diff --git a/uni-app/src/app/pages/auth/index.vue b/uni-app/src/app/pages/auth/index.vue
index babd14846..db3d3233d 100644
--- a/uni-app/src/app/pages/auth/index.vue
+++ b/uni-app/src/app/pages/auth/index.vue
@@ -20,7 +20,7 @@
-
+
@@ -32,8 +32,8 @@
-
-
+
+
+
+
+
+
+
@@ -125,7 +132,8 @@
import { onLoad,onShow } from '@dcloudio/uni-app'
import { topTabar } from '@/utils/topTabbar'
import useSystemStore from '@/stores/system'
-
+ import { getMobile } from '@/app/api/member'
+
let menuButtonInfo: any = {};
// 如果是小程序,获取右上角胶囊的尺寸信息,避免导航栏右侧内容与胶囊重叠(支付宝小程序非本API,尚未兼容)
// #ifdef MP-WEIXIN || MP-BAIDU || MP-TOUTIAO || MP-QQ
@@ -162,17 +170,27 @@
return !configStore.login.is_auth_register;
});
const loginLoading = ref(false)
-
+
+ const infoFill: any = ref(false)
+
const popupRef = ref()
+
const dialogClose =()=>{
popupRef.value.close();
}
- const dialogConfirm =()=>{
- isAgree.value=true
+
+ const dialogConfirm =()=> {
+ isAgree.value = true
popupRef.value.close();
oneClickLogin()
}
+ // 强制绑定手机号
+ const bindMobileRef: any = ref(null)
+ const bindMobileFn = () =>{
+ bindMobileRef.value.open()
+ }
+
onLoad(async ()=> {
await systemStore.getSiteInfoFn()
await configStore.getLoginConfig()
@@ -230,17 +248,21 @@
})
// 检测是否同意小程序隐私协议和登录政策协议
- const checkWxPrivacy = ()=> {
+ const checkWxPrivacy = (status: any = '')=> {
if (!isAgree.value && configStore.login.agreement_show) {
- popupRef.value.open();
- // uni.showToast({ title: t('isAgreeTips'), icon: 'none' })
+ // 针对微信小程序获取手机号特殊处理
+ if (status) {
+ uni.showToast({ title: t('isAgreeTips'), icon: 'none' })
+ } else {
+ popupRef.value.open();
+ }
return true;
}
return false;
}
// 一键登录
- const oneClickLogin = (callback:any = null)=> {
+ const oneClickLogin = (callback:any = null,data:any = null)=> {
if (checkWxPrivacy()) return;
if (loginLoading.value) return
@@ -258,21 +280,41 @@
// 第三方平台自动登录
// #ifdef MP
- weappLogin(callback)
+ weappLogin(callback, data)
// #endif
}
// 微信公众登录
const wechatLogin = ()=> {
if (isWeixinBrowser()) {
- login.getAuthCode({ scopes : 'snsapi_userinfo' })
+ let loginConfig = uni.getStorageSync('login_config')
+ if (loginConfig.is_auth_register) {
+ // 开启强制绑定手机号,必须填写才能注册
+ if (loginConfig.is_bind_mobile) {
+ bindMobileFn();
+ } else if (loginConfig.is_force_access_user_info) {
+ // 开启强制获取用户信息
+ login.getAuthCode({ scopes: 'snsapi_userinfo' }) // 强制获取用户信息
+ } else if (!loginConfig.is_force_access_user_info) {
+ // 关闭强制获取用户信息,昵称随机生成
+ login.getAuthCode({ scopes: 'snsapi_base' }) // 静默获取
+ }
+ }
loginLoading.value = false
}
}
// 微信小程序登录
- const weappLogin = (successCallback: any)=> {
- login.getAuthCode({ backFlag: true, successCallback })
+ const weappLogin = (successCallback: any,data: any)=> {
+ let loginConfig = uni.getStorageSync('login_config')
+ let member_exist = uni.getStorageSync('member_exist')
+ if(loginConfig.is_auth_register && loginConfig.is_force_access_user_info && !member_exist) {
+ infoFill.value.show = true
+ loginLoading.value = false
+ }else {
+ data = data || {};
+ login.getAuthCode({ backFlag: true, successCallback, ...data })
+ }
}
const agreeChange = () => {
@@ -288,7 +330,7 @@
uni.setStorageSync('wap_member_mobile', memberInfo.value.mobile) // 存储会员手机号,防止重复请求微信获取手机号接口
}
loginLoading.value = false
- });
+ }, { mobile_code: e.detail.code });
}
if (e.detail.errno == 104) {
@@ -311,4 +353,4 @@
:deep(.u-checkbox){
margin:0 !important;
}
-
\ No newline at end of file
+
diff --git a/uni-app/src/app/pages/auth/login.vue b/uni-app/src/app/pages/auth/login.vue
index 77a9741ed..87eff81c2 100644
--- a/uni-app/src/app/pages/auth/login.vue
+++ b/uni-app/src/app/pages/auth/login.vue
@@ -21,9 +21,9 @@
-
+
-
+
@@ -98,7 +98,7 @@
diff --git a/uni-app/src/app/pages/index/diy.vue b/uni-app/src/app/pages/index/diy.vue
index 3180cdc89..3c7be9f9d 100644
--- a/uni-app/src/app/pages/index/diy.vue
+++ b/uni-app/src/app/pages/index/diy.vue
@@ -6,16 +6,9 @@
-
+
-
-
-
-
-
-
-
-
+
@@ -34,7 +27,6 @@
import {useDiy} from '@/hooks/useDiy'
import {useShare} from '@/hooks/useShare'
import diyGroup from '@/addon/components/diy/group/index.vue'
- import fixedGroup from '@/addon/components/fixed/group/index.vue'
const {setShare} = useShare()
@@ -61,13 +53,10 @@
// 监听页面隐藏
diy.onHide();
-
+
// 监听页面卸载
diy.onUnload();
- // 监听下拉刷新事件
- diy.onPullDownRefresh()
-
// 监听滚动事件
diy.onPageScroll()
@@ -86,4 +75,4 @@
}
/* #endif */
}
-
\ No newline at end of file
+
diff --git a/uni-app/src/app/pages/index/diy_form.vue b/uni-app/src/app/pages/index/diy_form.vue
new file mode 100644
index 000000000..9992886cc
--- /dev/null
+++ b/uni-app/src/app/pages/index/diy_form.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ {{item.type}}
+ {{item.desc}}
+
+
+
+
+ {{ t('close') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/pages/index/diy_form_detail.vue b/uni-app/src/app/pages/index/diy_form_detail.vue
new file mode 100644
index 000000000..06bffe0fa
--- /dev/null
+++ b/uni-app/src/app/pages/index/diy_form_detail.vue
@@ -0,0 +1,28 @@
+
+
+
+
+ {{ t('detailInformation') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/pages/index/diy_form_result.vue b/uni-app/src/app/pages/index/diy_form_result.vue
new file mode 100644
index 000000000..b8e946188
--- /dev/null
+++ b/uni-app/src/app/pages/index/diy_form_result.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+ {{ recordInfo.submitConfig.tips_type=='default' ? '填写成功' : recordInfo.submitConfig.tips_text }}
+
+ {{ t('viewFillingDetails') }}
+
+
+
+ {{ t('complete') }}
+
+
+ {{ t('back') }}
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/pages/index/index.vue b/uni-app/src/app/pages/index/index.vue
index 63e48ee46..43640bc0c 100644
--- a/uni-app/src/app/pages/index/index.vue
+++ b/uni-app/src/app/pages/index/index.vue
@@ -6,16 +6,9 @@
-
+
-
-
-
-
-
-
-
-
+
@@ -34,7 +27,6 @@
import {useDiy} from '@/hooks/useDiy'
import {redirect} from '@/utils/common';
import diyGroup from '@/addon/components/diy/group/index.vue'
- import fixedGroup from '@/addon/components/fixed/group/index.vue'
uni.hideTabBar() // 隐藏tabbar
@@ -73,9 +65,6 @@
// 监听页面卸载
diy.onUnload();
- // 监听下拉刷新事件
- diy.onPullDownRefresh()
-
// 监听滚动事件
diy.onPageScroll()
diff --git a/uni-app/src/app/pages/index/nosite.vue b/uni-app/src/app/pages/index/nosite.vue
index cdbb36ad7..66abccfb6 100644
--- a/uni-app/src/app/pages/index/nosite.vue
+++ b/uni-app/src/app/pages/index/nosite.vue
@@ -13,6 +13,8 @@
import { t } from '@/locale'
import useSystemStore from '@/stores/system'
+ uni.hideTabBar() // 隐藏tabbar
+
const systemStore = useSystemStore()
watch(
@@ -24,4 +26,4 @@
})
-
\ No newline at end of file
+
diff --git a/uni-app/src/app/pages/member/account.vue b/uni-app/src/app/pages/member/account.vue
index 8507884a0..544efbb61 100644
--- a/uni-app/src/app/pages/member/account.vue
+++ b/uni-app/src/app/pages/member/account.vue
@@ -8,10 +8,11 @@
+
- {{ item.account_type == 'bank' ? item.bank_name : t('alipayAccountNo') }}
+ {{ item.account_type == 'bank' ? item.bank_name : item.account_type == 'wechat_code'?t('wechatCode') : t('alipayAccountNo') }}
{{ t('endNumber') }} {{ item.account_no.substring(item.account_no.length - 4) }}{{ t('bankCard') }}
{{ item.account_no }}
@@ -23,7 +24,7 @@
diff --git a/uni-app/src/app/pages/member/account_edit.vue b/uni-app/src/app/pages/member/account_edit.vue
index c623ffca4..60749f499 100644
--- a/uni-app/src/app/pages/member/account_edit.vue
+++ b/uni-app/src/app/pages/member/account_edit.vue
@@ -28,7 +28,7 @@
{{ formData.account_id ? t('editAlipayAccount') : t('addAlipayAccount') }}
- {{ formData.account_id ? t('editAlipayAccountTips') : t('addAlipayAccountTips') }}
+
@@ -42,9 +42,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.account_id ? t('editWechatCodeAccount'): t('addWechatCodeAccount') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -81,7 +81,7 @@
-
+
diff --git a/uni-app/src/app/stores/diy.ts b/uni-app/src/app/stores/diy.ts
index ce9dd5a40..19401a76d 100644
--- a/uni-app/src/app/stores/diy.ts
+++ b/uni-app/src/app/stores/diy.ts
@@ -5,6 +5,7 @@ import { useLogin } from '@/hooks/useLogin';
interface Diy {
mode: string, // 模式:decorate 装修,为空表示正常
+ id: any,
pageMode: string, // 页面展示模式,diy:自定义,fixed:固定
currentIndex: number,
global: {
@@ -18,13 +19,15 @@ interface Diy {
value: any[],
topFixedStatus: string, // 置顶组件的状态
scrollTop: number,
- topTabarHeight: number
+ topTabarHeight: number,
+ componentRefs: any
}
const useDiyStore = defineStore('diy', {
state: (): Diy => {
return {
mode: '',
+ id: 0,
pageMode: 'diy',
currentIndex: -99,
global: {
@@ -37,7 +40,8 @@ const useDiyStore = defineStore('diy', {
value: [], // 组件集合
topFixedStatus: 'home', // 顶部 置顶组件状态,home:展示首页数据、diy:展示置顶组件定义的子页面
scrollTop: 0, // 滚动位置
- topTabarHeight: 0
+ topTabarHeight: 0,
+ componentRefs: null
}
},
getters: {},
@@ -131,8 +135,8 @@ const useDiyStore = defineStore('diy', {
}
diyRedirect(data);
}
- }
+ },
}
})
-export default useDiyStore
\ No newline at end of file
+export default useDiyStore