Commit 3728a664 authored by zhangjianguo's avatar zhangjianguo

订阅的修改

parent 83eb6cac
...@@ -195,6 +195,12 @@ ...@@ -195,6 +195,12 @@
] ]
} }
], ],
"plugins": {
"live-player-plugin": {
"version": "1.0.1",
"provider": "wx2b03c6e691cd7370"
}
},
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "", "navigationBarTitleText": "",
......
...@@ -90,24 +90,6 @@ export default { ...@@ -90,24 +90,6 @@ export default {
}, },
methods: { methods: {
init(coupon_id) {
uni.showNavigationBarLoading();
let h = this.apiheader();
this.request(
{
url: "",
header: h,
data: {
r: "api/coupon/detail",
coupon_id:coupon_id
},
},
(res) => {
this.g = res.data.list
uni.hideNavigationBarLoading();
}
);
},
receive(id){ receive(id){
this.request2( this.request2(
{ {
......
...@@ -369,6 +369,8 @@ export default { ...@@ -369,6 +369,8 @@ export default {
}, },
methods: { methods: {
getOrderStatus() { getOrderStatus() {
this.msg.pageIndex = 1;
this.g = [];
this.payInfo.OpenId=uni.getStorageSync('mall_UserInfo').OpenId; this.payInfo.OpenId=uni.getStorageSync('mall_UserInfo').OpenId;
this.request2( this.request2(
{ {
...@@ -404,7 +406,7 @@ export default { ...@@ -404,7 +406,7 @@ export default {
submitReviceGoodHandler() { //确认收货 submitReviceGoodHandler() { //确认收货
let that = this let that = this
uni.requestSubscribeMessage({ uni.requestSubscribeMessage({
tmplIds: that.template_message_list, tmplIds: that.g[0].template_message_list,
complete(res) { complete(res) {
that.request2( that.request2(
{ {
...@@ -489,41 +491,46 @@ export default { ...@@ -489,41 +491,46 @@ export default {
this.payExit = true; this.payExit = true;
}, },
confirm() { //取消订单 confirm() { //取消订单
this.showModal = false; let that = this
if(this.Cancelmsg.Type==2 && this.Cancelmsg.Remark==''){ that.showModal = false;
if(that.Cancelmsg.Type==2 && that.Cancelmsg.Remark==''){
uni.showToast({ uni.showToast({
title:'备注不能为空', title:'备注不能为空',
icon:'none' icon:'none'
}) })
return return
} }
this.request2( uni.requestSubscribeMessage({
{ tmplIds: that.g[0].template_message_list,
url: '/api/AppletOrder/CancelAppletGoodsOrderInfo', complete (res) {
data: this.Cancelmsg that.request2(
}, {
(res) => { url: '/api/AppletOrder/CancelAppletGoodsOrderInfo',
if(this.Cancelmsg.Type==1){ data: that.Cancelmsg
uni.showToast({ },
title:res.message, (res) => {
icon:'none' if(that.Cancelmsg.Type==1){
}) uni.showToast({
this.g.splice(this.index, 1); title:res.message,
}else{ icon:'none'
uni.showToast({ })
title: "取消成功,请等待审核", that.g.splice(that.index, 1);
position: "bottom", }else{
icon: "none", uni.showToast({
duration: 2000, title: "取消成功,请等待审核",
}); position: "bottom",
this.msg.pageIndex = 1; icon: "none",
this.g = []; duration: 2000,
this.init(); });
that.msg.pageIndex = 1;
} that.g = [];
that.init();
} }
); }
);
}
})
}, },
closeGoodListHandler() { closeGoodListHandler() {
this.goodData = []; this.goodData = [];
......
...@@ -413,8 +413,8 @@ export default { ...@@ -413,8 +413,8 @@ export default {
submitReviceGoodHandler() { submitReviceGoodHandler() {
let that = this let that = this
uni.requestSubscribeMessage({ uni.requestSubscribeMessage({
tmplIds: that.template_message_list, tmplIds: that.orders.template_message_list,
complete(res) { complete(res) {
that.request2( that.request2(
{ {
url: '/api/AppletOrder/SetAppletOrderGoodsReceiving', url: '/api/AppletOrder/SetAppletOrderGoodsReceiving',
...@@ -439,8 +439,9 @@ export default { ...@@ -439,8 +439,9 @@ export default {
this.Cancelmsg.Remark = '' this.Cancelmsg.Remark = ''
}, },
confirm() { confirm() {
this.showModal = false; let that = this
if(this.Cancelmsg.Type==2 && this.Cancelmsg.Remark==''){ that.showModal = false;
if(that.Cancelmsg.Type==2 && that.Cancelmsg.Remark==''){
uni.showToast({ uni.showToast({
title:'备注不能为空', title:'备注不能为空',
icon:'none' icon:'none'
...@@ -448,25 +449,35 @@ export default { ...@@ -448,25 +449,35 @@ export default {
return return
} }
let pages = getCurrentPages(); // 当前页面 let pages = getCurrentPages(); // 当前页面
let beforePage = pages[pages.length - 2]; // 前一个页面 uni.requestSubscribeMessage({//订阅消息 退款和审核通知
this.request2( tmplIds: that.orders.template_message_list,
{ complete (res) {
url: '/api/AppletOrder/CancelAppletGoodsOrderInfo', that.request2(
data: this.Cancelmsg {
}, url: '/api/AppletOrder/CancelAppletGoodsOrderInfo',
(res) => { data: that.Cancelmsg
uni.showToast({ },
title:res.message, (res) => {
icon:'none' uni.showToast({
}) title:res.message,
this.init(); icon:'none'
// setTimeout(()=>{ })
// success: function() { that.init();
// beforePage.onLoad(); // 执行前一个页面的created方法 if (pages.length > 1) {//返回上一个页面
// } var beforePage = pages[pages.length - 2]; //获取上一个页面实例对象
// },1000) setTimeout(()=>{
} uni.navigateBack({
); success: function() {
beforePage.$vm.getOrderStatus();
}
});
},500)
}
}
);
}
})
}, },
openAfterHandler() { openAfterHandler() {
this.showAfter = true; this.showAfter = true;
......
...@@ -90,22 +90,6 @@ ...@@ -90,22 +90,6 @@
</view> </view>
</view> </view>
</u-popup> </u-popup>
<u-popup v-model="show2"
mode="center"
border-radius="16"
length="80%"
>
<view style="background: #fff;display: flex;flex-direction: column;align-items: center">
<view style="display: flex;flex-direction: column;align-items: center;padding: 15px;text-align: center;">
<Text >提示</Text>
<Text style='margin-top: 10px;'>今日剩余提現金額=平台毎日可提現金額-今日所有用戸提現金額</Text>
</view>
<view style="width: 100%;height: 1px;background: #f5f5f5;"></view>
<view style="width: 100%;height: 45px;display: flex;align-items: center;justify-content: center;" @click="show2=false">
<Text :style="{'color':mainColor}">我知道了</Text>
</view>
</view>
</u-popup>
</template> </template>
</view> </view>
...@@ -210,83 +194,90 @@ ...@@ -210,83 +194,90 @@
}, },
getapply(){ getapply(){
if(this.msg.AppliedMoney==''){ let that = this
uni.requestSubscribeMessage({
uni.showToast({ tmplIds: that.cash.template_message_list,
title: "请输入提现金额", complete (res) {
icon: "none" if(that.msg.AppliedMoney==''){
}); uni.showToast({
return false title: "请输入提现金额",
} icon: "none"
if(this.txmode==''){ });
uni.showToast({ return false
title: "请选择提现方式", }
icon: "none" if(that.txmode==''){
}); uni.showToast({
return false title: "请选择提现方式",
} icon: "none"
if(this.msg.WithdrawalWay==2|| this.msg.WithdrawalWay==3 || this.msg.WithdrawalWay==4){ });
if(this.msg.AccountName==''){ return false
uni.showToast({ }
title: "账户名称不能为空", if(that.msg.WithdrawalWay==2|| that.msg.WithdrawalWay==3 || that.msg.WithdrawalWay==4){
icon: "none" if(that.msg.AccountName==''){
}); uni.showToast({
return false title: "账户名称不能为空",
} icon: "none"
if(this.msg.AccountNumber==''){ });
uni.showToast({ return false
title: "账户号不能为空", }
icon: "none" if(that.msg.AccountNumber==''){
}); uni.showToast({
return false title: "账户号不能为空",
} icon: "none"
if(this.msg.BankName=='' && this.msg.WithdrawalWay==4){ });
uni.showToast({ return false
title: "银行名称不能为空", }
icon: "none" if(that.msg.BankName=='' && that.msg.WithdrawalWay==4){
}); uni.showToast({
return false title: "银行名称不能为空",
} icon: "none"
} });
return false
if(this.cash.MinimumWithdrawalLimit!=-1){ }
if(this.msg.AppliedMoney<this.cash.MinimumWithdrawalLimit){ }
uni.showToast({
title: "提现金额大于等于"+this.cash.MinimumWithdrawalLimit, if(that.cash.MinimumWithdrawalLimit!=-1){
icon: "none" if(that.msg.AppliedMoney<that.cash.MinimumWithdrawalLimit){
}); uni.showToast({
return false title: "提现金额大于等于"+that.cash.MinimumWithdrawalLimit,
} icon: "none"
} });
if(this.msg.AppliedMoney>this.cash.CommissionWithdrawal){ return false
uni.showToast({ }
title: '余额不足', }
icon: "none" if(that.msg.AppliedMoney>that.cash.CommissionWithdrawal){
}); uni.showToast({
return false title: '余额不足',
} icon: "none"
});
this.msg.Fee = Number(this.msg.Fee); return false
this.msg.RemitMoney = this.msg.AppliedMoney - this.msg.Fee; //最终提现要减去 手续费 }
uni.showNavigationBarLoading();
this.request2( that.msg.Fee = Number(that.msg.Fee);
{ that.msg.RemitMoney = that.msg.AppliedMoney - that.msg.Fee; //最终提现要减去 手续费
url: '/api/AppletUser/SetUserDistrbutorWithdrawDeposit', uni.showNavigationBarLoading();
data: this.msg that.request2(
}, {
url: '/api/AppletUser/SetUserDistrbutorWithdrawDeposit',
(res) => { data: that.msg
uni.hideNavigationBarLoading() },
uni.showToast({
title: res.message, (res) => {
icon: "none" uni.hideNavigationBarLoading()
}); uni.showToast({
this.init() title: res.message,
uni.navigateTo({ icon: "none"
url: '/pages/cash-detail/cash-detail' });
}); that.init()
uni.navigateTo({
url: '/pages/cash-detail/cash-detail'
});
}
);
} }
); })
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment