Commit 4110a5741d91de7e96d479643566dd95b1e083c5

Authored by wangfan
1 parent b5785529

smsbatch

1 { 1 {
2 "component": true, 2 "component": true,
3 "usingComponents": { 3 "usingComponents": {
4 - "service":"/components/book/smsbatch/service" 4 + "service":"/components/book/smsbatch/service",
  5 + "formids":"/components/formids/formids"
5 } 6 }
6 } 7 }
@@ -28,4 +28,4 @@ @@ -28,4 +28,4 @@
28 border-radius: 10rpx; 28 border-radius: 10rpx;
29 padding: 0 10rpx; 29 padding: 0 10rpx;
30 color: #199095; 30 color: #199095;
31 -}  
  31 +}
1 // pages/book/smsbatch/detail.js 1 // pages/book/smsbatch/detail.js
  2 +import util from '../../../utils/util';
  3 +import App from '../../../utils/api';
  4 +const {regeneratorRuntime} = global
2 Page({ 5 Page({
3 6
4 /** 7 /**
@@ -12,7 +15,13 @@ Page({ @@ -12,7 +15,13 @@ Page({
12 * 生命周期函数--监听页面加载 15 * 生命周期函数--监听页面加载
13 */ 16 */
14 onLoad: function (options) { 17 onLoad: function (options) {
15 - 18 + App.Reserve.SmsBatchInfo({id:options.id}).then(res=>{
  19 + this.setData({
  20 + ...res.data,
  21 + addtimeStr:util.unixtoTime(res.data.addtime,'YYYY-MM-DD HH:II'),
  22 + sendertimeStr:util.unixtoTime(res.data.stime ||'','YYYY-MM-DD HH:II'),
  23 + });
  24 + })
16 }, 25 },
17 26
18 /** 27 /**
1 -{}  
  1 +{
  2 + "backgroundTextStyle":"light",
  3 + "navigationBarBackgroundColor": "#fff",
  4 + "navigationBarTextStyle":"light",
  5 + "usingComponents": {
  6 + "userinfo":"/components/userinfo/userinfo",
  7 + "nav":"/components/nav/nav",
  8 + "formids":"/components/formids/formids",
  9 + "service":"/components/book/smsbatch/service"
  10 + }
  11 +
  12 +}
1 <!--pages/book/smsbatch/detail.wxml--> 1 <!--pages/book/smsbatch/detail.wxml-->
2 -<text>pages/book/smsbatch/detail.wxml</text> 2 +<nav id="nav" hasHome backgroundColor="#199095" color="#fefefe">短信详情</nav>
  3 +<view class="page">
  4 + <view class="send_msg">{{send_msg}}</view>
  5 + <view class="rows flex-ll">
  6 + <view class="label">活动人数</view>
  7 + <view class="value Medium">{{send_total}}</view>
  8 + </view>
  9 + <view class="rows flex-ll">
  10 + <view class="label">创建时间</view>
  11 + <view class="value Medium">{{addtimeStr}}</view>
  12 + </view>
  13 + <view class="rows flex-ll">
  14 + <view class="label">创 建 人</view>
  15 + <view class="value Medium">{{note_name}}</view>
  16 + </view>
  17 + <view class="rows flex-ll">
  18 + <view class="label">联系姓名</view>
  19 + <view class="value Medium">{{name}}</view>
  20 + </view>
  21 + <view class="rows flex-ll">
  22 + <view class="label">联系电话</view>
  23 + <view class="value Medium">{{phone}}</view>
  24 + </view>
  25 + <block wx:if="{{sender}}">
  26 + <view class="rows rows-border"></view>
  27 + <view class="rows flex-ll">
  28 + <view class="label">发 放 人</view>
  29 + <view class="value Medium">{{sender||''}}</view>
  30 + </view>
  31 + <view class="rows flex-ll">
  32 + <view class="label">发放时间</view>
  33 + <view class="value Medium">{{sendertimeStr}}</view>
  34 + </view>
  35 + </block>
  36 + <view class="rows flex-ll">
  37 + <view class="label">短信状态</view>
  38 + <view class="value Medium">
  39 + <view class="sms-status{{status}}"></view>
  40 + </view>
  41 + </view>
  42 + <view class="rows flex-ll"></view>
  43 + <service wx:if="{{status==-1}}">
  44 + <view class="opt-but">联系客服</view>
  45 + </service>
  46 + <sendsms wx:if="{{status==1}}">
  47 + <view class="opt-but">立即发放</view>
  48 + </sendsms>
  49 +</view>
1 -/* pages/book/smsbatch/detail.wxss */  
  1 +/* pages/book/smsbatch/detail.wxss */
  2 +.page{
  3 + width: 90%;
  4 + margin: 0 auto;
  5 + color: #353535;
  6 + padding-top: 28rpx;
  7 + font-size: 34rpx;
  8 + color: #353535;
  9 +}
  10 +.send_msg{
  11 + border: 1rpx solid #E0E0E0;
  12 + border-radius: 8rpx;
  13 + box-shadow: 0 2rpx 8rpx 0 #E0E0E0;
  14 + padding: 32rpx;
  15 + margin-bottom: 40rpx;
  16 +}
  17 +.rows{
  18 + height: 88rpx;
  19 + line-height: 88rpx;
  20 +}
  21 +.rows .label{
  22 + width: 180rpx;
  23 +}
  24 +.rows .value{}
  25 +.rows-border{
  26 + width: 100%;
  27 + background-color: #F1F0F4;
  28 + height: 2rpx;
  29 + margin: 43rpx 0;
  30 +}
  31 +.opt-but{
  32 + background-color: #199095;
  33 + height: 84rpx;
  34 + line-height: 84rpx;
  35 + color:#FEFEFE;
  36 + text-align: center;
  37 + border-radius: 10rpx;
  38 +}
  39 +
  40 +
  41 +
  42 +.sms-status0:before{
  43 + content: '审核中';
  44 + color:#09BB07;
  45 +}
  46 +.sms-status1:before{
  47 + content: '已通过';
  48 + color:#353535;
  49 +}
  50 +.sms-status2:before{
  51 + content: '已发放';
  52 + color:#353535;
  53 +}
  54 +.sms-status-1:before{
  55 + content: '未通过';
  56 + color:#D0021B;
  57 +}
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 "list": [] 30 "list": []
31 }, 31 },
32 "miniprogram": { 32 "miniprogram": {
33 - "current": 28, 33 + "current": 29,
34 "list": [ 34 "list": [
35 { 35 {
36 "id": 0, 36 "id": 0,
@@ -246,6 +246,12 @@ @@ -246,6 +246,12 @@
246 "name": "pages/book/smsbatch/list", 246 "name": "pages/book/smsbatch/list",
247 "pathName": "pages/book/smsbatch/list", 247 "pathName": "pages/book/smsbatch/list",
248 "query": "seller_id=80" 248 "query": "seller_id=80"
  249 + },
  250 + {
  251 + "id": -1,
  252 + "name": "pages/book/smsbatch/detail",
  253 + "pathName": "pages/book/smsbatch/detail",
  254 + "query": "id=5"
249 } 255 }
250 ] 256 ]
251 } 257 }