Commit 086b465ffdc05e6a40e7cd9b916c5ee908327c9b

Authored by wangfan
1 parent 89a22df9

smsbatch

@@ -15,7 +15,9 @@ Page({ @@ -15,7 +15,9 @@ Page({
15 /** 15 /**
16 * 生命周期函数--监听页面加载 16 * 生命周期函数--监听页面加载
17 */ 17 */
  18 + options:{},
18 onLoad: function (options) { 19 onLoad: function (options) {
  20 + this.options=options
19 App.Reserve.SmsInfo({seller_id: options.seller_id}, true).then(res => { 21 App.Reserve.SmsInfo({seller_id: options.seller_id}, true).then(res => {
20 this.setData({ 22 this.setData({
21 total: options.total, 23 total: options.total,
@@ -71,5 +73,10 @@ Page({ @@ -71,5 +73,10 @@ Page({
71 */ 73 */
72 onShareAppMessage: function () { 74 onShareAppMessage: function () {
73 75
  76 + },
  77 + goPay(){
  78 + wx.navigate({
  79 + url:'/pages/book/setting/sms_buy?scene='+encodeURI('seller_id='+this.options.seller_id)
  80 + })
74 } 81 }
75 }) 82 })
1 { 1 {
2 "backgroundTextStyle":"light", 2 "backgroundTextStyle":"light",
3 "navigationBarBackgroundColor": "#fff", 3 "navigationBarBackgroundColor": "#fff",
4 - "navigationBarTextStyle":"black", 4 + "navigationBarTextStyle":"light",
5 "usingComponents": { 5 "usingComponents": {
6 "nav":"/components/nav/nav", 6 "nav":"/components/nav/nav",
7 "formids":"/components/formids/formids" 7 "formids":"/components/formids/formids"
@@ -7,9 +7,9 @@ @@ -7,9 +7,9 @@
7 <view>大约于1个工作日反馈结果</view> 7 <view>大约于1个工作日反馈结果</view>
8 <view>结果将以短信/电话方式通知您</view> 8 <view>结果将以短信/电话方式通知您</view>
9 </view> 9 </view>
10 -<block wx:if="{{}}"> 10 +<block wx:if="{{total>last_num}}">
11 <view class="page flex-cc Medium" style="padding-top: 100rpx; padding-bottom: 100rpx;"> 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> 12 + <view>本次群发{{total}}条,当前余额不足,建议</view>
  13 + <formids bindclick="goPay"><text style="color: #199095;font-size: 32rpx;">立即充值</text></formids>
14 </view> 14 </view>
15 </block> 15 </block>
@@ -257,7 +257,7 @@ @@ -257,7 +257,7 @@
257 "id": 30, 257 "id": 30,
258 "name": "pages/book/smsbatch/result", 258 "name": "pages/book/smsbatch/result",
259 "pathName": "pages/book/smsbatch/result", 259 "pathName": "pages/book/smsbatch/result",
260 - "query": "seller_id=80&id=6&total=10", 260 + "query": "seller_id=&id=6&total=10",
261 "scene": "1001" 261 "scene": "1001"
262 } 262 }
263 ] 263 ]