diff --git a/uni-app/api/auth.ts b/uni-app/api/auth.ts
index e2db48f07..25ab2eac0 100644
--- a/uni-app/api/auth.ts
+++ b/uni-app/api/auth.ts
@@ -32,14 +32,18 @@ export function logout() {
* 用户名注册
*/
export function usernameRegister(data : AnyObject) {
- return request.post('register', data, { showErrorMessage: true })
+ let url = 'register'
+ data.pid && (url += `?pid=${data.pid}`)
+ return request.post(url, data, { showErrorMessage: true })
}
/**
* 手机号注册
*/
export function mobileRegister(data : AnyObject) {
- return request.post('register/mobile', data, { showErrorMessage: true })
+ let url = 'register/mobile'
+ data.pid && (url += `?pid=${data.pid}`)
+ return request.post(url, data, { showErrorMessage: true })
}
/**
@@ -60,7 +64,9 @@ export function weappLogin(data : AnyObject) {
* 绑定手机号
*/
export function bind(data : AnyObject) {
- return request.post('bind', data, { showErrorMessage: true })
+ let url = 'bind'
+ data.pid && (url += `?pid=${data.pid}`)
+ return request.post(url, data, { showErrorMessage: true })
}
/**
diff --git a/uni-app/api/pay.ts b/uni-app/api/pay.ts
index 87d866443..05cf91478 100644
--- a/uni-app/api/pay.ts
+++ b/uni-app/api/pay.ts
@@ -10,6 +10,6 @@ export function pay(data : AnyObject) {
/**
* 获取支付信息
*/
-export function getPayInfo(outTradeNo : string) {
- return request.get(`pay/info/${outTradeNo}`, {}, { showErrorMessage: true })
+export function getPayInfo(tradeType : string, tradeId : number) {
+ return request.get(`pay/info/${tradeType}/${tradeId}`, {}, { showErrorMessage: true })
}
\ No newline at end of file
diff --git a/uni-app/components/diy/group/index.vue b/uni-app/components/diy/group/index.vue
index 54b25ca89..fa9b5d2a3 100644
--- a/uni-app/components/diy/group/index.vue
+++ b/uni-app/components/diy/group/index.vue
@@ -6,8 +6,6 @@
:class="{ selected: diyStore.currentIndex == index,decorate : diyStore.mode == 'decorate' }"
:style="component.pageStyle">
-
-
@@ -31,6 +29,12 @@
+
+
+
+
+
+
diff --git a/uni-app/components/diy/hot-area/index.vue b/uni-app/components/diy/hot-area/index.vue
new file mode 100644
index 000000000..dd26d5887
--- /dev/null
+++ b/uni-app/components/diy/hot-area/index.vue
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/components/diy/image-ads/index.vue b/uni-app/components/diy/image-ads/index.vue
index aa0f2aa6f..c87d07530 100644
--- a/uni-app/components/diy/image-ads/index.vue
+++ b/uni-app/components/diy/image-ads/index.vue
@@ -2,7 +2,7 @@
-
@@ -71,9 +71,6 @@
swiperIndex.value = e.detail.current;
};
- const handleData = () => {
- };
-
onMounted(() => {
refresh();
// 装修模式下刷新
@@ -100,7 +97,6 @@
}
});
}
- handleData()
}
diff --git a/uni-app/components/diy/rubik-cube/index.vue b/uni-app/components/diy/rubik-cube/index.vue
new file mode 100644
index 000000000..dacfef7d6
--- /dev/null
+++ b/uni-app/components/diy/rubik-cube/index.vue
@@ -0,0 +1,549 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/components/fixed/demo-index/index.vue b/uni-app/components/fixed/demo-index/index.vue
index 2664bd09b..96ddf7dba 100644
--- a/uni-app/components/fixed/demo-index/index.vue
+++ b/uni-app/components/fixed/demo-index/index.vue
@@ -1,39 +1,14 @@
-
+
固定模板示例,我也可以装修
- 我定义的数据源:{{ diyComponent.componentName }}
+
+
\ No newline at end of file
diff --git a/uni-app/components/fixed/group/index.vue b/uni-app/components/fixed/group/index.vue
index 6792d3ee5..a613b1ac6 100644
--- a/uni-app/components/fixed/group/index.vue
+++ b/uni-app/components/fixed/group/index.vue
@@ -1,14 +1,12 @@
-
-
+
+