|
@@ -631,30 +631,46 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 新闻 -->
|
|
<!-- 新闻 -->
|
|
- <view class="news-title" v-if="newsList.length > 0">
|
|
|
|
- <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
|
|
|
|
|
|
+ <view class="news-title" v-if="newsList.length > 0" >
|
|
|
|
+ <!-- <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
|
|
<view class="line" style="margin-top:4px;"></view>活动公告
|
|
<view class="line" style="margin-top:4px;"></view>活动公告
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="more oldTextjp2" oldstyle="font-size:16px;" @click="toNewsNotice">更多<view
|
|
|
|
|
|
+ <view class="more oldTextjp2" oldstyle="font-size:16px;" >更多<view
|
|
class="more-icon iconfont"> </view>
|
|
class="more-icon iconfont"> </view>
|
|
- </view>
|
|
|
|
-
|
|
|
|
|
|
+ </view> -->
|
|
|
|
|
|
- </view>
|
|
|
|
- <view class="news">
|
|
|
|
|
|
+ <u-notice-bar mode="horizontal"
|
|
|
|
+ color="#FF3D00" bg-color="#fff"
|
|
|
|
+ :list="newsList"></u-notice-bar>
|
|
|
|
|
|
- <view class="news-content" v-for="(item,index) in newsList" :key="index"
|
|
|
|
- @click="gotoUrl('pages/article/articleDetails?id=' + item.id)">
|
|
|
|
- <view class="content-text">
|
|
|
|
- <view class="content-title oldTextjp2" oldstyle="font-size: 18px;">{{item.title}}</view>
|
|
|
|
- <view class="news-time">{{item.createTime?item.createTime.slice(5,10):''}}</view>
|
|
|
|
- </view>
|
|
|
|
- <view class="content-img">
|
|
|
|
- <img :src="item.pic ? item.pic : 'static/img/image_default.png'" alt="">
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ </view>
|
|
|
|
+ <view class="news-title" >
|
|
|
|
+ <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
|
|
|
|
+ <view class="line" style="margin-top:4px;"></view>51商城
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="more oldTextjp2" oldstyle="font-size:16px;" >
|
|
|
|
+ 备货中,敬请期待!
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+ <view class="shopList" @click="bhz" >
|
|
|
|
+ <view class="shopItem" v-for="(item,i) in shopList" :key="i">
|
|
|
|
+ <view class="shopItemImg">
|
|
|
|
+ <img src="@/assets/img/buy/shopList.png" >
|
|
|
|
+ </view>
|
|
|
|
+ <view class="shopItemName" ><img style="width:52px; height:16px; vertical-align: middle;" src="@/assets/img/buy/ptzy.png">家用7kW交流充电桩</view>
|
|
|
|
+ <view class="shopItemPrice" >
|
|
|
|
+ <view class="shopItemPrice1" >¥***</view>
|
|
|
|
+ <view class="shopItemPrice2">
|
|
|
|
+
|
|
|
|
+ <u-icon name="shopping-cart"></u-icon>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
<view class="bottom">
|
|
<view class="bottom">
|
|
<view class="bot">
|
|
<view class="bot">
|
|
<view class="bot-line"></view>
|
|
<view class="bot-line"></view>
|
|
@@ -760,7 +776,8 @@
|
|
couponSelect: {},
|
|
couponSelect: {},
|
|
pageIndex2: 1,
|
|
pageIndex2: 1,
|
|
recordsTotal2: 0,
|
|
recordsTotal2: 0,
|
|
- defaultStation:[],
|
|
|
|
|
|
+ defaultStation:[],
|
|
|
|
+ shopList:[{},{}]
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1453,6 +1470,12 @@
|
|
icon: "none"
|
|
icon: "none"
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ bhz(){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "备货中,敬请期待",
|
|
|
|
+ icon: "none"
|
|
|
|
+ })
|
|
},
|
|
},
|
|
getPointTimeOut() {
|
|
getPointTimeOut() {
|
|
|
|
|
|
@@ -1502,8 +1525,12 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
toNewsNotice() {
|
|
toNewsNotice() {
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/article/newsNotice'
|
|
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: '/pages/article/newsNotice'
|
|
|
|
+ // })
|
|
|
|
+
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/index/activity'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//微信扫二维码
|
|
//微信扫二维码
|
|
@@ -1715,23 +1742,20 @@
|
|
title: "加载中",
|
|
title: "加载中",
|
|
mask: true,
|
|
mask: true,
|
|
})
|
|
})
|
|
- if (bl) {
|
|
|
|
- this.newsList = [];
|
|
|
|
- this.pageIndex = 1;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
newsApi.newsInfoList({
|
|
newsApi.newsInfoList({
|
|
- pageIndex: this.pageIndex,
|
|
|
|
- pageSize: 3,
|
|
|
|
- shortName:'TZGG',
|
|
|
|
|
|
+ pageIndex: 1,
|
|
|
|
+ pageSize: 5,
|
|
|
|
+ shortName:'GDXW',
|
|
|
|
+ //shortName:'TZGG'
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
|
|
|
- this.newsList = [
|
|
|
|
- ...this.newsList,
|
|
|
|
- ...res.data.data
|
|
|
|
- ];
|
|
|
|
- this.recordsTotal = res.data.recordsTotal
|
|
|
|
|
|
+ this.newsList = res.data.data.map(item=>{
|
|
|
|
+ return item.title
|
|
|
|
+ })
|
|
|
|
+
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: error,
|
|
title: error,
|
|
@@ -2789,18 +2813,30 @@
|
|
margin-top: -60px;
|
|
margin-top: -60px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .shopItemPrice2{
|
|
|
|
+ border-radius: 25px;
|
|
|
|
+ height: 40rpx;
|
|
|
|
+ width: 40rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ /* text-decoration: underline; */
|
|
|
|
|
|
|
|
+ color: #fff;
|
|
|
|
+ text-align: center;
|
|
|
|
+
|
|
|
|
+ background: linear-gradient(180deg, rgba(255,98,0,1) 0%,rgba(255,40,0,1) 100%);
|
|
|
|
+ }
|
|
.slogan-4 {
|
|
.slogan-4 {
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
/* text-decoration: underline; */
|
|
/* text-decoration: underline; */
|
|
- color: #9F9C99;
|
|
|
|
|
|
+
|
|
|
|
|
|
text-align: center;
|
|
text-align: center;
|
|
position: fixed;
|
|
position: fixed;
|
|
/* top: 40px; */
|
|
/* top: 40px; */
|
|
- bottom: 120px;
|
|
|
|
|
|
+ bottom: 180px;
|
|
right: 20px;
|
|
right: 20px;
|
|
height: 80rpx;
|
|
height: 80rpx;
|
|
width: 80rpx;
|
|
width: 80rpx;
|
|
@@ -2825,5 +2861,26 @@
|
|
50% { transform: rotate(0deg); }
|
|
50% { transform: rotate(0deg); }
|
|
75% { transform: rotate(-8deg); }
|
|
75% { transform: rotate(-8deg); }
|
|
100% { transform: rotate(0deg); }
|
|
100% { transform: rotate(0deg); }
|
|
|
|
+ }
|
|
|
|
+ .shopList{
|
|
|
|
+ width: 91.4%;
|
|
|
|
+ margin: 8px auto 0;
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ padding: 12px 12px 12px 11px;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-around;
|
|
|
|
+ .shopItem{
|
|
|
|
+ width: 45%;
|
|
|
|
+ margin: 3px;
|
|
|
|
+ .shopItemPrice{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ .shopItemPrice1{
|
|
|
|
+ color:#FF2800
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|