Showing
6 changed files
with
126 additions
and
66 deletions
| 1 | // pages/book/smsbatch/result.js | 1 | // pages/book/smsbatch/result.js |
| 2 | +import util from '../../../utils/util'; | ||
| 3 | +import App from '../../../utils/api'; | ||
| 4 | +const {regeneratorRuntime} = global | ||
| 2 | Page({ | 5 | Page({ |
| 3 | 6 | ||
| 4 | - /** | ||
| 5 | - * 页面的初始数据 | ||
| 6 | - */ | ||
| 7 | - data: { | ||
| 8 | - | ||
| 9 | - }, | ||
| 10 | - | ||
| 11 | - /** | ||
| 12 | - * 生命周期函数--监听页面加载 | ||
| 13 | - */ | ||
| 14 | - onLoad: function (options) { | ||
| 15 | - | ||
| 16 | - }, | ||
| 17 | - | ||
| 18 | - /** | ||
| 19 | - * 生命周期函数--监听页面初次渲染完成 | ||
| 20 | - */ | ||
| 21 | - onReady: function () { | ||
| 22 | - | ||
| 23 | - }, | ||
| 24 | - | ||
| 25 | - /** | ||
| 26 | - * 生命周期函数--监听页面显示 | ||
| 27 | - */ | ||
| 28 | - onShow: function () { | ||
| 29 | - | ||
| 30 | - }, | ||
| 31 | - | ||
| 32 | - /** | ||
| 33 | - * 生命周期函数--监听页面隐藏 | ||
| 34 | - */ | ||
| 35 | - onHide: function () { | ||
| 36 | - | ||
| 37 | - }, | ||
| 38 | - | ||
| 39 | - /** | ||
| 40 | - * 生命周期函数--监听页面卸载 | ||
| 41 | - */ | ||
| 42 | - onUnload: function () { | ||
| 43 | - | ||
| 44 | - }, | ||
| 45 | - | ||
| 46 | - /** | ||
| 47 | - * 页面相关事件处理函数--监听用户下拉动作 | ||
| 48 | - */ | ||
| 49 | - onPullDownRefresh: function () { | ||
| 50 | - | ||
| 51 | - }, | ||
| 52 | - | ||
| 53 | - /** | ||
| 54 | - * 页面上拉触底事件的处理函数 | ||
| 55 | - */ | ||
| 56 | - onReachBottom: function () { | ||
| 57 | - | ||
| 58 | - }, | ||
| 59 | - | ||
| 60 | - /** | ||
| 61 | - * 用户点击右上角分享 | ||
| 62 | - */ | ||
| 63 | - onShareAppMessage: function () { | ||
| 64 | - | ||
| 65 | - } | 7 | + /** |
| 8 | + * 页面的初始数据 | ||
| 9 | + */ | ||
| 10 | + data: { | ||
| 11 | + total: 0, | ||
| 12 | + last_num:0, | ||
| 13 | + }, | ||
| 14 | + | ||
| 15 | + /** | ||
| 16 | + * 生命周期函数--监听页面加载 | ||
| 17 | + */ | ||
| 18 | + onLoad: function (options) { | ||
| 19 | + App.Reserve.SmsInfo({seller_id: options.seller_id}, true).then(res => { | ||
| 20 | + this.setData({ | ||
| 21 | + total: options.total, | ||
| 22 | + last_num:res.data.last_num, | ||
| 23 | + }) | ||
| 24 | + }) | ||
| 25 | + }, | ||
| 26 | + | ||
| 27 | + /** | ||
| 28 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 29 | + */ | ||
| 30 | + onReady: function () { | ||
| 31 | + | ||
| 32 | + }, | ||
| 33 | + | ||
| 34 | + /** | ||
| 35 | + * 生命周期函数--监听页面显示 | ||
| 36 | + */ | ||
| 37 | + onShow: function () { | ||
| 38 | + | ||
| 39 | + }, | ||
| 40 | + | ||
| 41 | + /** | ||
| 42 | + * 生命周期函数--监听页面隐藏 | ||
| 43 | + */ | ||
| 44 | + onHide: function () { | ||
| 45 | + | ||
| 46 | + }, | ||
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * 生命周期函数--监听页面卸载 | ||
| 50 | + */ | ||
| 51 | + onUnload: function () { | ||
| 52 | + | ||
| 53 | + }, | ||
| 54 | + | ||
| 55 | + /** | ||
| 56 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 57 | + */ | ||
| 58 | + onPullDownRefresh: function () { | ||
| 59 | + | ||
| 60 | + }, | ||
| 61 | + | ||
| 62 | + /** | ||
| 63 | + * 页面上拉触底事件的处理函数 | ||
| 64 | + */ | ||
| 65 | + onReachBottom: function () { | ||
| 66 | + | ||
| 67 | + }, | ||
| 68 | + | ||
| 69 | + /** | ||
| 70 | + * 用户点击右上角分享 | ||
| 71 | + */ | ||
| 72 | + onShareAppMessage: function () { | ||
| 73 | + | ||
| 74 | + } | ||
| 66 | }) | 75 | }) |
| 1 | <!--pages/book/smsbatch/result.wxml--> | 1 | <!--pages/book/smsbatch/result.wxml--> |
| 2 | -<text>pages/book/smsbatch/result.wxml</text> | 2 | +<nav id="nav" hasHome backgroundColor="#199095" color="#fefefe">提交审核</nav> |
| 3 | +<view class="page flex-vc Medium" style="padding-top: 24rpx; padding-bottom: 20rpx;"> | ||
| 4 | + <icon type="success" size="47" color="#199095" /> | ||
| 5 | + <view style="font-size: 34rpx;margin-bottom:30rpx;">短信已提交</view> | ||
| 6 | + <view class="hr-one"></view> | ||
| 7 | + <view>大约于1个工作日反馈结果</view> | ||
| 8 | + <view>结果将以短信/电话方式通知您</view> | ||
| 9 | +</view> | ||
| 10 | +<block wx:if="{{}}"> | ||
| 11 | +<view class="page flex-cc Medium" style="padding-top: 100rpx; padding-bottom: 100rpx;"> | ||
| 12 | + <view>本次群发50条,当前余额不足,建议</view> | ||
| 13 | + <formids><text style="color: #199095;font-size: 32rpx;">立即充值</text></formids> | ||
| 14 | +</view> | ||
| 15 | +</block> |
| 1 | -/* pages/book/smsbatch/result.wxss */ | ||
| 1 | +/* pages/book/smsbatch/result.wxss */ | ||
| 2 | +page{ | ||
| 3 | + background-color: #F5F5F5; | ||
| 4 | + font-size: 30rpx; | ||
| 5 | + color: #353535; | ||
| 6 | +} | ||
| 7 | +.page{ | ||
| 8 | + width: 88%; | ||
| 9 | + margin: 20rpx auto; | ||
| 10 | + padding: 20rpx 3%; | ||
| 11 | + background-color: #FEFEFE; | ||
| 12 | + border-radius: 8rpx; | ||
| 13 | +} | ||
| 14 | +.hr-one{ | ||
| 15 | + background-color: #F1F0F4; | ||
| 16 | + width: 100%; | ||
| 17 | + height: 2rpx; | ||
| 18 | + margin-top: 16rpx; | ||
| 19 | + margin-bottom: 38rpx; | ||
| 20 | +} | ||
| 21 | +.Medium{ | ||
| 22 | + line-height: 60rpx; | ||
| 23 | +} |
| @@ -148,6 +148,7 @@ Page({ | @@ -148,6 +148,7 @@ Page({ | ||
| 148 | } | 148 | } |
| 149 | App.Reserve.SmsBatchUpdate(param).then(res=>{ | 149 | App.Reserve.SmsBatchUpdate(param).then(res=>{ |
| 150 | this.options.id=res.data.id; | 150 | this.options.id=res.data.id; |
| 151 | + this.options.total=this.data.totalSms*this.reservePhones.length, | ||
| 151 | wx.redirect({ | 152 | wx.redirect({ |
| 152 | url:util.http_build_query(this.options,'./result'), | 153 | url:util.http_build_query(this.options,'./result'), |
| 153 | }); | 154 | }); |
| @@ -30,7 +30,7 @@ | @@ -30,7 +30,7 @@ | ||
| 30 | "list": [] | 30 | "list": [] |
| 31 | }, | 31 | }, |
| 32 | "miniprogram": { | 32 | "miniprogram": { |
| 33 | - "current": 21, | 33 | + "current": 30, |
| 34 | "list": [ | 34 | "list": [ |
| 35 | { | 35 | { |
| 36 | "id": 0, | 36 | "id": 0, |
| @@ -252,6 +252,13 @@ | @@ -252,6 +252,13 @@ | ||
| 252 | "name": "pages/book/smsbatch/detail", | 252 | "name": "pages/book/smsbatch/detail", |
| 253 | "pathName": "pages/book/smsbatch/detail", | 253 | "pathName": "pages/book/smsbatch/detail", |
| 254 | "query": "id=5" | 254 | "query": "id=5" |
| 255 | + }, | ||
| 256 | + { | ||
| 257 | + "id": 30, | ||
| 258 | + "name": "pages/book/smsbatch/result", | ||
| 259 | + "pathName": "pages/book/smsbatch/result", | ||
| 260 | + "query": "seller_id=80&id=6&total=10", | ||
| 261 | + "scene": "1001" | ||
| 255 | } | 262 | } |
| 256 | ] | 263 | ] |
| 257 | } | 264 | } |
-
Please register or login to post a comment