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