Browse Source

测试代码

zyh
gaoxs 5 years ago
parent
commit
38aa323e66
  1. 2
      assets/css/style.css
  2. 2
      assets/css/style.css.map
  3. 18
      assets/css/style.less
  4. 17
      pages/shop/GoodsCon/index.vue

2
assets/css/style.css

File diff suppressed because one or more lines are too long

2
assets/css/style.css.map

File diff suppressed because one or more lines are too long

18
assets/css/style.less

@ -194,7 +194,7 @@ page {
height: 0.36*100rpx; height: 0.36*100rpx;
line-height: 0.46*100rpx; line-height: 0.46*100rpx;
font-size: 0.26*100rpx; font-size: 0.26*100rpx;
color:#ea3526; color: #ea3526;
border-radius: 0.24*100rpx 0.03*100rpx 0.24*100rpx 0.03*100rpx; border-radius: 0.24*100rpx 0.03*100rpx 0.24*100rpx 0.03*100rpx;
} }
@ -1437,7 +1437,8 @@ page {
width: 5.3*100rpx; width: 5.3*100rpx;
text-align: left; text-align: left;
} }
.index .wrapper .title .text-center .name{
.index .wrapper .title .text-center .name {
justify-content: center; justify-content: center;
} }
@ -8584,3 +8585,16 @@ page {
.text .name .icon-shoucang { .text .name .icon-shoucang {
color: #ea3526 !important; color: #ea3526 !important;
} }
rich-text {
width: 100%;
display: block;
img,
image {
display: block;
width: 100%;
}
}

17
pages/shop/GoodsCon/index.vue

@ -41,11 +41,12 @@
<view class="iconfont icon-jiantou"></view> <view class="iconfont icon-jiantou"></view>
</view> </view>
</view> </view>
<div class="attribute acea-row row-between-wrapper"> <div class="attribute acea-row row-between-wrapper">
<div> <div>
运费<span class="atterTxt">{{ tempName }}</span> 运费
<span class="atterTxt">{{ tempName }}</span>
</div>
</div> </div>
</div>
<view class="attribute acea-row row-between-wrapper" @click="selecAttrTap"> <view class="attribute acea-row row-between-wrapper" @click="selecAttrTap">
<view> <view>
@ -274,8 +275,7 @@ export default {
systemStore: {}, systemStore: {},
qqmapsdk: null, qqmapsdk: null,
productConClass: "product-con", productConClass: "product-con",
tempName: '全国包邮' tempName: "全国包邮"
}; };
}, },
computed: mapGetters(["isLogin", "location"]), computed: mapGetters(["isLogin", "location"]),
@ -354,7 +354,12 @@ export default {
uni.showLoading({ title: "加载中", mask: true }); uni.showLoading({ title: "加载中", mask: true });
getProductDetail(that.id, from) getProductDetail(that.id, from)
.then(res => { .then(res => {
res.data.storeInfo.description.replace(
/\<img/gi,
'<img style="max-width:100%;height:auto;"'
);
console.log(res); console.log(res);
that.$set(that, "storeInfo", res.data.storeInfo); that.$set(that, "storeInfo", res.data.storeInfo);
// attr attr // attr attr
that.$set(that.attr, "productAttr", res.data.productAttr); that.$set(that.attr, "productAttr", res.data.productAttr);

Loading…
Cancel
Save