Commit f44b4428 by 高淑倩

Merge branch 'dev_7.1.0' of ssh://gitlab.bigaka.net:2287/gaoshq/7-Eleven into dev_7.1.0

parents b6172359 c304da82
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
font-size: 24rpx; font-size: 24rpx;
background-color: rgba(0, 0, 0, 0.2); background-color: rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
z-index: 99;
} }
.bottom-img .img-top { .bottom-img .img-top {
width: 82rpx; width: 82rpx;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</view> </view>
</view> </view>
<template name="water-list"> <template name="water-list">
<view class="item" bindtap="gotoDetail" data-id="{{id}}" data-currentType="{{currentType}}"> <view class="item" bindtap="gotoDetail" data-id="{{id}}" data-current-type="{{currentType}}">
<view class="no-audited" wx:if="{{currentType != 2}}"> <view class="no-audited" wx:if="{{currentType != 2}}">
待审核 待审核
......
...@@ -151,14 +151,14 @@ ...@@ -151,14 +151,14 @@
<!-- </swiper-item> <!-- </swiper-item>
</swiper> --> </swiper> -->
</view> </view>
<!-- <share-modal show="{{showShareModal}}" /> --> <share-modal show="{{showShareModal}}" />
<!-- <card-modal <card-modal
show-card-modal="{{showCardModal}}" show-card-modal="{{showCardModal}}"
card-title="{{cardTitle}}" card-title="{{cardTitle}}"
card-url="{{cardUrl}}" card-url="{{cardUrl}}"
page-path="{{pagePath}}" page-path="{{pagePath}}"
/> />
<share-poster id="getPoster" bindmyevent="myEventListener" avater="{{cardUrl}}" productDesc="{{cardTitle}}" userAvatar="http://t2.hddhhn.com/uploads/tu/201806/9999/91480c0c87.jpg" bind:showMiniCard="_showMiniCard" pagePath="{{pagePath}}" code-img="{{codeImg}}"></share-poster> --> <share-poster id="getPoster" bindmyevent="myEventListener" avater="{{cardUrl}}" productDesc="{{cardTitle}}" userAvatar="http://t2.hddhhn.com/uploads/tu/201806/9999/91480c0c87.jpg" bind:showMiniCard="_showMiniCard" pagePath="{{pagePath}}" code-img="{{codeImg}}"></share-poster>
<!--goHome--> <!--goHome-->
<go-home/> <go-home/>
...@@ -65,6 +65,8 @@ scroll-view{ ...@@ -65,6 +65,8 @@ scroll-view{
position: fixed; position: fixed;
right: 22rpx; right: 22rpx;
bottom: 35rpx; bottom: 35rpx;
z-index: 99;
} }
......
...@@ -230,6 +230,9 @@ wxService.page({ ...@@ -230,6 +230,9 @@ wxService.page({
sspList.splice(event.currentTarget.dataset.index, 1) sspList.splice(event.currentTarget.dataset.index, 1)
} }
} }
this.setData({
'params.sspList': sspList
})
}, },
// 上传视频 // 上传视频
...@@ -250,11 +253,15 @@ wxService.page({ ...@@ -250,11 +253,15 @@ wxService.page({
sspList.splice(i,1) sspList.splice(i,1)
} }
} }
this.setData({
'params.sspList': sspList
})
}, },
// 发布笔记 // 发布笔记
formSubmit(e){ formSubmit(e){
console.log('3333', this.data.params.sspList)
console.log('requesting', this.data.requesting) console.log('requesting', this.data.requesting)
if (this.data.requesting){ if (this.data.requesting){
return; return;
...@@ -273,6 +280,13 @@ wxService.page({ ...@@ -273,6 +280,13 @@ wxService.page({
}) })
return; return;
} }
if (this.data.params.sspList && this.data.params.sspList[0].videoUrl && !this.data.params.sspList[1].url ) {
wx.showToast({
title: '请上传至少一张图片',
icon: 'none'
})
return;
}
if (!e.detail.value.headline){ if (!e.detail.value.headline){
wx.showToast({ wx.showToast({
title: '请添加标题', title: '请添加标题',
......
...@@ -49,5 +49,6 @@ ...@@ -49,5 +49,6 @@
position: fixed; position: fixed;
right: 22rpx; right: 22rpx;
bottom: 35rpx; bottom: 35rpx;
z-index: 99;
} }
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