diff --git a/uni-app/src/App.vue b/uni-app/src/App.vue
index fbbadffa1..362d5e55e 100644
--- a/uni-app/src/App.vue
+++ b/uni-app/src/App.vue
@@ -1,7 +1,7 @@
\ 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..88376cad5
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-checkbox/index.vue
@@ -0,0 +1,324 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ item.text}}、
+
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ item.text}}、
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.text}},
+
+ {{checkboxPlaceholder}}
+
+
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.text}},
+
+ {{checkboxPlaceholder}}
+
+
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
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..203f3b5fd
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-date-scope/index.vue
@@ -0,0 +1,304 @@
+
+
+
+
+ {{ 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 ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+
+
+
+ {{ startDate }}
+
+
+ -
+
+
+
+ {{ endDate }}
+
+
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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..f0dd85ca9
--- /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 ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+
+
+ {{ startDate }}
+
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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..0e53e35f4
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-email/index.vue
@@ -0,0 +1,199 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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..63e74a0c5
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-identity-privacy/index.vue
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
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..4011d153e
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-identity/index.vue
@@ -0,0 +1,227 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ formattedIdentity }}
+ 查看
+
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ formattedIdentity }}
+ 查看
+
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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..2ed2b9109
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-image/index.vue
@@ -0,0 +1,316 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+
+
+
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请上传图片
+
+
+
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ diyComponent.field.required ? '*' : '' }}
+ {{ diyComponent.field.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+ 请上传图片
+
+
+
+
+
+ {{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..c3f670b63
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-input/index.vue
@@ -0,0 +1,195 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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..d32edeacb
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-mobile/index.vue
@@ -0,0 +1,226 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ formattedPhoneNumber }}
+ 查看
+
+
+
+
+
+ {{ diyComponent.field.name }}
+
+ {{ formattedPhoneNumber }}
+ 查看
+
+
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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..5bbe9dc72
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-number/index.vue
@@ -0,0 +1,201 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+ {{diyComponent.unit}}
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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..d60a7d1eb
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-privacy-pop/index.vue
@@ -0,0 +1,43 @@
+
+
+
+
+ 提示
+
+ {{data}}
+
+
+ 我知道了
+
+
+
+
+
+
+
+
+
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..bdb76dc4a
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-privacy/index.vue
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
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..578daf7ef
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-radio/index.vue
@@ -0,0 +1,330 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ item.text}}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ item.text}}
+
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{getSelectRadioName}}
+
+ {{radioPlaceholder}}
+
+
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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..80424a806
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-submit/index.vue
@@ -0,0 +1,341 @@
+
+
+
+
+
+
+ {{ 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..a1c4458be
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-textarea/index.vue
@@ -0,0 +1,208 @@
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.value }}
+
+
+
+
+
+
+ {{ diyComponent.field.name }}
+ {{ diyComponent.field.required ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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..9267aefc5
--- /dev/null
+++ b/uni-app/src/app/components/diy/form-time-scope/index.vue
@@ -0,0 +1,345 @@
+
+
+
+
+ {{ 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 ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+
+
+
+ {{ startTime }}
+
+
+ -
+
+
+
+ {{ endTime }}
+
+
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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..1d7c09e2f
--- /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 ? '*' : '' }}
+ 已隐藏
+
+
+ {{errorInfo.message}}
+
+
+
+
+ {{ startTime }}
+
+
+
+ {{item.title}}
+
+
+
+ 已隐藏
+
+
+ {{ 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.json b/uni-app/src/app/locale/zh-Hans/pages.member.cash_out.json
index 33480d61d..c3d56f496 100644
--- a/uni-app/src/app/locale/zh-Hans/pages.member.cash_out.json
+++ b/uni-app/src/app/locale/zh-Hans/pages.member.cash_out.json
@@ -8,5 +8,5 @@
"commissionDetail": "佣金记录",
"emptyTip": "暂无提现记录",
"commissemptyTip": "暂无佣金记录",
- "rechargeType":"充值方式:"
-}
\ No newline at end of file
+ "rechargeType":"提现方式:"
+}
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..f07b50baf 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,40 @@
// 第三方平台自动登录
// #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')
+ if(loginConfig.is_auth_register && loginConfig.is_force_access_user_info) {
+ infoFill.value.show = true
+ loginLoading.value = false
+ }else {
+ data = data || {};
+ login.getAuthCode({ backFlag: true, successCallback, ...data })
+ }
}
const agreeChange = () => {
@@ -288,7 +329,7 @@
uni.setStorageSync('wap_member_mobile', memberInfo.value.mobile) // 存储会员手机号,防止重复请求微信获取手机号接口
}
loginLoading.value = false
- });
+ }, { mobile_code: e.detail.code });
}
if (e.detail.errno == 104) {
@@ -311,4 +352,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..39ea743f0
--- /dev/null
+++ b/uni-app/src/app/pages/index/diy_form.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ {{item.type}}
+ {{item.desc}}
+
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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..dde624143
--- /dev/null
+++ b/uni-app/src/app/pages/index/diy_form_detail.vue
@@ -0,0 +1,28 @@
+
+
+
+
+ 详细信息
+
+
+
+
+
+
+
+
+
+
+
+
+
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..c1251a12e
--- /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 }}
+
+ 查看填写详情
+
+
+
+ 完成
+
+
+ 返回
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/app/pages/index/index.vue b/uni-app/src/app/pages/index/index.vue
index 63e48ee46..c8cb29dae 100644
--- a/uni-app/src/app/pages/index/index.vue
+++ b/uni-app/src/app/pages/index/index.vue
@@ -6,16 +6,9 @@
-
+
-
-
-
-
-
-
-
-
+
@@ -34,9 +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
const diy = useDiy({
name: 'DIY_INDEX'
@@ -73,9 +63,6 @@
// 监听页面卸载
diy.onUnload();
- // 监听下拉刷新事件
- diy.onPullDownRefresh()
-
// 监听滚动事件
diy.onPageScroll()
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
diff --git a/uni-app/src/components/area-select/area-select.vue b/uni-app/src/components/area-select/area-select.vue
index a072d610e..675f727aa 100644
--- a/uni-app/src/components/area-select/area-select.vue
+++ b/uni-app/src/components/area-select/area-select.vue
@@ -2,7 +2,6 @@