diff --git a/App.vue b/App.vue index a4a6c6b..7448537 100644 --- a/App.vue +++ b/App.vue @@ -66,8 +66,7 @@ pelletoilList: '', //分享领取次数 shareNum:0, - // 购物车数量 - cartNum:0, + }, onLaunch: function() {}, @@ -231,15 +230,7 @@ } } }) - uni.getStorage({ - key: 'cartNum', - success(e) { - if (e.data) { - that.globalData.cartNum = e.data; - console.log(that.globalData.cartNum,"getStorage") - } - } - }) + // #endif }, onHide: function() {} diff --git a/Utils/physicalObject.js b/Utils/physicalObject.js index 02c281f..58f022e 100644 --- a/Utils/physicalObject.js +++ b/Utils/physicalObject.js @@ -2,8 +2,13 @@ import { POST } from "./Request.js"; let app = getApp(); + let base = app.globalData.url; -// let orderbase = app.globalData.orderurl; + +// let base = "http://192.168.1.16:9301/crest/"; + +let orderbase = app.globalData.orderurl; + // let userbase = app.globalData.userurl; // let v1base = app.globalData.v1url; // let brestBase = app.globalData.brestUrl; @@ -37,8 +42,8 @@ export const insertShoppingCart = params => { } // 增加商品数量 -export const goodsAddNum = params => { - return POST('GET', `${base}/shoppingCart/goodsAddNum`, params).then(res => res.data); +export const goodsEditNum = params => { + return POST('GET', `${base}/shoppingCart/goodsEditNum`, params).then(res => res.data); } // 删除购物车商品 export const deleteShoppingCart = params => { @@ -77,7 +82,7 @@ export const findDeliveryAddressById = params => { // 根据id 删除收货地址 export const deleteAddress = params => { - return POST('GET', `${base}/deliveryAddress/deleteShoppingCart`, params).then(res => res.data); + return POST('GET', `${base}/deliveryAddress/deleteDeliveryAddress`, params).then(res => res.data); } // 查询物流信息 @@ -87,4 +92,24 @@ export const getLogisticsMsg = params => { // 根据区域查询运费和包邮价格 export const getRegionFreight = params => { return POST('GET', `${base}/common/getRegionFreight`, params).then(res => res.data); +} + +// 查询收货地址包邮金额和运费金额 +export const getAddressPrice = params => { + return POST('GET', `${base}/deliveryAddress/getAddressPrice`, params).then(res => res.data); +} + +//查询可用优惠券 +export const getUserExclusiveDiscount = params => { + return POST('GET', `${base}/userDiscount/getUserExclusiveDiscount`, params).then(res => res.data); +} + +//下单 +export const createOrder = params => { + return POST('POST', `${orderbase}/create`, params).then(res => res.data); +} + +//查询用户相关内容,积分 +export const findUser = params => { + return POST('GET', `${base}/highUser/findUser`, params).then(res => res.data); } \ No newline at end of file diff --git a/components/dataList/dataList.vue b/components/dataList/dataList.vue deleted file mode 100644 index aa305c2..0000000 --- a/components/dataList/dataList.vue +++ /dev/null @@ -1,553 +0,0 @@ - - - - - diff --git a/components/dataList/emptyImage.js b/components/dataList/emptyImage.js deleted file mode 100644 index e511579..0000000 --- a/components/dataList/emptyImage.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - data: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAMAAABOo35HAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAABEZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAASygAwAEAAAAAQAAASwAAAAA2GCC5wAAAvFQTFRFR3BM7fD49Pf78PP3////9/f79/f7v8vf8PT35+716e305Ovx8PT44ejy+Pv85u30+/v/6fD08/P33+Xv2uPt1+Dt3uXv+/v77fD42uPs8/f71d/q7PD46u30ztro4+rx9/v73Obv8/f36fH08/f74ejy4eju0tzp097q3ujw5Ovy5+rzzNnn8/f39/v7+/v/6e708/f73OLs2OLu7fD07fD07PT44Ofx1d/q09vq5+v0v83fyNXl6e/z7vD37PD0z9no5+rxytLo0dzo+v//0tLi5+7x5+71wczgytbm2ODs8/P3+/v70d3rxMTy2+Xv5Orz6fH42uLrzNfnxuPtws3g2d7u3OPvz9fo6/H1wc3hw87i3+bzwtDi3eTw5evz5evzwMzg+vr/3OTv4+r05u3xxc7hytfm2OHqwczi3eXv3OTx2ePt3eXx3eTy2eLu2+Lw3eXz3eXy3OTx3OXx5evzwM/h6/D32uPw0dvo4Ojx2uLv1+Dp2+Px7PL23OTy3OTx6u/26u70wM/hwM/h0dzu3O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YKhbzxXy+cd84GBehHxvncbjEQrFQaDzE85hLjadA6vPdE713dWA7HE6FU2DhcCwcAwtfAmP1WL2eql9eUw87sXujH/B6vXPeOTBvW+T8incFrH2+r/UDBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQBEEQ/zf/AWlElrMd+pdyAAAAAElFTkSuQmCC' -} \ No newline at end of file diff --git a/components/pick-regions/pick-regions.vue b/components/pick-regions/pick-regions.vue index 0e584dc..1c9cb75 100644 --- a/components/pick-regions/pick-regions.vue +++ b/components/pick-regions/pick-regions.vue @@ -68,6 +68,7 @@ }else if(region&®ion.length == 6){ this.handleDefaultRegion(region) }else{ + console.log(region) console.warn('defaultRegion非有效格式') } }, diff --git a/pages.json b/pages.json index 0c85258..dc99681 100644 --- a/pages.json +++ b/pages.json @@ -117,13 +117,13 @@ // "enablePullDownRefresh": false // } // }, - // { - // "path": "pages/classify/order/pay", - // "style": { - // "navigationBarTitleText": "收银台页", - // "enablePullDownRefresh": false - // } - // }, + { + "path": "pages/classify/order/pay", + "style": { + "navigationBarTitleText": "收银台页", + "enablePullDownRefresh": false + } + }, { "path": "pages/classify/order/paymentResult", "style": { diff --git a/pages/address/addNewAddress/addNewAddress.vue b/pages/address/addNewAddress/addNewAddress.vue index 0ed682c..17de1d3 100644 --- a/pages/address/addNewAddress/addNewAddress.vue +++ b/pages/address/addNewAddress/addNewAddress.vue @@ -10,7 +10,7 @@ 联系电话* - @@ -147,9 +147,10 @@ address: resData.address, is_default: resData.whetherDefault, } - console.log(this.defaultRegionCode) - this.defaultRegionCode = resData.regionId - console.log(this.defaultRegionCode) + // console.log(this.defaultRegionCode) + this.defaultRegionCode = resData.regionId; + this.regionId = resData.regionId; + // console.log(this.defaultRegionCode) }else{ uni.showToast({ @@ -209,7 +210,6 @@ let isVali = this.fields_check(this.userAddress, validation); if(isVali){ - if(this.dataParams.id){ this.updateAddress(this.dataParams.id) }else{ diff --git a/pages/address/addNewAddress/demo.vue b/pages/address/addNewAddress/demo.vue deleted file mode 100644 index 9a3877d..0000000 --- a/pages/address/addNewAddress/demo.vue +++ /dev/null @@ -1,350 +0,0 @@ - - - diff --git a/pages/address/address.vue b/pages/address/address.vue index 4e3b159..322a935 100644 --- a/pages/address/address.vue +++ b/pages/address/address.vue @@ -1,135 +1,152 @@ \ No newline at end of file + diff --git a/pages/classify/cart-choose/cart-choose.vue b/pages/classify/cart-choose/cart-choose.vue index c138c39..29a1a1a 100644 --- a/pages/classify/cart-choose/cart-choose.vue +++ b/pages/classify/cart-choose/cart-choose.vue @@ -16,7 +16,7 @@ - + @@ -69,7 +69,7 @@ 加入购物车 - 领券购买 + 立即购买 @@ -77,6 +77,11 @@ 加入购物车 + + + 立即购买 + + @@ -108,6 +113,10 @@ status:{ type:Number, default:0, + }, + goodsDetail:{ + type:Object, + default:{} } }, components:{ @@ -157,7 +166,7 @@ goodsId:this.specificationList[this.chooseIndex].goodsId, num:this.chooseNumber, sku:this.specificationList[this.chooseIndex].id, - whetherCheck:true + whetherCheck:false } insertShoppingCart(params).then(async res=>{ @@ -175,7 +184,7 @@ duration: 2000 }) - + this.chooseNumber = 1; this.$emit("close") @@ -184,9 +193,29 @@ }, - //领券购买 + //立即购买 toBuy(){ - this.$emit("close") + + console.log(this.specificationList[this.chooseIndex],this.goodsDetail) + + let _this = this + let obj =[{ + goodsId:_this.specificationList[this.chooseIndex].goodsId, + img: _this.specificationList[this.chooseIndex].showImg, + num: _this.chooseNumber, + price: _this.specificationList[this.chooseIndex].price, + sku: _this.specificationList[this.chooseIndex].id, + skuName: _this.specificationList[this.chooseIndex].name, + title: _this.goodsDetail.name, + originalPrice:_this.specificationList[this.chooseIndex].originalPrice + }] + obj = JSON.stringify(obj) + + uni.navigateTo({ + url: '/pages/settleAccounts/settleAccounts?goodsList='+obj + }) + + // this.$emit("close") }, // select(index){ diff --git a/pages/classify/cart-choose/data.json b/pages/classify/cart-choose/data.json deleted file mode 100644 index 55d4dcd..0000000 --- a/pages/classify/cart-choose/data.json +++ /dev/null @@ -1,46 +0,0 @@ - - { - "id": "2", - "realstore_id": "0", - "realstore_goods_id": "0", - "shop_id": "1", - "shop_user_id": "1", - "shop_category_id": "1", - "shop_settle_price": "0.00", - "shop_settle_rate": "0.00", - "brand_id": "2", - "site_type": "-1", - "title": "苹果(Apple)iPhone 6 Plus (A1524)移动联通电信4G手机 金色 16G", - "title_color": "", - "simple_desc": "1.芯片功能强大 iPhone芯片的更新频率比友商少,但每次iPhone芯片更新时,都会成为关注和追赶的对象。", - "model": "iPhone 6 Plus", - "place_origin": "0", - "inventory": "7983", - "inventory_unit": "步", - "images": ["https://gw.alicdn.com/bao/uploaded/i2/708446530/O1CN01WZY06s1y6mybMkFwh_!!708446530.jpg_300x300q90.jpg_.webp","https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547451274847894.jpg"], - "original_price": "4500.00-6800.00", - "min_original_price": "4500.00", - "max_original_price": "6800.00", - "price": "4500.00-6800.00", - "min_price": "4500.00", - "max_price": "6800.00", - "give_integral": "30", - "buy_min_number": "1", - "buy_max_number": "0", - "is_deduction_inventory": "1", - "is_shelves": "1", - "content_web": "

