From ace704210bae55a5ab8f8f2963928da55ee69828 Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Sat, 7 Oct 2023 19:26:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 1 + api/api.js | 2 +- libs/uniApi.js | 1 + manifest.json | 10 +- pages/admin/cancellate_result/index.vue | 9 + pages/admin/orderList/index.vue | 3 + pages/admin/orderRefund/index.vue | 6 +- pages/admin/order_cancellation/index.vue | 13 +- pages/chat/customer_list/chat.vue | 98 +- pages/columnGoods/goods_search_con/index.vue | 7 +- .../delegation_details/index.vue | 6 +- .../receivedCommission/index.vue | 23 +- pages/gather/gather.vue | 16 +- pages/goods_details/index.vue | 20 +- pages/margin/margin.vue | 81 +- pages/moreProject/moreProject.vue | 28 +- pages/nongKe/cloud_entrepot/index.vue | 3136 +++++++++-------- pages/nongKe/cloud_entrepot/indexa.vue | 36 +- pages/plantGrass/plant_detail/index.vue | 9 +- pages/plant_release/index.vue | 2 +- pages/product/addGoods/commodity.vue | 46 +- pages/product/addGoods/index.vue | 1578 +++++---- pages/product/addGoods/price.vue | 400 ++- pages/product/addGoods/secound.vue | 202 +- pages/product/basicSet.vue | 50 +- pages/product/components/inputGoodsDetils.vue | 10 +- pages/product/list/index.vue | 3 +- pages/short_video/appSwiper/index.nvue | 67 +- .../douyin-scrollview/douyin-scrollview.nvue | 8 +- pages/short_video/nvueSwiper/index.nvue | 100 +- .../img}/index/zan01.png | Bin .../img}/index/zan02.png | Bin pages/store/home/index.vue | 1 + pages/users/order_list/relase.vue | 6 + pages/users/payment/payment.vue | 13 +- pages/users/user_payment/index.vue | 26 +- static/iconfont/demo.css | 26 + store/modules/index.js | 4 +- store/modules/storage.js | 29 + utils/uniMPevent.js | 5 + 40 files changed, 3262 insertions(+), 2819 deletions(-) rename pages/short_video/{components => static/img}/index/zan01.png (100%) rename pages/short_video/{components => static/img}/index/zan02.png (100%) create mode 100644 static/iconfont/demo.css create mode 100644 store/modules/storage.js diff --git a/App.vue b/App.vue index 5129746..d7a9cf4 100644 --- a/App.vue +++ b/App.vue @@ -444,6 +444,7 @@ @import 'static/iconfont/iconfont.css'; @import 'static/iconfont/iconlihai.css'; @import 'static/iconfont/icontan.css'; + @import 'static/iconfont/demo.css'; @import 'static/css/style.scss'; diff --git a/api/api.js b/api/api.js index c382e10..f5545dc 100644 --- a/api/api.js +++ b/api/api.js @@ -5,7 +5,7 @@ import request from "@/utils/request.js"; * */ export function cloudWarehouse(data) { - return request.get("store/product/cloudWarehouse", data); + return request.get("store/product/cloudWarehouse", data, { noAuth: true }); } /** * 获取云仓分类 diff --git a/libs/uniApi.js b/libs/uniApi.js index 612c4c8..ae80c51 100644 --- a/libs/uniApi.js +++ b/libs/uniApi.js @@ -130,6 +130,7 @@ export function Modal(title = '提示', content = '这是一个模态弹窗!', o }) { return new Promise((reslove, reject) => { uni.showModal({ + ...obj, title: title, content: content, success: (res) => { diff --git a/manifest.json b/manifest.json index c8c719f..4822715 100644 --- a/manifest.json +++ b/manifest.json @@ -4,6 +4,8 @@ "description" : "", "versionName" : "1.4.7", "versionCode" : 147, + "versionName" : "1.4.7", + "versionCode" : 147, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { @@ -31,7 +33,8 @@ "UniMP" : { "description" : "uni小程序" }, - "Maps" : {} + "Maps" : {}, + "Push" : {} }, "safearea" : { "bottom" : { @@ -120,7 +123,8 @@ } }, "oauth" : {}, - "ad" : {} + "ad" : {}, + "push" : {} }, "icons" : { "android" : { @@ -161,7 +165,7 @@ "nativePlugins" : { "JG-JCore" : { "JPUSH_APPKEY_IOS" : "8a5efd65cda14fafa6e64ad3", - "JPUSH_CHANNEL_IOS" : "", + "JPUSH_CHANNEL_IOS" : "8a5efd65cda14fafa6e64ad3", "JPUSH_APPKEY_ANDROID" : "b5f679f4357018605ea6fd2e", "JPUSH_CHANNEL_ANDROID" : "", "__plugin_info__" : { diff --git a/pages/admin/cancellate_result/index.vue b/pages/admin/cancellate_result/index.vue index 2614b9e..62c966e 100644 --- a/pages/admin/cancellate_result/index.vue +++ b/pages/admin/cancellate_result/index.vue @@ -91,6 +91,7 @@ import authorize from '@/components/Authorize'; import emptyPage from '@/components/emptyPage.vue' import { configMap } from '@/utils'; +import { navigateBack } from '../../../libs/uniApi'; const app = getApp(); export default { components: { @@ -198,6 +199,14 @@ that.$util.Tips({ title: res.message }); + if(res.status==200){ + // uni.redirectTo({ + // url:'/admin/orderList/index?types=4&merId='+that.mer_id + // }) + uni.navigateBack({ + delta:2 + }) + } that.getOrderData(); }) .catch(res => { diff --git a/pages/admin/orderList/index.vue b/pages/admin/orderList/index.vue index 399c417..4879d0d 100644 --- a/pages/admin/orderList/index.vue +++ b/pages/admin/orderList/index.vue @@ -293,6 +293,9 @@ this.merId = option.merId; this.getIndex(); }, + onShow(){ + this.getIndex(); + }, methods: { // 关闭二维码弹窗 popUpClose() { diff --git a/pages/admin/orderRefund/index.vue b/pages/admin/orderRefund/index.vue index 4374450..ac4815c 100644 --- a/pages/admin/orderRefund/index.vue +++ b/pages/admin/orderRefund/index.vue @@ -134,11 +134,15 @@ }) } } + + let params = { status: that.status, fail_message: that.fail_message } - if(that.orderInfo.refund_type == 2){ + + + if(that.orderInfo.refund_type == 2 && that.status != -1){ if (!that.refundInfo.mer_delivery_user) { return that.$util.Tips({ title: '请填写收货人姓名' diff --git a/pages/admin/order_cancellation/index.vue b/pages/admin/order_cancellation/index.vue index 9a3d94d..5249b13 100644 --- a/pages/admin/order_cancellation/index.vue +++ b/pages/admin/order_cancellation/index.vue @@ -122,6 +122,7 @@ }, // 扫码核销 scanCode() { + var self = this; // #ifdef MP || APP-PLUS wx.scanCode({ @@ -129,15 +130,14 @@ success(res) { self.verify_code = res.result // console.log(self.verify_code); + console.log('111',self.mer_id,self.verify_code) verifierOrder(self.mer_id,self.verify_code) .then(res => { - // uni.navigateTo({ - // url: '/pages/admin/cancellate_result/index?code='+self.verify_code+'&mer_id='+self.mer_id - // }); - + uni.navigateTo({ url: '/pages/admin/orderList/index?types=2'+'&mer_id='+self.mer_id }); + }) .catch(res => { self.verify_code = '' @@ -165,12 +165,11 @@ scanType: ["qrCode", "barCode"] }).then(res=>{ this.verify_code = res.resultStr - // uni.navigateTo({ - // url: '/pages/admin/cancellate_result/index?code='+self.verify_code+'&mer_id='+self.mer_id - // }); + uni.navigateTo({ url: '/pages/admin/orderList/index?types=2'+'&mer_id='+self.mer_id }); + // this.codeChange(); }).catch(res => { this.$util.Tips({ diff --git a/pages/chat/customer_list/chat.vue b/pages/chat/customer_list/chat.vue index 40a218e..9b7d49f 100644 --- a/pages/chat/customer_list/chat.vue +++ b/pages/chat/customer_list/chat.vue @@ -53,7 +53,8 @@
- {{val.product.cart_info.product.store_name}}
+ {{val.product.cart_info.product.store_name}} +
¥{{ item.refundOrder.refund_price }}
@@ -89,7 +90,8 @@
- {{val.cart_info.product.store_name}}
+ {{val.cart_info.product.store_name}} +
¥{{ item.orderInfo.pay_price }}
@@ -114,7 +116,8 @@ ¥{{ item.product.price }}
- {{item.product.store_name}}
+ {{item.product.store_name}} + @@ -135,7 +138,8 @@ ¥{{ item.presell.price }}
- {{item.presell.store_name}}
+ {{item.presell.store_name}} + @@ -143,7 +147,7 @@
-
+
- {{item.productGroup.product.store_name}}
+ {{item.productGroup.product.store_name}} +
@@ -207,7 +212,8 @@
- {{val.product.cart_info.product.store_name}}
+ {{val.product.cart_info.product.store_name}} +
¥{{ item.refundOrder.refund_price }}
@@ -216,6 +222,7 @@ +
@@ -243,7 +250,8 @@
- {{val.cart_info.product.store_name}}
+ {{val.cart_info.product.store_name}} +
¥{{ item.orderInfo.pay_price }}
@@ -267,7 +275,8 @@ ¥{{ item.product.price }}
- {{item.product.store_name}}
+ {{item.product.store_name}} + @@ -288,7 +297,8 @@ ¥{{ item.presell.price }}
- {{item.presell.store_name}}
+ {{item.presell.store_name}} + @@ -309,7 +319,8 @@ ¥{{ item.productGroup.product.price }}
- {{item.productGroup.product.store_name}}
+ {{item.productGroup.product.store_name}} + @@ -358,6 +369,7 @@
{{items.time}}
+
@@ -388,7 +400,8 @@
- {{val.product.cart_info.product.store_name}}
+ {{val.product.cart_info.product.store_name}} +
¥{{ val.product.cart_info.productAttr.price }}
@@ -425,7 +438,8 @@
- {{val.cart_info.product.store_name}}
+ {{val.cart_info.product.store_name}} +
¥{{ item.orderInfo.pay_price }}
@@ -450,7 +464,8 @@ ¥{{ item.product.price }}
- {{item.product.store_name}}
+ {{item.product.store_name}} + @@ -471,7 +486,8 @@ ¥{{ item.presell.price }}
- {{item.presell.store_name}}
+ {{item.presell.store_name}} + @@ -492,7 +508,8 @@ ¥{{ item.productGroup.product.price }}
- {{item.productGroup.product.store_name}}
+ {{item.productGroup.product.store_name}} + @@ -534,7 +551,8 @@
- {{val.product.cart_info.product.store_name}}
+ {{val.product.cart_info.product.store_name}} +
共{{item.refundOrder.refund_num}}件商品, 合计 ¥{{ item.refundOrder.refund_price }} @@ -571,7 +589,8 @@
- {{val.cart_info.product.store_name}}
+ {{val.cart_info.product.store_name}} +
¥{{ item.orderInfo.pay_price }}
@@ -596,7 +615,8 @@ ¥{{ item.product.price }}
- {{item.product.store_name}}
+ {{item.product.store_name}} + @@ -617,7 +637,8 @@ ¥{{ item.presell.price }}
- {{item.presell.store_name}}
+ {{item.presell.store_name}} + @@ -638,7 +659,8 @@ ¥{{ item.productGroup.product.price }}
- {{item.productGroup.product.store_name}}
+ {{item.productGroup.product.store_name}} + @@ -778,7 +800,7 @@ -
@@ -1212,8 +1236,7 @@ let self = this self.$util.uploadImageOne('upload/image', function(res) { if (res.status == 200) { - self.sendMsg(res.data.path, 3 - ) + self.sendMsg(res.data.path, 3) } }); }, @@ -1603,7 +1626,7 @@ margin-top: 20rpx; width: 710rpx; position: fixed; - bottom: 120rpx; + bottom: 160rpx; left: 20rpx; .broadcast-details_box, @@ -1790,6 +1813,7 @@ .broadcast-details .chat .item .text { margin-left: 20rpx; + } .broadcast-details .chat .item .text.textR { @@ -1943,19 +1967,23 @@ transition: all 0.005s cubic-bezier(0.25, 0.5, 0.5, 0.9); background-color: #fff; position: fixed; - bottom: 0; + bottom:var(--status-bar-height); left: 0; - margin-bottom: var(--status-bar-height);; + + + } .broadcast-details .footerCon.on { position: relative; - top: -300rpx; + top: -360rpx; + transform: translate3d(0, 0, 0) !important; } .broadcast-details .footerCon .banner { background: #fff; + padding-top: var(--status-bar-height); } .broadcast-details .footerCon .banner .swiper-slide { @@ -1971,7 +1999,7 @@ display: block; width: 50rpx; height: 50rpx; - margin: 40rpx 0 0 50rpx; + margin: 20rpx 0 0 40rpx; } .broadcast-details .footerCon .banner .swiper-container-horizontal>.swiper-pagination-bullets { @@ -1980,6 +2008,10 @@ .broadcast-details .footerCon .slider-banner .swiper-pagination-bullet-active { background-color: #999; + + + + } .broadcast-details .recording { @@ -2036,6 +2068,8 @@ padding: 0 80rpx 0 30rpx; height: 76rpx; position: relative; + + } .broadcast-details .footer .placeholder { @@ -2064,7 +2098,9 @@ display: inline-block; width: 50rpx; height: 50rpx; - margin: 40rpx 0 0 50rpx; + + + margin: 20rpx 0 0 40rpx; } .emoji-outer { diff --git a/pages/columnGoods/goods_search_con/index.vue b/pages/columnGoods/goods_search_con/index.vue index 27e017d..1a81af1 100644 --- a/pages/columnGoods/goods_search_con/index.vue +++ b/pages/columnGoods/goods_search_con/index.vue @@ -5,9 +5,10 @@ - - + + + diff --git a/pages/commissionedSales/delegation_details/index.vue b/pages/commissionedSales/delegation_details/index.vue index 3cf0d27..dc3c98c 100644 --- a/pages/commissionedSales/delegation_details/index.vue +++ b/pages/commissionedSales/delegation_details/index.vue @@ -109,8 +109,8 @@ - - 查看TA提到的宝贝(2) + + 查看TA提到的宝贝({{objinfo.product_list.length}}) @@ -124,7 +124,7 @@ - + diff --git a/pages/commissionedSales/receivedCommission/index.vue b/pages/commissionedSales/receivedCommission/index.vue index 729a4b2..f3443be 100644 --- a/pages/commissionedSales/receivedCommission/index.vue +++ b/pages/commissionedSales/receivedCommission/index.vue @@ -227,6 +227,7 @@ import emptyPage from '@/components/emptyPage.vue'; import { entrustlist, + addEntrustCart, finishchain, checkchain } from '@/api/sale.js' @@ -365,9 +366,25 @@ }, //下单 order(item) { - uni.navigateTo({ - url: '/pages/commissionedSales/delegation_details/index?id=' + item.community_id + '&type=1' - }) + // uni.navigateTo({ + // url: '/pages/commissionedSales/delegation_details/index?id=' + item.community_id + '&type=1' + // }) + addEntrustCart({ + community_id: item.community_id + }).then(res => { + + if (res.status == 200) { + this.$util.Tips({ + title: res.message, + icon: 'success' + }) + uni.navigateTo({ + url: '/pages/users/order_confirm/index?cartId=' + res.data.cart_id.toString() + }) + } + + }) + }, //申请结束委托申请 deteragrss(item) { diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue index d7a9b0c..9be2728 100644 --- a/pages/gather/gather.vue +++ b/pages/gather/gather.vue @@ -141,8 +141,8 @@ AllMenuList: [{ name: '商户平台', icon: '/static/applet/shop_app.png', - // data: "__UNI__1EE148C", - data: '/pages/moreProject/moreProject', + data: "__UNI__1EE148C", + type: 2, }, { @@ -359,7 +359,9 @@ break; // case 2: uniMP.loadMPx(data); break; case 2: - this.navigator(data); + // this.navigator(data); + uniMP.loadMPx(data); + break; case 3: @@ -370,14 +372,14 @@ // #endif // #ifdef H5 - if (type == 2) { - this.navigator(data); - } else { + // if (type == 2) { + // this.navigator(`/pages/moreProject/moreProject`); + // } else { uni.showToast({ icon: 'none', title: 'H5不支持打开小程序' }) - } + // } // #endif }, diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index 41562cc..cad92c0 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -287,8 +287,8 @@ v-html="description.content.replace(//ig, '')"> - - {{description.content.title}} + + {{description.content.title}} @@ -2520,4 +2520,20 @@ } } } + + .product_content{ + background-color: #fff; + &_title{ + width: 100%; + height: auto; + line-height: 50rpx; + padding: 28rpx; + word-wrap: break-word; + text-align: center; + } + image{ + width: 750rpx; + height: 750rpx; + } + } \ No newline at end of file diff --git a/pages/margin/margin.vue b/pages/margin/margin.vue index 122ff8e..a11af51 100644 --- a/pages/margin/margin.vue +++ b/pages/margin/margin.vue @@ -40,7 +40,7 @@ {{loadTitle}} - + @@ -98,7 +98,7 @@ that.$set(that, 'productList', productList); }, 500) - + that.$set(that.where, 'page', that.where.page + 1); if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true }).catch(err => { @@ -118,52 +118,45 @@ }, //缴纳保证金 paydecimal() { - if (this.merchant_Data.is_margin != 1) { - this.$util.Tips({ - title: '暂时无需缴纳保证金' - }); - } else { - let that = this - uni.showModal({ - title: '提示', - content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳保证金', - success: (res) => { - if (res.confirm) { - - // console.log('用户点击确定'); - paymerchant().then((res) => { - - uni.requestPayment({ - provider: 'wxpay', - orderInfo: res.data - .config, //微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】 - success: (res) => { - that.$util.Tips({ - title: '支付成功' - }); - that.decimal() - that.list(true) - }, - fail: (err) => { - that.$util.Tips({ - title: '支付失败' - }); - - console.log('fail:' + JSON.stringify(err)); - } - }); - }).catch((err) => { - console.log(err) + let that = this + uni.showModal({ + title: '提示', + content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳保证金', + success: (res) => { + if (res.confirm) { + paymerchant().then((res) => { + uni.requestPayment({ + provider: 'wxpay', + orderInfo: res.data + .config, //微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】 + success: (res) => { + that.$util.Tips({ + title: '支付成功' + }); + that.decimal() + that.list(true) + }, + fail: (err) => { + that.$util.Tips({ + title: '支付失败' + }); + console.log('fail:' + JSON.stringify(err)); + } + }); + }).catch((err) => { + console.log(err) + that.$util.Tips({ + title: err }) - } else if (res.cancel) { - console.log('用户点击取消'); - } + }) + } else if (res.cancel) { + console.log('用户点击取消'); } - }); + } + }); - } + } - }, } } diff --git a/pages/moreProject/moreProject.vue b/pages/moreProject/moreProject.vue index e681ae3..6243428 100644 --- a/pages/moreProject/moreProject.vue +++ b/pages/moreProject/moreProject.vue @@ -54,12 +54,14 @@ 订单管理 --> + 入库管理 + @@ -82,12 +84,12 @@ 订单核销 - + 缴纳保证金 - - - + + + + {{ town }}里海云仓 + + + + + + + + + + - - {{town}}里海云仓 - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - 供销综合云市场 - - + + + + + {{ town }}里海云仓 + + - - - - - - - - + + + - - - - + 搜索 + + + + + + + + - - - - - - - - - + + + + + + + + + - + + + + + + + + + + + + + + {{ item.tit }} + + + + + + + + + + + + + + + + + + {{ item.store_name || item.store_info }} + + + + {{ + item.rate + }} + {{ item.reply_count }}评论 + + + + + ¥{{ + item.price + }} + + ¥30.00 + + + + + + + + + + + + + + + + + + + + + 暂无商品 + + + + + + + + + - - - - - - + + {{ goodsNum }} + + + + ¥{{ totalMoney }} + 支持配送 售后无忧 + + + 去结算 + + + + + + + + + + + + 里海云仓 + + + + + + + {{ item.category_name }}云仓服务 + + + {{ item.description }} + + + + - - - - - - - - {{item.tit}} - - - - - - - - - - - - - - - - - - {{item.store_info}} - - - - {{item.rate}} - {{item.reply_count}}评论 - - - - - ¥{{item.price}} - - - ¥30.00 - - - - - - - - - - - - - - - - - - - - - - - - 暂无商品 - - - - - - - - - - - - {{goodsNum}} - - - - - ¥{{totalMoney}} - - - 支持配送 售后无忧 - - - - - 去结算 - - - - - - - - - - - - - - - - 里海云仓 - - - - - - - - {{item.category_name}}云仓服务 - - - {{item.description}} - - - - - - - - - + + + + 当前区域暂无云仓 + + + + + + + - - - 当前区域暂无云仓 - - - + + - - + + + + + 当前区域暂无云仓 + + + - + - - - - - - - - - - - - - - - - - - 当前区域暂无云仓 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{skuform.store_info}} - - - - ¥ {{skuform.price}} - - - 库存:{{skuform.sku[this.skusize].stock}} - - - - - - - 尺码 - - - {{item.sku}} - - - - - - 数量 - - - - - - - 确定 - - - - - - - - + + + + + + + + + + + + + + + + + {{ skuform.store_info }} + + + ¥ {{ skuform.price }} + + 库存:{{ skuform.sku[this.skusize].stock }} + + + + + + 尺码 + + {{ item.sku }} + + + + 数量 + + + + + 确定 + + + + \ No newline at end of file diff --git a/pages/nongKe/cloud_entrepot/indexa.vue b/pages/nongKe/cloud_entrepot/indexa.vue index d046642..c255095 100644 --- a/pages/nongKe/cloud_entrepot/indexa.vue +++ b/pages/nongKe/cloud_entrepot/indexa.vue @@ -151,23 +151,23 @@ :disable-touch="true"> + height="718.46rpx"> - + + width="140.19rpx" height="140.19rpx"> @@ -199,7 +199,7 @@ - {{item.store_info}} + {{ item.store_name || item.store_info }} @@ -346,8 +346,7 @@ - - + @@ -405,7 +404,8 @@ - + + @@ -493,7 +493,7 @@ page_num: 1, act_img: "", cartTagInfo: {}, - isAuto: false, + headTop1: "", actList: [{ tit: '综合', @@ -511,6 +511,7 @@ }], status: "loadmore", flag: false, + isAuto: false, isShowAuth: false, //是否隐藏授权 } @@ -860,8 +861,9 @@ }, addcart(item, i) { if (!this.isLogin) { - this.isAuto = true; - this.isShowAuth = true + console.log('2222') + this.isAuto = true + this.isShowAuth = true; return } @@ -1299,11 +1301,11 @@ .menu { position: absolute; - top: 748rpx; + top: 490rpx; width: 750rpx; // background-color: rgba(255, 255, 255, 0.7); height: 250rpx; - // height: 175.23rpx; + // height: 140.19rpx; // box-shadow: 0 0 100px 100px rgba(255, 255, 255, 0.5); // box-shadow: 0 0 100rpx 30rpx rgba(255, 255, 255, 0.9); @@ -1398,9 +1400,9 @@ .act_img { // transition:t; - transform: translateY(-840rpx); + transform: translateY(-580rpx); /* #ifdef APP-PLUS */ - transform: translateY(-800rpx); + transform: translateY(-540rpx); /* #endif */ } @@ -1427,7 +1429,7 @@ .swipers { width: 750rpx; - height: 998.83rpx; + height: 718.46rpx; } .card { @@ -1464,7 +1466,7 @@ font-size: 33.29rpx; line-height: 50px; background: linear-gradient(to right, #F84221, #FF6D20); - width: 175.23rpx; + width: 140.19rpx; text-align: center; } } diff --git a/pages/plantGrass/plant_detail/index.vue b/pages/plantGrass/plant_detail/index.vue index 8c0dd9e..9702245 100644 --- a/pages/plantGrass/plant_detail/index.vue +++ b/pages/plantGrass/plant_detail/index.vue @@ -264,7 +264,8 @@ 内容不存在,可能被删除了哦~ 返回首页 + url="/pages/index/index">返回首页 + @@ -532,9 +533,9 @@ that.followDetail = null that.loadData = false uni.hideLoading() - return that.$util.Tips({ - title: err - }); + // return that.$util.Tips({ + // title: err + // }); }) }, /*获取评论*/ diff --git a/pages/plant_release/index.vue b/pages/plant_release/index.vue index bad9ae3..8c1208b 100644 --- a/pages/plant_release/index.vue +++ b/pages/plant_release/index.vue @@ -130,7 +130,7 @@ selHeight="250upx"> - + diff --git a/pages/product/addGoods/commodity.vue b/pages/product/addGoods/commodity.vue index ad41d6a..39eaa20 100644 --- a/pages/product/addGoods/commodity.vue +++ b/pages/product/addGoods/commodity.vue @@ -2,7 +2,7 @@ - + 商品详情 - + 商品排序 @@ -140,6 +140,10 @@ type: [String, Number], default: '' }, + showCommodity: { + type: Boolean, + default: false + }, resetKey: { type: Boolean, default: false @@ -162,22 +166,26 @@ once_count: '', // 限购数量 video_link: '' }, - goodsDis: {imageList: []}, + goodsDis: {imageList: [],store_name:""}, store_name:'', moreThanFlag: true, }; }, - created() { - // console.log('123'); + mounted() { this.initData(); + // this.$nextTick(()=>{ + // this.initData(); + // }) + }, + updated() { + // this.initData(); }, - watch: { addGoodsSecoundData: { handler(val) { setTimeout(() => { - setStorage(this.product_id ? 'editGoodsDetils' : 'addGoodsSecoundData', val) + setStorage('editCommodity', val) }); }, deep: true @@ -214,12 +222,21 @@ this.disModel = true; } if (this.product_id) { - editGoodsDetils = getStorage('editGoodsDetils'); + // editGoodsDetils = getStorage('editGoodsDetils'); + editGoodsDetils = this.$store.state.storage.storage; + // console.log('ss',editGoodsDetils.content); + // editGoodsDetils = getStorage('editGoodsDetils'); + // console.log('初始化商品详情',editGoodsDetils); Object.keys(this.addGoodsSecoundData).forEach(item => { + console.log(item, editGoodsDetils[item]); this.addGoodsSecoundData[item] = editGoodsDetils[item]; }); if (editGoodsDetils.content) { + this.goodsDis.imageList = editGoodsDetils.content.image; + this.goodsDis.store_name = editGoodsDetils.content.title; + this.store_name = editGoodsDetils.content.title; + // console.log(this.goodsDis, editGoodsDetils.content); setStorage('goodsDis', { store_name: editGoodsDetils.content.title, imageList: editGoodsDetils.content.image @@ -228,6 +245,11 @@ } setStorage('canChangeSecound', true); return; + }else { + setStorage('goodsDis', { + store_name: '', + imageList: [] + }); } if (getStorage('addGoodsSecoundData')) { @@ -236,10 +258,6 @@ this.addGoodsSecoundData[item] = getStorage('addGoodsSecoundData')[item]; } }); - - - - } }, lastStep() { @@ -514,7 +532,7 @@ border-radius: 50%; padding: 8rpx; background: #e93323; - z-index: 999; + z-index: 2; } video { diff --git a/pages/product/addGoods/index.vue b/pages/product/addGoods/index.vue index a93082e..3d8aa8f 100644 --- a/pages/product/addGoods/index.vue +++ b/pages/product/addGoods/index.vue @@ -1,61 +1,59 @@