Commit 4b4f6dca by wangyalan-git

修改

parent 0d606b97
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/zhqg-mini.iml" filepath="$PROJECT_DIR$/.idea/zhqg-mini.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectFrameBounds" extendedState="7">
<option name="x" value="-99" />
<option name="y" value="5" />
<option name="width" value="1935" />
<option name="height" value="1040" />
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
...@@ -51,15 +51,15 @@ Page({ ...@@ -51,15 +51,15 @@ Page({
paramCode: 'is_show_home_video' paramCode: 'is_show_home_video'
}, },
callBack: (res) => { callBack: (res) => {
console.log('视频是否展示',res) console.log('视频是否展示', res)
let isShow = JSON.parse(res.result.paramValue).isShow let isShow = JSON.parse(res.result.paramValue).isShow
console.log('rate', JSON.parse(res.result.paramValue)) console.log('rate', JSON.parse(res.result.paramValue))
this.setData({ this.setData({
isVideoShow: isShow? false: true isVideoShow: isShow ? false : true
}); });
this.getIndexImgs() this.getIndexImgs()
}, },
errCallBack: (res)=>{ errCallBack: (res) => {
this.getIndexImgs() this.getIndexImgs()
} }
}; };
...@@ -130,7 +130,11 @@ Page({ ...@@ -130,7 +130,11 @@ Page({
url: url url: url
}) })
}, },
toCategory: function () {
wx.switchTab({
url: '/pages/category/category'
})
},
//跳转公告列表页面 //跳转公告列表页面
onNewsPage: function () { onNewsPage: function () {
wx.navigateTo({ wx.navigateTo({
...@@ -152,7 +156,7 @@ Page({ ...@@ -152,7 +156,7 @@ Page({
// this.getIndexImgs() // this.getIndexImgs()
this.getNoticeList(); this.getNoticeList();
this.getTag(); this.getTag();
}, },
//加载轮播图 //加载轮播图
getIndexImgs() { getIndexImgs() {
...@@ -207,10 +211,10 @@ Page({ ...@@ -207,10 +211,10 @@ Page({
video: video video: video
}) })
}, },
quiteVideo: function(res){ quiteVideo: function (res) {
this.setData({ this.setData({
controls: false controls: false
}) })
}, },
// 加载商品标题分组列表 // 加载商品标题分组列表
getTag() { getTag() {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<view wx:else class="my-video"> <view wx:else class="my-video">
<video class='box-w block' id="video" src="{{video}}" show-center-play-btn="{{false}}" <video class='box-w block' id="video" src="{{video}}" show-center-play-btn="{{false}}"
autoplay='false' object-fit="fill" bindpause="quiteVideo" bindended="quiteVideo" autoplay='false' object-fit="fill" bindpause="quiteVideo" bindended="quiteVideo"
controls="true"></video> controls="true" auto-pause-if-navigate="true"></video>
</view> </view>
<!-- end swiper --> <!-- end swiper -->
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<image src='../../images/icon/newProd.png'></image> <image src='../../images/icon/newProd.png'></image>
<text>新品推荐</text> <text>新品推荐</text>
</view> </view>
<view class='item' bindtap='toClassifyPage' data-sts="2"> <view class='item' bindtap='toClassifyPage' data-sts="1">
<image src='../../images/icon/timePrice.png'></image> <image src='../../images/icon/timePrice.png'></image>
<text>限时特惠</text> <text>限时特惠</text>
</view> </view>
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
<image src='../../images/icon/neweveryday.png'></image> <image src='../../images/icon/neweveryday.png'></image>
<text>每日疯抢</text> <text>每日疯抢</text>
</view> </view>
<!-- <view class='item' bindtap='toCouponCenter'> <view class='item' bindtap='toCategory'>
<image src='../../images/icon/newprods.png'></image> <image src='../../images/icon/newprods.png'></image>
<text>领优惠券</text> <text>全部分类</text>
</view> --> </view>
</view> </view>
<!-- 消息播放 --> <!-- 消息播放 -->
......
...@@ -266,7 +266,7 @@ line-height:44rpx; ...@@ -266,7 +266,7 @@ line-height:44rpx;
padding:0 20rpx; padding:0 20rpx;
display: flex; display: flex;
flex-wrap:wrap; flex-wrap:wrap;
justify-content: space-around; /* justify-content: space-between; */
/* padding: 10rpx 0 0 0; */ /* padding: 10rpx 0 0 0; */
} }
...@@ -288,6 +288,7 @@ line-height:44rpx; ...@@ -288,6 +288,7 @@ line-height:44rpx;
display: inline-block; display: inline-block;
margin-bottom:20rpx; margin-bottom:20rpx;
box-shadow: 0rpx 6rpx 8rpx rgba(58,134,185,0.2); box-shadow: 0rpx 6rpx 8rpx rgba(58,134,185,0.2);
margin-right: 15rpx;
} }
.up-to-date .item-cont .prod-item .imagecont { .up-to-date .item-cont .prod-item .imagecont {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" indicator-color="{{indicatorColor}}" interval="{{interval}}" duration="{{duration}}" indicator-active-color="{{indicatorActiveColor}}"> <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" indicator-color="{{indicatorColor}}" interval="{{interval}}" duration="{{duration}}" indicator-active-color="{{indicatorActiveColor}}">
<block wx:for="{{imgs}}" wx:key='*this'> <block wx:for="{{imgs}}" wx:key='*this'>
<swiper-item> <swiper-item>
<image src='{{item}}'></image> <image src='{{item}}' mode="aspectFill"></image>
</swiper-item> </swiper-item>
</block> </block>
</swiper> </swiper>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment