|
|
@ -131,7 +131,7 @@ |
|
|
|
|
|
|
|
|
<view class="bottom"> |
|
|
<view class="bottom"> |
|
|
<view> |
|
|
<view> |
|
|
<button type="default" @click="$noMultipleClicks(startPaint)" class="startPaint">开始创作</button> |
|
|
<button type="default" @click="$noMultipleClicks(startPaint)" class="startPaint">开始创作(消耗{{formData.goldNum}}点画意值)</button> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</uni-forms> |
|
|
</uni-forms> |
|
|
@ -158,7 +158,8 @@ |
|
|
sfgScale: 7, //精细度 |
|
|
sfgScale: 7, //精细度 |
|
|
steps: 20, //采样步骤 |
|
|
steps: 20, //采样步骤 |
|
|
eta: 0, //差异强度 |
|
|
eta: 0, //差异强度 |
|
|
samplerIndex: "Euler a", //采样器 |
|
|
samplerIndex: "DPM++ SDE Karras", //采样器 |
|
|
|
|
|
goldNum: 2, //画意值 |
|
|
}, |
|
|
}, |
|
|
checkData:{ |
|
|
checkData:{ |
|
|
checkPrompt: undefined, //true填了内容;false未填内容 |
|
|
checkPrompt: undefined, //true填了内容;false未填内容 |
|
|
@ -311,7 +312,7 @@ |
|
|
//判断是否可进行ai绘画 TODO 暂时关闭校验 |
|
|
//判断是否可进行ai绘画 TODO 暂时关闭校验 |
|
|
if(that.checkData.checkCanPaint === true){ |
|
|
if(that.checkData.checkCanPaint === true){ |
|
|
return uni.showToast({ |
|
|
return uni.showToast({ |
|
|
title: '次数已用完,关注次元意境官方账号获得更多次数!', |
|
|
title: '画意值不足!请充值或完成相应任务获取更多次数!', |
|
|
icon: 'none' |
|
|
icon: 'none' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -363,7 +364,8 @@ |
|
|
painterId: that.userInfo.id, |
|
|
painterId: that.userInfo.id, |
|
|
painterName: that.userInfo.username, |
|
|
painterName: that.userInfo.username, |
|
|
appType: 0, |
|
|
appType: 0, |
|
|
platform: 1 |
|
|
platform: 1, |
|
|
|
|
|
goldNum: that.formData.goldNum |
|
|
} |
|
|
} |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: './paintDetail?data='+JSON.stringify(data) |
|
|
url: './paintDetail?data='+JSON.stringify(data) |
|
|
|