Commit 4110a5741d91de7e96d479643566dd95b1e083c5

Authored by wangfan
1 parent b5785529

smsbatch

{
"component": true,
"usingComponents": {
"service":"/components/book/smsbatch/service"
"service":"/components/book/smsbatch/service",
"formids":"/components/formids/formids"
}
}
\ No newline at end of file
... ...
... ... @@ -28,4 +28,4 @@
border-radius: 10rpx;
padding: 0 10rpx;
color: #199095;
}
\ No newline at end of file
}
... ...
// pages/book/smsbatch/detail.js
import util from '../../../utils/util';
import App from '../../../utils/api';
const {regeneratorRuntime} = global
Page({
/**
... ... @@ -12,7 +15,13 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
App.Reserve.SmsBatchInfo({id:options.id}).then(res=>{
this.setData({
...res.data,
addtimeStr:util.unixtoTime(res.data.addtime,'YYYY-MM-DD HH:II'),
sendertimeStr:util.unixtoTime(res.data.stime ||'','YYYY-MM-DD HH:II'),
});
})
},
/**
... ...
{}
\ No newline at end of file
{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle":"light",
"usingComponents": {
"userinfo":"/components/userinfo/userinfo",
"nav":"/components/nav/nav",
"formids":"/components/formids/formids",
"service":"/components/book/smsbatch/service"
}
}
\ No newline at end of file
... ...
<!--pages/book/smsbatch/detail.wxml-->
<text>pages/book/smsbatch/detail.wxml</text>
<nav id="nav" hasHome backgroundColor="#199095" color="#fefefe">短信详情</nav>
<view class="page">
<view class="send_msg">{{send_msg}}</view>
<view class="rows flex-ll">
<view class="label">活动人数</view>
<view class="value Medium">{{send_total}}</view>
</view>
<view class="rows flex-ll">
<view class="label">创建时间</view>
<view class="value Medium">{{addtimeStr}}</view>
</view>
<view class="rows flex-ll">
<view class="label">创 建 人</view>
<view class="value Medium">{{note_name}}</view>
</view>
<view class="rows flex-ll">
<view class="label">联系姓名</view>
<view class="value Medium">{{name}}</view>
</view>
<view class="rows flex-ll">
<view class="label">联系电话</view>
<view class="value Medium">{{phone}}</view>
</view>
<block wx:if="{{sender}}">
<view class="rows rows-border"></view>
<view class="rows flex-ll">
<view class="label">发 放 人</view>
<view class="value Medium">{{sender||''}}</view>
</view>
<view class="rows flex-ll">
<view class="label">发放时间</view>
<view class="value Medium">{{sendertimeStr}}</view>
</view>
</block>
<view class="rows flex-ll">
<view class="label">短信状态</view>
<view class="value Medium">
<view class="sms-status{{status}}"></view>
</view>
</view>
<view class="rows flex-ll"></view>
<service wx:if="{{status==-1}}">
<view class="opt-but">联系客服</view>
</service>
<sendsms wx:if="{{status==1}}">
<view class="opt-but">立即发放</view>
</sendsms>
</view>
... ...
/* pages/book/smsbatch/detail.wxss */
\ No newline at end of file
/* pages/book/smsbatch/detail.wxss */
.page{
width: 90%;
margin: 0 auto;
color: #353535;
padding-top: 28rpx;
font-size: 34rpx;
color: #353535;
}
.send_msg{
border: 1rpx solid #E0E0E0;
border-radius: 8rpx;
box-shadow: 0 2rpx 8rpx 0 #E0E0E0;
padding: 32rpx;
margin-bottom: 40rpx;
}
.rows{
height: 88rpx;
line-height: 88rpx;
}
.rows .label{
width: 180rpx;
}
.rows .value{}
.rows-border{
width: 100%;
background-color: #F1F0F4;
height: 2rpx;
margin: 43rpx 0;
}
.opt-but{
background-color: #199095;
height: 84rpx;
line-height: 84rpx;
color:#FEFEFE;
text-align: center;
border-radius: 10rpx;
}
.sms-status0:before{
content: '审核中';
color:#09BB07;
}
.sms-status1:before{
content: '已通过';
color:#353535;
}
.sms-status2:before{
content: '已发放';
color:#353535;
}
.sms-status-1:before{
content: '未通过';
color:#D0021B;
}
\ No newline at end of file
... ...
... ... @@ -30,7 +30,7 @@
"list": []
},
"miniprogram": {
"current": 28,
"current": 29,
"list": [
{
"id": 0,
... ... @@ -246,6 +246,12 @@
"name": "pages/book/smsbatch/list",
"pathName": "pages/book/smsbatch/list",
"query": "seller_id=80"
},
{
"id": -1,
"name": "pages/book/smsbatch/detail",
"pathName": "pages/book/smsbatch/detail",
"query": "id=5"
}
]
}
... ...