From d4c8b8e14b22fcdf1543beb3d8913dc1dae0df27 Mon Sep 17 00:00:00 2001 From: LGX <365820713@qq.com> Date: Wed, 4 Sep 2024 17:03:59 +0800 Subject: [PATCH] 1 --- api/api.js | 7 +- components/cartDiscount/index.vue | 12 +- components/productWindow/index.vue | 16 +- components/timeSlot/index.vue | 10 +- components/tui-modal/index.vue | 2 +- pages.json | 5 + pages/annex/record/record.vue | 7 + pages/annex/vip_clause/index.vue | 17 +- pages/annex/vip_paid/index.vue | 54 ++- pages/annex/yaoqing/yaoqing.vue | 4 +- pages/extension/news_details/index.vue | 66 +--- pages/goods/components/statusLine/index.vue | 12 +- pages/goods/components/verifyModal/index.vue | 35 +- pages/goods/goods_comment_con/index.vue | 8 +- pages/goods/order_after_details/index.vue | 54 +-- pages/goods/order_confirm/index.vue | 31 +- pages/goods/order_details/index.vue | 2 +- pages/goods/order_list/index.vue | 8 +- pages/goods_cate/template/template3.vue | 315 +++++++++++------- .../components/preferentialModal/index.vue | 4 +- pages/goods_details/index.vue | 7 +- pages/index/components/goodList.vue | 24 +- pages/index/index.vue | 27 +- pages/order_addcart/order_addcart.vue | 90 ++++- pages/store/list/index.vue | 6 + pages/store/table_code/index.vue | 15 +- pages/user/components/menus/template1.vue | 49 ++- pages/user/index.vue | 3 + pages/users/promoter-list/index.vue | 33 +- pages/users/user_address/index.vue | 94 ++++-- pages/users/user_address_list/index.vue | 15 +- pages/users/user_cash/index.vue | 17 +- pages/users/user_info/index.vue | 28 +- pages/users/user_integral/index.vue | 64 +++- pages/users/user_money/index.vue | 100 +++++- pages/users/user_return_list/index.vue | 32 +- pages/users/user_spread_money/index.vue | 42 ++- static/css/unocss.css | 11 +- 38 files changed, 923 insertions(+), 403 deletions(-) diff --git a/api/api.js b/api/api.js index 0e7b51c..7c97d7c 100644 --- a/api/api.js +++ b/api/api.js @@ -446,7 +446,12 @@ export function newcomerList(data) { noAuth: true }); } - +// 会员大礼包 +export function store_discountsgetList(data) { + return request.post("store_discounts/getList", data, { + noAuth: true + }); +} /** * 获取DIY版本接口 * @param {Object} id diff --git a/components/cartDiscount/index.vue b/components/cartDiscount/index.vue index 99c1e08..c20a972 100644 --- a/components/cartDiscount/index.vue +++ b/components/cartDiscount/index.vue @@ -2,20 +2,20 @@ - - 金额明细 + + 金额明细 - 商品总价: - ¥{{discountInfo.deduction.sum_price}} + 商品总价: + ¥{{discountInfo.deduction.sum_price}} - {{discountInfo.coupon.coupon_title}} - -¥{{discountInfo.deduction.coupon_price}} + {{discountInfo.coupon.coupon_title}} + -¥{{discountInfo.deduction.coupon_price}} 新人首单优惠 diff --git a/components/productWindow/index.vue b/components/productWindow/index.vue index b6c29da..efe68be 100644 --- a/components/productWindow/index.vue +++ b/components/productWindow/index.vue @@ -129,7 +129,7 @@ - 选择门店 + 选择1门店 {{item.name}} @@ -591,7 +591,7 @@ bottom: 0; width: 100%; left: 0; - background-color: #1C1A1F; + background-color: #080313; z-index: 100; border-radius: 40rpx 40rpx 0 0; transform: translate3d(0, 100%, 0); @@ -600,7 +600,7 @@ padding-bottom: env(safe-area-inset-bottom);///兼容 IOS>11.2/ &.store{ - background-color: #F5F5F5; + background-color: #1B1A1D; border-radius: 40rpx 40rpx 0 0; transform: translate3d(0, 0, 0); z-index: 102; @@ -612,7 +612,7 @@ line-height: 100rpx; font-size: 32rpx; font-weight: 500; - color: #282828; + color: #fff; position: relative; .iconfont{ position: absolute; @@ -625,7 +625,7 @@ overflow: auto; .item{ width: 690rpx; - background: #FFFFFF; + background: #1B1A1D; border-radius: 12rpx; margin: 0 auto 20rpx auto; padding: 28rpx 30rpx; @@ -643,12 +643,12 @@ } .name{ font-weight: 500; - color: #333333; + color: #999999; font-size: 28rpx; } .time{ font-weight: 400; - color: #888888; + color: #999999; font-size: 22rpx; margin-top: 15rpx; .iconfont{ @@ -658,7 +658,7 @@ } .address{ font-weight: 400; - color: #888888; + color: #999999; font-size: 22rpx; margin-top: 13rpx; .iconfont{ diff --git a/components/timeSlot/index.vue b/components/timeSlot/index.vue index c2235f8..5626178 100644 --- a/components/timeSlot/index.vue +++ b/components/timeSlot/index.vue @@ -170,8 +170,8 @@ display: flex; justify-content: space-between; padding: 24rpx 20rpx; - background-color: #fff; - color: #999; + background-color: #1B1A1D; + color: #fff; font-size: 24rpx; width: 100%; box-sizing: border-box; @@ -181,15 +181,15 @@ .item { margin-right: 20rpx; - background: #F5F5F5; + // background: #fff; padding: 8rpx 24rpx; border-radius: 30rpx; } .item.on { - color: var(--view-theme); - background-color: var(--view-minorColorT); + color: #FAAD35; + // background-color: var(--view-minorColorT); } } .item{ diff --git a/components/tui-modal/index.vue b/components/tui-modal/index.vue index e7bcc88..c13ff00 100644 --- a/components/tui-modal/index.vue +++ b/components/tui-modal/index.vue @@ -200,7 +200,7 @@ } .tui-modal-btn-cancel{ border: 1px solid var(--view-theme); - color: var(--view-theme); + color: #FFFFFF; } .tui-modal-btn-confirm{ background-color:#F8A617; diff --git a/pages.json b/pages.json index 0ba7038..ac9a105 100644 --- a/pages.json +++ b/pages.json @@ -409,6 +409,7 @@ { "path": "user_spread_money/index", "style": { + "navigationStyle": "custom", "navigationBarTitleText": "佣金记录" // #ifdef MP @@ -621,6 +622,7 @@ { "path": "promoter-list/index", "style": { + "navigationStyle": "custom", "navigationBarTitleText": "我的团队" // #ifdef MP , @@ -1350,6 +1352,7 @@ { "path": "vip_clause/index", "style": { + "navigationStyle": "custom", "navigationBarTitleText": "会员协议", "app-plus": { // #ifdef APP-PLUS @@ -1494,6 +1497,7 @@ "path": "news_details/index", "style": { "navigationBarTitleText": "资讯详情", + "navigationStyle": "custom", "app-plus": { // #ifdef APP-PLUS "titleNView": { @@ -1742,6 +1746,7 @@ "path": "order_after_details/index", "style": { "navigationBarBackgroundColor": "#f5f5f5", + "navigationStyle": "custom", "navigationBarTextStyle": "white", "navigationBarTitleText": "售后详情", "enablePullDownRefresh": false, diff --git a/pages/annex/record/record.vue b/pages/annex/record/record.vue index 713fc5b..6ad0c59 100644 --- a/pages/annex/record/record.vue +++ b/pages/annex/record/record.vue @@ -18,6 +18,9 @@ {{item.mark}} + + 暂无信息 + @@ -79,6 +82,10 @@ diff --git a/pages/annex/vip_paid/index.vue b/pages/annex/vip_paid/index.vue index c970b50..14fed9b 100644 --- a/pages/annex/vip_paid/index.vue +++ b/pages/annex/vip_paid/index.vue @@ -124,7 +124,7 @@ - {{item.store_name}} + {{item.title}} ¥{{item.price}} @@ -140,7 +140,7 @@ @@ -199,7 +199,8 @@ toLogin } from '@/libs/login.js'; import { - newcomerList + newcomerList, + store_discountsgetList } from '@/api/api.js' import { postCartAdd @@ -274,7 +275,7 @@ }, onShow() { this.memberCard() - this.getnewcomerList() + }, onReachBottom() { this.groomList(); @@ -292,28 +293,40 @@ // #endif }, methods: { + hyxy(){ + uni.navigateTo({ + url:'/pages/annex/vip_clause/index' + }) + }, ljlingka() { // this.createMemberCard('weixin'); + var discountInfos=[] + this.newcomer_products[this.libaoindex].products.forEach(el=>{ + discountInfos.push({product_id:el.product_id,"unique":"",id:el.id}) + }) if (this.ishyxy) { let data = { addressId: "", cartNum: 1, delivery_type: '', new: 1, - productId: this.newcomer_products[this.libaoindex].product_id, - store_id: uni.getStorageSync('mendianstore_id'), - uniqueId: "" + productId:'', + store_id: 0, + uniqueId: "", + discountInfos:discountInfos, + discountId:this.newcomer_products[this.libaoindex].id, + member_type: this.memberType[this.tykindex].id }; postCartAdd(data).then(res => { console.log(987, res); uni.navigateTo({ - url: '/pages/goods/order_confirm/index?huiyuanka=1&product_id=' + - this.newcomer_products[this.libaoindex].product_id + '&new=1&cartId=' + + url: '/pages/goods/order_confirm/index?huiyuanka=1&product_id=""&discountInfos' + + discountInfos +'&discountId=' + this.newcomer_products[this.libaoindex].id+ '&new=1&cartId=' + res.data.cartId + '&huiyuankajiage=' + this.memberType[this.tykindex] .pre_price + '&huiyuanzhekou=' + this.number + '&vipmoney=' + this.memberType[this .tykindex].price + - '&vipprice=' + this.memberType[this.tykindex].pre_price + '&vipprice=' + this.memberType[this.tykindex].pre_price+'&member_type=' + this.memberType[this.tykindex].id }) }) @@ -323,9 +336,11 @@ }) } }, - getnewcomerList() { - newcomerList().then(res => { - this.newcomer_products = res.data.newcomer_products + getnewcomerList(vip_type) { + store_discountsgetList({vip_type:vip_type}).then(res => { + console.log(' res.data.list',res); + this.newcomer_products = res.data.list + console.log(' res.data.list11',this.newcomer_products); }) }, change(e) { @@ -337,6 +352,7 @@ }, tykxzindex(i) { this.tykindex = i + this.getnewcomerList(this.memberType[this.tykindex].id) console.log(45, this.memberType[this.tykindex].pre_price); }, yaoqing() { @@ -400,6 +416,7 @@ this.userInfo = is_get_free.user_info; this.memberRights = member_rights; this.memberType = member_type; + this.getnewcomerList(this.memberType[0].id) this.memberRights.forEach(el => { console.log('el', el); if (el.id == '7') { @@ -551,7 +568,15 @@ this.$refs.popup.open('center') this.guzkneirong = item } else { - this.yaoqing() + if(this.userInfo.pay_vip_status){ + this.yaoqing() + }else{ + uni.showToast({ + title: '请先购买会员', + icon: 'none' + }); + } + } }, @@ -632,6 +657,7 @@ height: 470rpx; background: #1B1A1D; border-radius: 20rpx; + padding: 2rpx; } .zsbox1xz { diff --git a/pages/annex/yaoqing/yaoqing.vue b/pages/annex/yaoqing/yaoqing.vue index 23d9077..4b5cc17 100644 --- a/pages/annex/yaoqing/yaoqing.vue +++ b/pages/annex/yaoqing/yaoqing.vue @@ -67,7 +67,7 @@ { type: 'image', //绘制类型(color:背景色;image:图片;text:文字;line:线条), width: 120, //宽度(rpx) - height: 100, //高度(rpx) + height: 120, //高度(rpx) x: 50, //x轴位置(离左边的距离rpx) y: 900, //y轴位置(离上边的距离rpx) radius: 55, //圆角(rpx) @@ -320,6 +320,6 @@ .hbimg { width: 660rpx; - height: 830rpx; + height: 950rpx; } \ No newline at end of file diff --git a/pages/extension/news_details/index.vue b/pages/extension/news_details/index.vue index e2676dd..22c7c2f 100644 --- a/pages/extension/news_details/index.vue +++ b/pages/extension/news_details/index.vue @@ -1,13 +1,17 @@ @@ -123,12 +82,15 @@ export default { this.getArticleOne(); }, methods: { + goarrow(){ + uni.navigateBack() + }, getArticleOne: function () { let that = this; getArticleDetails(that.id).then((res) => { - uni.setNavigationBarTitle({ - title: res.data.title.substring(0, 7) + '...' - }); + // uni.setNavigationBarTitle({ + // title: res.data.title.substring(0, 7) + '...' + // }); that.$set(that, 'articleInfo', res.data); that.$set(that, 'store_info', res.data.store_info ? res.data.store_info : {}); that.content = res.data.content; diff --git a/pages/goods/components/statusLine/index.vue b/pages/goods/components/statusLine/index.vue index a90b96d..cac0602 100644 --- a/pages/goods/components/statusLine/index.vue +++ b/pages/goods/components/statusLine/index.vue @@ -1,17 +1,17 @@ @@ -99,6 +99,6 @@ color: var(--view-theme); } .active{ - color: #333; + color: #fff; } diff --git a/pages/goods/components/verifyModal/index.vue b/pages/goods/components/verifyModal/index.vue index 1d25f8f..74bea47 100644 --- a/pages/goods/components/verifyModal/index.vue +++ b/pages/goods/components/verifyModal/index.vue @@ -20,7 +20,11 @@ - {{verifyCode}} + + {{config.bar.code}} + + + 核销时间:{{writeDay}} @@ -65,6 +69,35 @@ default:"" }, }, + watch:{ + verifyCode(){ + this.config.bar.code= this.verifyCode + } + }, + data(){ + return{ + config: { + bar: { + code:'', + color: ['#000'], + bgColor: '#FFFFFF', // 背景色 + width: 480, // 宽度 + height: 110 // 高度 + }, + qrc: { + code: '', + size: 380, // 二维码大小 + level: 3, //等级 0~4 + bgColor: '#FFFFFF', //二维码背景色 默认白色 + border: { + color: ['#eee', '#eee'], //边框颜色支持渐变色 + lineWidth: 3, //边框宽度 + }, + color: ['#333', '#333'], //边框颜色支持渐变色 + } + }, + } + }, methods:{ moveHandle(){ return false diff --git a/pages/goods/goods_comment_con/index.vue b/pages/goods/goods_comment_con/index.vue index 9661661..0f1bf2b 100644 --- a/pages/goods/goods_comment_con/index.vue +++ b/pages/goods/goods_comment_con/index.vue @@ -43,9 +43,9 @@ - 商品质量 + 商品质量 - @@ -53,7 +53,7 @@ 服务态度 - @@ -62,7 +62,7 @@ 物流服务 - diff --git a/pages/goods/order_after_details/index.vue b/pages/goods/order_after_details/index.vue index bc1d2e7..fa3c477 100644 --- a/pages/goods/order_after_details/index.vue +++ b/pages/goods/order_after_details/index.vue @@ -1,15 +1,19 @@