twt 10 months ago
parent
commit
c1b8427417
3 changed files with 71 additions and 3 deletions
  1. 22 1
      pages/activity/jkDetail.vue
  2. 48 1
      pages/user/historyDetail.vue
  3. 1 1
      utils/request.js

+ 22 - 1
pages/activity/jkDetail.vue

@@ -266,6 +266,7 @@
 				 	<image src="../../static/timg/icon_wxhy.png" mode="" class="shareBimg"></image>
 				 	<view class="bottomTxtshare">分享</view>
 				 </button>
+				 
 				 <view @click="gowp">
 					 <img src="../../static/timg/icon_haibao.png" alt="" class="shareBimg">
 					 <view class="bottomTxtshare">生成海报</view> 
@@ -356,7 +357,7 @@
 				 focusState2:false,
 				 focusState3:false,
 				 focusState4:false,
-				 shareShow:false,
+				 shareShow:true,
 				 ext:'',
 				 shareId:'',
 				 scene:'',
@@ -422,6 +423,11 @@
 			   clearInterval(this.ticker);
 			 }
 		   
+		    /* uni.showShareMenu({
+			 withShareTicket: true,
+			 menus: ['shareAppMessage', 'shareTimeline'], // 自定义分享面板的菜单项
+		   }); */
+		
 		   
 		},
 		onShow() {
@@ -1086,6 +1092,21 @@
 				}
 			}
 		},
+		
+		onShareTimeline() {
+			if(this.info.groupType){
+				//console.log(res.target.dataset.obj.ID)
+				var url= 'pages/subPack/jkDetail?id=' + this.collectingID+'&shareId='+this.userInfo.openId+'&shareName='+this.userInfo.nickName+'&groupID='+res.target.dataset.obj.ID
+			}else{
+				var url= 'pages/activity/jkDetail?id=' + this.collectingID+'&shareId='+this.userInfo.openId
+			}
+		    return {
+		      title: this.info.activityName,
+		      query:url,
+			  imageUrl:'http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png',
+		    }
+		  }
+		
 	}
 </script>
 

+ 48 - 1
pages/user/historyDetail.vue

@@ -150,6 +150,9 @@
 					<view class="informationNum" v-if="orderData.billsheet.Comment">{{orderData.billsheet.Comment}}
 					</view>
 				</view>
+				<view class="imgListBox">
+					<image class="pictureImg" @click="seeImg(index)" :src="item.imgPath" mode="" v-for="(item,index) in imgList"></image>
+				</view>
 
 			</view>
 
@@ -325,6 +328,8 @@
 				iStatusBarHeight:'',
 				ShowSetting:'',
 				goodsMoney:'',
+				Picture:false,//图片
+				imgList:[]
 			}
 		},
 		onLoad(opt) {
@@ -355,6 +360,26 @@
 		},
 
 		methods: {
+			seeImg(index){
+				console.log(index)
+				var imgs=[]
+				this.imgList.forEach(item=>{
+					imgs.push(item.imgPath)
+				})
+				uni.previewImage({
+					urls:imgs ,
+					current: index,
+					longPressActions: {
+						itemList: ['发送给朋友', '保存图片', '收藏'],
+						success: function(data) {
+							console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
+						},
+						fail: function(err) {
+							console.log(err.errMsg);
+						}
+					}
+				});
+			},
 			//显示权限
 			showPower() {
 				this.$http('openweiXinCardInfoController/getShowSetting', {
@@ -436,13 +461,27 @@
 						if (item.fieldValue == 'goodsMoney') {
 							this.goodsMoney = item.isChecked
 						}
-                        
+                        if(item.fieldValue =='Picture'){
+							this.Picture = item.isChecked
+							if(item.isChecked){
+								this.queryBillInsurancePolicy()
+							}
+						}
 
 
 					})
 
 				})
 			},
+			queryBillInsurancePolicy(){
+				this.$http('openweiXinCardInfoController/queryBillInsurancePolicy', {
+				   sheetID:this.id
+				}, 'GET').then(res => {
+					this.imgList=res.data
+				
+				
+				})
+			},
 			//评价权限
 			myPower() {
 				this.$http('openMiniEvaluate/getEvaluateSetting', {
@@ -620,6 +659,14 @@
 </script>
 
 <style scoped>
+	.imgListBox{
+		display: flex;
+		flex-wrap: wrap;
+	}
+	.pictureImg{
+		width:170rpx;height: 170rpx;
+		margin: 2rpx;
+	}
 	.SalePrice{
 		    color: #3C3C3C;
 			font-weight: 600;

+ 1 - 1
utils/request.js

@@ -10,7 +10,7 @@ const extConfig = uni.getExtConfigSync();
 console.log(extConfig)
 const baseUrl=extConfig.url+'/'
 
-//const baseUrl='http://192.168.0.178:20187/'
+//const baseUrl='http://192.168.0.14:20187/'
 //const baseUrl='https://store-api.qdbtl.cn/'
 //const baseUrl='https://apidms.66km.com/'