소스 검색

修改图片

achao 2 년 전
부모
커밋
c270edc296
2개의 변경된 파일36개의 추가작업 그리고 77개의 파일을 삭제
  1. 36 77
      xiaochengxu/pages/mySet/mySet.vue
  2. BIN
      xiaochengxu/static/imgs/mySet/share2.png

+ 36 - 77
xiaochengxu/pages/mySet/mySet.vue

@@ -8,7 +8,7 @@
 				</view>
 			</view>
 			<view class="position">
-				<image @click='selectCard' src="../../static/imgs/mySet/share.png" mode="widthFix" class="right-img">
+				<image @click='selectCard' src="../../static/imgs/mySet/share2.png" mode="widthFix" class="right-img" style="width: 55rpx;">
 				</image>
 				<image @click='selectCard1' src="../../static/imgs/mySet/ewm.png" mode="widthFix" class="right-img">
 				</image>
@@ -30,7 +30,7 @@
 			</view>
 		</view>
 		<u-popup :show="isShowCode" @close="isShowCode=false" mode="center" :round='10'>
-			<image style='margin:10px;' :src="selectCode" mode="widthFix"></image>
+			<image :src="selectCode" mode="widthFix"></image>
 		</u-popup>
 		<u-picker keyName="cardBusiness" :confirmType='"share"' :confirmText='"分享"' title="选择名片" @cancel="show=false"
 			closeOnClickOverlay @change="cardChange" :show="show" :columns="cardList"></u-picker>
@@ -111,12 +111,9 @@
 					uni.hideLoading()
 				}).then(res => {
 					this.cardList = [res.data.items]
-					if(res.data.items.length>0){
-						this.cardChange({
-							value: this.cardList[[0]]
-						})
-					}
-					
+					this.cardChange({
+						value: this.cardList[[0]]
+					})
 				})
 			} else {
 				uni.switchTab({
@@ -133,7 +130,7 @@
 			let imageUrl = this.poster
 			console.log("imageUrl", imageUrl)
 			if (res.from === 'button') {
-				let path = `/pages/mySet/lookCard?id=${that.currectData}`
+				let path = `/pages/mySet/lookCard?id=${that.currectData.id}`
 				return {
 					title: `${that.currectData.name}分享的名片~`,
 					path: path,
@@ -142,12 +139,20 @@
 			}
 			if (res.from === 'menu') {
 				return {
-					title: '我的',
+					title: '商通线上商城',
 					path: '/pages/tabBarPro/index/index',
 					imageUrl: this.popupshow ? imageUrl : ''
 				};
 			}
 		},
+		// 分享到朋友圈
+		onShareTimeline() {
+			return {
+				title: '商通线上商城',
+				path: '/pages/index/index',
+				imageUrl: 'https://cdn.uviewui.com/uview/swiper/1.jpg'
+			};
+		},
 		methods: {
 			handleHiddenShare() {
 				this.popupshow = false
@@ -199,7 +204,7 @@
 						y: 50,
 						size: 24,
 						color: '#000'
-				
+
 					},
 					{
 						type: 'text',
@@ -209,7 +214,7 @@
 						y: 55,
 						size: 18,
 						color: '#666666'
-				
+
 					},
 					{
 						type: 'text',
@@ -219,7 +224,7 @@
 						y: 95,
 						size: 18,
 						color: '#000'
-				
+
 					},
 					{
 						type: 'image',
@@ -282,76 +287,49 @@
 					},
 					{
 						type: 'image',
-						path: '../../static/imgs/card/bgc1.png',
+						path: '../../static/imgs/card/bg3.png',
 						use: 'bg1',
-						x: 3,
+						x: 0,
 						y: 243,
-						width: 240,
+						width: 370,
 						height: 67
 					},
 					{
 						type: 'image',
-						path: '../../static/imgs/card/bgc2.png',
+						path: '../../static/imgs/card/bg4.png',
 						use: 'bg2',
-						x: 225,
+						x: 355,
 						y: 243,
-						width: 278,
+						width: 150,
 						height: 67
 					},
 					{
 						type: 'image',
 						path: '../../static/imgs/card/home.png',
 						use: 'home',
-						x: 30,
+						x: 65,
 						y: 260,
 						width: 33,
 						height: 33
 					},
+					{
+						type: 'text',
+						text: this.currectData.classifyName ? this.currectData.classifyName : '默',
+						use: 'classify',
+						x: 145,
+						y: 263,
+						size: 34,
+						color: '#fff'
+					},
 					{
 						type: 'image',
 						path: '../../static/imgs/card/share.png',
 						use: 'share',
-						x: 90,
+						x: 235,
 						y: 263,
 						width: 33,
 						height: 28
 					},
-					{
-						type: 'image',
-						path: '../../static/imgs/card/ewm.png',
-						use: 'code',
-						x: 150,
-						y: 263,
-						width: 32,
-						height: 32
-					},
-					{
-						type: 'text',
-						text: '置顶',
-						use: 'top',
-						x: 280,
-						y: 265,
-						size: 24,
-						color: '#fff'
-					},
-					{
-						type: 'text',
-						text: '删除',
-						use: 'del',
-						x: 350,
-						y: 265,
-						size: 24,
-						color: '#fff'
-					},
-					{
-						type: 'text',
-						text: '编辑',
-						use: 'edit',
-						x: 420,
-						y: 265,
-						size: 24,
-						color: '#fff'
-					},
 				]
 				console.log(this.currectData.cuttentTemplate, 111111)
 				for (var i = 0; i < data.length; i++) {
@@ -364,15 +342,6 @@
 								data[i].use === 'remark-icon') {
 								data[i].x = 30
 							}
-							if (data[i].use === 'address-icon') {
-								data[i].path = '../../static/imgs/card/address3.png'
-							}
-							if (data[i].use === 'phone-icon') {
-								data[i].path = '../../static/imgs/card/phone3.png'
-							}
-							if (data[i].use === 'remark-icon') {
-								data[i].path = '../../static/imgs/card/remark3.png'
-							}
 							if (data[i].use === 'post') {
 								data[i].x = 100
 							}
@@ -443,15 +412,6 @@
 								data[i].x = 25
 								data[i].y = 120
 							}
-							if (data[i].use === 'address-icon') {
-								data[i].path = '../../static/imgs/card/address2.png'
-							}
-							if (data[i].use === 'phone-icon') {
-								data[i].path = '../../static/imgs/card/phone2.png'
-							}
-							if (data[i].use === 'remark-icon') {
-								data[i].path = '../../static/imgs/card/remark2.png'
-							}
 							if (data[i].use === 'address-icon' ||
 								data[i].use === 'phone-icon' ||
 								data[i].use === 'remark-icon') {
@@ -471,8 +431,7 @@
 				}
 				this.canvasData = {
 					clicknum: this.clicknum++,
-					list: data,
-					page:'myInfo'
+					list: data
 				}
 			},
 			posterError(err) {

BIN
xiaochengxu/static/imgs/mySet/share2.png