Browse Source

hotfix:fixbug

feature-1.1-dev
Penny 3 years ago
parent
commit
c5e0c06bc1
  1. 6
      pages/ai/paint/loverPaint.vue
  2. 26
      pages/ai/paint/paint.vue

6
pages/ai/paint/loverPaint.vue

@ -280,12 +280,12 @@
<style lang="scss" scoped>
.wrap {
padding: 20px;
padding: 20rpx;
width: 100%;
min-height: 100vh;
min-height: 110vh;
background-color: #faf0f3;
.draw-button {
position: fixed;
position:fixed;
left: 50%;
bottom: 50rpx;
transform: translateX(-50%);

26
pages/ai/paint/paint.vue

@ -253,6 +253,7 @@
},
methods: {
openAdvancedSetting(e) {
console.log('e',e)
if (e.detail.value) {
checkVip({userId: this.userInfo.id, userClientType: "10"}).then(res => {
if (res.data.code === 200) {
@ -260,13 +261,30 @@
this.advancedSetting = e.detail.value;
} else {
this.advancedSetting = !e.detail.value;
uni.showToast({
title: '还不是会员,开通会员后再尝试',
icon: 'none'
uni.showModal({
title: '提示',
content: '还不是会员,点击跳转开通会员',
success(res){
if (res.confirm) {
//
uni.navigateTo({
url:'/pages/userInfo/vip/vip'
})
}else if(res.cancel){
uni.showToast({
title:'开通会员享受更多高级功能哟!',
icon: 'none',
duration: 2000,
success() {
this.advancedSetting = false;
}
});
}
})
},
});
}
}
});
} else {
this.advancedSetting = e.detail.value;
// this.formData.sfgScale = undefined;

Loading…
Cancel
Save