名片测试版
This commit is contained in:
parent
13b3015742
commit
c44f3779d2
@ -15,10 +15,10 @@ Page({
|
||||
personIntro: {},
|
||||
companyIntro: {},
|
||||
shareImg: '',
|
||||
phoneTxt: '',
|
||||
emailTxt: '',
|
||||
wechateTxt: '',
|
||||
addressTxt: '',
|
||||
phoneTxt: '未录入',
|
||||
emailTxt: '未录入',
|
||||
wechateTxt: '未录入',
|
||||
addressTxt: '未录入',
|
||||
viewInfo: {},
|
||||
forwardCount: '',
|
||||
imgUrl: app.urls.baseImgUrl,
|
||||
@ -134,6 +134,52 @@ Page({
|
||||
wx.stopPullDownRefresh({})
|
||||
})
|
||||
},
|
||||
//获取首页基础数据 电话 微信号 地址 邮箱
|
||||
getMainBaseUserInfo(userid) {
|
||||
var _self = this
|
||||
app.http.get(app.urls.getMainMoment.format({
|
||||
configColumnId: 'de7b5e22-64f9-4c60-a1f9-6ac004dfb9a8'
|
||||
}), {
|
||||
header: {
|
||||
token: app.globalData.token
|
||||
},
|
||||
data: {
|
||||
userId: userid
|
||||
}
|
||||
})
|
||||
.then(res => {
|
||||
if (res.data.length > 0) {
|
||||
res.data[0].list.forEach(it => {
|
||||
switch (it.name) {
|
||||
case 'phone':
|
||||
_self.setData({
|
||||
phoneTxt: it.value
|
||||
})
|
||||
break
|
||||
case 'wechat':
|
||||
_self.setData({
|
||||
wechateTxt: it.value
|
||||
})
|
||||
break
|
||||
case 'email':
|
||||
_self.setData({
|
||||
emailTxt: it.value
|
||||
})
|
||||
break
|
||||
case 'address':
|
||||
_self.setData({
|
||||
addressTxt: it.value
|
||||
})
|
||||
break
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
})
|
||||
},
|
||||
//获取首页栏目数据
|
||||
getMainMoment(datas, userid, index) {
|
||||
var _self = this
|
||||
var count = datas.length
|
||||
@ -475,23 +521,7 @@ Page({
|
||||
} else {
|
||||
area[i]['templateAreaFontStyle'] = 'italic'
|
||||
}
|
||||
if (area[i].templateAreaSource == 'phone') {
|
||||
self.setData({
|
||||
phoneTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'wechat') {
|
||||
self.setData({
|
||||
wechatTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'email') {
|
||||
self.setData({
|
||||
emailTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'address') {
|
||||
self.setData({
|
||||
addressTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'name') {
|
||||
if (area[i].templateAreaSource == 'name') {
|
||||
self.setData({
|
||||
nameTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
@ -512,6 +542,7 @@ Page({
|
||||
})
|
||||
app.globalData.userId = res.data.creator
|
||||
self.getMainColumn(res.data.creator)
|
||||
self.getMainBaseUserInfo(res.data.creator)
|
||||
}
|
||||
}).catch(res => {
|
||||
|
||||
@ -863,23 +894,7 @@ Page({
|
||||
} else {
|
||||
area[i]['templateAreaFontStyle'] = 'italic'
|
||||
}
|
||||
if (area[i].templateAreaSource == 'phone') {
|
||||
self.setData({
|
||||
phoneTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'wechat') {
|
||||
self.setData({
|
||||
wechatTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'email') {
|
||||
self.setData({
|
||||
emailTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'address') {
|
||||
self.setData({
|
||||
addressTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'name') {
|
||||
if (area[i].templateAreaSource == 'name') {
|
||||
self.setData({
|
||||
nameTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
@ -899,6 +914,7 @@ Page({
|
||||
tempUserId: res.data.creator
|
||||
})
|
||||
self.getMainColumn(res.data.creator) //获取当前用户的栏目
|
||||
self.getMainBaseUserInfo(res.data.creator)
|
||||
}
|
||||
})
|
||||
},
|
||||
@ -1029,23 +1045,7 @@ Page({
|
||||
} else {
|
||||
area[i]['templateAreaFontStyle'] = 'italic'
|
||||
}
|
||||
if (area[i].templateAreaSource == 'phone') {
|
||||
self.setData({
|
||||
phoneTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'wechat') {
|
||||
self.setData({
|
||||
wechatTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'email') {
|
||||
self.setData({
|
||||
emailTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'address') {
|
||||
self.setData({
|
||||
addressTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
} else if (area[i].templateAreaSource == 'name') {
|
||||
if (area[i].templateAreaSource == 'name') {
|
||||
self.setData({
|
||||
nameTxt: area[i].templateAreaFontValue
|
||||
})
|
||||
|
@ -60,28 +60,28 @@
|
||||
<image class="image" src="/images/ic_call_phone_icon.png"></image>
|
||||
<text>拨打电话</text>
|
||||
</view>
|
||||
<view>{{phoneTxt}}</view>
|
||||
<view style="flex:7;text-align: right;">{{phoneTxt}}</view>
|
||||
</view>
|
||||
<view class="mid-btn-box" bindtap="copyText" data-text="{{wechateTxt}}">
|
||||
<view class="mid-btn-title">
|
||||
<image class="image" src="/images/ic_wechart_icon.png"></image>
|
||||
<text>添加微信</text>
|
||||
</view>
|
||||
<view>{{wechateTxt}}</view>
|
||||
<view style="flex:7;text-align: right;">{{wechateTxt}}</view>
|
||||
</view>
|
||||
<view class="mid-btn-box" bindtap="copyText" data-text="{{emailTxt}}">
|
||||
<view class="mid-btn-title">
|
||||
<image class="image" src="/images/ic_email_icon.png"></image>
|
||||
<text>邮箱</text>
|
||||
</view>
|
||||
<view>{{emailTxt}}</view>
|
||||
<view style="flex:7;text-align: right;">{{emailTxt}}</view>
|
||||
</view>
|
||||
<view class="mid-btn-box" bindtap="copyText" data-text="{{addressTxt}}">
|
||||
<view class="mid-btn-title">
|
||||
<image class="image" src="/images/ic_address_icon.png"></image>
|
||||
<text>地址</text>
|
||||
</view>
|
||||
<view>{{addressTxt}}</view>
|
||||
<view style="flex:7;text-align: right;">{{addressTxt}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="good">
|
||||
|
@ -474,14 +474,17 @@ page {
|
||||
width: 100%;
|
||||
padding-bottom: 0px;
|
||||
}
|
||||
.image-32{
|
||||
|
||||
.image-32 {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
}
|
||||
.image-64{
|
||||
|
||||
.image-64 {
|
||||
width: 128rpx;
|
||||
height: 128rpx;
|
||||
}
|
||||
|
||||
.avatar-list {
|
||||
width: 45rpx;
|
||||
height: 45rpx;
|
||||
@ -572,7 +575,8 @@ page {
|
||||
.mid-btn-title {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
justify-content: flex-start;
|
||||
flex: 3;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
<!-- 纵向 -->
|
||||
<view class="cu-list menu card-menu shadow-lg radius" bindtap="choosePage" data-item="{{group}}"
|
||||
data-path="{{group.configColumnRowTargetUrl}}" data-type="{{group.configColumnRowTargetMode}}">
|
||||
<view class="cu-item arrow border-bottom-sm margin-top-sm" style="padding-bottom:10rpx;">
|
||||
<view class="cu-item arrow border-bottom-sm" style="padding-bottom:10rpx;padding-top:10rpx;">
|
||||
<image wx:if="{{group.configColumnPhoto.length>0}}" class="cu-avatar radius lg"
|
||||
src="{{imgUrl + group.configColumnPhoto}}" mode="scaleToFill"></image>
|
||||
<view class="content padding-left-xs" style="width:80%;">
|
||||
|
@ -173,11 +173,8 @@ Page({
|
||||
//跳转设置页面
|
||||
showSetting() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/mine/shop/addshop',
|
||||
url: '../../mine/setting/columnsetting'
|
||||
})
|
||||
// wx.navigateTo({
|
||||
// url: '../../mine/setting/columnsetting'
|
||||
// })
|
||||
},
|
||||
imgHeight(e) {
|
||||
var winWid = wx.getSystemInfoSync().windowWidth; //获取当前屏幕的宽度
|
||||
|
@ -130,7 +130,7 @@ map,
|
||||
right: 20rpx;
|
||||
bottom: 20rpx;
|
||||
padding: 20rpx;
|
||||
background: #0054bd;
|
||||
background: #E6B980;
|
||||
border-radius: 50%;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
|
@ -1,7 +1,7 @@
|
||||
var apis = {
|
||||
url: 'http://192.168.0.111:8091/systemcard/',
|
||||
userCenter: 'http://192.168.0.111:8091/systemcard/',
|
||||
baseImgUrl: 'http://192.168.0.111:8091/systemcard/route/file/download/true/',
|
||||
url: 'http://192.168.0.115:8091/systemcard/',
|
||||
userCenter: 'http://192.168.0.115:8091/systemcard/',
|
||||
baseImgUrl: 'http://192.168.0.115:8091/systemcard/route/file/download/true/',
|
||||
doSaveUserInfo: `app/miniapp/user/update-info`, //保存微信头像与名称
|
||||
doUpdatePhone: `app/miniapp/update-phone`, //绑定手机号 token, {phone:''} put
|
||||
doUploadImg: `app/file/uploadimage`, //上传图片
|
||||
|
Loading…
Reference in New Issue
Block a user