Commit d6fff2aae81151ae3af12f4246a315f5a0a74c07

Authored by vking
1 parent 10fcfc8b

sms20200107

@@ -4,7 +4,11 @@ @@ -4,7 +4,11 @@
4 <view class="send_msg">{{send_msg}}</view> 4 <view class="send_msg">{{send_msg}}</view>
5 <view class="rows flex-ll"> 5 <view class="rows flex-ll">
6 <view class="label">活动人数</view> 6 <view class="label">活动人数</view>
7 - <view class="value Medium">{{send_total}}</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">{{reduce_num}}条</view>
8 </view> 12 </view>
9 <view class="rows flex-ll"> 13 <view class="rows flex-ll">
10 <view class="label">创建时间</view> 14 <view class="label">创建时间</view>
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
58 </view> 58 </view>
59 <view class="block-desc"> 59 <view class="block-desc">
60 <view> 60 <view>
61 - · 短信营销步骤:第一步创建营销内容,第二步提交审核,第三步审核通过投放; 61 + • 短信营销步骤:第一步创建营销内容,第二步提交审核,第三步审核通过投放;
62 </view> 62 </view>
63 </view> 63 </view>
64 </view> 64 </view>
@@ -68,13 +68,19 @@ @@ -68,13 +68,19 @@
68 </view> 68 </view>
69 <view class="block-desc"> 69 <view class="block-desc">
70 <view> 70 <view>
71 - · 短信字数=短信模版内容字数 + 签名字数; 71 + 参考以下规则,具体计数以短信创建页面为准
72 </view> 72 </view>
73 <view> 73 <view>
74 - <text decode="{{true}}">· 短信字数&lt;=70个字数,按照70个字数一条短信计算;</text> 74 + <text decode="{{true}}">• 短信计费统一根据三大运营商标注计算:</text>
75 </view> 75 </view>
76 <view> 76 <view>
77 - <text decode="{{true}}">· 短信字数&gt;70个字数,即为长短信,按照67个字数记为一条短信计算;</text> 77 + <text decode="{{true}}">• 短信字数=短信模版内容字数 + 签名字数</text>
  78 + </view>
  79 + <view>
  80 + <text decode="{{true}}">• 短信字数≤ 60,短信按照一条计费;</text>
  81 + </view>
  82 + <view>
  83 + <text decode="{{true}}">• 短信字数>60个字数,即为长短信,按照第一条57个字数,后面每条67个字数记为一条短信计算;</text>
78 </view> 84 </view>
79 </view> 85 </view>
80 </view> 86 </view>
@@ -84,13 +90,13 @@ @@ -84,13 +90,13 @@
84 </view> 90 </view>
85 <view class="block-desc"> 91 <view class="block-desc">
86 <view> 92 <view>
87 - · 应国家监管要求,短信营销内容需要进行审核,审核记过将以短信/电话的方式通知到您; 93 + • 应国家监管要求,短信营销内容需要进行审核,审核结果将以短信/电话的方式通知到您;
88 </view> 94 </view>
89 <view> 95 <view>
90 - · 预计1个工作日完成审核; 96 + • 预计1个工作日完成审核;
91 </view> 97 </view>
92 <view> 98 <view>
93 - · 审核工作时间:周一至周五9:00-23:00(法定节日顺延); 99 + • 审核工作时间: 周一至周五9:00-23:00(法定节日顺延);
94 </view> 100 </view>
95 </view> 101 </view>
96 </view> 102 </view>
@@ -100,7 +106,7 @@ @@ -100,7 +106,7 @@
100 </view> 106 </view>
101 <view class="block-desc"> 107 <view class="block-desc">
102 <view> 108 <view>
103 - · 短信发放时,需要有充足的短信余量,如果短信余量不足,将无法发送; 109 + • 短信发放时,需要有充足的短信余量,如果短信余量不足,将无法发送;
104 </view> 110 </view>
105 </view> 111 </view>
106 </view> 112 </view>
@@ -27,6 +27,7 @@ Page({ @@ -27,6 +27,7 @@ Page({
27 reservePhones:[], 27 reservePhones:[],
28 note_name:'', 28 note_name:'',
29 note_phone:'', 29 note_phone:'',
  30 + reduce_num:0,//扣除短信数量
30 /** 31 /**
31 * 生命周期函数--监听页面加载 32 * 生命周期函数--监听页面加载
32 */ 33 */
@@ -120,8 +121,14 @@ Page({ @@ -120,8 +121,14 @@ Page({
120 form:form, 121 form:form,
121 } 122 }
122 if(key=='send_msg'){ 123 if(key=='send_msg'){
  124 + //123456789012345678901234567890123456789012345678901234567890
123 obj.totalChar=form[key].length; 125 obj.totalChar=form[key].length;
124 - obj.totalSms=Math.ceil((form[key].length+4)/67); 126 + obj.totalSms=1
  127 + if(obj.totalChar>60){
  128 + //obj.totalSms=1+Math.ceil((obj.totalChar-57)/67);
  129 + obj.totalSms=Math.ceil((obj.totalChar+10)/67);
  130 + }
  131 + this.reduce_num=obj.totalSms*this.data.form.send_total
125 } 132 }
126 obj.buttonStatus=false; 133 obj.buttonStatus=false;
127 if(this.data.form.send_msg && this.data.form.name && this.data.form.phone){ 134 if(this.data.form.send_msg && this.data.form.name && this.data.form.phone){
@@ -148,14 +155,15 @@ Page({ @@ -148,14 +155,15 @@ Page({
148 send_phones:this.reservePhones, 155 send_phones:this.reservePhones,
149 sid:this.options.seller_id, 156 sid:this.options.seller_id,
150 note_name:this.note_name, 157 note_name:this.note_name,
  158 + reduce_num:this.reduce_num,
151 } 159 }
152 if(this.options.hasScene==1){ 160 if(this.options.hasScene==1){
153 param.note_name=e.detail.nickName 161 param.note_name=e.detail.nickName
154 } 162 }
155 App.Reserve.SmsBatchUpdate(param).then(res=>{ 163 App.Reserve.SmsBatchUpdate(param).then(res=>{
156 this.options.id=res.data.id; 164 this.options.id=res.data.id;
157 - console.log('this.options.total',this.data.totalSms,this.reservePhonesMap.length)  
158 - this.options.total=this.data.totalSms*this.reservePhonesMap.length 165 + console.log('this.reduce_num',this.reduce_num)
  166 + this.options.total=this.reduce_num
159 wx.redirectTo({ 167 wx.redirectTo({
160 url:util.http_build_query(this.options,'./result'), 168 url:util.http_build_query(this.options,'./result'),
161 }); 169 });
@@ -12,6 +12,11 @@ @@ -12,6 +12,11 @@
12 <view>活动人数</view> 12 <view>活动人数</view>
13 <view>{{form.send_total}}人</view> 13 <view>{{form.send_total}}人</view>
14 </view> 14 </view>
  15 + <view class="hr-one"></view>
  16 + <view class="sms-total Medium flex-lr">
  17 + <view>短信条数</view>
  18 + <view>{{form.send_total*totalSms}}条</view>
  19 + </view>
15 </view> 20 </view>
16 <view class="page Medium linker" style="padding-bottom: 36rpx;"> 21 <view class="page Medium linker" style="padding-bottom: 36rpx;">
17 <view class="flex-ll linker-title"> 22 <view class="flex-ll linker-title">