|
@@ -6,19 +6,19 @@
|
|
|
<image :src="dataObj.circleHead?dataObj.circleHead:'../../static/imgs/mySet/ewm.png'" mode="widthFix" class="img"></image>
|
|
|
</view>
|
|
|
<view class="right">
|
|
|
- <view class="top flex flex-between">
|
|
|
- <span class="text">
|
|
|
+ <view class="top flex flex-between">
|
|
|
+ <view class="text">
|
|
|
{{dataObj.circleName}}({{dataObj.cardNum}})
|
|
|
- </span>
|
|
|
+ </view>
|
|
|
<span class="join" @click="$u.debounce(addCircle, 500)" v-if="!dataObj.circleCardInfo">
|
|
|
<uni-icons type="plusempty" size="12" color="#fff"
|
|
|
style="margin:0 10rpx;font-weight: bold;"></uni-icons>加入
|
|
|
</span>
|
|
|
- <span class="join" @click="$u.debounce(exitCircle, 500)" v-else>
|
|
|
+ <span class="join" @click="exitCircle" v-else>
|
|
|
退出
|
|
|
</span>
|
|
|
</view>
|
|
|
- <view class="bottom flex">
|
|
|
+ <view style='flex-wrap: wrap;' class="bottom flex">
|
|
|
<view v-for="item in dataObj.circleLabel" class="text">
|
|
|
{{item}}
|
|
|
</view>
|
|
@@ -39,7 +39,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="relative" style='top:136px;'>
|
|
|
+ <view class="relative" style='top:150px;'>
|
|
|
<mescroll-uni height='1200' ref="mescrollRef" @init="mescrollInit" @up="upCallback" @down="downCallback" >
|
|
|
<view class="content3" v-for="(item,index) in changeCardList"
|
|
|
:style="item.currentBackground?'background:url('+item.currentBackground+');background-size:100% 100%':''"
|
|
@@ -47,7 +47,7 @@
|
|
|
<view class="flex item">
|
|
|
<view class="top flex">
|
|
|
<view class="left">
|
|
|
- <u--image src="https://cdn.uviewui.com/uview/album/1.jpg" shape="circle" width="66px"
|
|
|
+ <u--image :src="item.headSculpture?item.headSculpture:'https://cdn.uviewui.com/uview/album/1.jpg'" shape="circle" width="66px"
|
|
|
height="66px"></u--image>
|
|
|
</view>
|
|
|
<view class="right">
|
|
@@ -86,6 +86,8 @@
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
|
<u-modal :show="show" :content='content' @confirm="$u.debounce(joinCircle, 500)" showCancelButton
|
|
|
@cancel="show=false" @close="show=false" closeOnClickOverlay></u-modal>
|
|
|
+ <u-modal :show="show1" content='确定退出圈子' @confirm="$u.debounce(exitCircleConfirm, 500)" showCancelButton
|
|
|
+ @cancel="show1=false" @close="show1=false" closeOnClickOverlay></u-modal>
|
|
|
<u-modal :show="isShowChangeCard" content='确定交换名片?' @confirm="$u.debounce(confirmChangeSubmit, 500)"
|
|
|
showCancelButton @cancel="isShowChangeCard=false" @close="isShowChangeCard=false"
|
|
|
closeOnClickOverlay></u-modal>
|
|
@@ -100,6 +102,7 @@
|
|
|
return {
|
|
|
selectIndex: 0,
|
|
|
isShowChangeCard: false,
|
|
|
+ show1:false,
|
|
|
dataObj: {
|
|
|
circleName: '',
|
|
|
cardNum: '',
|
|
@@ -203,6 +206,10 @@
|
|
|
})
|
|
|
},
|
|
|
exitCircle() {
|
|
|
+ console.log(11111)
|
|
|
+ this.show1=true
|
|
|
+ },
|
|
|
+ exitCircleConfirm(){
|
|
|
this.$request.baseRequest('admin.unimall.circleCardInfo', 'delete', {
|
|
|
id: this.dataObj.circleCardInfo.id,
|
|
|
}, failres => {
|
|
@@ -214,6 +221,7 @@
|
|
|
uni.hideLoading()
|
|
|
}).then(res => {
|
|
|
this.isShowCard = false
|
|
|
+ this.show1=false
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'success',
|
|
|
message: "退出成功!",
|
|
@@ -337,9 +345,17 @@
|
|
|
this.getCardList(page)
|
|
|
},
|
|
|
changeCard(val) {
|
|
|
- this.selectRowCard = val
|
|
|
- this.swapNameCards = true
|
|
|
- this.isShowCard = true
|
|
|
+ if(!this.dataObj.circleCardInfo){
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: '请先加入圈子!',
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.selectRowCard = val
|
|
|
+ this.swapNameCards = true
|
|
|
+ this.isShowCard = true
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
},
|
|
|
}
|
|
@@ -390,7 +406,7 @@
|
|
|
color: #ffffff50;
|
|
|
background: #f1f5ff20;
|
|
|
padding: 10rpx 20rpx;
|
|
|
- margin-right: 10rpx;
|
|
|
+ margin:0 10rpx 10rpx 0;
|
|
|
border-radius: 10rpx;
|
|
|
font-size: 26rpx;
|
|
|
|