Commit 6c15f370602aa8c1370ba296c09d445db1318f0c

Authored by wangfan
1 parent 4110a574

smsbatch

... ... @@ -33,5 +33,8 @@ Component({
this.triggerEvent('click',{...util.attr(e)});
this.hide();
},
actionSheetChange(){
this.hide();
}
}
})
... ...
... ... @@ -2,7 +2,7 @@
<action-sheet hidden="{{actionSheetHidden}}" bindchange="actionSheetChange">
<view class="tip"><slot></slot></view>
<block wx:for="{{items}}" wx:key="items.key">
<action-sheet-item class="item" bindtap="bindItemTap" data-value="{{item}}" data-index="{{index}}">{{item}}</action-sheet-item>
<action-sheet-item bindtap="bindItemTap" data-value="{{item}}" data-index="{{index}}">{{item}}</action-sheet-item>
</block>
<action-sheet-cancel class="cancel" bindtap="bindItemTap">取消</action-sheet-cancel>
<action-sheet-cancel bindtap="bindItemTap">取消</action-sheet-cancel>
</action-sheet>
... ...
/* components/actionSheet/index.wxss */
action-sheet-item,action-sheet-cancel{
padding: 0;
margin:0;
height: 100rpx;
line-height: 100rpx;
}
.tip{
color: #999999;
font-size: 36rpx;
text-align: center;
padding: 20rpx 0;
height: 100rpx;
line-height: 100rpx;
}
action-sheet-cancel{
padding: 0;
margin:0;
height: 60rpx;
line-height: 60rpx;
}
\ No newline at end of file
... ...
<!--components/book/smsbatch/rows.wxml-->
<view class="row flex-lr Medium">
<view>{{item.addtimeStr}}</view>
<view>{{item.send_total}}人</view>
<view class="sms-status{{item.status}}"></view>
<block wx:if="{{item.status==-1}}">
<view>
<view style="width: 100%;">
<formids url="/pages/book/smsbatch/detail?id={{item.id}}&seller_id={{item.sid}}" style="width: 100%;">
<view class="row flex-lr Medium" style="width: 100%;">
<view>{{item.addtimeStr}}</view>
<view>{{item.send_total}}人</view>
<view class="sms-status{{item.status}}"></view>
</view>
</formids>
</view>
<view style="min-width: 160rpx;margin-left: 50rpx;">
<block wx:if="{{item.status==-1}}">
<service>
<view class="opt-but">联系客服</view>
</service>
</view>
</block>
<block wx:elif="{{item.status==1}}">
<view>
<userinfo wx:if="{{hasScene==1}}" binduserinfo="sendMsg" data-id="{{item.id}}">
<view class="opt-but">立即发放</view>
</userinfo>
<sendsms wx:else="" bindtap="sendMsg" data-id="{{item.id}}">
<view class="opt-but">立即发放</view>
</sendsms>
</view>
</block>
<block wx:else="">
<formids url="/pages/book/smsbatch/detail?id={{item.id}}&seller_id={{item.sid}}">
<view class="opt-but">查看详情</view>
</formids>
</block>
</block>
<block wx:elif="{{item.status==1}}">
<view>
<userinfo wx:if="{{hasScene==1}}" binduserinfo="sendMsg" data-id="{{item.id}}">
<view class="opt-but">立即发放</view>
</userinfo>
<sendsms wx:else="" bindtap="sendMsg" data-id="{{item.id}}">
<view class="opt-but">立即发放</view>
</sendsms>
</view>
</block>
<block wx:else="">
<formids url="/pages/book/smsbatch/detail?id={{item.id}}&seller_id={{item.sid}}">
<view class="opt-but">查看详情</view>
</formids>
</block>
</view>
</view>
... ...
<!--pages/book/smsbatch/list.wxml-->
<nav id="nav" hasHome backgroundColor="#199095" color="#fefefe">短信记录</nav>
<nav id="nav" hasHome backgroundColor="#199095" color="#fefefe">历史记录</nav>
<view class="page">
<view class="Medium title">短信记录</view>
<view class="Medium title">历史记录</view>
<block wx:if="{{list.length>0}}">
<view class="rows" style="width: 100%" wx:for="{{list}}" wx:key="list.key" >
<view class="list-rows" wx:for="{{list}}" wx:key="list.key" >
<rows item="{{item}}"></rows>
</view>
</block>
... ...
... ... @@ -7,12 +7,12 @@
font-size: 30rpx;
color: #353535;
}
.rows{
.list-rows{
height: 140rpx;
line-height: 140rpx;
border-bottom: 2rpx solid #F1F0F4;
}
.rows:last-child{
.list-rows:last-child{
border-bottom-width: 0;
}
.title{
... ...