Commit 28b04bfaf1f25a5b3ad0c8c238b01dc98a05d6bb

Authored by wangfan
1 parent 77a9429f

most_pnum

... ... @@ -112,11 +112,15 @@ Page({
template_code:'SMS_150579975',
template_param:JSON.stringify(this.smsData),
rid:this.bookInfo.id
}).then(()=>{
}).then((res)=>{
if(res.ret!=200){
return util.toast(res.msg,'none');
}
util.toast('短信已发送');
this.setData({
hideSendsms:true,
})
App.Reserve.SmsInfo({seller_id:this.bookInfo.seller.id},'clear')
})
},
copysms(){
... ...
... ... @@ -26,11 +26,11 @@ http://qn.colorcun.com/custom/lite-yd/image/icon-cz.png
width: 90%;
margin: 0 auto;
color: #353535;
padding-top: 28rpx;
padding-top: 34rpx;
}
.row{
font-size: 34rpx;
height: 80rpx;
height: 106rpx;
border-bottom: 2rpx solid #F1F0F4;
}
.row .right{
... ...
... ... @@ -14,27 +14,13 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
seller_id:0,
onLoad: function (options) {
if(!options.seller_id){
let enter_params=util.cache('enter_params');
options.seller_id=enter_params.seller_id;
}
App.Reserve.SmsInfo({seller_id:options.seller_id}).then(res=>{
if(res.ret==404){
res.data={
last_num:100,
meals:[
{id:1,total:550,price_ave:0.09,price_old:50,price:50,discount:0},
{id:2,total:1200,price_ave:0.083,price_old:100,price:100,discount:0},
{id:3,total:3650,price_ave:0.082,price_old:328,price:300,discount:9.1},
],
};
}
this.setData({
seller_id:options.seller_id,
sms:res.data,
})
})
this.seller_id=options.seller_id;
},
/**
... ... @@ -48,7 +34,22 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
App.Reserve.SmsInfo({seller_id:this.seller_id}).then(res=>{
if(res.ret==404){
res.data={
last_num:100,
meals:[
{id:1,total:550,price_ave:0.09,price_old:50,price:50,discount:0},
{id:2,total:1200,price_ave:0.083,price_old:100,price:100,discount:0},
{id:3,total:3650,price_ave:0.082,price_old:328,price:300,discount:9.1},
],
};
}
this.setData({
seller_id:this.seller_id,
sms:res.data,
})
})
},
/**
... ...
... ... @@ -7,7 +7,7 @@
<view class="lastNum">{{sms.last_num||0}}</view>
<view class="lastNum-txt">条</view>
</view>
<formids class="button" url="/pages/book/setting/sms_buy?seller_id={{seller_id}}" open-type="redirect">
<formids class="button" url="/pages/book/setting/sms_buy?seller_id={{seller_id}}">
<view class="txt Medium">立即充值</view>
<view class="icon-cz">特惠</view>
</formids>
... ... @@ -29,7 +29,7 @@
</view>
<view class="action">
<view class="tip Medium">3.充值说明</view>
<view class="item">短信统一在订座商户小程序上进行充值,充值记录和 详情使用情况统一在小程序上查看;</view>
<view class="item">短信统一在订座商户小程序上进行充值,充值记录和 详细使用情况统一在小程序上查看;</view>
</view>
</view>
... ...