| xqd
@@ -8,7 +8,29 @@
|
|
|
|
|
|
<view class="u-flex flex-wrap">
|
|
|
<block v-for="(item,index) in drawList" :key="index">
|
|
|
- <view class="draw_view" :style="{margin:item.status?'30rpx':'0'}">
|
|
|
+ <!-- 艺术照记录 -->
|
|
|
+ <view class="draw_view" v-if="item.engine=='rh'" style="margin:30rpx">
|
|
|
+ <view class="draw_image u-flex align-center">
|
|
|
+ <image @click="preview_ysz(item.origin_url)" :src="item.origin_url" mode="widthFix"></image>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="prompt"><u-parse content="" :selectable="true"></u-parse></view>
|
|
|
+ <view class="create_time">AI绘画:Face(艺术照)绘图
|
|
|
+ </view>
|
|
|
+ <view class="create_time">创建时间:{{item.create_time}}</view>
|
|
|
+
|
|
|
+ <view class="tn-flex justify-between operate">
|
|
|
+ <view @click="tnproduct_ysz(item.rh_id)" hover-class="hoversubmit" class="onekey"
|
|
|
+ style="width: 100%;">
|
|
|
+ 绘画详情</view>
|
|
|
+ </view>
|
|
|
+ <view class="circle" @click.stop="gallerydel_ysz(item.id)">
|
|
|
+ <u-icon name="close-circle-fill" color="#999999" size="24"></u-icon>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ <view v-else class="draw_view" :style="{margin:item.status?'30rpx':'0'}">
|
|
|
<view v-if="item.imgs_file.length>1" class="sheets">
|
|
|
{{item.imgs_file.length}}张
|
|
|
</view>
|
| xqd
@@ -152,6 +174,54 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ gallerydel_ysz(id) {
|
|
|
+ var that = this;
|
|
|
+ uni.showModal({
|
|
|
+ confirmText: '删除',
|
|
|
+ content: '是否删除此绘画记录',
|
|
|
+ title: '提示',
|
|
|
+ confirmColor: '#1F79F0',
|
|
|
+ success(res) {
|
|
|
+ // console.log(res);
|
|
|
+ if (res.confirm) {
|
|
|
+ that.$http('gallery.del', {
|
|
|
+ id
|
|
|
+ }).then(res => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '删除成功'
|
|
|
+ })
|
|
|
+ // that.drawList = []
|
|
|
+ that.$refs.paging.reload(true);
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: '删除失败',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ tnproduct_ysz(id) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/painting/details?from=rh&urls=' + id
|
|
|
+ })
|
|
|
+ },
|
|
|
+ preview_ysz(url) {
|
|
|
+ uni.previewImage({
|
|
|
+ urls: [url],
|
|
|
+ longPressActions: {
|
|
|
+ itemList: ['发送给朋友', '保存图片', '收藏'],
|
|
|
+ success: function(data) {},
|
|
|
+ fail: function(err) {
|
|
|
+ console.log(err.errMsg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
isInHour24(item) {
|
|
|
// item.create_time = '2023-08-18 10:36:12'
|
| xqd
@@ -175,7 +245,48 @@
|
|
|
});
|
|
|
|
|
|
console.log('绘画记录返回值:', res.data.data);
|
|
|
-
|
|
|
+ // let addRh = {
|
|
|
+ // api_id: 0,
|
|
|
+ // avatar: "https://v.swdz.com/addons/wike_aging/public/static/storage/20230517/7a01df223b06717edca445b333de2741.png",
|
|
|
+ // create_time: "2024-02-07 14:50:26",
|
|
|
+ // delete_time: null,
|
|
|
+ // done: 1,
|
|
|
+ // engine: "rh",
|
|
|
+ // height: 0,
|
|
|
+ // id: 9291,
|
|
|
+ // id_number: "7498213065",
|
|
|
+ // img: null,
|
|
|
+ // imgs: null,
|
|
|
+ // imgs_file: "",
|
|
|
+ // imgs_path: "",
|
|
|
+ // is_open: 0,
|
|
|
+ // job_id: "ad967e16-c7a9-0fdb-8db0-ccfd915a1752",
|
|
|
+ // mj_action: "generate",
|
|
|
+ // mj_api_engine: "zsy",
|
|
|
+ // mj_hash: null,
|
|
|
+ // mj_id: "1204680700574302259",
|
|
|
+ // mj_index: 1,
|
|
|
+ // mode: null,
|
|
|
+ // model_id: null,
|
|
|
+ // n_samples: 0,
|
|
|
+ // nickname: "roobe",
|
|
|
+ // origin_url: "https://midjourney.cdn.zhishuyun.com/attachments/1124768570157564029/1204680700574302259/kylejohnsongfa8_Venom_and_Carnage_fight_character_realistic_bod_672a83b4-49a9-4e61-aea0-1ba59ba8cc71.png?ex=65d59d54&is=65c32854&hm=8fdcaf884db53bf81136e666e037a20d7a42b105f622e38b58e59b4981aaae18&width=1024&height=1024",
|
|
|
+ // paid_coin: "5",
|
|
|
+ // pid: 0,
|
|
|
+ // prompt: " Venom and Carnage fight, character, realistic body, realistic muscle cyberpunk, glowing fire, film lens, octane render, 8K--niji",
|
|
|
+ // real_prompt: null,
|
|
|
+ // scheduler: null,
|
|
|
+ // seed: null,
|
|
|
+ // sort: 0,
|
|
|
+ // status: 1,
|
|
|
+ // steps: 0,
|
|
|
+ // uid: 4825,
|
|
|
+ // uniacid: 5059,
|
|
|
+ // update_time: "2024-02-07 14:50:26",
|
|
|
+ // uuid: "ad967e16-c7a9-0fdb-8db0-ccfd915a1752",
|
|
|
+ // width: 0
|
|
|
+ // }
|
|
|
+ // res.data.data = [addRh, ...res.data.data]
|
|
|
// let sucList = res.data.data.filter((item, index) => {
|
|
|
// return item.status
|
|
|
// })
|
| xqd
@@ -332,6 +443,12 @@
|
|
|
uni.showLoading({
|
|
|
title: '海报渲染中'
|
|
|
});
|
|
|
+
|
|
|
+ // that.userInfo.avatar =
|
|
|
+ // "https://midjourney.cdn.zhishuyun.com/attachments/1124768570157564029/1204680700574302259/kylejohnsongfa8_Venom_and_Carnage_fight_character_realistic_bod_672a83b4-49a9-4e61-aea0-1ba59ba8cc71.png?ex=65d59d54&is=65c32854&hm=8fdcaf884db53bf81136e666e037a20d7a42b105f622e38b58e59b4981aaae18&width=1024&height=1024"
|
|
|
+ // that.appInfo.site_logo_path =
|
|
|
+ // "https://midjourney.cdn.zhishuyun.com/attachments/1124768570157564029/1204680700574302259/kylejohnsongfa8_Venom_and_Carnage_fight_character_realistic_bod_672a83b4-49a9-4e61-aea0-1ba59ba8cc71.png?ex=65d59d54&is=65c32854&hm=8fdcaf884db53bf81136e666e037a20d7a42b105f622e38b58e59b4981aaae18&width=1024&height=1024"
|
|
|
+
|
|
|
let mode = that.drawList[e].engine == 'sd' ? 'StableDiffusion绘图' : 'MidJourney绘图';
|
|
|
let avatar_logo = that.userInfo.avatar ? await this.getdownload(that.userInfo.avatar, 1) :
|
|
|
'/static/images/head.jpg';
|
| xqd
@@ -591,7 +708,7 @@
|
|
|
confirmText: '删除',
|
|
|
content: '是否删除此绘画记录',
|
|
|
title: '提示',
|
|
|
- confirmColor: '#26B3A0',
|
|
|
+ confirmColor: '#1F79F0',
|
|
|
success(res) {
|
|
|
// console.log(res);
|
|
|
if (res.confirm) {
|