|
@@ -319,6 +319,18 @@ export default {
|
|
|
this.$u.api
|
|
|
.createMonth(params)
|
|
|
.then((res) => {
|
|
|
+ if(res.data.ifRepeat==1){
|
|
|
+ uni.showModal({
|
|
|
+ title: '温馨提示',
|
|
|
+ content: res.data.repeatMsg,
|
|
|
+ success: res => {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni.$u.route('/pages/center/monthly/monthly?type=road', {});
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (res.code === 200) {
|
|
|
this.monthId = res.data.monthId;
|
|
|
this.orderMoney = (Number(this.form.monthAmount) * Number(this.form.month)).toFixed(2);
|