删除不必要代码、修改项目库bug、开屏广告可以点击图片

This commit is contained in:
DESKTOP-RQ919RC\Pc 2025-04-03 16:14:36 +08:00
parent 25fdbdcb10
commit e0e290d2cf
4 changed files with 15 additions and 13 deletions

View File

@ -4,7 +4,7 @@
<view class="num">{{ num }}</view>
<view class="text">跳过</view>
</view>
<image class="img" show-menu-by-longpress src="{{ url }}" mode="widthFix"></image>
<image class="img" bind:tap="skip" show-menu-by-longpress src="{{ url }}" mode="widthFix"></image>
<view class="skip" wx:if="{{ openDate.url }}" bind:tap="skip">
<view class="text">点击查看详情</view>
<image class="icon" mode="widthFix" src="https://app.gter.net/image/miniApp/offer/right-double-arrow.png"></image>

View File

@ -193,8 +193,7 @@ Page({
const info = data.info || {}
let contras = data.contras
if (Array.isArray(contras)) contras = {}
let contras = Array.isArray(data.contras) ? {} : data.contras;
let side = this.data.side
@ -238,10 +237,7 @@ Page({
}
});
if (data.language_of_instruction) {
let strOutput = data.language_of_instruction.join(',');
data['language_of_instruction_text'] = strOutput
}
data.language_of_instruction && (data.language_of_instruction_text = data.language_of_instruction.join(","));
let course = {
required: [],
@ -370,11 +366,10 @@ Page({
})
const standardized = target.standardized_tests_requirements || []
let arr = []
standardized.forEach(element => {
element['level'] = obj[element.requirement_level]
arr.push(element)
})
const arr = standardized.map((element) => ({
...element,
level: obj[element.requirement_level],
}));
if (arr.length != 0) {
language.push({

View File

@ -259,13 +259,17 @@ view {
.indication {
display: flex;
justify-content: center;
margin-right: 22.5rpx;
.item {
width: 15rpx;
height: 6rpx;
background-color: rgba(215, 215, 215, 1);
border-radius: 30rpx;
margin-right: 6rpx;
&:not(:last-of-type) {
margin-right: 6rpx;
}
&.pitch {
background-color: rgba(250, 107, 17, 1);

View File

@ -219,12 +219,15 @@ view {
.hot .indication {
display: flex;
justify-content: center;
margin-right: 22.5rpx;
}
.hot .indication .item {
width: 15rpx;
height: 6rpx;
background-color: #d7d7d7;
border-radius: 30rpx;
}
.hot .indication .item:not(:last-of-type) {
margin-right: 6rpx;
}
.hot .indication .item.pitch {