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({
paramCode: 'is_show_home_video'
},
callBack: (res) => {
console.log('视频是否展示',res)
console.log('视频是否展示', res)
let isShow = JSON.parse(res.result.paramValue).isShow
console.log('rate', JSON.parse(res.result.paramValue))
this.setData({
isVideoShow: isShow? false: true
isVideoShow: isShow ? false : true
});
this.getIndexImgs()
},
errCallBack: (res)=>{
errCallBack: (res) => {
this.getIndexImgs()
}
};
......@@ -130,7 +130,11 @@ Page({
url: url
})
},
toCategory: function () {
wx.switchTab({
url: '/pages/category/category'
})
},
//跳转公告列表页面
onNewsPage: function () {
wx.navigateTo({
......@@ -152,7 +156,7 @@ Page({
// this.getIndexImgs()
this.getNoticeList();
this.getTag();
},
//加载轮播图
getIndexImgs() {
......@@ -207,10 +211,10 @@ Page({
video: video
})
},
quiteVideo: function(res){
this.setData({
controls: false
})
quiteVideo: function (res) {
this.setData({
controls: false
})
},
// 加载商品标题分组列表
getTag() {
......
......@@ -29,7 +29,7 @@
<view wx:else class="my-video">
<video class='box-w block' id="video" src="{{video}}" show-center-play-btn="{{false}}"
autoplay='false' object-fit="fill" bindpause="quiteVideo" bindended="quiteVideo"
controls="true"></video>
controls="true" auto-pause-if-navigate="true"></video>
</view>
<!-- end swiper -->
......@@ -38,7 +38,7 @@
<image src='../../images/icon/newProd.png'></image>
<text>新品推荐</text>
</view>
<view class='item' bindtap='toClassifyPage' data-sts="2">
<view class='item' bindtap='toClassifyPage' data-sts="1">
<image src='../../images/icon/timePrice.png'></image>
<text>限时特惠</text>
</view>
......@@ -46,10 +46,10 @@
<image src='../../images/icon/neweveryday.png'></image>
<text>每日疯抢</text>
</view>
<!-- <view class='item' bindtap='toCouponCenter'>
<view class='item' bindtap='toCategory'>
<image src='../../images/icon/newprods.png'></image>
<text>领优惠券</text>
</view> -->
<text>全部分类</text>
</view>
</view>
<!-- 消息播放 -->
......
......@@ -266,7 +266,7 @@ line-height:44rpx;
padding:0 20rpx;
display: flex;
flex-wrap:wrap;
justify-content: space-around;
/* justify-content: space-between; */
/* padding: 10rpx 0 0 0; */
}
......@@ -288,6 +288,7 @@ line-height:44rpx;
display: inline-block;
margin-bottom:20rpx;
box-shadow: 0rpx 6rpx 8rpx rgba(58,134,185,0.2);
margin-right: 15rpx;
}
.up-to-date .item-cont .prod-item .imagecont {
......
......@@ -4,7 +4,7 @@
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" indicator-color="{{indicatorColor}}" interval="{{interval}}" duration="{{duration}}" indicator-active-color="{{indicatorActiveColor}}">
<block wx:for="{{imgs}}" wx:key='*this'>
<swiper-item>
<image src='{{item}}'></image>
<image src='{{item}}' mode="aspectFill"></image>
</swiper-item>
</block>
</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