修改logo优化任务跳转
This commit is contained in:
parent
792a70b7ed
commit
94599e7227
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
//打包时修改env的值即可
|
//打包时修改env的值即可
|
||||||
const env='production' //test , production,local
|
const env='test' //test , production,local
|
||||||
|
|
||||||
export const encryptKey='1234567890123456' // http数据加解密的key
|
export const encryptKey='1234567890123456' // http数据加解密的key
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,7 @@
|
||||||
extra: uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),
|
extra: uni.getStorageSync('userInfo').userId + "" + new Date().getTime(),
|
||||||
}
|
}
|
||||||
datas.adRewardedVideoloadNum = 0
|
datas.adRewardedVideoloadNum = 0
|
||||||
|
|
||||||
adRewarded.value.load();
|
adRewarded.value.load();
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
@ -295,123 +295,122 @@
|
||||||
// 播放中途退出
|
// 播放中途退出
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function goNav(item, url) {
|
async function goNav(item) {
|
||||||
console.log(item, url, '调试111')
|
console.log(item, '请求参数')
|
||||||
// jumpType (integer, optional): 跳转类型 1 内部路径 2 外部路径 ,
|
// jumpType (integer, optional): 跳转类型 1 内部路径 2 外部路径 ,
|
||||||
// type (integer, optional): 任务类型 1 普通任务 2 打卡任务 9 其它 ,
|
// type (integer, optional): 任务类型 1 普通任务 2 打卡任务 9 其它 ,
|
||||||
if (url) {
|
// if (url) {
|
||||||
let urls = ''
|
// let urls = ''
|
||||||
if (url == '/pages/task/prizeList') {
|
// if (url == '/pages/task/prizeList') {
|
||||||
urls = url + '?source=2'
|
// urls = url + '?source=2'
|
||||||
}
|
// }
|
||||||
if (url == '/pages/task/receiveMember') {
|
// if (url == '/pages/task/receiveMember') {
|
||||||
urls = url + `?standard=${item.discNumber == null ? true : false}&taskId=${item.id}`
|
// urls = url + `?standard=${item.discNumber == null ? true : false}&taskId=${item.id}`
|
||||||
}
|
// }
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url: urls
|
// url: urls
|
||||||
})
|
// })
|
||||||
} else {
|
// } else {
|
||||||
console.log(item, '林区')
|
|
||||||
if (item.jumpType == 0) {
|
// }
|
||||||
if (item.buttonTitle.indexOf("领取") != -1) {
|
if (item.jumpType == 0) {
|
||||||
let res = await taskReceive({
|
if (item.buttonTitle.indexOf("领取") != -1) {
|
||||||
id: item.id
|
let res = await taskReceive({
|
||||||
|
id: item.id
|
||||||
|
})
|
||||||
|
if (res.code == 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.id == 15 ? '签到成功' : '领取成功',
|
||||||
|
icon: 'none'
|
||||||
})
|
})
|
||||||
if (res.code == 0) {
|
setTimeout(() => {
|
||||||
uni.showToast({
|
getTaskdata()
|
||||||
title: res.id == 15 ? '签到成功' : '领取成功',
|
getsignIn()
|
||||||
icon: 'none'
|
}, 1000)
|
||||||
})
|
} else {
|
||||||
setTimeout(() => {
|
uni.showToast({
|
||||||
getTaskdata()
|
title: res.msg,
|
||||||
getsignIn()
|
icon: 'none'
|
||||||
}, 1000)
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.msg,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} else if (item.title.indexOf("新人福利") != -1) {
|
|
||||||
let res = await taskReceive({
|
|
||||||
id: item.id
|
|
||||||
})
|
})
|
||||||
if (res.code == 0) {
|
}
|
||||||
uni.showToast({
|
} else if (item.title.indexOf("新人福利") != -1) {
|
||||||
title: res.id == 15 ? '签到成功' : '领取成功',
|
let res = await taskReceive({
|
||||||
icon: 'none'
|
id: item.id
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
if (res.code == 0) {
|
||||||
getTaskdata()
|
uni.showToast({
|
||||||
getsignIn()
|
title: res.id == 15 ? '签到成功' : '领取成功',
|
||||||
}, 1000)
|
icon: 'none'
|
||||||
} else {
|
})
|
||||||
uni.switchTab({
|
setTimeout(() => {
|
||||||
url: '/pages/index/index'
|
getTaskdata()
|
||||||
})
|
getsignIn()
|
||||||
}
|
}, 1000)
|
||||||
} else if (item.buttonTitle.indexOf("观看视频") != -1) {
|
|
||||||
// 首次加载广告
|
|
||||||
if (!datas.adRewardedShow) {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '广告加载失败,请稍后重试'
|
|
||||||
});
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(datas.urlCallback)
|
|
||||||
adRewarded.value.show();
|
|
||||||
} else {
|
} else {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: "/pages/index/index"
|
url: '/pages/index/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (item.jumpType == 1) {
|
} else if (item.buttonTitle.indexOf("观看视频") != -1) {
|
||||||
let buttonUrl = item.buttonUrl
|
// 首次加载广告
|
||||||
if (item.title && item.title.indexOf('每周打卡奖励') != -1) {
|
if (!datas.adRewardedShow) {
|
||||||
buttonUrl = item.buttonUrl + '?source=2'
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '广告加载失败,请稍后重试'
|
||||||
|
});
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if (item.title && item.title.indexOf('每月打卡奖励1') != -1) {
|
|
||||||
buttonUrl = item.buttonUrl + '?source=3'
|
|
||||||
}
|
|
||||||
if (item.title && item.title.indexOf('每月打卡奖励2') != -1) {
|
|
||||||
|
|
||||||
// let res = await taskReceive({
|
console.log(datas.urlCallback)
|
||||||
// id: item.id
|
adRewarded.value.show();
|
||||||
// })
|
} else {
|
||||||
// if (res.code == 0) {
|
|
||||||
// uni.showToast({
|
|
||||||
// title: res.id == 15 ? '签到成功' : '领取成功',
|
|
||||||
// icon: 'none'
|
|
||||||
// })
|
|
||||||
// setTimeout(() => {
|
|
||||||
// getTaskdata()
|
|
||||||
// getsignIn()
|
|
||||||
// }, 1000)
|
|
||||||
// } else {
|
|
||||||
// uni.showToast({
|
|
||||||
// title: res.msg,
|
|
||||||
// icon: 'none'
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
|
|
||||||
buttonUrl =
|
|
||||||
`${item.buttonUrl}?standard=${item.discNumber == null ? true : false}&taskId=${item.id}`
|
|
||||||
}
|
|
||||||
uni.navigateTo({
|
|
||||||
url: buttonUrl
|
|
||||||
})
|
|
||||||
|
|
||||||
} else if (item.jumpType == 3) {
|
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: item.buttonUrl
|
url: "/pages/index/index"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
} else if (item.jumpType == 1) {
|
||||||
|
let buttonUrl = item.buttonUrl
|
||||||
|
if (item.title && item.title.indexOf('每周打卡奖励') != -1) {
|
||||||
|
buttonUrl = item.buttonUrl + '?source=2'
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
if (item.title && item.title.indexOf('每月打卡奖励1') != -1) {
|
||||||
|
buttonUrl = item.buttonUrl + '?source=3'
|
||||||
|
}
|
||||||
|
if (item.title && item.title.indexOf('每月打卡奖励2') != -1) {
|
||||||
|
|
||||||
|
// let res = await taskReceive({
|
||||||
|
// id: item.id
|
||||||
|
// })
|
||||||
|
// if (res.code == 0) {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: res.id == 15 ? '签到成功' : '领取成功',
|
||||||
|
// icon: 'none'
|
||||||
|
// })
|
||||||
|
// setTimeout(() => {
|
||||||
|
// getTaskdata()
|
||||||
|
// getsignIn()
|
||||||
|
// }, 1000)
|
||||||
|
// } else {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: res.msg,
|
||||||
|
// icon: 'none'
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
|
buttonUrl =
|
||||||
|
`${item.buttonUrl}?standard=${item.discNumber == null ? true : false}&taskId=${item.id}`
|
||||||
|
}
|
||||||
|
uni.navigateTo({
|
||||||
|
url: buttonUrl
|
||||||
|
})
|
||||||
|
|
||||||
|
} else if (item.jumpType == 3) {
|
||||||
|
uni.switchTab({
|
||||||
|
url: item.buttonUrl
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获得签到
|
// 获得签到
|
||||||
|
|
@ -444,10 +443,11 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
page{
|
page {
|
||||||
// min-height: 100vh;
|
// min-height: 100vh;
|
||||||
}
|
}
|
||||||
.container{
|
|
||||||
|
.container {
|
||||||
/* #ifdef H5 */
|
/* #ifdef H5 */
|
||||||
min-height: calc(100vh - 96rpx);
|
min-height: calc(100vh - 96rpx);
|
||||||
/* #endif */
|
/* #endif */
|
||||||
|
|
@ -457,6 +457,7 @@
|
||||||
background-color: #F3F4F8;
|
background-color: #F3F4F8;
|
||||||
padding-top: 2rpx;
|
padding-top: 2rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.u-absolute {
|
.u-absolute {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
@ -469,7 +470,7 @@
|
||||||
.icon {
|
.icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
padding: 122rpx 32rpx 32rpx 32rpx;
|
padding: 122rpx 32rpx 32rpx 32rpx;
|
||||||
|
|
||||||
.icon_title {
|
.icon_title {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
margin-left: 28rpx;
|
margin-left: 28rpx;
|
||||||
|
|
@ -569,6 +570,7 @@
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
padding: 28rpx;
|
padding: 28rpx;
|
||||||
margin-bottom: 32rpx;
|
margin-bottom: 32rpx;
|
||||||
|
|
||||||
.cell {
|
.cell {
|
||||||
padding: 32rpx 0;
|
padding: 32rpx 0;
|
||||||
border-bottom: 2rpx solid #EBEBEB;
|
border-bottom: 2rpx solid #EBEBEB;
|
||||||
|
|
|
||||||
BIN
static/logo.png
BIN
static/logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.5 KiB |
Loading…
Reference in New Issue