diff --git a/main.js b/main.js index fe6ed50..33f3cd6 100644 --- a/main.js +++ b/main.js @@ -6,8 +6,8 @@ import common from './utils/common.js' // const baseURL = 'http://localhost:7010' // const baseURL = 'http://81.69.47.31:7010' // const baseURL = 'https://service.bnyer.cn' //正式 -const baseURL = 'http://47.108.66.163:7010' //测试 -// const baseURL = 'http://jbsu95.natappfree.cc' //本地 +const baseURL = 'https://test.bnyer.cn' //测试 +//const baseURL = 'http://vzym6v.natappfree.cc' //本地 Vue.prototype.baseURL = baseURL; diff --git a/pages/ai/paint/loverPaint.vue b/pages/ai/paint/loverPaint.vue index 45526ec..d15f223 100644 --- a/pages/ai/paint/loverPaint.vue +++ b/pages/ai/paint/loverPaint.vue @@ -33,7 +33,7 @@ - 生成图片 + 生成图片(消耗{{goldNum}}点画意值) @@ -49,6 +49,7 @@ contentDesc: '', paintStyle:[], curType: 0, + goldNum: 5, //画意值 userInfo: {}, checkData:{ checkCanPaint: false, //true已达到最大绘画上限;false未达最高上限 @@ -62,6 +63,9 @@ onShow() { this.checkLogin(); this.checkUserCanAiPaint(); + this.sceneDesc = '', + this.contentDesc = '', + this.curType = 0 }, methods: { selectType(index) { @@ -162,6 +166,7 @@ painterName: that.userInfo.username, appType: 0, platform: 1, + goldNum: that.goldNum, } uni.navigateTo({ url: './loverPainResult?data='+JSON.stringify(data) diff --git a/pages/ai/paint/paint.vue b/pages/ai/paint/paint.vue index 8787385..5a5a752 100644 --- a/pages/ai/paint/paint.vue +++ b/pages/ai/paint/paint.vue @@ -131,7 +131,7 @@ - + @@ -158,7 +158,8 @@ sfgScale: 7, //精细度 steps: 20, //采样步骤 eta: 0, //差异强度 - samplerIndex: "Euler a", //采样器 + samplerIndex: "DPM++ SDE Karras", //采样器 + goldNum: 2, //画意值 }, checkData:{ checkPrompt: undefined, //true填了内容;false未填内容 @@ -311,7 +312,7 @@ //判断是否可进行ai绘画 TODO 暂时关闭校验 if(that.checkData.checkCanPaint === true){ return uni.showToast({ - title: '次数已用完,关注次元意境官方账号获得更多次数!', + title: '画意值不足!请充值或完成相应任务获取更多次数!', icon: 'none' }) } @@ -363,7 +364,8 @@ painterId: that.userInfo.id, painterName: that.userInfo.username, appType: 0, - platform: 1 + platform: 1, + goldNum: that.formData.goldNum } uni.navigateTo({ url: './paintDetail?data='+JSON.stringify(data) diff --git a/pages/ai/paint/paintDetail.vue b/pages/ai/paint/paintDetail.vue index cb16705..9b07d54 100644 --- a/pages/ai/paint/paintDetail.vue +++ b/pages/ai/paint/paintDetail.vue @@ -157,7 +157,7 @@ } }, onShareAppMessage() { - console.log('惦记了分享') + console.log('点击了分享') // let _this = this // let referee_id = '' // if (_this.userInfo.user_id) {