Commit bc12a80d665707655634dd3d07ccf45bfff6aafa

Authored by yiren
1 parent e7426ee4

我的券分页,邀请函问题处理,申请售后功能

... ... @@ -84,44 +84,36 @@ Page({
},
//申请退款
subscribeDrawback() {
if(this.data.checkName==''){
return wx.showToast({
title:'请选择退款原因',
duration:2000,
icon:'none'
})
}
App.PayOnline.RechargeRefundApply({
reason:this.data.checkName,
id:this.data.id,
}).then(res=>{
console.log(res);
if(res.ret=='200'){
this.modal.showModal()
}
})
},
// 退款后跳转我的券页面
closeModalFun(){
this.closeModal()
wx.reLaunch({
url: '/pages/me/coupon_news'
})
// this.modal.showModal()
// wx.showModal({
// title: '申请成功',
// cancelText:' ',
// confirmText:'朕知道了',
// content: '您的退款已经在办理中,预计3个工作日到账,请注意检查原支付渠道收款通知。您也可以从周到安排公众号了解详查看退款进度。谢谢您的支持!',
// success: function (res) {
// if (res.confirm) { //这里是点击了确定以后
// console.log('用户点击确定')
// } else { //这里是点击了取消以后
// console.log('用户点击取消')
// }
// }
// })
},
// 选择退款原因
radioChange(e) {
console.log('checkbox发生change事件,携带value值为:', e.detail.value)
const radioboxList = this.data.radioboxList
const values = e.detail.value
console.log('checkbox发生change事件,携带value值为:', e.detail)
let checkName;
for (let i = 0, lenI = radioboxList.length; i < lenI; ++i) {
radioboxList[i].checked = false
for (let j = 0, lenJ = values.length; j < lenJ; ++j) {
if (radioboxList[i].value === values[j]) {
radioboxList[i].checked = true;
break
}
}
}
checkName=this.data.radioboxList[(e.detail.value*1)-1].name;
this.setData({
radioboxList,
checkName
})
},
... ...
... ... @@ -58,7 +58,7 @@
您也可以从<text>周到安排</text>公众号了解详查看退款进度。谢谢您的支持!
</view>
<view class="modalCloseBtns">
<button class="modalClose" bindtap="closeModal">朕知道了</button>
<button class="modalClose" bindtap="closeModalFun">朕知道了</button>
</view>
</view>
</my-modal>
\ No newline at end of file
... ...
... ... @@ -262,21 +262,33 @@ Page({
sid
}).then(res => {
let data=res.data
let home,chef,marketing,reserve,signboard,store,homeColor,coupon_data,priceInfo,scoreInfo,recharge_list;
console.log('data',data);
let home,chef,marketing,reserve,signboard,store,homeColor,coupon_data,priceInfo,scoreInfo,recharge_list,stringifyUse;
chef = data.chef ? JSON.parse(data.chef) : '';
reserve = data.reserve ? JSON.parse(data.reserve) : '';
marketing = data.marketing ? JSON.parse(data.marketing) : '';
signboard = data.signboard ? JSON.parse(data.signboard) : '';
store = data.store ? JSON.parse(data.store) : '';
home = data.home ? JSON.parse(data.home) : '';
coupon_data=marketing.coupon_data;
let stringifyUse=JSON.stringify(marketing.coupon_data.use)
console.log('chef', chef);
console.log('reserve', reserve);
console.log('marketing', marketing);
console.log('signboard', signboard);
console.log('store', store);
console.log('home', home);
if(marketing.coupon_data){
coupon_data=marketing.coupon_data;
stringifyUse=JSON.stringify(marketing.coupon_data.use)
}
console.log('coupon_data', coupon_data);
console.log('stringifyUse', stringifyUse);
if(marketing.is_recharge=='1' && marketing.recharge_data){
let recharge_data=marketing.recharge_data
recharge_list=marketing.recharge_data.recharge_list
if(recharge_list.is_price=='1') priceInfo='会员充值满'+recharge_data.recharge_money+'元赠送'+recharge_list.price+'元余额';
if(recharge_list.is_score=='1') scoreInfo='会员充值满'+recharge_data.recharge_money+'元赠送'+recharge_list.score+'积分';
console.log('scoreInfo',scoreInfo);
console.log('priceInfo',priceInfo);
this.setData({
recharge_data:marketing.recharge_data
})
... ... @@ -310,14 +322,6 @@ Page({
}else{
homeColor ='67,142,147,1'
}
console.log('coupon_data', coupon_data);
console.log('stringifyUse', stringifyUse);
console.log('chef', chef);
console.log('reserve', reserve);
console.log('signboard', signboard);
console.log('home', home);
console.log('store', store);
console.log('marketing', marketing);
console.log('homeColor',homeColor);
this.setData({
chef,
... ...
... ... @@ -84,7 +84,7 @@
<view class="introduce" wx:if="{{store && store.style=='1'}}">
<view class="IntroductionItems" wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
<view class="imgMask">
<!-- <image src="{{item}}" mode="aspectFill" /> -->
<image src="{{item}}" mode="aspectFill" />
<view class="IntroduceColor chief Introducepublic {{theme+'chief'}}" wx:if="{{arryIndex=='0'}}">
<view class="englishText">Introduce</view>
<view class="chefText">品牌介绍</view>
... ... @@ -117,7 +117,7 @@
</text>
</view>
</view>
<!-- <image src="{{item}}" mode="aspectFill"/> -->
<image src="{{item}}" mode="aspectFill"/>
</view>
</view>
</view>
... ...
... ... @@ -3,15 +3,26 @@ import App from '../../utils/api';
Page({
data: {
list:[],
status:1,
},
page:1,
size:10,
hasMore:true,
onLoad() {
this.init();
this.getlist();
},
getlist() {
App.Activity.GetNewRechargeListByOpenid().then((res) => {
App.Activity.GetNewRechargeListByOpenid({
page:this.page,
size:this.size,
}).then((res) => {
if (res.ret == 200) {
let list=res.data;
let list=this.data.list;
list=list.concat(res.data)
if(res.data.length<this.size){
this.hasMore=false
}
let date=Date.now()*1;
list.forEach(item=>{
if(date>item.etime){
... ... @@ -21,7 +32,7 @@ Page({
}
})
this.setData({
list: res.data
list
})
}
... ... @@ -67,5 +78,14 @@ Page({
wx.navigateTo({
url: './wananchi'
})
}
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
if(this.hasMore){
this.page+=1
this.todetail()
}
},
})
\ No newline at end of file
... ...
<!--pages/taocan/coupon_news.wxml 用户端--我的--卡券-->
<wxs src="../../utils/util.wxs" module="util" />
<nav>卡券</nav>
<scroll-view class="list" style="height:{{contentHeight}}px;padding-bottom: 140rpx;" scroll-y>
<scroll-view class="list" style="height:{{contentHeight}}px;" scroll-y>
<block wx:if="{{list.length>0}}">
<view wx:for="{{list}}" class="card bg-white" bindtap="todetail" data-id="{{item.id}}" data-examine="{{item.is_examine}}" data-expire="{{item.is_expire}}" data-name="{{item.recharge_name}}" data-sid="{{item.sellerid}}">
<view class="flex-vl gray-font card-main" style="justify-content:space-between;">
... ...
... ... @@ -17,7 +17,7 @@ page {
font-family: PingFang SC;
font-size: 66rpx;
line-height: 52rpx;
padding: 140rpx 0 116rpx 0;
padding: 12% 0 8% 0;
}
.qrcode {
... ... @@ -31,7 +31,7 @@ page {
font-family: PingFang SC;
font-size: 26rpx;
line-height: 53rpx;
padding: 30rpx 0 90rpx 0;
padding: 6% 0 8% 0;
}
.text1 {
... ...