罗世杰:修改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() {
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: {
changeActiveIndex(index) {

View File

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

View File

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

View File

@@ -42,7 +42,7 @@
notice: [],
chooseIndex: 0,
statNum: {},
swiperList: []
swiperList: [],
}
},
onLoad() {
@@ -70,7 +70,12 @@
},
getClassList() {
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() {

View File

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