同步数据
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="apply">
|
<view class="apply" v-if="loaded">
|
||||||
<u-avatar :src="group.cover" size="128" shape="square"></u-avatar>
|
<u-avatar :src="group.cover || require('@/static/user/cover.png')" size="128" shape="square" />
|
||||||
<view class="name">
|
<view class="name">
|
||||||
{{ group.name }}
|
{{ group.name }}
|
||||||
</view>
|
</view>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<u-modal negativeTop="300" :show="modalShow" title="申请原因" showCancelButton @cancel="onHideModal"
|
<u-modal negativeTop="300" :show="modalShow" title="申请原因" showCancelButton @cancel="onHideModal"
|
||||||
@confirm="onJoinGroup">
|
@confirm="onJoinGroup">
|
||||||
<view class="slot-content">
|
<view class="slot-content">
|
||||||
<u--input placeholder="申请原因" border="surround" focus v-model="message"></u--input>
|
<u--input placeholder="申请原因" border="surround" focus v-model="message" />
|
||||||
</view>
|
</view>
|
||||||
</u-modal>
|
</u-modal>
|
||||||
</view>
|
</view>
|
||||||
@@ -34,14 +34,17 @@
|
|||||||
group: {},
|
group: {},
|
||||||
modalShow: false,
|
modalShow: false,
|
||||||
message: '',
|
message: '',
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
loaded:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
this.targetId = e.targetId
|
// this.targetId = e.targetId || TG2
|
||||||
|
this.targetId = "TG2"
|
||||||
joinGroupPre(this.targetId).then(res => {
|
joinGroupPre(this.targetId).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.group = res
|
this.group = res
|
||||||
|
this.loaded = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user