diff --git a/mixins/config.js b/mixins/config.js
index bace23c..0acd8ba 100644
--- a/mixins/config.js
+++ b/mixins/config.js
@@ -31,11 +31,17 @@ export default {
// 默认的全局分享参数
GShare() {
+ const obj = {}
+ if (this.$store.state.userInfo.id) {
+ obj.path = this.configParamContent('xcxSharePage') + '?inviter=' + this.$store.state.userInfo.id
+ }else {
+ obj.path = this.configParamContent('xcxSharePage')
+ }
return {
title: this.configParamContent('app_name'),
desc: this.configParamContent('share_desc'),
imageUrl: this.configParamContent('login_logo'),
- path: this.configParamContent('xcxSharePage'),
+ ...obj
}
}
},
@@ -53,7 +59,10 @@ export default {
...this.mixinCustomShare()
}
},
- onLoad() {
+ onLoad(args) {
// this.calculateContainerHeight();
+ if (args.inviter){
+ uni.setStorageSync('inviter', args.inviter)
+ }
}
}
diff --git a/pages/components/SplashScreen.vue b/pages/components/SplashScreen.vue
new file mode 100644
index 0000000..3fa5cb2
--- /dev/null
+++ b/pages/components/SplashScreen.vue
@@ -0,0 +1,205 @@
+
+
+
+
+
+
+
+
+
+ 跳過 ({{ countdown }}s)
+
+
+
+
+ {{ configParamContent('creen_en') }}
+
+
+ {{ configParamContent('creen_zh') }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/index/desk.vue b/pages/index/desk.vue
index 0cd6a6d..933565c 100644
--- a/pages/index/desk.vue
+++ b/pages/index/desk.vue
@@ -51,8 +51,10 @@
-
-
+
+
+
+
@@ -95,7 +97,7 @@ export default {
title: '确认删除',
content: `确定要从书桌中移除《${book.book.booksName}》吗?`,
confirmText: '删除',
- confirmColor: '#ff4757',
+ confirmColor: '#06DADC',
success: (res) => {
if (res.confirm) {
this.deleteBook(book, index)
@@ -144,6 +146,7 @@ export default {
onShow() {
// 只有登录才会获取书籍
if (uni.getStorageSync('token')) {
+ this.list = []
this.initPage()
this.getList(true)
}
diff --git a/pages/index/home.vue b/pages/index/home.vue
index 2560c00..9362e50 100644
--- a/pages/index/home.vue
+++ b/pages/index/home.vue
@@ -1,5 +1,8 @@
+
+
+
@@ -164,7 +167,12 @@