This commit is contained in:
zmr900709 2020-06-22 17:45:39 +08:00
parent d384e6d4e7
commit 7c62d68806
3 changed files with 33 additions and 5 deletions

View File

@ -54,7 +54,12 @@ export default {
member_mobile: member_mobile, member_mobile: member_mobile,
sms_code: sms_code sms_code: sms_code
}); });
} },
// 标签的列表
labelList({}) {
return vm.$u.post('StartUp/labelList', {});
},
} }
} }
} }

View File

@ -155,8 +155,13 @@
data: res.data, data: res.data,
success: function() { success: function() {
console.log('success'); console.log('success');
//
uni.switchTab({
url: '/pages/index/index'
});
} }
}); });
// token // token
uni.setStorage({ uni.setStorage({
key: 'token', key: 'token',

View File

@ -10,7 +10,7 @@
</view> </view>
<!-- 标签 --> <!-- 标签 -->
<view class="tab_lable"> <view class="tab_lable">
<view :class="{'cur': rSelect.indexOf(index)!=-1}" v-for="(item,index) in tab_lables" :key="index" @click="tapClick(index)">{{item}}</view> <view :class="{'cur': rSelect.indexOf(index)!=-1}" v-for="(item,index) in tab_lables" :key="index" @click="tapClick(index)">{{item.name}}</view>
</view> </view>
<!-- 提交按钮 --> <!-- 提交按钮 -->
<view class="submites" @click="toHomePage">{{submites}}</view> <view class="submites" @click="toHomePage">{{submites}}</view>
@ -28,11 +28,19 @@
value: '', value: '',
login: '登录', login: '登录',
show: false, show: false,
tab_lables: ["科技", "科技", "科技", "科技", "科技", "科技", "科技", "科技", "科技", "科技"], tab_lables: [],
submites: '选好了进入首页', submites: '选好了进入首页',
rSelect:[] rSelect:[]
}; };
}, },
onLoad(){
//
this.labelList()
},
mounted(){
},
methods: { methods: {
// checkbox // checkbox
checkboxChange(e) { checkboxChange(e) {
@ -59,7 +67,17 @@
uni.switchTab({ uni.switchTab({
url: '/pages/index/index' url: '/pages/index/index'
}); });
} },
//
labelList(){
console.log("11111222")
this.$u.api.labelList({
}).then((res) => {
console.log(res)
this.tab_lables = res.data
})
},
} }
}; };
</script> </script>