Commit 561a7ca3 authored by 黄媛媛's avatar 黄媛媛

商品分销和查看商品的规格不能滚动问题

parent 464865a2
......@@ -24,7 +24,7 @@
<view class="sku_close"><u-icon name="cross" color="#9F9F9F" @click="cloGood()" size="40" /></view>
</view>
</view>
<view class="sku-box">
<scroll-view scroll-y class="sku-box" >
<view class="sku-item" v-for="(x, i) in g.attr_groups" :key="i">
<view class="sku-title">{{ x.attr_group_name }}</view>
<view>
......@@ -44,7 +44,7 @@
</view>
</view>
</view>
</view>
</scroll-view>
<view class="count-box">
<text class="label">购买数量</text>
<u-number-box :disabled="!skuObj" v-model="gc" :min="1" :max="goodamount" @change="valChange"></u-number-box>
......
......@@ -218,6 +218,52 @@ export default {
this.$refs.uToast.show({
title: "正在开发,敬请期待!"
});
// wx.getSetting({
// success(res) {
// console.log("vres.authSetting['scope.address']:",res.authSetting['scope.address'])
// if (res.authSetting['scope.address']) {
// console.log("111")
// wx.chooseAddress({
// success(res) {
// console.log(res.userName)
// console.log(res.postalCode)
// console.log(res.provinceName)
// console.log(res.cityName)
// console.log(res.countyName)
// console.log(res.detailInfo)
// console.log(res.nationalCode)
// console.log(res.telNumber)
// }
// })
// // 用户已经同意小程序使用录音功能,后续调用 wx.startRecord 接口不会弹窗询问
// } else {
// if (res.authSetting['scope.address'] == false) {
// console.log("222")
// wx.openSetting({
// success(res) {
// console.log(res.authSetting)
// }
// })
// } else {
// console.log("eee")
// wx.chooseAddress({
// success(res) {
// console.log(res.userName)
// console.log(res.postalCode)
// console.log(res.provinceName)
// console.log(res.cityName)
// console.log(res.countyName)
// console.log(res.detailInfo)
// console.log(res.nationalCode)
// console.log(res.telNumber)
// }
// })
// }
// }
// }
// })
},
ManualAdd() {
//手动添加
......
......@@ -58,7 +58,7 @@
>
</view>
</view>
<view class="right u-skeleton-rect" @click="openShare">
<view class="right u-skeleton-rect" @click="openShare" v-if="isAllowShare==1">
<image
src="@/static/images/icon/icon-share.png"
class="share-icon"
......@@ -293,6 +293,7 @@ export default {
CommentGrade: 0,
},
showAuth: false,
isAllowShare:1,
u: {},
};
},
......@@ -421,6 +422,12 @@ export default {
console.log(res, "详情");
if (res.resultCode == 1) {
this.g = res.data.goods;
this.isAllowShare = res.data.goods.isAllowShare; //1为可以分享 2为不能分享
if(this.isAllowShare==2){ //隐藏分享的按钮
wx.hideShareMenu({
menus: ['shareAppMessage', 'shareTimeline']
})
}
this.g.pic_url.forEach((x) => {
this.imgs.push(x.pic_url);
});
......@@ -439,10 +446,10 @@ export default {
}
var richtext = this.g.detail;
richtext = richtext.replace(
/<img/g,
'< img style="margin-top:-4px;width:100%"'
);
// richtext = richtext.replace(
// /<img/g,
// '< img style="margin-top:-4px;width:100%"'
// );
this.detailContent = richtext;
this.loading = false;
this.initComments();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment