创意发布&需求发布列表接口初步完成
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
<u--image src="/static/my/wo_icon_hyzxbj.png" width="750rpx" height="349rpx" :lazy-load="true">
|
||||
</u--image>
|
||||
<myAvatar :center="show"></myAvatar>
|
||||
<view style="height: 56rpx;"></view>
|
||||
<myForm ref="nameAndphone"></myForm>
|
||||
<view class="commitment">
|
||||
{{commitment}}
|
||||
</view>
|
||||
|
||||
<u-button type="success" text="升级VIP" color="#0EBB5B" @click="showModal()"></u-button>
|
||||
<u-modal :show="showM" closeOnClickOverlay confirmText="确定" @confirm="confirm" @close="close">
|
||||
<rich-text :nodes="content"></rich-text>
|
||||
@@ -77,8 +77,6 @@
|
||||
border-radius: 20rpx !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.u-modal__content {
|
||||
padding: 43rpx 104rpx !important;
|
||||
text-indent: 14rpx;
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
showM: false,
|
||||
content: '您确定删除吗?',
|
||||
tabCurrent: 0,
|
||||
type: '',
|
||||
tabsList: [{
|
||||
name: '需求发布'
|
||||
}, {
|
||||
@@ -84,10 +85,27 @@
|
||||
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
if (this.tabCurrent == 0) {
|
||||
this.type = 2
|
||||
} else if (this.tabCurrent == 1) {
|
||||
this.type = 1
|
||||
}
|
||||
this.getIdeasAndNeeds()
|
||||
},
|
||||
methods: {
|
||||
//获取创意发布
|
||||
getIdeasAndNeeds() {
|
||||
this.$apiServe.getIdeasAndNeeds(this.type).then(res => {
|
||||
console.log('获取创意发布&需求发布', res.data);
|
||||
// this.productList = data
|
||||
}).finally(_ => {
|
||||
|
||||
})
|
||||
},
|
||||
tabChange(data) {
|
||||
this.tabCurrent = data.index
|
||||
this.needsPublishForm = {}
|
||||
this.getIdeasAndNeeds()
|
||||
},
|
||||
//删除按钮
|
||||
showModal() {
|
||||
@@ -113,7 +131,6 @@
|
||||
editIdeas() {
|
||||
console.log('修改创意');
|
||||
uni.reLaunch({
|
||||
// id=' + ideaId + '&
|
||||
url: '/pages/ideasAndNeeds/ideasAndNeeds?index=' + 1
|
||||
})
|
||||
}
|
||||
@@ -122,39 +139,11 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.u-modal {
|
||||
width: 472rpx !important;
|
||||
|
||||
}
|
||||
|
||||
.u-modal__button-group__wrapper--cancel {
|
||||
|
||||
background: #D8D8D8;
|
||||
|
||||
.u-modal__button-group__wrapper__text {
|
||||
color: #fff !important;
|
||||
}
|
||||
}
|
||||
|
||||
.u-modal__content {
|
||||
padding: 43rpx 104rpx !important;
|
||||
text-indent: 25rpx;
|
||||
}
|
||||
|
||||
.u-modal__content__text {
|
||||
font-size: 32rpx !important;
|
||||
font-weight: 400;
|
||||
color: #252421 !important;
|
||||
}
|
||||
|
||||
.u-modal__button-group__wrapper--confirm {
|
||||
background: #0EBB5B;
|
||||
|
||||
.u-modal__button-group__wrapper__text {
|
||||
color: #fff !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.u-tabs {
|
||||
margin-bottom: 10rpx;
|
||||
|
||||
Reference in New Issue
Block a user