广告显示
This commit is contained in:
@@ -4,35 +4,32 @@
|
||||
<public-module></public-module>
|
||||
|
||||
<view class="header_box"></view>
|
||||
<!-- <view class="appJump">
|
||||
<view class="everhealth item flexbox" @click="appjumpfun('everhealth')">
|
||||
<view class="img">
|
||||
<image
|
||||
src="@/static/icon/ic_login_health.png"
|
||||
mode="widthFix"
|
||||
></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>一路健康</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zmzm item flexbox" @click="appjumpfun('nuttyreading')">
|
||||
<view class="img">
|
||||
<image src="@/static/icon/home_icon_3.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>疯子读书</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zmzm item flexbox" @click="appjumpfun('medicine')">
|
||||
<view class="img">
|
||||
<image src="@/static/icon/wmysicon.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>吴门医述</text>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="appJump">
|
||||
<view class="everhealth item flexbox" @click="appjumpfun('everhealth')">
|
||||
<view class="img">
|
||||
<image src="@/static/icon/ic_login_health.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>一路健康</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zmzm item flexbox" @click="appjumpfun('nuttyreading')">
|
||||
<view class="img">
|
||||
<image src="@/static/icon/home_icon_3.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>疯子读书</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zmzm item flexbox" @click="appjumpfun('medicine')">
|
||||
<view class="img">
|
||||
<image src="@/static/icon/wmysicon.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="text">
|
||||
<text>吴门医述</text>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="main_content_box">
|
||||
<view class="curriculum_box">
|
||||
<view class="curriculum_item_box" v-for="(v, i) in curriculumList" @click="handleClickCurriculum(v)">
|
||||
@@ -150,6 +147,12 @@
|
||||
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<common-advertisement
|
||||
ref="commonAdvertisement"
|
||||
:list="advertisementList"
|
||||
></common-advertisement>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
@@ -162,6 +165,7 @@
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
advertisementList: [],
|
||||
noticeList: [], //秒杀列表
|
||||
seckillLst: [], //秒杀列表
|
||||
|
||||
@@ -201,7 +205,9 @@
|
||||
};
|
||||
},
|
||||
onReady() {},
|
||||
onLoad() {},
|
||||
onLoad() { this.$nextTick(() => {
|
||||
this.getAdvertisement();
|
||||
});},
|
||||
async onShow() {
|
||||
console.log("at line 287:", this.userInfo);
|
||||
this.requestAll();
|
||||
@@ -220,6 +226,33 @@
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(["setUserInfo"]),
|
||||
|
||||
|
||||
async getAdvertisement() {
|
||||
|
||||
|
||||
console.log('11111111111111111111 at line 233:', 11111111111111111111)
|
||||
await this.$http
|
||||
.request({
|
||||
url: "common/mainAd/getMainAd",
|
||||
method: "POST",
|
||||
data: {
|
||||
type: 2,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
console.log("res at line 615:", res);
|
||||
if (res.code == 0 && res.list && res.list.length > 0) {
|
||||
this.advertisementList = res.list;
|
||||
|
||||
this.$refs.commonAdvertisement.open();
|
||||
}
|
||||
});
|
||||
},
|
||||
goVideo() {
|
||||
uni.navigateTo({
|
||||
url: "/pages/index/index",
|
||||
@@ -969,7 +1002,7 @@
|
||||
}
|
||||
|
||||
.appJump {
|
||||
width: 190rpx;
|
||||
width: auto;
|
||||
|
||||
position: fixed;
|
||||
right: 0;
|
||||
|
||||
Reference in New Issue
Block a user