Commit 2a1ed63d authored by 罗林杰's avatar 罗林杰

修改访问量

parent 4286343e
...@@ -200,4 +200,13 @@ export function deleteTalk(data) { ...@@ -200,4 +200,13 @@ export function deleteTalk(data) {
url: '/app/memLeaveMessage/delete/'+data, url: '/app/memLeaveMessage/delete/'+data,
method: 'delete', method: 'delete',
}) })
}
// 新增访问量
export function addMemTraffic(data) {
return request({
url: '/app/memtraffic/add',
method: 'post',
data: data
})
} }
\ No newline at end of file
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
</template> </template>
<script> <script>
import {addFollow, addMessage, deleteFollow, isFollow, likeUser, userDetail} from "../api/user"; import {addFollow, addMemTraffic, addMessage, deleteFollow, isFollow, likeUser, userDetail} from "../api/user";
import {getCity, getValue} from '../common/options' import {getCity, getValue} from '../common/options'
import {parseDate,calculateAge} from '../common/index' import {parseDate,calculateAge} from '../common/index'
import LsSwiper from '../components/ls-swiper/index.vue'; import LsSwiper from '../components/ls-swiper/index.vue';
...@@ -249,8 +249,9 @@ import {getDict} from "../api/system/dict/data"; ...@@ -249,8 +249,9 @@ import {getDict} from "../api/system/dict/data";
}, },
onLoad(options) { onLoad(options) {
this.memberId = options.memberId; this.memberId = options.memberId;
this.getUserDetail(); this.getUserDetail()
this.getUserLikeDict() this.getUserLikeDict()
this.addMemTraffic()
if (options.share != null) { if (options.share != null) {
this.share = options.share; this.share = options.share;
} }
...@@ -475,6 +476,12 @@ import {getDict} from "../api/system/dict/data"; ...@@ -475,6 +476,12 @@ import {getDict} from "../api/system/dict/data";
url: "/pagesUser/addMessage?userId=" + id url: "/pagesUser/addMessage?userId=" + id
}) })
}, },
addMemTraffic(){
const form = {
memberId: this.memberId,
}
addMemTraffic(form)
},
//返回按钮 //返回按钮
backbar() { backbar() {
uni.navigateBack({ uni.navigateBack({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment