uni.showToast的信息提示更换为该商城封装的sheep.$helper.toast('已收藏');
收货时新增收货成功提示
This commit is contained in:
parent
a3e5b3be9f
commit
fbd5c288c1
@ -296,10 +296,11 @@
|
||||
} else {
|
||||
// Handle case where data is not in expected format
|
||||
searchRentList.value = [];
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
console.log('getList', searchRentList.value);
|
||||
}
|
||||
@ -319,10 +320,7 @@
|
||||
} else {
|
||||
// Handle case where data is not in expected format
|
||||
searchClassesList.value = [];
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
}
|
||||
console.log('平台课程收藏列表-222', searchClassesList.value);
|
||||
}
|
||||
|
@ -157,10 +157,11 @@
|
||||
couponCount.value = res.data.count;
|
||||
score.value = res.data.score
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
}
|
||||
//加载更多
|
||||
@ -204,19 +205,21 @@
|
||||
id: couponSelectId.value
|
||||
});
|
||||
if (res.code === 1) {
|
||||
uni.showToast({
|
||||
title: '兑换成功',
|
||||
icon: 'success'
|
||||
})
|
||||
sheep.$helper.toast('兑换成功');
|
||||
// uni.showToast({
|
||||
// title: '兑换成功',
|
||||
// icon: 'success'
|
||||
// })
|
||||
showCouponPro.value = false;
|
||||
listQuery.value.page = 1;
|
||||
couponList.value = []
|
||||
getCouponList();
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'error'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'error'
|
||||
// })
|
||||
showCouponPro.value = false;
|
||||
}
|
||||
}
|
||||
|
@ -4,15 +4,14 @@
|
||||
<!-- 顶部banner -->
|
||||
<view class="swiper-box">
|
||||
<view class="swiper_s">
|
||||
<swiper class="swiper_s" :circular="true" :autoplay="true" :indicator-dots="false" :current="currentImgIndex"
|
||||
@change="swiperChange" @animationfinish="animationfinish">
|
||||
<swiper class="swiper_s" :circular="true" :autoplay="true" :indicator-dots="false"
|
||||
:current="currentImgIndex" @change="swiperChange" @animationfinish="animationfinish">
|
||||
<!-- v-for="(item, index) in swiperList" :key="index" @click="openSwiper(item)"-->
|
||||
<swiper-item style="margin: 0 auto;" v-for="(item,index) in imageList" :key="index">
|
||||
<view style="position: relative;width: 100%;height: 100%;"
|
||||
>
|
||||
<image class="swiper-image" :src="item" mode="widthFix"/>
|
||||
<view style="position: relative;width: 100%;height: 100%;">
|
||||
<image class="swiper-image" :src="item" mode="widthFix" />
|
||||
</view>
|
||||
|
||||
|
||||
</swiper-item>
|
||||
|
||||
</swiper>
|
||||
@ -195,7 +194,7 @@
|
||||
getDetail();
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
const imageList = ref([])
|
||||
async function getDetail() {
|
||||
const res = await sheep.$api.rent.rentInfo(rentId.value)
|
||||
@ -209,16 +208,17 @@
|
||||
imagesNum.value = imageList.value.length
|
||||
console.log('imagesNum:', imagesNum.value);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function swiperChange(e) {
|
||||
console.log('切换轮播图',e.detail.current);
|
||||
if(e.detail.current<imagesNum.value) {
|
||||
console.log('切换轮播图', e.detail.current);
|
||||
if (e.detail.current < imagesNum.value) {
|
||||
// if(e.detail.current == 0){
|
||||
// currentImgIndex.value = imagesNum.value
|
||||
// }else {
|
||||
@ -233,9 +233,9 @@
|
||||
// // currentImgIndex.value = e.detail.current + 1; // 无条件更新
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
function animationfinish(e) {
|
||||
console.log('animationfinish',e);
|
||||
console.log('animationfinish', e);
|
||||
};
|
||||
|
||||
//返回首页
|
||||
@ -263,14 +263,10 @@
|
||||
}
|
||||
sheep.$api.rent.rentCollect(data).then((res) => {
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: '已取消收藏',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
sheep.$helper.toast('已取消收藏');
|
||||
setTimeout(() => {
|
||||
getDetail()
|
||||
}, 1000)
|
||||
}, 2000)
|
||||
// getDetail()
|
||||
}
|
||||
})
|
||||
@ -284,14 +280,10 @@
|
||||
}
|
||||
sheep.$api.rent.rentCollect(data1).then((res) => {
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: '已收藏',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
sheep.$helper.toast('已收藏');
|
||||
setTimeout(() => {
|
||||
getDetail()
|
||||
}, 1000)
|
||||
}, 2000)
|
||||
// getDetail()
|
||||
}
|
||||
})
|
||||
@ -342,7 +334,7 @@
|
||||
|
||||
//联系平台客服
|
||||
function handleService() {
|
||||
console.log('联系平台客服',detailRent.value.platform_contact_number);
|
||||
console.log('联系平台客服', detailRent.value.platform_contact_number);
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: detailRent.value.platform_contact_number,
|
||||
success: function() {
|
||||
@ -455,7 +447,7 @@
|
||||
|
||||
.swiper_s {
|
||||
width: 100%;
|
||||
height: 750rpx;
|
||||
height: 750rpx;
|
||||
// height: 100%;
|
||||
// display: grid;
|
||||
// justify-content: center;
|
||||
@ -567,6 +559,7 @@
|
||||
font-weight: 400;
|
||||
line-height: 42rpx;
|
||||
font-size: 28rpx;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
}
|
||||
@ -577,8 +570,10 @@
|
||||
box-sizing: border-box;
|
||||
position: fixed;
|
||||
bottom: 0rpx;
|
||||
padding-bottom: constant(safe-area-inset-bottom); /* iOS 11.0 - 11.1 */
|
||||
padding-bottom: env(safe-area-inset-bottom); /* iOS 11.2+ */
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
/* iOS 11.0 - 11.1 */
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
/* iOS 11.2+ */
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
@ -610,12 +605,12 @@
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* 对于没有安全区域的设备,设置默认值 */
|
||||
@supports not (padding-bottom: env(safe-area-inset-bottom)) {
|
||||
.footer-box {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.footer-box {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -382,12 +382,12 @@
|
||||
url: e
|
||||
})
|
||||
} else {
|
||||
|
||||
uni.showToast({
|
||||
title: '请先登录',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
sheep.$helper.toast('请先登录');
|
||||
// uni.showToast({
|
||||
// title: '请先登录',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
@ -469,20 +469,23 @@
|
||||
tagSelectedNum.value += 1;
|
||||
tagShowList.value[index].isSelect = true;
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '最多选择三个标签',
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast('最多选择三个标签');
|
||||
// uni.showToast({
|
||||
// title: '最多选择三个标签',
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
} else {
|
||||
|
||||
if (tagSelectedNum.value > 0) {
|
||||
tagSelectedNum.value -= 1;
|
||||
tagShowList.value[index].isSelect = false;
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '至少选择一个',
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast('至少选择一个');
|
||||
// uni.showToast({
|
||||
// title: '至少选择一个',
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
}
|
||||
console.log('选择标签', tagSelectedNum.value);
|
||||
@ -582,10 +585,11 @@
|
||||
|
||||
async function apply() {
|
||||
if (agreeAdd.value == false) {
|
||||
uni.showToast({
|
||||
title: '请先同意发布须知',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请先同意发布须知');
|
||||
// uni.showToast({
|
||||
// title: '请先同意发布须知',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
form.value.cate_ids = selectTagslist.value.map((item) => item.id).join(',')
|
||||
@ -596,74 +600,84 @@
|
||||
console.log('images', form.value.images);
|
||||
|
||||
if (form.value.title == '') {
|
||||
uni.showToast({
|
||||
title: '请输入标题',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请输入标题');
|
||||
// uni.showToast({
|
||||
// title: '请输入标题',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.province == '' && form.value.city == '') {
|
||||
uni.showToast({
|
||||
title: '请选择地区',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请选择地区');
|
||||
// uni.showToast({
|
||||
// title: '请选择地区',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.address_detail == '') {
|
||||
uni.showToast({
|
||||
title: '请输入详细地址',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请输入详细地址');
|
||||
// uni.showToast({
|
||||
// title: '请输入详细地址',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.contacts == '') {
|
||||
uni.showToast({
|
||||
title: '请输入联系人',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请输入联系人');
|
||||
// uni.showToast({
|
||||
// title: '请输入联系人',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.contact_number == '') {
|
||||
uni.showToast({
|
||||
title: '请输入联系人电话',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请输入联系人电话');
|
||||
// uni.showToast({
|
||||
// title: '请输入联系人电话',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (!/^1[3-9]\d{9}$/.test(form.value.contact_number)) {
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
sheep.$helper.toast('请输入正确的手机号');
|
||||
// uni.showToast({
|
||||
// title: '请输入正确的手机号',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
return;
|
||||
}
|
||||
if (form.value.content == '') {
|
||||
uni.showToast({
|
||||
title: '请输入详细信息',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请输入详细信息');
|
||||
// uni.showToast({
|
||||
// title: '请输入详细信息',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.images == '') {
|
||||
uni.showToast({
|
||||
title: '请上传图片',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请上传图片');
|
||||
// uni.showToast({
|
||||
// title: '请上传图片',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.type == '') {
|
||||
uni.showToast({
|
||||
title: '请选择项目类型',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请选择项目类型');
|
||||
// uni.showToast({
|
||||
// title: '请选择项目类型',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.cate_ids == '') {
|
||||
uni.showToast({
|
||||
title: '请选择标签',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请选择标签');
|
||||
// uni.showToast({
|
||||
// title: '请选择标签',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
console.log('apply——form:', form.value);
|
||||
@ -700,19 +714,21 @@
|
||||
|
||||
state.currentCityIndex = [0, 0]
|
||||
console.log('currentCityIndex', state.currentCityIndex);
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'success',
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'success',
|
||||
// })
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 2000)
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'error'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'error'
|
||||
// })
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -148,10 +148,11 @@
|
||||
couponFullCount.value = res.data.total;
|
||||
console.log('满减券', couponFullList.value, couponFullList.value[0]);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
}
|
||||
/* 次数券 */
|
||||
@ -170,10 +171,11 @@
|
||||
console.log('couponTimesList', couponTimesList.value);
|
||||
// score.value = res.data.score
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
}
|
||||
|
||||
@ -192,21 +194,23 @@
|
||||
const res = await sheep.$api.coupon.useTimes(data)
|
||||
console.log('使用次数券_res:', res);
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: '已增加您的拨打号码次数',
|
||||
icon: 'success',
|
||||
duration: 2000,
|
||||
})
|
||||
sheep.$helper.toast('已增加您的拨打号码次数');
|
||||
// uni.showToast({
|
||||
// title: '已增加您的拨打号码次数',
|
||||
// icon: 'success',
|
||||
// duration: 2000,
|
||||
// })
|
||||
setTimeout(() => {
|
||||
couponTimesList.value = [];
|
||||
getCouponTimesList();
|
||||
},1500)
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'error'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'error'
|
||||
// })
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -384,11 +384,12 @@
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请先登录',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
sheep.$helper.toast('请先登录');
|
||||
// uni.showToast({
|
||||
// title: '请先登录',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
cardShow.value = false
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
@ -407,11 +408,11 @@
|
||||
url: '/pages/user/authentication'
|
||||
})
|
||||
} else {
|
||||
|
||||
uni.showToast({
|
||||
title: '请先登录',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请先登录');
|
||||
// uni.showToast({
|
||||
// title: '请先登录',
|
||||
// icon: 'none',
|
||||
// })
|
||||
cardShow.value = false
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
@ -435,11 +436,8 @@
|
||||
})
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
uni.showToast({
|
||||
title: '请先登录',
|
||||
icon: 'none',
|
||||
})
|
||||
|
||||
sheep.$helper.toast('请先登录');
|
||||
|
||||
}, 500);
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
@ -530,20 +528,22 @@
|
||||
tagSelectedNum.value += 1;
|
||||
tagShowList.value[index].isSelect = true;
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '最多选择三个标签',
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast('最多选择三个标签');
|
||||
// uni.showToast({
|
||||
// title: '最多选择三个标签',
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
} else {
|
||||
if (tagSelectedNum.value > 0) {
|
||||
tagSelectedNum.value -= 1;
|
||||
tagShowList.value[index].isSelect = false;
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '至少选择一个',
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast('至少选择一个');
|
||||
// uni.showToast({
|
||||
// title: '至少选择一个',
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
}
|
||||
console.log('选择标签', tagSelectedNum.value);
|
||||
@ -604,10 +604,11 @@
|
||||
async function apply() {
|
||||
console.log('state', state.formData.images);
|
||||
if (agreeAdd.value == false) {
|
||||
uni.showToast({
|
||||
title: '请先同意发布须知',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请先同意发布须知');
|
||||
// uni.showToast({
|
||||
// title: '请先同意发布须知',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
form.value.cate_ids = selectTagslist.value.map((item) => item.id).join(',')
|
||||
@ -617,74 +618,84 @@
|
||||
console.log('images', form.value.images);
|
||||
|
||||
if (form.value.title == '') {
|
||||
uni.showToast({
|
||||
title: '请输入标题',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请输入标题');
|
||||
// uni.showToast({
|
||||
// title: '请输入标题',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.province == '' && form.value.city == '') {
|
||||
uni.showToast({
|
||||
title: '请选择地区',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请选择地区');
|
||||
// uni.showToast({
|
||||
// title: '请选择地区',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.address_detail == '') {
|
||||
uni.showToast({
|
||||
title: '请输入详细地址',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请输入详细地址');
|
||||
// uni.showToast({
|
||||
// title: '请输入详细地址',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.contacts == '') {
|
||||
uni.showToast({
|
||||
title: '请输入联系人',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请输入联系人');
|
||||
// uni.showToast({
|
||||
// title: '请输入联系人',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.contact_number == '') {
|
||||
uni.showToast({
|
||||
title: '请输入联系人电话',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请输入联系人电话');
|
||||
// uni.showToast({
|
||||
// title: '请输入联系人电话',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (!/^1[3-9]\d{9}$/.test(form.value.contact_number)) {
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
sheep.$helper.toast('请输入正确的手机号');
|
||||
// uni.showToast({
|
||||
// title: '请输入正确的手机号',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
return;
|
||||
}
|
||||
if (form.value.content == '') {
|
||||
uni.showToast({
|
||||
title: '请输入详细信息',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请输入详细信息');
|
||||
// uni.showToast({
|
||||
// title: '请输入详细信息',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.images == '') {
|
||||
uni.showToast({
|
||||
title: '请上传图片',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请上传图片');
|
||||
// uni.showToast({
|
||||
// title: '请上传图片',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.type == '') {
|
||||
uni.showToast({
|
||||
title: '请选择项目类型',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请选择项目类型');
|
||||
// uni.showToast({
|
||||
// title: '请选择项目类型',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
if (form.value.cate_ids == '') {
|
||||
uni.showToast({
|
||||
title: '请选择标签',
|
||||
icon: 'none',
|
||||
})
|
||||
sheep.$helper.toast('请选择标签');
|
||||
// uni.showToast({
|
||||
// title: '请选择标签',
|
||||
// icon: 'none',
|
||||
// })
|
||||
return
|
||||
}
|
||||
console.log('apply——form:', form.value);
|
||||
@ -726,10 +737,11 @@
|
||||
url: '/pages/index/user'
|
||||
})
|
||||
}else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'error'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'error'
|
||||
// })
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -351,12 +351,12 @@
|
||||
url: e
|
||||
})
|
||||
} else {
|
||||
|
||||
uni.showToast({
|
||||
title: '请先登录',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
sheep.$helper.toast('请先登录');
|
||||
// uni.showToast({
|
||||
// title: '请先登录',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
|
||||
setTimeout(function() {
|
||||
uni.switchTab({
|
||||
|
@ -363,10 +363,11 @@
|
||||
url: '/pages/user/info'
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请先登录',
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast('请先登录');
|
||||
// uni.showToast({
|
||||
// title: '请先登录',
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
}
|
||||
|
||||
@ -377,11 +378,12 @@
|
||||
url: e
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请先登录',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
sheep.$helper.toast('请先登录');
|
||||
// uni.showToast({
|
||||
// title: '请先登录',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
|
||||
// setTimeout(function() {
|
||||
// uni.switchTab({
|
||||
|
1078
pages/order/list.vue
1078
pages/order/list.vue
File diff suppressed because it is too large
Load Diff
@ -138,10 +138,11 @@
|
||||
// 处理富文本内容
|
||||
detailClass.value.content = formatRichText(detailClass.value.content);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
}
|
||||
const newContent = ref('')
|
||||
@ -196,11 +197,12 @@
|
||||
}
|
||||
sheep.$api.school.classesCollect(data).then((res) => {
|
||||
if(res.code == 1) {
|
||||
uni.showToast({
|
||||
title:'已取消收藏',
|
||||
icon:'none',
|
||||
duration: 2000,
|
||||
})
|
||||
sheep.$helper.toast('已取消收藏');
|
||||
// uni.showToast({
|
||||
// title:'已取消收藏',
|
||||
// icon:'none',
|
||||
// duration: 2000,
|
||||
// })
|
||||
setTimeout(() =>{
|
||||
getDetail()
|
||||
},1000)
|
||||
@ -214,11 +216,12 @@
|
||||
}
|
||||
sheep.$api.school.classesCollect(data1).then((res) => {
|
||||
if(res.code == 1) {
|
||||
uni.showToast({
|
||||
title:'已收藏',
|
||||
icon:'none',
|
||||
duration: 2000,
|
||||
})
|
||||
sheep.$helper.toast('已收藏');
|
||||
// uni.showToast({
|
||||
// title:'已收藏',
|
||||
// icon:'none',
|
||||
// duration: 2000,
|
||||
// })
|
||||
setTimeout(() =>{
|
||||
getDetail()
|
||||
},1000)
|
||||
|
@ -113,10 +113,11 @@
|
||||
sheep.$api.user.authPhoto(data).then((res) => {
|
||||
if(res.code == 1) {
|
||||
console.log('提交认证成功');
|
||||
uni.showToast({
|
||||
title:'提交认证成功',
|
||||
icon: 'success',
|
||||
})
|
||||
sheep.$helper.toast('提交认证成功');
|
||||
// uni.showToast({
|
||||
// title:'提交认证成功',
|
||||
// icon: 'success',
|
||||
// })
|
||||
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
|
@ -189,10 +189,11 @@
|
||||
} else {
|
||||
// Handle case where data is not in expected format
|
||||
collectRentList.value = [];
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
console.log('getList', collectRentList.value);
|
||||
}
|
||||
@ -214,10 +215,11 @@
|
||||
} else {
|
||||
// Handle case where data is not in expected format
|
||||
collectSchoolList.value = [];
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'none'
|
||||
// })
|
||||
}
|
||||
console.log('平台课程收藏列表-222', collectSchoolList.value);
|
||||
}
|
||||
@ -281,11 +283,12 @@
|
||||
}
|
||||
sheep.$api.rent.rentCollect(data).then((res) => {
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: '已取消收藏',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
sheep.$helper.toast('已取消收藏');
|
||||
// uni.showToast({
|
||||
// title: '已取消收藏',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@ -296,11 +299,12 @@
|
||||
}
|
||||
sheep.$api.rent.rentCollect(data1).then((res) => {
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: '已收藏',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
sheep.$helper.toast('已收藏');
|
||||
// uni.showToast({
|
||||
// title: '已收藏',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -317,11 +321,12 @@
|
||||
}
|
||||
sheep.$api.school.classesCollect(data).then((res) => {
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: '已取消收藏',
|
||||
icon: 'none',
|
||||
duration: 2000,
|
||||
})
|
||||
sheep.$helper.toast('已取消收藏');
|
||||
// uni.showToast({
|
||||
// title: '已取消收藏',
|
||||
// icon: 'none',
|
||||
// duration: 2000,
|
||||
// })
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@ -332,11 +337,12 @@
|
||||
}
|
||||
sheep.$api.school.classesCollect(data1).then((res) => {
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: '已收藏',
|
||||
icon: 'none',
|
||||
duration: 2000,
|
||||
})
|
||||
sheep.$helper.toast('已收藏');
|
||||
// uni.showToast({
|
||||
// title: '已收藏',
|
||||
// icon: 'none',
|
||||
// duration: 2000,
|
||||
// })
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -281,9 +281,11 @@
|
||||
//详情
|
||||
function toDetail(e) {
|
||||
console.log('跳转详情', e);
|
||||
uni.navigateTo({
|
||||
url: '/pages/canteenRent/rentDetail?id=' + e.id
|
||||
})
|
||||
if(e.status == 1) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/canteenRent/rentDetail?id=' + e.id
|
||||
})
|
||||
}
|
||||
}
|
||||
//修改
|
||||
function rentEdit(item) {
|
||||
@ -300,17 +302,19 @@
|
||||
sheep.$api.rent.delRent({ids:item.id}).then((res) => {
|
||||
if(res.code === 1) {
|
||||
console.log('delete:',res);
|
||||
uni.showToast({
|
||||
title: '取消成功',
|
||||
icon: 'none'
|
||||
})
|
||||
sheep.$helper.toast('取消成功');
|
||||
// uni.showToast({
|
||||
// title: '取消成功',
|
||||
// icon: 'none'
|
||||
// })
|
||||
rentList.value = []
|
||||
getList()
|
||||
}else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'error'
|
||||
})
|
||||
sheep.$helper.toast(res.msg);
|
||||
// uni.showToast({
|
||||
// title: res.msg,
|
||||
// icon: 'error'
|
||||
// })
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user