|
@@ -36,36 +36,29 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" @up="upCallback" @down="downCallback">
|
|
<mescroll-body ref="mescrollRef" @init="mescrollInit" @up="upCallback" @down="downCallback">
|
|
- <view class="content3 flex">
|
|
|
|
|
|
+ <view class="content3 flex" v-for="(item,index) in changeCardList" :key="index">
|
|
<view class="left">
|
|
<view class="left">
|
|
<view class="top flex-row-center">
|
|
<view class="top flex-row-center">
|
|
<image src="../../static/uni.png" mode="widthFix" class="img"></image>
|
|
<image src="../../static/uni.png" mode="widthFix" class="img"></image>
|
|
</view>
|
|
</view>
|
|
<view class="bottom flex flex-evenly">
|
|
<view class="bottom flex flex-evenly">
|
|
- <uni-icons type="home" size="20"></uni-icons>
|
|
|
|
- <uni-icons type="redo" size="20" @click="changeCard"></uni-icons>
|
|
|
|
|
|
+ <uni-icons type="home" size="20" v-if="item.lookPage==1"></uni-icons>
|
|
|
|
+ <uni-icons type="redo" size="20" @click="changeCard(item)"
|
|
|
|
+ v-if="item.notDisplay!=1"></uni-icons>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="right">
|
|
<view class="right">
|
|
<view class="row1 flex">
|
|
<view class="row1 flex">
|
|
- <text>张三</text>
|
|
|
|
|
|
+ <text>{{item.name}}</text>
|
|
<text class="line"></text>
|
|
<text class="line"></text>
|
|
- <text>总经理</text>
|
|
|
|
|
|
+ <text>{{item.post}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="row2">
|
|
<view class="row2">
|
|
- 北京xxx有限公司
|
|
|
|
- </view>
|
|
|
|
- <view class="row3" @click="toMap">
|
|
|
|
- <uni-icons type="redo" size="20"></uni-icons>
|
|
|
|
- <text>北京市朝阳区幸福大街8号</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="row3">
|
|
|
|
- <uni-icons type="redo" size="20"></uni-icons>
|
|
|
|
- <text>13333333333</text>
|
|
|
|
|
|
+ {{item.companyName}}
|
|
</view>
|
|
</view>
|
|
<view class="row3">
|
|
<view class="row3">
|
|
<uni-icons type="redo" size="20"></uni-icons>
|
|
<uni-icons type="redo" size="20"></uni-icons>
|
|
- <text>我是备注</text>
|
|
|
|
|
|
+ <text>{{item.scopeOfBusiness}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -74,6 +67,9 @@
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-modal :show="show" :content='content' @confirm="$u.debounce(joinCircle, 500)" showCancelButton
|
|
<u-modal :show="show" :content='content' @confirm="$u.debounce(joinCircle, 500)" showCancelButton
|
|
@cancel="show=false" @close="show=false" closeOnClickOverlay></u-modal>
|
|
@cancel="show=false" @close="show=false" closeOnClickOverlay></u-modal>
|
|
|
|
+ <u-modal :show="isShowChangeCard" content='确定交换名片?' @confirm="$u.debounce(confirmChangeSubmit, 500)"
|
|
|
|
+ showCancelButton @cancel="isShowChangeCard=false" @close="isShowChangeCard=false"
|
|
|
|
+ closeOnClickOverlay></u-modal>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -83,6 +79,7 @@
|
|
mixins: [MescrollMixin], // 使用mixin
|
|
mixins: [MescrollMixin], // 使用mixin
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ isShowChangeCard: false,
|
|
dataObj: {
|
|
dataObj: {
|
|
circleName: '',
|
|
circleName: '',
|
|
cardNum: '',
|
|
cardNum: '',
|
|
@@ -98,7 +95,10 @@
|
|
id: '',
|
|
id: '',
|
|
changeCardList: [],
|
|
changeCardList: [],
|
|
cardStatus: '',
|
|
cardStatus: '',
|
|
- isMyCard: false
|
|
|
|
|
|
+ isMyCard: false,
|
|
|
|
+ swapNameCards: false,
|
|
|
|
+ selectMycard: {},
|
|
|
|
+ selectRowCard: {}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -114,6 +114,36 @@
|
|
this.id = options.val
|
|
this.id = options.val
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ confirmChangeSubmit() {
|
|
|
|
+ debugger
|
|
|
|
+ this.$request.baseRequest('admin.unimall.cardExchangeInfo', 'add', {
|
|
|
|
+ cardExchangeInfo: JSON.stringify({
|
|
|
|
+ sendId: this.userInfo.id,
|
|
|
|
+ receiveId: this.selectRowCard.receiveId,
|
|
|
|
+ sendCardId: this.selectMycard.id,
|
|
|
|
+ receiveCardId: this.selectRowCard.id,
|
|
|
|
+ circleName: this.dataObj.circleName
|
|
|
|
+ }),
|
|
|
|
+ }, failres => {
|
|
|
|
+ console.log('res+++++', failres.errmsg)
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: failres.errmsg,
|
|
|
|
+ })
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.isShowChangeCard = false
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: "操作成功!"
|
|
|
|
+ })
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.mescroll.resetUpScroll()
|
|
|
|
+ },500)
|
|
|
|
+ this.mescroll.resetUpScroll()
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ },
|
|
changeMyCard() {
|
|
changeMyCard() {
|
|
this.$request.baseRequest('admin.unimall.circleCardInfo', 'update', {
|
|
this.$request.baseRequest('admin.unimall.circleCardInfo', 'update', {
|
|
circleCardInfo: JSON.stringify({
|
|
circleCardInfo: JSON.stringify({
|
|
@@ -169,12 +199,14 @@
|
|
this.cardId = e.value[0].id
|
|
this.cardId = e.value[0].id
|
|
if (this.isMyCard) {
|
|
if (this.isMyCard) {
|
|
this.changeMyCard()
|
|
this.changeMyCard()
|
|
- } else {
|
|
|
|
|
|
+ } else if (this.swapNameCards) {
|
|
|
|
+ this.selectMycard = e.value[0]
|
|
|
|
+ this.isShowCard = false
|
|
|
|
+ this.isShowChangeCard = true
|
|
|
|
|
|
|
|
+ } else {
|
|
this.joinCircle()
|
|
this.joinCircle()
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
joinCircle() {
|
|
joinCircle() {
|
|
this.$request.baseRequest('admin.unimall.circleCardInfo', 'add', {
|
|
this.$request.baseRequest('admin.unimall.circleCardInfo', 'add', {
|
|
@@ -255,7 +287,7 @@
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.cardList = [res.data.items]
|
|
this.cardList = [res.data.items]
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
await this.$request.baseRequest('admin.unimall.circleManagementInfo', 'get', {
|
|
await this.$request.baseRequest('admin.unimall.circleManagementInfo', 'get', {
|
|
commonId: this.userInfo.id,
|
|
commonId: this.userInfo.id,
|
|
id: this.id
|
|
id: this.id
|
|
@@ -273,10 +305,11 @@
|
|
})
|
|
})
|
|
this.getCardList(page)
|
|
this.getCardList(page)
|
|
},
|
|
},
|
|
- changeCard() {
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: "/pages/circle/changeCard"
|
|
|
|
- })
|
|
|
|
|
|
+ changeCard(val) {
|
|
|
|
+ this.selectRowCard = val
|
|
|
|
+ this.swapNameCards = true
|
|
|
|
+ this.isShowCard = true
|
|
|
|
+
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|