diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue
index b194bc8..153c189 100644
--- a/pages/goods_details/index.vue
+++ b/pages/goods_details/index.vue
@@ -1,2466 +1,2528 @@
-
-
-
-
-
-
-
-
-
-
-
- ¥{{storeInfo.price}}
- ¥{{storeInfo.ot_price}}
-
- ¥{{storeInfo.svip_price}}
-
-
-
-
-
-
-
- {{storeInfo.merchant.type_name}}
- 自营
- {{storeInfo.store_name}}
-
-
-
- 分享
-
-
-
- 积分最高可抵扣{{storeInfo.max_integral}}元
- 包邮
-
-
-
-
- ¥
- {{storeInfo.price}}
-
- ¥{{storeInfo.svip_price}}
-
-
-
-
-
- 分享
-
-
-
-
-
- 开通 SVIP会员 立省{{svipData.save_money}}元
-
-
- 立即开通
-
-
-
-
- 积分最高可抵扣{{storeInfo.max_integral}}元
- 包邮
-
-
- {{storeInfo.merchant.type_name}}
- 自营
- {{storeInfo.store_name || ''}}
-
-
- 市场价:¥{{storeInfo.ot_price ? storeInfo.ot_price : ''}}
-
- 库存:{{storeInfo.stock ? storeInfo.stock : 0}}{{storeInfo.unit_name ? storeInfo.unit_name : ''}}
-
- 销量:{{storeInfo.sales ? storeInfo.sales : 0}}{{storeInfo.unit_name ? storeInfo.unit_name : ''}}
-
-
-
-
-
- {{ storeInfo.top_name }} · 第{{ storeInfo.top_num }}名
-
-
-
-
-
-
- 优惠券:
-
- 满{{item.use_min_price}}减{{item.coupon_price}}
-
-
-
-
-
- {{attrTxt}}:
- {{attrValue}}
-
-
-
-
-
- 参数:
-
- {{item.name}}
- ...
-
-
-
-
-
-
- 运费:
- {{shippingValue}}
-
-
-
-
-
- 保障:
-
-
- {{item.guarantee_name ? item.guarantee_name : ''}}
-
-
-
-
-
-
-
-
-
- 优惠套餐({{comboTotal}})
-
- 查看全部
-
-
-
-
-
-
-
-
-
-
-
- 共{{item.count}}件
- 省 ¥{{item.max_price}}
-
-
-
-
-
-
-
- 用户评价({{replyCount}})
-
- {{replyChance}}好评率
-
-
-
-
-
-
-
-
-
-
- 种草秀
-
- 查看全部
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{storeInfo.merchant.mer_name ? storeInfo.merchant.mer_name : ''}}
-
- {{storeInfo.merchant.type_name}}
- 自营
-
-
- {{storeInfo.merchant.care_count < 10000 ? storeInfo.merchant.care_count : (storeInfo.merchant.care_count/10000).toFixed(2)+'万'}}人关注
-
- 0人关注
-
- 进店
-
-
-
- 商品描述{{storeInfo.merchant.product_score}}
-
-
- 卖家服务{{storeInfo.merchant.service_score}}
-
-
- 物流服务{{storeInfo.merchant.postage_score}}
-
-
-
-
- 店铺推荐
-
-
-
-
-
-
- {{item.store_name}}
-
- ¥{{item.price}}
-
-
-
-
-
-
-
-
- 产品介绍
-
-
-
-
-
-
-
-
-
- {{description.content.title}}
-
-
-
-
-
-
-
-
- {{priceRule.rule_name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 分享给好友
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存到手机
-
-
- 长按图片可以保存到手机
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ ¥{{storeInfo.price}}
+ ¥{{storeInfo.ot_price}}
+
+ ¥{{storeInfo.svip_price}}
+
+
+
+
+
+
+
+ {{storeInfo.merchant.type_name}}
+ 自营
+ {{storeInfo.store_name}}
+
+
+
+ 分享
+
+
+
+ 积分最高可抵扣{{storeInfo.max_integral}}元
+ 包邮
+
+
+
+
+ ¥
+ {{storeInfo.price}}
+
+ ¥{{storeInfo.svip_price}}
+
+
+
+
+
+ 分享
+
+
+
+
+
+ 开通 SVIP会员 立省{{svipData.save_money}}元
+
+
+ 立即开通
+
+
+
+
+ 积分最高可抵扣{{storeInfo.max_integral}}元
+ 包邮
+
+
+ {{storeInfo.merchant.type_name}}
+ 自营
+ {{storeInfo.store_name || ''}}
+
+
+ 市场价:¥{{storeInfo.ot_price ? storeInfo.ot_price : ''}}
+
+ 库存:{{storeInfo.stock ? storeInfo.stock : 0}}{{storeInfo.unit_name ? storeInfo.unit_name : ''}}
+
+
+ 销量:{{storeInfo.sales ? storeInfo.sales : 0}}{{storeInfo.unit_name ? storeInfo.unit_name : ''}}
+
+
+
+
+
+
+ {{ storeInfo.top_name }} · 第{{ storeInfo.top_num }}名
+
+
+
+
+
+
+ 优惠券:
+
+ 满{{item.use_min_price}}减{{item.coupon_price}}
+
+
+
+
+
+ {{attrTxt}}:
+ {{attrValue}}
+
+
+
+
+
+ 参数:
+
+ {{item.name}}
+ ...
+
+
+
+
+
+
+ 运费:
+ {{shippingValue}}
+
+
+
+
+
+ 保障:
+
+
+ {{item.guarantee_name ? item.guarantee_name : ''}}
+
+
+
+
+
+
+
+
+
+ 优惠套餐({{comboTotal}})
+
+ 查看全部
+
+
+
+
+
+
+
+
+
+
+
+ 共{{item.count}}件
+ 省 ¥{{item.max_price}}
+
+
+
+
+
+
+
+ 用户评价({{replyCount}})
+
+ {{replyChance}}好评率
+
+
+
+
+
+
+
+
+
+
+ 种草秀
+
+ 查看全部
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{storeInfo.merchant.mer_name ? storeInfo.merchant.mer_name : ''}}
+
+ {{storeInfo.merchant.type_name}}
+ 自营
+
+
+ {{storeInfo.merchant.care_count < 10000 ? storeInfo.merchant.care_count : (storeInfo.merchant.care_count/10000).toFixed(2)+'万'}}人关注
+
+ 0人关注
+
+ 进店
+
+
+
+ 商品描述{{storeInfo.merchant.product_score}}
+
+
+ 卖家服务{{storeInfo.merchant.service_score}}
+
+
+ 物流服务{{storeInfo.merchant.postage_score}}
+
+
+
+
+ 店铺推荐
+
+
+
+
+
+
+ {{item.store_name}}
+
+ ¥{{item.price}}
+
+
+
+
+
+
+
+
+ 产品介绍
+
+
+
+
+
+
+
+
+
+ {{description.content.title}}
+
+
+
+
+
+
+
+
+
+ {{priceRule.rule_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 分享给好友
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存到手机
+
+
+ 长按图片可以保存到手机
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/nongKe/cloud_entrepot/index.vue b/pages/nongKe/cloud_entrepot/index.vue
index bf60242..851c7e4 100644
--- a/pages/nongKe/cloud_entrepot/index.vue
+++ b/pages/nongKe/cloud_entrepot/index.vue
@@ -265,19 +265,19 @@
-
- fsdfsdfsdfffffffff
+ {{skuform.store_info}}
- 79.00
+ ¥ {{skuform.price}}
-
- 库存:999
+
+ 库存:{{skuform.sku[this.skusize].stock}}
@@ -285,11 +285,14 @@
-
+
尺码
- 大号
+ {{item.sku}}
+
+
@@ -300,9 +303,9 @@
-
+
- 加入购物车
+ 确定
@@ -361,7 +364,12 @@
data() {
let src = 'https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/13';
return {
- skuNumber: 0,
+ skuform: {
+
+
+ },
+ skusize: 0,
+ skuNumber: 1,
showcartpop: false,
trnList: [],
act_cart: false,
@@ -425,7 +433,7 @@
// console.log(this.appInfo, "手机信息")
},
onShow() {
- // this.cartFn()
+ this.cartFn()
},
// 分页
onReachBottom() {
@@ -514,8 +522,41 @@
// },
methods: {
+ skusizechange(i) {
+
+ this.skusize = i
+ },
+ skuaddcart() {
+ this.showcartpop = false
+ // this.skuform = {}
+ let res = postCartAdd({
+ cart_num: this.skuNumber,
+ is_new: 0,
+ product_attr_unique: this.skuform.sku[this.skusize].unique,
+ product_id: this.skuform.product_id,
+ product_type: this.skuform.product_type,
+ spread_id: "",
+ }).then((res, err) => {
+ this.cartFn()
+ uni.showToast({
+ title: "加入成功",
+ duration: 1000,
+
+ })
+ }).catch(err => {
+ // this.act_cart = false
+ uni.showToast({
+ title: err,
+ icon: "none",
+ duration: 1000,
+ })
+ })
+
+ },
valChange(e) {
- this.valChange = e
+ console.log(e.value)
+ this.skuNumber = e.value
+ // this.valChange = e.value
},
closecartpop() {
this.showcartpop = false
@@ -625,69 +666,74 @@
},
addcart(item, i) {
- // this.showcartpop = true
- // return
+
// console.log(this.isLogin)
if (!this.isLogin) {
this.isAuto = true;
this.isShowAuth = true
return
}
+ // console.log(item.sku[''] ? "1" : "2")
+ if (item.sku['']) {
+ let data = {
+ cart_num: 1,
+ is_new: 0,
+ product_attr_unique: item.sku[''].unique,
+ product_id: item.product_id,
+ product_type: item.product_type,
+ spread_id: "",
+ }
- let data = {
- cart_num: 1,
- is_new: 0,
- product_attr_unique: item.sku[''].unique,
- product_id: item.product_id,
- product_type: item.product_type,
- spread_id: "",
+ let that = this
+ // return
+
+ uni.createSelectorQuery().in(this).select(`.act_class${i}`).boundingClientRect(data1 => {
+ that.trnList[i].left = this.cartTagInfo.left - data1.left;
+ that.trnList[i].bottom = this.cartTagInfo.top - data1.top;
+ console.log(that.trnList[i])
+ let timer = setTimeout(() => {
+ that.trnList[i].left = 0
+ that.trnList[i].bottom = 0
+ that.act_cart = true
+ setTimeout(() => {
+ that.act_cart = false
+ }, 500)
+ }, 1000)
+ }).exec();
+ let res = postCartAdd({
+ ...data
+ }).then((res, err) => {
+ this.cartFn()
+ uni.showToast({
+ title: "加入成功",
+ duration: 1000,
+
+ })
+ }).catch(err => {
+ // this.act_cart = false
+ uni.showToast({
+ title: err,
+ icon: "none",
+ duration: 1000,
+ })
+ })
+ setTimeout(() => {
+ that.act_cart = false
+ }, 500)
+ } else {
+ this.skuform = item
+ this.showcartpop = true
+ const keys = Object.keys(item.sku);
+ const firstKey = keys[0];
+
+
+ // console.log(keys[0])
+ this.skusize = keys[0]
+ // console.log(this.skuform)
}
-
- let that = this
- // return
-
- uni.createSelectorQuery().in(this).select(`.act_class${i}`).boundingClientRect(data1 => {
- that.trnList[i].left = this.cartTagInfo.left - data1.left;
- that.trnList[i].bottom = this.cartTagInfo.top - data1.top;
- console.log(that.trnList[i])
- let timer = setTimeout(() => {
- that.trnList[i].left = 0
- that.trnList[i].bottom = 0
- that.act_cart = true
- setTimeout(() => {
- that.act_cart = false
- }, 500)
- }, 1000)
- }).exec();
- let res = postCartAdd({
- ...data
- }).then((res, err) => {
- this.cartFn()
- uni.showToast({
- title: "加入成功",
- duration: 1000,
-
- })
- }).catch(err => {
- // this.act_cart = false
- uni.showToast({
- title: err,
- icon: "none",
- duration: 1000,
- })
- })
- setTimeout(() => {
- that.act_cart = false
- }, 500)
- // let that = this
- // uni.createSelectorQuery().in(this).select(`.act_class${i}`).boundingClientRect(data1 => {
- // that.trnList[i].left = this.cartTagInfo.left - data1.left + 'px';
- // that.trnList[i].bottom = this.cartTagInfo.top - data1.top + 'px';
- // console.log(that.trnList[i])
+ return
- // }).exec();
- // this.tot_price += Number(price)
},
all(index) {
this.showPop = false
@@ -751,11 +797,49 @@
display: flex;
justify-content: space-between;
flex-direction: column;
+
+ .sku_goods_tit {
+ font-size: 30rpx;
+ width: 60vw;
+ /* 容器的宽度 */
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ .sku_goods_price {
+ color: red;
+ font-size: 30rpx;
+ font-weight: bold;
+ }
}
// justify-content;
}
+ .sku_size {
+ margin: 40rpx 0;
+
+ .size_li {
+ display: inline-block;
+ // width: 100rpx;
+ padding: 5rpx 20rpx;
+ margin-right: 20rpx;
+ text-align: center;
+ color: black;
+ border: 1px solid #EBECEE;
+
+ // height: 2;
+ }
+
+ .act_size_li {
+ background-color: #FF5C2D;
+ color: white;
+ border: #FF5C2D 1px solid;
+
+ }
+ }
+
.sku_num {
display: flex;
justify-content: space-between;
@@ -770,6 +854,7 @@
text-align: center;
color: white;
border-radius: 80rpx;
+ margin-top: 20rpx;
}
}
diff --git a/pages/short_video/appSwiper/index.nvue b/pages/short_video/appSwiper/index.nvue
index 1daca8b..aed1c1e 100644
--- a/pages/short_video/appSwiper/index.nvue
+++ b/pages/short_video/appSwiper/index.nvue
@@ -149,7 +149,7 @@
-
+
{{goods.spu.store_name.slice(0,12)}}...