|
|
@@ -15,15 +15,9 @@
|
|
|
<view class="custom-asset" v-if="showIndex == 1">
|
|
|
<balanceChange ref="balanceChangeRef" :customId="selectCustomId"></balanceChange>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="custom-asset" v-if="showIndex == 2">
|
|
|
- <birthdayEdit
|
|
|
- :customId="selectCustomId"
|
|
|
- @save-success="handleBirthdaySaveSuccess"
|
|
|
- @cancel="handleBirthdayCancel">
|
|
|
- </birthdayEdit>
|
|
|
+ <birthdayEdit ref="birthRef" :customId="selectCustomId"></birthdayEdit>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -54,22 +48,16 @@ export default {
|
|
|
watch: {
|
|
|
},
|
|
|
methods: {
|
|
|
- changeBirthday(){
|
|
|
+ changeBirthday(info){
|
|
|
this.showIndex = 2
|
|
|
- },
|
|
|
- // 处理生日保存成功
|
|
|
- handleBirthdaySaveSuccess() {
|
|
|
- this.showIndex = 0
|
|
|
- // 刷新客户信息
|
|
|
- this.$refs.customInforRef.getCustomDetail(this.selectCustomId)
|
|
|
- },
|
|
|
- // 处理生日取消修改
|
|
|
- handleBirthdayCancel() {
|
|
|
- this.showIndex = 0
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if (this.$refs.birthRef) {
|
|
|
+ this.$refs.birthRef.showBirth(info)
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
goBalance(){
|
|
|
this.showIndex = 1
|
|
|
- // 确保组件已经渲染后再调用refresh方法
|
|
|
this.$nextTick(() => {
|
|
|
if (this.$refs.balanceChangeRef) {
|
|
|
this.$refs.balanceChangeRef.refresh()
|
|
|
@@ -89,8 +77,6 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // 处理充值操作
|
|
|
- console.log('充值操作', this.selectCustomId)
|
|
|
},
|
|
|
handleReduceBalance() {
|
|
|
if (!this.selectCustomId) {
|
|
|
@@ -100,8 +86,6 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // 处理减余额操作
|
|
|
- console.log('减余额操作', this.selectCustomId)
|
|
|
},
|
|
|
handleUpgradeDowngrade() {
|
|
|
if (!this.selectCustomId) {
|
|
|
@@ -111,8 +95,6 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // 处理升降级操作
|
|
|
- console.log('升降级操作', this.selectCustomId)
|
|
|
},
|
|
|
handleCreateOrder() {
|
|
|
if (!this.selectCustomId) {
|
|
|
@@ -122,8 +104,6 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // 处理开单操作
|
|
|
- console.log('开单操作', this.selectCustomId)
|
|
|
}
|
|
|
}
|
|
|
};
|