更新
This commit is contained in:
parent
ce9f505750
commit
4d0b2e06ac
@ -2,8 +2,8 @@
|
||||
"name" : "惠农生活",
|
||||
"appid" : "__UNI__3A527D1",
|
||||
"description" : "",
|
||||
"versionName" : "2.0.33",
|
||||
"versionCode" : 2033,
|
||||
"versionName" : "2.0.34",
|
||||
"versionCode" : 2034,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
@ -88,9 +88,9 @@
|
||||
<text class="money-price">¥{{goods.productAttr.price}}</text>
|
||||
<text class="money-unit">/份</text>
|
||||
</view>
|
||||
<view v-if="goods.productAttr.show_svip_price" class="vipImg">
|
||||
<!-- <view v-if="goods.productAttr.show_svip_price" class="vipImg">
|
||||
<image :src="`${domain}/static/images/svip.png`"></image>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class='carnum acea-row row-center-wrapper'>
|
||||
@ -231,6 +231,7 @@
|
||||
import {
|
||||
toLogin
|
||||
} from '@/libs/login.js';
|
||||
import { Toast } from '../../libs/uniApi';
|
||||
const app = getApp();
|
||||
export default {
|
||||
props: {
|
||||
@ -503,6 +504,12 @@
|
||||
// //打开属性
|
||||
// that.DefaultSelect(goods)
|
||||
cartProductAttr(id).then(res => {
|
||||
if(res.data.attr.length==0)return Toast('此商品为单规格商品');
|
||||
const sku = {}
|
||||
res.data.attrValue.forEach((itemn) => {
|
||||
if(this.tabsCurr==2) itemn.price = itemn.wholesale_price; //把价格设置为批发价
|
||||
sku[itemn.sku] = itemn;
|
||||
})
|
||||
goods.attr = res.data.attr;
|
||||
goods.attrValue = res.data.attrValue
|
||||
that.attrValue = goods.productAttr.sku
|
||||
@ -510,10 +517,6 @@
|
||||
that.goods = JSON.parse((JSON.stringify(goods)));
|
||||
that.currSku = goods.productAttr.sku.split(",");
|
||||
that.$set(that.attr, 'productAttr', res.data.attr);
|
||||
const sku = {}
|
||||
res.data.attrValue.forEach((itemn) => {
|
||||
sku[itemn.sku] = itemn;
|
||||
})
|
||||
that.$set(that, 'productValue', sku);
|
||||
let productSelect = sku[that.attrValue];
|
||||
that.isOpen = that.attr.cartAttr = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user