123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <template>
- <block>{{options}}</block>
- </template>
- <script module="parse" lang="wxs">
- module.exports = {
- filterTime: function(value) {
- var nowDate = getDate(value * 1000);
- var year = nowDate.getFullYear();
- var month = nowDate.getMonth() + 1;
- var date = nowDate.getDate();
- var hours = nowDate.getHours();
- return year + '-' + month + '-' + date
- }
- }
- </script>
- <script>
- var app = getApp();
- export default {
- data() {
- return {
- options: {}
- };
- },
- onLoad: function(options) {
- this.options = options;
- this.addTerm(1);
- },
- onPullDownRefresh: function() {},
- onReachBottom: function() {
- this.loaded || this.getlist();
- },
- onShareAppMessage: function() {},
- methods: {
- changeStatus(e) {
- },
- async addTerm(uid){
- console.log(uid);
- let data = await this.$api.request('/team/add', 'POST', {puid: uid});
- uni.switchTab({
- url:'../index/index'
- })
- }
- }
- };
- </script>
- <style>
- </style>
|