hmp 4 лет назад
Родитель
Сommit
7a737f7e27

+ 2 - 1
components/homeViews/points-view.vue

@@ -54,6 +54,7 @@
 			 this.appletList = this.adsList.filter(item => item.type == 0)
 			 let image=this.appletList[0].url
 			 let appid=this.appletList[0].path
+			 let page=this.appletList[0].page
 			// 自定义html内容
 			let content = `
 				 <image class="img"  src="${image}"
@@ -68,7 +69,7 @@
 			      `
 			let launchParams = {
 				eleId: "launch-btn", // 元素id
-				url: "pages/home/home.html", // 跳转小程序的页面路径
+				url: page+".html", // 跳转小程序的页面路径
 				appid,
 				content // 自定义的html内容
 			};

+ 3 - 3
pages/activityList/activity/awards.vue

@@ -51,8 +51,8 @@
 				<view class="padding-lr">
 					<view class="title">
 						{{item.note}}
-						<text v-if="item.withdrawStatus==0" style="font-size: 28rpx;color: #ff9900;padding-left: 20rpx;font-weight: 500;">未发款</text>
-						<text v-if="item.withdrawStatus==1" style="font-size: 28rpx;color: #19be6b;padding-left: 20rpx;font-weight: 500;">已发款</text>
+						<text v-if="item.withdrawStatus==0" style="font-size: 28rpx;color: #ff9900;padding-left: 20rpx;font-weight: 500;">正在处理中</text>
+						<text v-if="item.withdrawStatus==1" style="font-size: 28rpx;color: #19be6b;padding-left: 20rpx;font-weight: 500;">已处理</text>
 					</view>
 					<view class="padding-top-sm" style="font-size: 24upx;font-family: PingFang SC;font-weight: bold;color: #686868;">
 						{{item.createTime}}</view>
@@ -122,7 +122,7 @@
 				})
 			},
 			init(){
-				this.userId = uni.getStorageSync("userId") || "1412774298841526273";
+				this.userId = uni.getStorageSync("userId");
 				if (!this.userId) {
 					this.$u.toast('用户未登录')
 					return

+ 1 - 0
pages/activityList/activity/doAwards.vue

@@ -98,6 +98,7 @@
 					return
 				}
 				this.$u.api.user.withdraw(this.withdrawList).then(res=>{
+					console.log(res);
 					if (res) {
 						this.$dialog.showModal("兑换成功,请耐心等待1~3个工作日",false).then(res=>{
 							uni.navigateBack({

+ 1 - 1
pages/activityList/mine/boostDetail.vue

@@ -37,7 +37,7 @@
 			}
 		},
 		onLoad() {
-			this.userId = uni.getStorageSync("userId") || -1;
+			this.userId = uni.getStorageSync("userId");
 			this.getBoostDetail();
 		},
 		onReachBottom() {

+ 4 - 0
pages/activityList/mine/myGift.vue

@@ -101,6 +101,10 @@
 		},
 		onLoad() {
 			this.userId = uni.getStorageSync("userId");
+			if (!this.userId) {
+				this.$u.toast('用户未登录')
+				return
+			}
 			this.init()
 		},
 		onShow() {

+ 4 - 0
pages/activityList/mine/myMusic.vue

@@ -91,6 +91,10 @@
 			this.activityId = options.activityId
 			this.getActivityDetail(options.activityId);
 			this.userId = uni.getStorageSync("userId");
+			if (!this.userId) {
+				this.$u.toast('用户未登录')
+				return
+			}
 			this.init()
 		},
 		onReachBottom() {

+ 5 - 1
pages/activityList/mine/myWelfare.vue

@@ -68,7 +68,11 @@
 			}
 		},
 		onLoad() {
-			this.userId = uni.getStorageSync("userId") || -1;
+			this.userId = uni.getStorageSync("userId");
+			if (this.$u.test.isEmpty(this.userId)) {
+				this.$u.toast("用户未登录")
+				return
+			}
 			this.getMineMedal()
 		},
 		methods: {