|
@@ -456,8 +456,8 @@
|
|
|
this.value = e.value[0].circleName.substring(0,1)
|
|
|
this.show = false
|
|
|
},
|
|
|
- getList() {
|
|
|
- this.$request.baseRequest('admin.unimall.cardManagementInfo', 'get', {
|
|
|
+ async getList() {
|
|
|
+ await this.$request.baseRequest('admin.unimall.cardManagementInfo', 'get', {
|
|
|
id: this.id
|
|
|
}, failres => {
|
|
|
console.log('res+++++', failres.errmsg)
|
|
@@ -468,21 +468,20 @@
|
|
|
});
|
|
|
uni.hideLoading()
|
|
|
}).then(res => {
|
|
|
- console.log(res, "this.cardInfo")
|
|
|
+ console.log("this.cardInfo",res)
|
|
|
this.cardInfo = res.data
|
|
|
- if(this.cardInfo.length==0){
|
|
|
- uni.showToast({
|
|
|
- icon: "none",
|
|
|
- title: "您还未创建名片,请前往我的先创建名片!",
|
|
|
- duration: 3000
|
|
|
- });
|
|
|
- }
|
|
|
+ // if(this.cardInfo.length==0){
|
|
|
+ // uni.showToast({
|
|
|
+ // icon: "none",
|
|
|
+ // title: "您还未创建名片,请前往我的先创建名片!",
|
|
|
+ // duration: 3000
|
|
|
+ // });
|
|
|
+ // }
|
|
|
// this.cardInfo.cardBusiness = ''
|
|
|
// this.cardInfo.cardCommonId = res.data.commonId
|
|
|
console.log(res)
|
|
|
})
|
|
|
- console.log(uni.getStorageSync("userInfo").id, 111111)
|
|
|
- this.$request.baseRequest('admin.unimall.cardManagementInfo', 'list', {
|
|
|
+ await this.$request.baseRequest('admin.unimall.cardManagementInfo', 'list', {
|
|
|
commonId: uni.getStorageSync("userInfo").id
|
|
|
}, failres => {
|
|
|
uni.showToast({
|
|
@@ -497,7 +496,7 @@
|
|
|
this.cardInfo.myCardId = res.data.items[0].id
|
|
|
|
|
|
})
|
|
|
- this.$request.baseRequest('admin.unimall.cardClassifyInfo', 'list', {
|
|
|
+ await this.$request.baseRequest('admin.unimall.cardClassifyInfo', 'list', {
|
|
|
page: 1,
|
|
|
limit: 9999,
|
|
|
commonId: uni.getStorageSync("userInfo").id
|