hmp преди 4 години
родител
ревизия
49184a51ad
променени са 3 файла, в които са добавени 14 реда и са изтрити 1 реда
  1. 2 0
      common/http/http.api.js
  2. 1 0
      pages/activityList/mine/introduction.vue
  3. 11 1
      pages/index/guide.vue

+ 2 - 0
common/http/http.api.js

@@ -13,6 +13,7 @@ const uploadFile = {
 let activityUrl = {
 	adsListUrl: '/cyzh-ads/ads/list',
 	listUrl: '/cyzh-activity/activity/selectPageWithTag',
+	getList: '/cyzh-activity/activity/list',
 	detailUrl: '/cyzh-activity/activity/detail',
 	rankListUrl: '/cyzh-userActivityStatistical/useractivitystatistical/getRankList',
 	signUpUrl: '/cyzh-production/production/create',
@@ -104,6 +105,7 @@ const install = (Vue, vm) => {
 	}
 	
 	let activity = {
+		getList:(params = {}) => vm.$u.get(activityUrl.getList, params),
 		getAdsList:(params = {}) => vm.$u.get(activityUrl.adsListUrl, params),
 		list:(params = {}) => vm.$u.get(activityUrl.listUrl, params),
 		detail:(params = {}) => vm.$u.get(activityUrl.detailUrl, params),

+ 1 - 0
pages/activityList/mine/introduction.vue

@@ -100,6 +100,7 @@
 					avatar: '',
 					name: '',
 					qrcode: 'https://music.nanyue6688.com/obsfile/c531395a576b4b1aa7377cdbf62cb088-default.png',
+					logo:'https://music.nanyue6688.com/obsfile/0f1d302bde434a68a049fafdeb5e1209-logo.png'
 				},
 				productId: '',
 				detail: {},

+ 11 - 1
pages/index/guide.vue

@@ -43,10 +43,11 @@
 			return {
 				userId: '',
 				show: false,
-				src: 'https://gxsz-bucket-01.obs.cn-south-1.myhuaweicloud.com/WechatIMG62.png'
+				src: ''
 			}
 		},
 		onLoad(options) {
+			this.fetchPoster()
 			if (!this.$u.test.isEmpty(options.userId)) {
 				this.userId = options.userId;
 			} else {
@@ -60,6 +61,11 @@
 					this.show = true;
 				}
 			},
+			fetchPoster(){
+				this.$u.api.activity.getList({enable:1}).then(res=>{
+					this.src=res.records[0].poster
+				})
+			},
 			async authorization() {
 				let agenterId=uni.getStorageSync("agenterId")
 				let params = getUrlParams(window.location.search);
@@ -95,6 +101,10 @@
 </script>
 
 <style>
+	.poster{
+		margin-top: -6rpx;
+	}
+	
 	.modal {
 		position: fixed;
 		top: 0;