|
@@ -1,16 +1,6 @@
|
|
|
<template>
|
|
|
<view class="index">
|
|
|
- <u-navbar
|
|
|
- class="navbar"
|
|
|
- :is-back="false"
|
|
|
- :border-bottom="false"
|
|
|
- title-color="#333333"
|
|
|
- back-icon-color="#ffffff"
|
|
|
- >
|
|
|
- <view class="slot-wrap">
|
|
|
- <image :src="$method.splitImgHost(config.h5Logo)"></image>
|
|
|
- </view>
|
|
|
- </u-navbar>
|
|
|
+ <nav-logo></nav-logo>
|
|
|
<view class="swiper">
|
|
|
<swiper
|
|
|
:indicator-dots="false"
|
|
@@ -412,6 +402,8 @@ export default {
|
|
|
subIndex: 0,
|
|
|
courSubjectId: "",
|
|
|
optObj: {},
|
|
|
+ imgwidth: 0,
|
|
|
+ imgheight: 0,
|
|
|
};
|
|
|
},
|
|
|
async onLoad(option) {
|
|
@@ -542,23 +534,6 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(["getUserInfo", "appCommonConfig"]),
|
|
|
- // 公众号登录
|
|
|
- OfficialLogin() {
|
|
|
- console.log("公众号登录");
|
|
|
- this.$http({
|
|
|
- url: "/app/common/gzh_login",
|
|
|
- method: "post",
|
|
|
- data: {
|
|
|
- code: this.optObj.code,
|
|
|
- },
|
|
|
- noToken: true,
|
|
|
- }).then((res) => {
|
|
|
- if (res.data.code == 200) {
|
|
|
- } else {
|
|
|
- this.$u.toast(res.data.msg);
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
tobuy(item) {
|
|
|
if (item.goodsType == 2) {
|
|
|
uni.navigateTo({
|
|
@@ -1097,24 +1072,6 @@ page {
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
.index {
|
|
|
- .navbar {
|
|
|
- /deep/ .u-navbar-inner {
|
|
|
- margin-right: 0 !important;
|
|
|
- }
|
|
|
-
|
|
|
- .slot-wrap {
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
-
|
|
|
- image {
|
|
|
- width: 178rpx;
|
|
|
- height: 31rpx;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
.swiper {
|
|
|
width: 100%;
|
|
|
position: relative;
|