diff --git a/App.vue b/App.vue index e55d7ac..01fa49c 100644 --- a/App.vue +++ b/App.vue @@ -66,7 +66,6 @@ export default { const args = plus.runtime.arguments; if (args) { const argsStr = decodeURIComponent(args); - console.log(argsStr); const path = argsStr.split("//")[1]; if (path.indexOf("tabbar")) { uni.switchTab({ diff --git a/api/login.js b/api/login.js index 8a2d848..f384d31 100644 --- a/api/login.js +++ b/api/login.js @@ -68,7 +68,7 @@ export function smsLogin(params, clientType) { * 刷新token */ export function refreshTokenFn(refresh_token) { - console.log(refresh_token) + return http.request({ url: `/members/refresh/${refresh_token}`, method: "GET", diff --git a/components/m-canvas/index.vue b/components/m-canvas/index.vue index f524386..c66b377 100644 --- a/components/m-canvas/index.vue +++ b/components/m-canvas/index.vue @@ -55,7 +55,6 @@ export default { // #endif downLoad() { - console.log(this.imgUrl); uni.saveImageToPhotosAlbum({ filePath: this.imgUrl, diff --git a/components/m-city/m-city.vue b/components/m-city/m-city.vue index d3702fc..d7269f7 100644 --- a/components/m-city/m-city.vue +++ b/components/m-city/m-city.vue @@ -167,8 +167,6 @@ export default { } if (this.tabbars.length < this.pickersize) { - console.log(item.id); - let data = await getRegionsById(item.id); if (data.data.result.length == 0) { diff --git a/components/m-search-revision/m-search-revision.vue b/components/m-search-revision/m-search-revision.vue index a5e0616..fe6ce58 100644 --- a/components/m-search-revision/m-search-revision.vue +++ b/components/m-search-revision/m-search-revision.vue @@ -112,7 +112,6 @@ export default { }; }, mounted() { - console.log("this.isFocusVal", this.isFocusVal); this.isFocus = this.isFocusVal; }, methods: { diff --git a/components/m-share/index.vue b/components/m-share/index.vue index 606b28a..42683cc 100644 --- a/components/m-share/index.vue +++ b/components/m-share/index.vue @@ -127,7 +127,6 @@ export default { summary: this.goodsName, title: shareTitle, success: function (res) { - // console.log("success:" + JSON.stringify(res)); uni.showToast({ title: "分享成功!", duration: 2000, diff --git a/js_sdk/lili-pay/wx-pay.js b/js_sdk/lili-pay/wx-pay.js index cfff303..fea8916 100644 --- a/js_sdk/lili-pay/wx-pay.js +++ b/js_sdk/lili-pay/wx-pay.js @@ -18,7 +18,6 @@ class LiLiWXPay { // 调用支付 initiatePay(paymentMethod, paymentClient, submitData).then((res) => { let response = res.data.result; - console.log(res.data.result); uni.hideLoading(); uni.requestPayment({ provider: "wxpay", diff --git a/pages.json b/pages.json index 638bc4b..44eec04 100644 --- a/pages.json +++ b/pages.json @@ -595,12 +595,7 @@ "navigationBarTitleText": "我的评价" } }, - { - "path": "afterSales/applyCancel", - "style": { - "navigationBarTitleText": "取消订单" - } - }, + { "path": "afterSales/applyProgress", "style": { diff --git a/pages/cart/coupon/couponCenter.vue b/pages/cart/coupon/couponCenter.vue index 87f0d40..96d66c1 100644 --- a/pages/cart/coupon/couponCenter.vue +++ b/pages/cart/coupon/couponCenter.vue @@ -66,7 +66,6 @@ export default { }, onPullDownRefresh() { //下拉刷新 - console.log("refresh"); this.params.pageNumber = 1; this.couponList = []; this.getCoupon(); diff --git a/pages/cart/payment/popup/goods.vue b/pages/cart/payment/popup/goods.vue index ee4186b..eac6389 100644 --- a/pages/cart/payment/popup/goods.vue +++ b/pages/cart/payment/popup/goods.vue @@ -13,16 +13,16 @@ ¥ - {{ Fixed(goodsDetail.promotionPrice)[0] }} - .{{ Fixed(goodsDetail.promotionPrice)[1] }} + {{ formatPrice(goodsDetail.promotionPrice)[0] }} + .{{ formatPrice(goodsDetail.promotionPrice)[1] }}
{{ - Fixed(goodsDetail.price)[0] + formatPrice(goodsDetail.price)[0] }} - .{{ Fixed(goodsDetail.price)[1] }} + .{{ formatPrice(goodsDetail.price)[1] }}
@@ -30,9 +30,9 @@ {{ - Fixed(goodsDetail.price)[0] + formatPrice(goodsDetail.price)[0] }} - .{{ Fixed(goodsDetail.price)[1] }} + .{{ formatPrice(goodsDetail.price)[1] }} @@ -123,7 +123,7 @@ export default { methods: { // 格式化金钱 1999 --> [1999,00] - Fixed(val) { + formatPrice(val) { if (typeof val == "undefined") { return val; } diff --git a/pages/cart/payment/shareOrderGoods.vue b/pages/cart/payment/shareOrderGoods.vue index 1030ab1..cbd2108 100644 --- a/pages/cart/payment/shareOrderGoods.vue +++ b/pages/cart/payment/shareOrderGoods.vue @@ -124,9 +124,6 @@ export default { ...this.master, orderSn: this.routers.sn, }; - - console.log(this.$refs.popupGoods.parentOrder); - this.$refs.popupGoods.isMask = true; this.$refs.popupGoods.isClose = true; this.$refs.popupGoods.buyType = "PINTUAN"; @@ -178,7 +175,7 @@ export default { // 获取当前商品是否已经购买 if (storage.getUserInfo().id) { - console.log(storage.getUserInfo().id); + let isBuy = res.data.result.pintuanMemberVOS.filter((item) => { return item.memberId == storage.getUserInfo().id; }); diff --git a/pages/floor/empty.vue b/pages/floor/empty.vue index 432efa0..5eb2617 100644 --- a/pages/floor/empty.vue +++ b/pages/floor/empty.vue @@ -14,11 +14,7 @@ } }, onLoad(options) { - let pages = getCurrentPages(); - if (pages.length) { - let route = pages[0].route; - } - this.type = options.type; + } } diff --git a/pages/mine/address/address.vue b/pages/mine/address/address.vue index d74030d..3985fa2 100644 --- a/pages/mine/address/address.vue +++ b/pages/mine/address/address.vue @@ -99,7 +99,7 @@ export default { this.params.pageNumber, this.params.pageSize ).then((res) => { - console.log("加载"); + if (res.data.result.records.length == 0) { this.empty = true; } else { @@ -109,7 +109,7 @@ export default { this.$set(this, "addressList", res.data.result.records); - console.log(this.addressList); + } uni.hideLoading(); @@ -139,7 +139,7 @@ export default { }, //新建。编辑地址 addAddress(id) { - console.log("点击"); + if (id) { uni.navigateTo({ url: diff --git a/pages/mine/deposit/index.vue b/pages/mine/deposit/index.vue index 74b3fd7..0a33f2f 100644 --- a/pages/mine/deposit/index.vue +++ b/pages/mine/deposit/index.vue @@ -73,7 +73,7 @@ export default { async mounted() { this.getWallet(); let result = await getUserWallet(); //预存款 - console.log(result) + this.walletNum = result.data.result.memberWallet; }, methods: { diff --git a/pages/mine/distribution/history.vue b/pages/mine/distribution/history.vue index 2312241..dc03eb0 100644 --- a/pages/mine/distribution/history.vue +++ b/pages/mine/distribution/history.vue @@ -58,7 +58,7 @@ export default { title: title, //这是修改后的导航栏文字 }); this.routers = option; - console.log(this.routers); + option.type == 0 ? this.achievement() : this.history(); }, mounted() {}, diff --git a/pages/mine/distribution/list.vue b/pages/mine/distribution/list.vue index cb8628b..101634d 100644 --- a/pages/mine/distribution/list.vue +++ b/pages/mine/distribution/list.vue @@ -157,7 +157,7 @@ export default { }, watch: { showFlag(val) { - console.log(val); + }, }, onShow() { diff --git a/pages/mine/distribution/withdrawal.vue b/pages/mine/distribution/withdrawal.vue index 7b4f160..865957e 100644 --- a/pages/mine/distribution/withdrawal.vue +++ b/pages/mine/distribution/withdrawal.vue @@ -36,7 +36,7 @@ export default { methods: { cashd() { this.price = this.price + ""; - console.log(typeof this.price); + if (this.$u.test.amount(parseInt(this.price))) { cash({ price: this.price }).then((res) => { diff --git a/pages/mine/myCollect.vue b/pages/mine/myCollect.vue index 503ad4d..f2467f8 100644 --- a/pages/mine/myCollect.vue +++ b/pages/mine/myCollect.vue @@ -133,7 +133,7 @@ export default { */ clickGoodsSwiperAction(val) { deleteGoodsCollection(val.skuId).then((res) => { - console.log(res); + if (res.statusCode == 200) { this.storeList = []; this.goodList = []; @@ -159,7 +159,7 @@ export default { */ tabClick(index) { this.tabCurrentIndex = index; - console.log(this.tabCurrentIndex); + }, /** diff --git a/pages/mine/point/myPoint.vue b/pages/mine/point/myPoint.vue index ea3ad54..8fa9355 100644 --- a/pages/mine/point/myPoint.vue +++ b/pages/mine/point/myPoint.vue @@ -87,7 +87,7 @@ export default { }, /** - * 获得累计使用 + * 获得累计积分使用 */ initPointData() { getMemberPointSum().then((res) => { @@ -99,6 +99,9 @@ export default { diff --git a/pages/order/afterSales/applyDetail.vue b/pages/order/afterSales/applyDetail.vue index e2d4043..9a7e940 100644 --- a/pages/order/afterSales/applyDetail.vue +++ b/pages/order/afterSales/applyDetail.vue @@ -12,11 +12,9 @@ {{ - serviceStatusList[serviceDetail.serviceStatus] + serviceDetail.serviceStatus | serviceStatusList }} - + {{ serviceDetail.serviceStatus | statusFilter }} @@ -35,7 +33,7 @@ - + @@ -99,21 +97,21 @@ 收货地址: - {{ - change_info.salesConsigneeAddressPath + {{ + storeAfterSaleAddress.salesConsigneeAddressPath }} 联系人: - {{ change_info.salesConsigneeName }} + {{ storeAfterSaleAddress.salesConsigneeName }} 联系方式: {{ - change_info.salesConsigneeMobile || "" | secrecyMobile + storeAfterSaleAddress.salesConsigneeMobile || "" | secrecyMobile }} @@ -189,12 +187,6 @@ - - - @@ -212,51 +204,21 @@ export default { }, data() { return { - // 售后单状态 - serviceStatusList: { - APPLY: "申请售后", - PASS: "通过售后", - REFUSE: "拒绝售后", - BUYER_RETURN: "买家退货,待卖家收货", - SELLER_RE_DELIVERY: "商家换货/补发", - SELLER_CONFIRM: "卖家确认收货", - SELLER_TERMINATION: "卖家终止售后", - BUYER_CONFIRM: "买家确认收货", - BUYER_CANCEL: "买家取消售后", - WAIT_REFUND: "等待平台退款", - COMPLETE: "完成售后", - }, - // 售后类型 serviceTypeList: { + // 售后类型 CANCEL: "取消", RETURN_GOODS: "退货", EXCHANGE_GOODS: "换货", RETURN_MONEY: "退款", }, - - orderStatusList: { - UNDELIVERED: "待发货", - UNPAID: "未付款", - PAID: "已付款", - DELIVERED: "已发货", - CANCELLED: "已取消", - COMPLETE: "已完成", - TAKE: "已完成", - }, - serviceDetail: {}, - logs: [], - allowable: {}, - goodsList: [], - change_info: {}, - serviceDetail: {}, - express_info: {}, - imagesList: [], - refundShow: false, - accountShow: false, - bankShow: false, - returnAdressShow: true, - shipInfoShow: false, - sn: "", + serviceDetail: {}, // 售后详情 + logs: [], //日志 + goodsList: [], //商品列表 + storeAfterSaleAddress: {}, //售后地址 + refundShow: false, //退款开关 + accountShow: false, //账户显示 + bankShow: false, //银行显示 + sn: "", //订单sn }; }, onLoad(options) { @@ -269,6 +231,9 @@ export default { this.getLog(options.sn); }, filters: { + /** + * 售后状态信息 + */ statusFilter(val) { switch (val) { case "APPLY": @@ -297,6 +262,10 @@ export default { return ""; } }, + + /** + * 退款信息 + */ refundWayFilter(val) { switch (val) { case "OFFLINE": @@ -309,6 +278,9 @@ export default { return ""; } }, + /** + * 账户信息 + */ accountTypeFilter(val) { switch (val) { case "WEIXINPAY": @@ -338,18 +310,29 @@ export default { }); }, + /** + * 获取地址信息 + */ getAddress() { getstoreAfterSaleAddress(this.sn).then((res) => { if (res.data.success) { - this.change_info = res.data.result; + this.storeAfterSaleAddress = res.data.result; } }); }, + + /** + * 获取日志 + */ getLog(sn) { getAfterSaleLog(sn).then((res) => { this.logs = res.data.result; }); }, + + /** + * 初始化详情 + */ loadDetail() { uni.showLoading({ title: "加载中", @@ -357,9 +340,6 @@ export default { getServiceDetail(this.sn).then((res) => { uni.hideLoading(); this.serviceDetail = res.data.result; - this.allowable = this.serviceDetail.allowable; - - this.express_info = this.serviceDetail.express_info; if (this.serviceDetail.serviceType == "RETURN_GOODS") { this.refundShow = true; } @@ -375,11 +355,19 @@ export default { this.serviceDetail.accountType === "BANK_TRANSFER"; }); }, - gotoGoodsDetail(item) { + + /** + * 访问商品详情 + */ + navgiateToGoodsDetail(item) { uni.navigateTo({ url: `/pages/product/goods?id=${item.id}&goodsId=${item.goodsId}`, }); }, + + /** + * 进度 + */ onProgress() { uni.navigateTo({ url: `./applyProgress?sn=${ @@ -394,7 +382,7 @@ export default { }; - diff --git a/pages/order/afterSales/applySuccess.vue b/pages/order/afterSales/applySuccess.vue index a1e53b3..190d887 100644 --- a/pages/order/afterSales/applySuccess.vue +++ b/pages/order/afterSales/applySuccess.vue @@ -5,10 +5,10 @@ 售后申请提交成功 - 查看记录 + 查看记录 - 回到主页 + 回到主页 @@ -27,12 +27,19 @@ export default { return {}; }, methods: { - toMenu() { + /** + * 跳转到售后服务 + */ + navigateToAfterSales() { uni.redirectTo({ url: "/pages/order/afterSales/afterSales", }); }, - toHome() { + + /** + * 跳转到首页 + */ + navigateToHome() { uni.switchTab({ url: "/pages/tabbar/home/index", }); @@ -41,7 +48,7 @@ export default { }; - diff --git a/pages/promotion/sale.vue b/pages/promotion/sale.vue index 3fa4c9a..5fbff00 100644 --- a/pages/promotion/sale.vue +++ b/pages/promotion/sale.vue @@ -73,7 +73,7 @@ // url: '/pages/tabbar/home/index', // success: function(res) { // // 通过eventChannel向被打开页面传送数据 - // console.log(res) + // } // }); @@ -82,7 +82,7 @@ // url: '/pages/tabbar/home/index?' + new Date().getTime(), // success: function(res) { // // 通过eventChannel向被打开页面传送数据 - // console.log(res); + // } // }); }, diff --git a/pages/promotion/seckill.vue b/pages/promotion/seckill.vue index 4d16451..62e35e4 100644 --- a/pages/promotion/seckill.vue +++ b/pages/promotion/seckill.vue @@ -6,7 +6,7 @@ - + {{ item.timeLine }}:00 {{ index === 0 && item.distanceStartTime === 0 ? '抢购中' : '即将开始' }} @@ -37,7 +37,7 @@ - + {{ timeLine[nav].distanceStartTime === 0 ? (item.salesNum === item.quantity ? '已售空' : '购买') : '即将开始' }} @@ -59,21 +59,23 @@ import Foundation from "@/utils/Foundation.js"; export default { data() { return { - nav: 0, - sale: "", - timeLine: "", - resTime: 0, - time: 0, - times: {}, - onlyOne: "", - goodsList: [], + nav: 0, //默认选择第一个时间 + timeLine: "", //获取几个点活动 + resTime: 0, //当前时间 + time: 0, //距离下一个活动的时间值 + times: {}, //时间集合 + onlyOne: "", //是否最后一个商品 + goodsList: [], //商品集合 params: { pageNumber: 1, pageSize: 10, }, - price: "", }; }, + + /** + * 显示时间活动 + */ async onShow() { await this.getTimeLine(); if (!this.timeLine) { @@ -82,12 +84,6 @@ export default { duration: 2000, title: "今天没有活动,明天再来吧", }); - // setTimeout(() => { - // uni.switchTab({ - // url: "/pages/index/index", - // }); - // }, 2000); - // return; } this._setTimeInterval = setInterval(() => { if (this.time <= 0) { @@ -105,6 +101,9 @@ export default { this._setTimeInterval && clearInterval(this._setTimeInterval); }, methods: { + /** + * 获取时间线商品 + */ async getTimeLine() { let res = await getSeckillTimeLine(); if (res.data.success && res.data.result.length > 0) { @@ -121,13 +120,15 @@ export default { (this.timeLine[this.nav + 1] && this.timeLine[this.nav + 1].distanceStartTime) || Foundation.theNextDayTime() - this.diffTime; - // || Foundation.theNextDayTime()) - this.times = Foundation.countTimeDown(this.time); this.getGoodsList(); } }, + + /** + * 获取商品集合 + */ async getGoodsList() { this.params.timeLine = this.timeLine[this.nav].timeLine; let res = await getSeckillTimeGoods(this.params.timeLine); @@ -137,7 +138,11 @@ export default { this.goodsList = []; } }, - gotoGoodsDetail(item) { + + /** + * 跳转到商品详情 + */ + navigateToGoodsDetail(item) { if ( item.sold_num === item.quantity || this.timeLine[this.nav].distanceStartTime !== 0 @@ -149,7 +154,11 @@ export default { }); } }, - setNav(type) { + + /** + * 单击导航时间 + */ + clickNavigateTime(type) { this.nav = type; this.diffTime = parseInt(new Date().getTime() / 1000) - this.resTime; this.time = @@ -165,7 +174,7 @@ export default { }; - diff --git a/pages/tabbar/cart/cartList.vue b/pages/tabbar/cart/cartList.vue index dfa91f7..1f05e31 100644 --- a/pages/tabbar/cart/cartList.vue +++ b/pages/tabbar/cart/cartList.vue @@ -1,13 +1,6 @@ - - - diff --git a/pages/tabbar/home/template/tpl_flex_five.vue b/pages/tabbar/home/template/tpl_flex_five.vue index a83c81a..e09f37c 100644 --- a/pages/tabbar/home/template/tpl_flex_five.vue +++ b/pages/tabbar/home/template/tpl_flex_five.vue @@ -18,7 +18,6 @@ export default { }; }, mounted() { - console.log(this.res); }, }; diff --git a/pages/tabbar/home/template/tpl_flex_four.vue b/pages/tabbar/home/template/tpl_flex_four.vue index 9168108..6a1e27d 100644 --- a/pages/tabbar/home/template/tpl_flex_four.vue +++ b/pages/tabbar/home/template/tpl_flex_four.vue @@ -20,7 +20,7 @@ export default { } }, mounted() { - console.log(this.res); + } }; diff --git a/pages/tabbar/home/template/tpl_flex_three.vue b/pages/tabbar/home/template/tpl_flex_three.vue index 9de88c7..cb04368 100644 --- a/pages/tabbar/home/template/tpl_flex_three.vue +++ b/pages/tabbar/home/template/tpl_flex_three.vue @@ -14,7 +14,7 @@ export default { title: "三列单行图片模块", props: ["res"], mounted() { - console.log(this.res); + }, data() { return { diff --git a/pages/tabbar/home/template/tpl_flex_two.vue b/pages/tabbar/home/template/tpl_flex_two.vue index 852d03f..118a15e 100644 --- a/pages/tabbar/home/template/tpl_flex_two.vue +++ b/pages/tabbar/home/template/tpl_flex_two.vue @@ -22,7 +22,7 @@ export default { title: "两张横图", props: ["res"], mounted() { - console.log("123"); + }, data() { return { diff --git a/pages/tabbar/home/template/tpl_goods.vue b/pages/tabbar/home/template/tpl_goods.vue index 5c26877..3628ffe 100644 --- a/pages/tabbar/home/template/tpl_goods.vue +++ b/pages/tabbar/home/template/tpl_goods.vue @@ -55,7 +55,7 @@ export default { mounted() {}, methods: { handleClick(item) { - console.log(item); + uni.navigateTo({ url: `/pages/product/goods?id=${item.id}&goodsId=${item.goodsId}`, }); diff --git a/pages/tabbar/home/template/tpl_text_picture.vue b/pages/tabbar/home/template/tpl_text_picture.vue index ece2a07..c78b8dc 100644 --- a/pages/tabbar/home/template/tpl_text_picture.vue +++ b/pages/tabbar/home/template/tpl_text_picture.vue @@ -44,7 +44,7 @@ export default { } }, mounted() { - console.log(this.res); + } }; diff --git a/pages/tabbar/home/views.vue b/pages/tabbar/home/views.vue index 5365717..b59d4c8 100644 --- a/pages/tabbar/home/views.vue +++ b/pages/tabbar/home/views.vue @@ -1,7 +1,6 @@