更新
This commit is contained in:
parent
8cbc068624
commit
cf369722b6
@ -10,50 +10,53 @@
|
||||
@delete="deleteFile" limit="1"></uni-file-picker>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item labelWidth="280rpx" label="昵称" required name="nickName">
|
||||
<uni-easyinput v-model="valiFormData.nickName" placeholder="请输入" />
|
||||
<uni-easyinput v-model="valiFormData.nickName" placeholder="请输入"/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item labelWidth="280rpx" label="联系方式" required name="phonenumber">
|
||||
<uni-easyinput v-model="valiFormData.phonenumber" placeholder="请输入" />
|
||||
<uni-easyinput v-model="valiFormData.phonenumber" placeholder="请输入"/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item labelWidth="280rpx" label="绑定手机号" required name="userName">
|
||||
<uni-easyinput disabled v-model="valiFormData.userName" />
|
||||
<uni-easyinput disabled v-model="valiFormData.userName"/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item labelWidth="280rpx" label="收款码" name="trecipientImage">
|
||||
<uni-file-picker small="true" :value="recipientImageList" :sizeType="sizeType"
|
||||
@select="afterReadRecipient" @delete="deleteFileRecipient" limit="1"></uni-file-picker>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item labelWidth="280rpx" label="收款码真实姓名" name="trecipientName">
|
||||
<uni-easyinput v-model="valiFormData.trecipientName" placeholder="请输入" />
|
||||
<uni-easyinput v-model="valiFormData.trecipientName" placeholder="请输入"/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item labelWidth="280rpx" label="通告报名免打扰" name="topenDisturb">
|
||||
<uni-data-checkbox v-model="valiFormData.topenDisturb" :localdata="ranges" />
|
||||
<uni-data-checkbox v-model="valiFormData.topenDisturb" :localdata="ranges"/>
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
<button type="primary" style="background-color: #FC2B49;" @click="submit('valiForm')">提交</button>
|
||||
<view class="my-black-list" @click="goMyBlackList()">我的黑名单<uni-icons type="right" color="#623109"
|
||||
size="12"></uni-icons></view>
|
||||
<view class="my-black-list" @click="goMyBlackList()">我的黑名单
|
||||
<uni-icons type="right" color="#623109"
|
||||
size="12"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||
import config from '@/config'
|
||||
import {
|
||||
queryDetail,uniSaveMember
|
||||
} from '@/api/business/member.js'
|
||||
import upload from '@/utils/upload'
|
||||
export default {
|
||||
import navigationBarVue from '@/components/navigation/navigationBar.vue';
|
||||
import config from '@/config'
|
||||
import {
|
||||
queryDetail, uniSaveMember
|
||||
} from '@/api/business/member.js'
|
||||
import upload from '@/utils/upload'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
navigationBarVue
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
userType:'',
|
||||
userType: '',
|
||||
sizeType: ['compressed'],
|
||||
//头像数组
|
||||
fileList: [],
|
||||
fileImageUrl:[],
|
||||
fileImageUrl: [],
|
||||
//收款码数组
|
||||
recipientImageList: [],
|
||||
recipientImageUrl: [],
|
||||
@ -109,14 +112,14 @@
|
||||
},
|
||||
}
|
||||
},
|
||||
onLoad(options){
|
||||
onLoad(options) {
|
||||
this.userType = options.userType
|
||||
this.userId = options.userId
|
||||
this.initData(options.userType,options.userId)
|
||||
this.initData(options.userType, options.userId)
|
||||
},
|
||||
methods: {
|
||||
goMyBlackList() {
|
||||
this.$tab.navigateTo('/pages/mine/set/black-list?userId='+this.userId)
|
||||
this.$tab.navigateTo('/pages/mine/set/black-list?userId=' + this.userId)
|
||||
},
|
||||
submit(ref) {
|
||||
this.valiFormData.avatar = this.fileImageUrl.join(',');
|
||||
@ -137,27 +140,27 @@
|
||||
},
|
||||
|
||||
/**初始化数据*/
|
||||
initData(userType,userId){
|
||||
initData(userType, userId) {
|
||||
this.fileList = []
|
||||
this.fileImageUrl = []
|
||||
this.recipientImageList = []
|
||||
this.recipientImageUrl = []
|
||||
queryDetail({userType:userType,userId:userId}).then(res=>{
|
||||
console.log(res,131)
|
||||
queryDetail({userType: userType, userId: userId}).then(res => {
|
||||
console.log(res, 131)
|
||||
this.valiFormData = res.data
|
||||
if (this.valiFormData.avatar != null && this.valiFormData.avatar != ''){
|
||||
if (this.valiFormData.avatar != null && this.valiFormData.avatar != '') {
|
||||
this.fileImageUrl = this.valiFormData.avatar.split(',')
|
||||
this.fileImageUrl.map((item)=>{
|
||||
this.fileImageUrl.map((item) => {
|
||||
this.fileList.push({
|
||||
url:item
|
||||
url: item
|
||||
})
|
||||
})
|
||||
}
|
||||
if (this.valiFormData.trecipientImage != null && this.valiFormData.trecipientImage != ''){
|
||||
if (this.valiFormData.trecipientImage != null && this.valiFormData.trecipientImage != '') {
|
||||
this.recipientImageUrl = this.valiFormData.trecipientImage.split(',')
|
||||
this.recipientImageUrl.map((item)=>{
|
||||
this.recipientImageUrl.map((item) => {
|
||||
this.recipientImageList.push({
|
||||
url:config.baseUrl + item
|
||||
url: item
|
||||
})
|
||||
})
|
||||
}
|
||||
@ -204,11 +207,11 @@
|
||||
this.recipientImageUrl.splice(index, 1);
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.my-info-box {
|
||||
.my-info-box {
|
||||
padding-top: calc(90rpx + var(--status-bar-height));
|
||||
border-top: 1rpx solid #F4F4F4;
|
||||
background-color: white;
|
||||
@ -241,5 +244,5 @@
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -379,14 +379,14 @@
|
||||
if (this.dataObj.images) {
|
||||
this.dataObj.images.split(',').forEach(it => {
|
||||
this.fileList.push({
|
||||
url: config.baseUrl + it
|
||||
url: it
|
||||
})
|
||||
})
|
||||
}
|
||||
if (this.dataObj.groupImage) {
|
||||
this.dataObj.groupImage.split(',').forEach(it => {
|
||||
this.groupImageList.push({
|
||||
url: config.baseUrl + it
|
||||
url: it
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user