-
积分明细
-
-
-
-
{{ item.detail }}
-
{{ item.createTime }}
-
-
- {{ item.calcType === '0' ? '-' : '+' }}
- {{ item.integral || 0 }}
- 积分
-
-
-
+
+
+
+ 个人中心
+
+
+
+ 商户中心
+
+
+
+ 积分明细
@@ -68,7 +65,6 @@
onLoad () {
if (this.token) {
this.getUserInfo()
- this.getList()
} else {
this.autoLogin()
}
@@ -78,23 +74,14 @@
})
},
- onShow () {
- this.isMore = false
- this.current = 1
-
- this.$nextTick(() => {
- this.getList()
- })
- },
-
methods: {
...mapActions(['autoLogin', 'getUserInfo']),
- toSetting () {
+ linkTo (url) {
if (!this.token) {
this.autoLogin()
} else {
- this.$linkTo('./UserInfo')
+ this.$linkTo(url)
}
},
@@ -107,44 +94,7 @@
} else {
this.getUserInfo()
}
- },
-
- getList () {
- if (this.isMore) return
-
- this.$instance.post(`/api/appwechatintegraldetail/list`, null, {
- params: {
- current: this.current,
- size: 10,
- openId: this.user.openId
- }
- }).then(res => {
- if (res.code === 0) {
- this.$hideLoading()
- if (this.current > 1) {
- this.list = [...this.list, ...res.data.records]
- } else {
- this.list = res.data.records
- }
-
- if (res.data.records.length < 10) {
- this.isMore = true
-
- return false
- }
-
- this.current = this.current + 1
- } else {
- this.isMore = true
- }
- }).catch(() => {
- this.$hideLoading()
- })
}
- },
-
- onReachBottom () {
- this.getList()
}
}
@@ -158,6 +108,32 @@
box-sizing: border-box;
}
+ .my-group {
+ margin: 0 32px;
+
+ .group-item {
+ display: flex;
+ align-items: center;
+ height: 100px;
+ margin-bottom: 24px;
+ padding: 0 16px;
+ box-shadow: 0 0 8px 0 rgba(0,0,0,0.02);
+ border-radius: 16px;
+ background: #fff;
+
+ image {
+ width: 48px;
+ height: 48px;
+ margin-right: 18px;
+ }
+
+ span {
+ color: #666666;
+ font-size: 30px;
+ }
+ }
+ }
+
.user, .info {
display: flex;
align-items: center;
@@ -189,66 +165,6 @@
}
}
- .my-list {
- padding: 0 32px;
-
- & > h2 {
- margin-bottom: 42px;
- font-weight: 600;
- font-size: 34px;
- color: #333333;
- }
-
- .item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 24px;
- padding: 24px;
- background: #FFFFFF;
- box-shadow: 0 0 8px 0 rgba(0,0,0,0.02);
- border-radius: 16px;
-
- .right {
- display: flex;
- align-items: baseline;
- line-height: 1;
-
- i {
- color: #FFB94C;
- font-size: 32px;
- }
-
- span {
- color: #FFB94C;
- font-size: 40px;
- }
-
- em {
- font-size: 26px;
- color: #999999;
- }
- }
-
- .left {
- flex: 1;
- margin-right: 20px;
-
- h2 {
- line-height: 1.3;
- margin-bottom: 10px;
- font-size: 34px;
- color: #333333;
- }
-
- p {
- font-size: 26px;
- color: #999999;
- }
- }
- }
- }
-
.info {
display: flex;
align-items: center;
diff --git a/src/project/tianfuxing/AppMy/Integral.vue b/src/project/tianfuxing/AppMy/Integral.vue
new file mode 100644
index 0000000..735e79f
--- /dev/null
+++ b/src/project/tianfuxing/AppMy/Integral.vue
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
{{ item.detail }}
+
{{ item.createTime }}
+
+
+ {{ item.calcType === '0' ? '-' : '+' }}
+ {{ item.integral || 0 }}
+ 积分
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/project/tianfuxing/AppMy/Merchants.vue b/src/project/tianfuxing/AppMy/Merchants.vue
new file mode 100644
index 0000000..637296c
--- /dev/null
+++ b/src/project/tianfuxing/AppMy/Merchants.vue
@@ -0,0 +1,176 @@
+
+
+
+
+
+
商户名称名称名称
+
成都市金牛区xxxx大厦成都成都成都成都市金牛区xxxx大厦成都成都成都成…
+
+
+
+
我发布的优惠
+
+
+
+
Lv.1会员进店享受9折优惠
+
百年征程波澜壮阔,百年初心历久弥坚。7月1日上午,庆祝中国共产党成立100周年大会在北京天安门广场隆重举行,各界代表7万余人以盛…百年征程波澜壮阔,百年初心历久弥坚。7月1日上午,庆祝中国共产党成立100周年大会在北京天安门广场隆重举行,各界代表7万余人以盛…
+
+ 审核通过
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/project/tianfuxing/AppMy/UserInfo.vue b/src/project/tianfuxing/AppMy/UserInfo.vue
index 980626a..320ed64 100644
--- a/src/project/tianfuxing/AppMy/UserInfo.vue
+++ b/src/project/tianfuxing/AppMy/UserInfo.vue
@@ -22,10 +22,22 @@