|
@@ -97,8 +97,8 @@
|
|
|
cardId: '',
|
|
|
id: '',
|
|
|
changeCardList: [],
|
|
|
- cardStatus:'',
|
|
|
- isMyCard:false
|
|
|
+ cardStatus: '',
|
|
|
+ isMyCard: false
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
@@ -112,37 +112,36 @@
|
|
|
console.log(options)
|
|
|
this.userInfo = uni.getStorageSync("userInfo")
|
|
|
this.id = options.val
|
|
|
- this.init()
|
|
|
},
|
|
|
methods: {
|
|
|
- changeMyCard(){
|
|
|
- this.$request.baseRequest('admin.unimall.circleCardInfo', 'update', {
|
|
|
- circleCardInfo: JSON.stringify({
|
|
|
- circleId: this.dataObj.id,
|
|
|
- cardId: this.cardId,
|
|
|
- commonId: this.userInfo.id
|
|
|
- }),
|
|
|
- }, failres => {
|
|
|
- console.log('res+++++', failres.errmsg)
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: failres.errmsg,
|
|
|
- })
|
|
|
- uni.hideLoading()
|
|
|
- }).then(res => {
|
|
|
- this.isShowCard = false
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'success',
|
|
|
- message: "更改圈子名片成功!",
|
|
|
+ changeMyCard() {
|
|
|
+ this.$request.baseRequest('admin.unimall.circleCardInfo', 'update', {
|
|
|
+ circleCardInfo: JSON.stringify({
|
|
|
+ circleId: this.dataObj.id,
|
|
|
+ cardId: this.cardId,
|
|
|
+ commonId: this.userInfo.id
|
|
|
+ }),
|
|
|
+ }, failres => {
|
|
|
+ console.log('res+++++', failres.errmsg)
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: failres.errmsg,
|
|
|
+ })
|
|
|
+ uni.hideLoading()
|
|
|
+ }).then(res => {
|
|
|
+ this.isShowCard = false
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'success',
|
|
|
+ message: "更改圈子名片成功!",
|
|
|
+ })
|
|
|
+
|
|
|
})
|
|
|
-
|
|
|
- })
|
|
|
},
|
|
|
- myCardClick(){
|
|
|
+ myCardClick() {
|
|
|
this.isShowCard = true
|
|
|
this.isMyCard = true
|
|
|
},
|
|
|
- changeCardStatus(val){
|
|
|
+ changeCardStatus(val) {
|
|
|
this.cardStatus = val
|
|
|
this.getCardList()
|
|
|
},
|
|
@@ -168,13 +167,13 @@
|
|
|
cardConfirm(e) {
|
|
|
console.log("e", e)
|
|
|
this.cardId = e.value[0].id
|
|
|
- if(this.isMyCard){
|
|
|
+ if (this.isMyCard) {
|
|
|
this.changeMyCard()
|
|
|
- }else{
|
|
|
-
|
|
|
+ } else {
|
|
|
+
|
|
|
this.joinCircle()
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
},
|
|
|
joinCircle() {
|
|
@@ -213,11 +212,7 @@
|
|
|
}
|
|
|
|
|
|
},
|
|
|
- init() {
|
|
|
-
|
|
|
- },
|
|
|
- getCardList(){
|
|
|
-
|
|
|
+ getCardList() {
|
|
|
uni.showLoading({
|
|
|
title: '数据加载中'
|
|
|
})
|
|
@@ -260,6 +255,7 @@
|
|
|
}).then(res => {
|
|
|
this.cardList = [res.data.items]
|
|
|
})
|
|
|
+
|
|
|
await this.$request.baseRequest('admin.unimall.circleManagementInfo', 'get', {
|
|
|
commonId: this.userInfo.id,
|
|
|
id: this.id
|
|
@@ -278,7 +274,6 @@
|
|
|
this.getCardList()
|
|
|
},
|
|
|
changeCard() {
|
|
|
-
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/circle/changeCard"
|
|
|
})
|