Sfoglia il codice sorgente

引导图上传oss

李万涛 1 anno fa
parent
commit
698117a633

+ 6 - 1
common/config.js

xqd
@@ -1,13 +1,18 @@
 if (process.env.NODE_ENV === 'development') {
 	var baseImgUrl = 'https://t.scxxq.cn/index.php/api.common/upload?uniacid=' + uni.getStorageSync('uniacid') || 5059
+
+	var leadBaseUrl = 'https://zhengda.oss-accelerate.aliyuncs.com/new_fanyun/lead/'
 } else {
 	// var baseImgUrl = 'https://t.scxxq.cn/index.php/api.common/upload?uniacid=' + uni.getStorageSync('uniacid') || 5059
 
 
 	var baseImgUrl = 'https://nywhcm.com/addons/wike_aging/public/index.php/api.common/upload?uniacid=' + uni
 		.getStorageSync('uniacid') || 5059
+
+	var leadBaseUrl = 'https://zhengda.oss-accelerate.aliyuncs.com/new_fanyun/lead/'
 }
 
 module.exports = {
-	baseImgUrl
+	baseImgUrl,
+	leadBaseUrl
 }

+ 2 - 2
pages/digitalMen/generate/index.scss

xqd xqd
@@ -28,7 +28,7 @@ page {
 			// margin-bottom: 138rpx;
 			width: 642rpx;
 			height: 748rpx;
-			background-image: url(@/static/szr_lead1.png);
+			// background-image: url(@/static/szr_lead1.png);
 			background-size: cover;
 			margin-top: 280rpx;
 			position: relative;
@@ -47,7 +47,7 @@ page {
 			width: 674rpx;
 			// width: 100%;
 			height: 902rpx;
-			background-image: url(@/static/szr_lead2.png);
+			// background-image: url(@/static/szr_lead2.png);
 			background-size: cover;
 			// margin-top: 400rpx;
 			// position: relative;

+ 7 - 2
pages/digitalMen/generate/index.vue

xqd xqd xqd
@@ -3,11 +3,13 @@
 		<tn-nav-bar :isBack="true" backgroundColor="#fff" :bottomShadow="false">数字人创建</tn-nav-bar>
 		<div class="addFix" v-if="showInitLead">
 			<div class="leadBg">
-				<div class="leadBox1" v-if="showLead1">
+				<div class="leadBox1" v-if="showLead1"
+					:style="{'background-image': `url(${leadBaseUrl}szr_lead1.png)`}">
 					<div class="nextBtn" @click="nextLead">
 					</div>
 				</div>
-				<div class="leadBox2" v-if="showLead2">
+				<div class="leadBox2" v-if="showLead2"
+					:style="{'background-image': `url(${leadBaseUrl}szr_lead2.png)`}">
 					<div class="nextBtn" @click="finishLead">
 					</div>
 				</div>
@@ -396,6 +398,7 @@
 </template>
 
 <script>
+	import BaseUrl from '@/common/config.js';
 	import {
 		generateWork,
 		roleList,
@@ -412,6 +415,8 @@
 	export default {
 		data() {
 			return {
+				leadBaseUrl: BaseUrl.leadBaseUrl,
+
 				showInitLead: false,
 				showLead2: false,
 				showLead1: true,

+ 2 - 2
pages/digitalMen/index.scss

xqd xqd
@@ -19,7 +19,7 @@ page {
 			// margin-bottom: 138rpx;
 			width: 646rpx;
 			height: 842rpx;
-			background-image: url(@/static/szr_lead.png);
+			// background-image: url(@/static/szr_lead.png);
 			background-size: cover;
 			margin-top: 280rpx;
 			position: relative;
@@ -38,7 +38,7 @@ page {
 			width: 634rpx;
 			// width: 100%;
 			height: 1226rpx;
-			background-image: url(@/static/index_lead2.png);
+			// background-image: url(@/static/index_lead2.png);
 			background-size: cover;
 			// margin-top: 400rpx;
 			// position: relative;

+ 3 - 1
pages/digitalMen/index.vue

xqd xqd xqd
@@ -129,7 +129,7 @@
 
 			<!-- 数字人初始引导界面 -->
 			<div class="leadBg" v-if="showInitLead">
-				<div class="leadBox1" v-if="showLead1">
+				<div class="leadBox1" v-if="showLead1" :style="{'background-image': `url(${leadBaseUrl}szr_lead.png)`}">
 					<div class="nextBtn" @click="nextLead">
 					</div>
 				</div>
@@ -147,6 +147,7 @@
 </template>
 
 <script>
+	import BaseUrl from '@/common/config.js';
 	import empty from '@/components/empty/empty.vue'
 	import {
 		demoList,
@@ -166,6 +167,7 @@
 	export default {
 		data() {
 			return {
+				leadBaseUrl: BaseUrl.leadBaseUrl,
 				showInitLead: false,
 				showLead2: false,
 				showLead1: true,

+ 2 - 2
pages/index/index.scss

xqd xqd
@@ -17,7 +17,7 @@
 			// margin-bottom: 138rpx;
 			width: 646rpx;
 			height: 842rpx;
-			background-image: url(@/static/index_lead1.png);
+			// background-image: url(@/static/index_lead1.png);
 			background-size: cover;
 			margin-top: 280rpx;
 			position: relative;
@@ -36,7 +36,7 @@
 			width: 634rpx;
 			// width: 100%;
 			height: 1226rpx;
-			background-image: url(@/static/index_lead2.png);
+			// background-image: url(@/static/index_lead2.png);
 			background-size: cover;
 			// margin-top: 400rpx;
 			// position: relative;

+ 6 - 3
pages/index/index.vue

xqd xqd xqd
@@ -59,11 +59,11 @@
 
 		<!-- 初始引导界面 -->
 		<div class="leadBg" v-if="showInitLead">
-			<div class="leadBox1" v-if="showLead1">
+			<div class="leadBox1" v-if="showLead1" :style="{'background-image': `url(${leadBaseUrl}index_lead1.png)`}">
 				<div class="nextBtn" @click="nextLead">
 				</div>
 			</div>
-			<div class="leadBox2" v-if="showLead2">
+			<div class="leadBox2" v-if="showLead2" :style="{'background-image': `url(${leadBaseUrl}index_lead2.png)`}">
 				<div class="nextBtn" @click="finishLead">
 				</div>
 			</div>
@@ -82,12 +82,16 @@
 		apiurl
 	} from '@/common/request/request';
 	import $platform from '@/common/platform';
+	import BaseUrl from '@/common/config.js';
+
 	let rewardedVideoAd = null;
 	export default {
 		mixins: [],
 		components: {},
 		data() {
 			return {
+				leadBaseUrl: BaseUrl.leadBaseUrl,
+
 				showInitLead: false,
 				showLead2: false,
 				showLead1: true,
@@ -107,7 +111,6 @@
 		},
 
 		onLoad(o) {
-
 			this.showInitLead = !uni.getStorageSync('showInitLead')
 
 			if (o.uniacid) {

+ 2 - 2
pages/painting/draw.scss

xqd xqd
@@ -541,7 +541,7 @@ padding-bottom: 170rpx;
 				// margin-bottom: 138rpx;
 				width: 674rpx;
 				height: 1134rpx;
-				background-image: url(@/static/hh_lead1.png);
+				// background-image: url(@/static/hh_lead1.png);
 				background-size: cover;
 				margin-top: 100rpx;
 				position: relative;
@@ -560,7 +560,7 @@ padding-bottom: 170rpx;
 				width: 674rpx;
 				// width: 100%;
 				height: 902rpx;
-				background-image: url(@/static/hh_lead_2.png);
+				// background-image: url(@/static/hh_lead_2.png);
 				background-size: cover;
 				margin-top: 200rpx;
 				position: relative;

+ 6 - 2
pages/painting/draw.vue

xqd xqd xqd
@@ -7,11 +7,13 @@
 		<!-- 绘画引导界面 -->
 		<view class="addmask" v-if="showHuiHuaLead">
 			<view class="leadBg">
-				<view class="leadBox1" v-if="showLead1">
+				<view class="leadBox1" v-if="showLead1"
+					:style="{'background-image': `url(${leadBaseUrl}hh_lead1.png)`}">
 					<view class="nextBtn" @click="nextLead">
 					</view>
 				</view>
-				<view class="leadBox2" v-if="showLead2">
+				<view class="leadBox2" v-if="showLead2"
+					:style="{'background-image': `url(${leadBaseUrl}hh_lead_2.png)`}">
 					<view class="nextBtn" @click="finishLead">
 					</view>
 				</view>
@@ -437,6 +439,7 @@
 </template>
 
 <script>
+	import BaseUrl from '@/common/config.js';
 	import {
 		mapMutations,
 		mapActions,
@@ -458,6 +461,7 @@
 		components: {},
 		data() {
 			return {
+				leadBaseUrl: BaseUrl.leadBaseUrl,
 				// 艺术照
 				tipList: ['五官清晰', '人像正面', '人脸无遮挡', '照片清晰'],
 

+ 2 - 2
pages/template/detail.scss

xqd xqd
@@ -22,7 +22,7 @@
 			// margin-bottom: 138rpx;
 			width: 674rpx;
 			height: 980rpx;
-			background-image: url(@/static/yy_lead2.png);
+			// background-image: url(@/static/yy_lead2.png);
 			background-size: cover;
 			margin-top: 280rpx;
 			position: relative;
@@ -41,7 +41,7 @@
 			width: 634rpx;
 			// width: 100%;
 			height: 1226rpx;
-			background-image: url(@/static/yy_lead.png);
+			// background-image: url(@/static/yy_lead.png);
 			background-size: cover;
 			// margin-top: 400rpx;
 			// position: relative;

+ 3 - 1
pages/template/detail.vue

xqd xqd xqd
@@ -6,7 +6,7 @@
 		</view>
 		<div class="addFix" v-if="showInitLead">
 			<div class="leadBg">
-				<div class="leadBox1" v-if="showLead1">
+				<div class="leadBox1" v-if="showLead1" :style="{'background-image': `url(${leadBaseUrl}yy_lead2.png)`}">
 					<div class="nextBtn" @click="nextLead">
 					</div>
 				</div>
@@ -112,6 +112,7 @@
 </template>
 
 <script>
+	import BaseUrl from '@/common/config.js';
 	import {
 		mapMutations,
 		mapActions,
@@ -134,6 +135,7 @@
 	export default {
 		data() {
 			return {
+				leadBaseUrl: BaseUrl.leadBaseUrl,
 				showInitLead: false,
 				showLead2: false,
 				showLead1: true,

+ 2 - 2
pages/template/template.scss

xqd xqd
@@ -22,7 +22,7 @@
 			// margin-bottom: 138rpx;
 			width: 674rpx;
 			height: 1054rpx;
-			background-image: url(@/static/yy_lead.png);
+			// background-image: url(@/static/yy_lead.png);
 			background-size: cover;
 			margin-top: 280rpx;
 			position: relative;
@@ -41,7 +41,7 @@
 			width: 634rpx;
 			// width: 100%;
 			height: 1226rpx;
-			background-image: url(@/static/yy_lead.png);
+			// background-image: url(@/static/yy_lead.png);
 			background-size: cover;
 			// margin-top: 400rpx;
 			// position: relative;

+ 4 - 1
pages/template/template.vue

xqd xqd xqd
@@ -2,7 +2,7 @@
 	<view>
 		<div class="addFix" v-if="showInitLead">
 			<div class="leadBg">
-				<div class="leadBox1" v-if="showLead1">
+				<div class="leadBox1" v-if="showLead1" :style="{'background-image': `url(${leadBaseUrl}yy_lead.png)`}">
 					<div class="nextBtn" @click="nextLead">
 					</div>
 				</div>
@@ -103,6 +103,7 @@
 </template>
 
 <script>
+	import BaseUrl from '@/common/config.js';
 	import {
 		mapMutations,
 		mapActions,
@@ -115,6 +116,8 @@
 	export default {
 		data() {
 			return {
+				leadBaseUrl: BaseUrl.leadBaseUrl,
+
 				showInitLead: false,
 				showLead2: false,
 				showLead1: true,

BIN
static/hh_lead1.png


BIN
static/hh_lead_2.png


BIN
static/index_lead1.png


BIN
static/index_lead2.png


BIN
static/szr_lead.png


BIN
static/szr_lead1.png


BIN
static/szr_lead2.png


BIN
static/yy_lead.png


BIN
static/yy_lead2.png