进入指定页面>>

打开一个a标签地址

进入博客


", - "photo_count": "2", - "sales_count": "266", - "access_count": "13333", - "is_exist_many_spec": "1", - "spec_base": "", - "plugins_membershiplevelvip_price_extends": "", - "seo_title": "", - "seo_keywords": "", - "seo_desc": "", - "is_delete_time": "0", - "add_time": "2019-01-14 15:40:24", - "upd_time": "2023-03-24 17:46:26" - - } diff --git a/pages/classify/cart/cart.vue b/pages/classify/cart/cart.vue index df4e7d0..25cc02c 100644 --- a/pages/classify/cart/cart.vue +++ b/pages/classify/cart/cart.vue @@ -1,27 +1,27 @@ \ No newline at end of file + + + //商品信息图片 + .goods-desc-img {} + diff --git a/pages/classify/order/orderDetail.vue b/pages/classify/order/orderDetail.vue index a696299..f107c09 100644 --- a/pages/classify/order/orderDetail.vue +++ b/pages/classify/order/orderDetail.vue @@ -216,6 +216,7 @@ - \ No newline at end of file + } + + .btn-edit { + + height: 40px; + border-radius: 20px; + line-height: 40px; + background-color: #EA3E44; + } + diff --git a/pages/classify/order/paymentResult.vue b/pages/classify/order/paymentResult.vue index 8f52cc0..cb9a355 100644 --- a/pages/classify/order/paymentResult.vue +++ b/pages/classify/order/paymentResult.vue @@ -3,22 +3,22 @@ 支付成功 - ¥32.9 - 微信支付 + ¥{{recinfo.payablePrice}} + {{ recinfo.payType | filtersType}}支付 - + - + 查看订单 - + 邀请有礼 @@ -26,20 +26,72 @@ diff --git a/pages/settleAccounts/detail-popup/detail-popup.vue b/pages/settleAccounts/detail-popup/detail-popup.vue index 9a226b1..b861470 100644 --- a/pages/settleAccounts/detail-popup/detail-popup.vue +++ b/pages/settleAccounts/detail-popup/detail-popup.vue @@ -1,274 +1,365 @@ \ No newline at end of file +.st-img { + width: 82px; + height: 82px; + } + // 优惠券 + .radio-ca { + // width: 20rpx; + // height: 20rpx; + } + diff --git a/pages/settleAccounts/settleAccounts.vue b/pages/settleAccounts/settleAccounts.vue index aaacb45..dc543e4 100644 --- a/pages/settleAccounts/settleAccounts.vue +++ b/pages/settleAccounts/settleAccounts.vue @@ -2,20 +2,26 @@ - - - 重庆市渝中区不是的聚钓具偶家 + + + {{addressDetail.regionName+" "+addressDetail.address}} + - - 明明 - 13563256324 + + {{addressDetail.consignee}} + {{addressDetail.phone}} - + + + 请选择地址 + + + - + - + - - + + - + - + - - + + + - + - + - 共{{goodsData.images.length}}件 + 共{{getNumberAll}}件 - - - + + - - + + - - + + - 云南高山荷兰豆160g - 共一件 + {{goodsList[0].title}} + 共{{getNumberAll}}件 + + + ¥{{goodsList[0].price}} + ×{{goodsList[0].num}} - - ¥2.99 - ×1 + + ¥{{goodsList[0].originalPrice}} + ×{{goodsList[0].num}} + - + - - - - + + + + - - + + - + 商品金额 - - ¥22.97 + + + ¥{{priceAll}} + + + ¥{{priceOrigin}} + @@ -90,45 +107,61 @@ 运费 - ¥6 + ¥{{postPriceAll}} - - - 优惠券 + + + 优惠券 + + {{yhqUse}}张优惠券可用 + - - + + + - ¥ {{yhqPrice}} + + - + + + + - + - 积分抵现 + 积分抵现 - 当前积分63,满500可用 + - - 暂无可用 + + + 暂无积分可用 + + + 可用{{availIntegalUse}}积分抵扣{{parseFloat(availIntegalUse/percentage)}}元 + + + - - - + + - + - 小计:¥262.2 + 小计:¥{{priceSettle}} - + - + 备注: @@ -137,191 +170,725 @@ {{noteValue.length}}/40 - - - + + + - + - - + + - - 送至: {{'金科西城大院 5栋1714'}} + + 送至: {{addressDetail.regionName+" "+addressDetail.address}} - 合计:¥{{100}} + 合计:¥{{priceSettle}} - + 去支付 - - - + + + + \ No newline at end of file + // + .settleAccounts { + + box-sizing: border-box; + padding-bottom: 130px; + } + + //商品图片 + .po-ra { + position: relative; + } + + .settle-goods { + width: auto; + } + + .settle-con { + + display: flex; + justify-content: flex-start; + align-items: center; + + .settle-img { + font-size: 0; + margin-left: 10px; + + .st-img { + width: 82px; + height: 82px; + } + } + + .settle-msg { + flex: 1; + padding: 0 10px; + + .settle-title { + display: flex; + justify-content: space-between; + align-items: center; + } + } + + + } + + .fix-soon { + position: absolute; + right: 0; + top: 0; + width: 82px; + height: 82px; + line-height: 82px; + opacity: 0.8; + background-color: #ffffff; + text-align: center; + } + + //备注 + .note { + width: auto; + } + + // 底部结算按钮 + .tool-contain { + position: fixed; + bottom: 0; + left: 0; + right: 0; + z-index: 10; + } + + .tool-right { + flex: 1; + display: flex; + justify-content: space-between; + padding: 10px; + align-items: center; + + .tool-jiesuan {} + + .jiesuan-btn { + width: 200rpx; + height: 40px; + line-height: 40px; + text-align: center; + border-radius: 20px; + background: linear-gradient(to right, #FFCC1E, #FF8F19); + } + } + + // 底部地址确认 + .adressConfirm { + // height: 20px; + padding: 10px; + line-height: 20px; + background-color: #FEFBDA; + } + diff --git a/pages/tabBar/classify/classify.vue b/pages/tabBar/classify/classify.vue index 2b2e76d..2a5b4f5 100644 --- a/pages/tabBar/classify/classify.vue +++ b/pages/tabBar/classify/classify.vue @@ -130,6 +130,7 @@ }, onShow(){ + console.log("121212") this.hackReset = false; this.$nextTick(() => { this.hackReset = true; @@ -232,7 +233,7 @@ pageSize:_this.pageData.pageNum, price:price, } - console.log(params,"params") + // console.log(params,"params") getListGoodsDetail(params).then(res=>{ if (res.return_code == '000000') { if(res.return_data.list.length > 0){ diff --git a/pages/user/order_list/order_list.vue b/pages/user/order_list/order_list.vue index 5ac152b..d4fe546 100644 --- a/pages/user/order_list/order_list.vue +++ b/pages/user/order_list/order_list.vue @@ -103,77 +103,7 @@ - - - - - {{orderTyplist | msgFormat(row.productType)}} - - - - {{typeText[row.orderStatus]}} - - - - - - - - 订单编号:{{row.orderNo}} - - - - - 下单时间 : {{row.createTime | formatDate('-')}} - - - - 合计: - - ¥{{row.payPrice}} - - - - - - - - - 取消订单 - - 立即支付 - - - @@ -349,6 +279,14 @@ }) return; } + //实物类型 + if(item == 12){ + uni.navigateTo({ + url: '/pages/classify/order/orderDetail?id='+e + }) + return; + } + uni.navigateTo({ url: '../order_details/order_details?id=' + e }) diff --git a/uni.scss b/uni.scss index f0130cf..51d7941 100644 --- a/uni.scss +++ b/uni.scss @@ -962,7 +962,15 @@ $uni-font-size-paragraph:30upx; .border-b{ border-bottom: 1px solid #f6f6f6; } +.border-t{ + border-top: 1px solid #f6f6f6; +} // 盒模型 .border-box{ box-sizing: border-box; } + +//text +.text-lt{ + text-decoration: line-through; +} \ No newline at end of file