|
@@ -66,15 +66,15 @@
|
|
|
<view class="mealName">项目名称</view>
|
|
|
<view class="mealTopRight">
|
|
|
<view>数量</view>
|
|
|
- <view style="padding-left: 44rpx;">有效期</view>
|
|
|
+ <view style="padding-left: 60rpx;">有效期</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="itemlinebOX">
|
|
|
<view class="itemline" v-for="(item,index) in info.itemPackTimesDetails">
|
|
|
<view class="itemname">{{item.flowName}}</view>
|
|
|
<view>{{item.flowQty}}</view>
|
|
|
- <view v-if="item.expireNumber">{{item.expireNumber}}个月</view>
|
|
|
- <view v-else>永久</view>
|
|
|
+ <view class="expireNumber" v-if="item.expireNumber">{{item.expireNumber}}个月</view>
|
|
|
+ <view class="expireNumber" v-else>永久</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -83,15 +83,15 @@
|
|
|
<view class="mealName">商品名称</view>
|
|
|
<view class="mealTopRight">
|
|
|
<view>数量</view>
|
|
|
- <view style="padding-left: 44rpx;">有效期</view>
|
|
|
+ <view style="padding-left: 60rpx;">有效期</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="itemlinebOX">
|
|
|
<view class="itemline" v-for="(item,index) in info.goodsPackTimesDetails">
|
|
|
<view class="itemname">{{item.flowName}}</view>
|
|
|
<view>{{item.flowQty}}</view>
|
|
|
- <view v-if="item.expireNumber">{{item.expireNumber}}个月</view>
|
|
|
- <view v-else>永久</view>
|
|
|
+ <view class="expireNumber" v-if="item.expireNumber">{{item.expireNumber}}个月</view>
|
|
|
+ <view class="expireNumber" v-else>永久</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -109,10 +109,14 @@
|
|
|
<image src="../../static/timg/home.png" mode="" class="bottomImg"></image>
|
|
|
<view class="bottomTxt">首页</view>
|
|
|
</view>
|
|
|
- <view class="bottomImgBox" style="margin-left: 20rpx;">
|
|
|
+ <!-- <view class="bottomImgBox" style="margin-left: 20rpx;" @click="sharewx">
|
|
|
<image src="../../static/timg/share.png" mode="" class="bottomImg"></image>
|
|
|
<view class="bottomTxt">分享</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
+ <button open-type="share" class="bottomImgBox shareBtn" >
|
|
|
+ <image src="../../static/timg/share.png" mode="" class="bottomImg"></image>
|
|
|
+ <view class="bottomTxt">分享</view>
|
|
|
+ </button>
|
|
|
<view class="bottomBtn" @click="ljbuy">立即购买</view>
|
|
|
|
|
|
</view>
|
|
@@ -211,16 +215,31 @@
|
|
|
this.id=opt.id;
|
|
|
//this.userInfo = uni.getStorageSync("userInfo");
|
|
|
this.userInfo=this.$store.state.userInfo;
|
|
|
- this.wxOpenData=this.$store.state.wxOpenData;
|
|
|
- this.openGoodsDetailById();
|
|
|
this.ext=this.$common.getExtStoreId();
|
|
|
+ if(this.userInfo){
|
|
|
+ this.wxOpenData=this.$store.state.wxOpenData;
|
|
|
+ this.openGoodsDetailById();
|
|
|
+ }else{
|
|
|
+ this.$common.automaticlogin().then(val => {
|
|
|
+ this.userInfo=this.$store.state.userInfo;
|
|
|
+ this.wxOpenData=this.$store.state.wxOpenData;
|
|
|
+ this.openGoodsDetailById();
|
|
|
+ console.log(this.userInfo)
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
onShow() {
|
|
|
this.shopInfo=this.$store.state.ckshopInfo;
|
|
|
|
|
|
- console.log(this.shopInfo)
|
|
|
+ //console.log(this.shopInfo)
|
|
|
},
|
|
|
methods: {
|
|
|
+ sharewx(){
|
|
|
+
|
|
|
+ },
|
|
|
ckShop(){
|
|
|
uni.navigateTo({
|
|
|
url:'ckshopList?goodsId='+this.id
|
|
@@ -342,7 +361,30 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- }
|
|
|
+ },
|
|
|
+ onShareAppMessage(res) {
|
|
|
+ var img='';
|
|
|
+ if(this.info.ImgList.length>0){
|
|
|
+ img=this.info.ImgList[0].url
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ title: this.info.name,
|
|
|
+ imageUrl:img,
|
|
|
+ path: 'pages/shop/goodsDetail?id=' + this.id,
|
|
|
+ success(res){
|
|
|
+ uni.showToast({
|
|
|
+ title:'分享成功'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail(res){
|
|
|
+ uni.showToast({
|
|
|
+ title:'分享失败',
|
|
|
+ icon:'none',
|
|
|
+ duration: 3000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -439,6 +481,16 @@
|
|
|
font-size: 24rpx;
|
|
|
margin: 0 4rpx;
|
|
|
}
|
|
|
+.goodsnumInput{
|
|
|
+ width: 88rpx;
|
|
|
+ height: 44rpx;
|
|
|
+ background: #F4F5F7;
|
|
|
+ line-height: 44rpx;
|
|
|
+ text-align: center;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #333333;
|
|
|
+ font-size: 24rpx;
|
|
|
+}
|
|
|
.numJsbox{
|
|
|
display: flex;
|
|
|
}
|
|
@@ -550,6 +602,35 @@
|
|
|
padding-top: 20rpx;
|
|
|
padding-left: 40rpx;
|
|
|
}
|
|
|
+.shareBtn{
|
|
|
+ width: 100rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
+}
|
|
|
+button::after{
|
|
|
+ border: none;
|
|
|
+}
|
|
|
+button{
|
|
|
+ position: relative;
|
|
|
+ display: block;
|
|
|
+ margin-left: 0;
|
|
|
+ margin-right: 0;
|
|
|
+ padding-left: 0px;
|
|
|
+ padding-right: 0px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ // font-size: 18px;
|
|
|
+ text-align: center;
|
|
|
+ text-decoration: none;
|
|
|
+ // line-height: 1;
|
|
|
+ line-height: 1.35;
|
|
|
+ // border-radius: 5px;
|
|
|
+ -webkit-tap-highlight-color: transparent;
|
|
|
+ overflow: hidden;
|
|
|
+ color: #000000;
|
|
|
+ background-color: #fff;
|
|
|
+
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
.bottomBtn{
|
|
|
width: 450rpx;
|
|
|
height: 74rpx;
|
|
@@ -755,6 +836,10 @@
|
|
|
color: #333333;
|
|
|
font-size: 26rpx;
|
|
|
}
|
|
|
+.expireNumber{
|
|
|
+ width: 110rpx;
|
|
|
+ text-align: right;
|
|
|
+}
|
|
|
.authorizBox{
|
|
|
width: 100vw;
|
|
|
height: 100vh;
|