罗世杰:修改Dropdown.vue的bug

This commit is contained in:
LuoShijie
2023-11-16 22:26:18 +08:00
parent 00ebbba179
commit 10136f43f7
5 changed files with 29 additions and 8 deletions

View File

@@ -55,7 +55,8 @@
} }
}, },
created() { created() {
this.postlist[1]=JSON.parse(uni.getStorageSync('regionList')) this.postlist[0]=JSON.parse(uni.getStorageSync('classList'))
// this.postlist[1]=JSON.parse(uni.getStorageSync('regionList'))
}, },
methods: { methods: {
changeActiveIndex(index) { changeActiveIndex(index) {

View File

@@ -82,9 +82,6 @@
] ]
} }
} }
},
computed: {
}, },
methods: { methods: {
handleDel(shopid){ handleDel(shopid){

View File

@@ -29,15 +29,25 @@
</template> </template>
<script> <script>
import form from 'uview-ui/libs/config/props/form';
export default { export default {
data() { data() {
return { return {
show: false, show: false,
submitForm:{
name:'',
idcode:''
}
} }
}, },
methods: { methods: {
submit(){ submit(){
console.log('提交'); console.log('提交',form);
//this.$u.api.submit( this.form )
uni.$u.toast('提交成功')
}, },
confirmCheckWay(e){ confirmCheckWay(e){
@@ -74,7 +84,7 @@
margin-top: 10rpx; margin-top: 10rpx;
margin-left: 17rpx; margin-left: 17rpx;
color: #c1c1c1; color: #c1c1c1;
font-size: 27rpx; /* font-size: 27rpx; */
} }
</style> </style>

View File

@@ -42,7 +42,7 @@
notice: [], notice: [],
chooseIndex: 0, chooseIndex: 0,
statNum: {}, statNum: {},
swiperList: [] swiperList: [],
} }
}, },
onLoad() { onLoad() {
@@ -70,7 +70,12 @@
}, },
getClassList() { getClassList() {
this.$api.getClassList().then(res => { this.$api.getClassList().then(res => {
console.log(res.data.data); let data = res.data.data
data.sort((a,b)=>{
return a.id - b.id
})
data = data.map(item => item.name)
uni.setStorageSync('classList', JSON.stringify(data))
}) })
}, },
getRegionList() { getRegionList() {

View File

@@ -231,6 +231,14 @@ const apiService = {
return new Promise((resolve,reject) => { return new Promise((resolve,reject) => {
resolve(service.post(url)) resolve(service.post(url))
}) })
},
//招募合伙
toBePartner(data){
const url = `/center/partner`
return new Promise((resolve,reject) => {
console.log(data);
resolve(service.post(url,data))
})
} }
} }
export { export {