|
@@ -11,13 +11,13 @@
|
|
<view class="left flex">
|
|
<view class="left flex">
|
|
<uni-icons type="search" size="24" color="#9199af"></uni-icons>
|
|
<uni-icons type="search" size="24" color="#9199af"></uni-icons>
|
|
<text class="search-val"> {{searchVal?searchVal:'搜索名片'}}</text>
|
|
<text class="search-val"> {{searchVal?searchVal:'搜索名片'}}</text>
|
|
- <uni-icons type="closeempty" size="24" @click.native.stop="delSearchVal"
|
|
|
|
- v-if="searchVal"></uni-icons>
|
|
|
|
|
|
+ <uni-icons type="closeempty" size="24" @click.native.stop="delSearchVal" v-if="searchVal">
|
|
|
|
+ </uni-icons>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="right">
|
|
<view class="right">
|
|
- <uni-icons type="closeempty" size="24" @click.native.stop="delVal" color="#9199af"
|
|
|
|
- v-if="searchVal"></uni-icons>
|
|
|
|
|
|
+ <image style='width:32rpx;height:32rpx;' v-if="searchVal" @click.native.stop="delSearchVal"
|
|
|
|
+ src="../../static/imgs/card/searchdel.png" mode="widthFix"></image>
|
|
<uni-icons type="mic" size="24" @click.native.stop="micOpen" color="#9199af"></uni-icons>
|
|
<uni-icons type="mic" size="24" @click.native.stop="micOpen" color="#9199af"></uni-icons>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -38,10 +38,6 @@
|
|
@init="mescrollInit" @up="upCallback" @down="downCallback">
|
|
@init="mescrollInit" @up="upCallback" @down="downCallback">
|
|
<view v-for='(item,index) in cardHolderList' @longpress="longpress" class="item flex">
|
|
<view v-for='(item,index) in cardHolderList' @longpress="longpress" class="item flex">
|
|
<!-- <view class="card-list-item" style="background:red"> -->
|
|
<!-- <view class="card-list-item" style="background:red"> -->
|
|
- <u-checkbox-group v-if='islongPress' placement="column" @change="checkboxChange($event,index)">
|
|
|
|
- <u-checkbox :name='index+1' :checked='item.checked' :customStyle="{marginBottom: '8px'}">
|
|
|
|
- </u-checkbox>
|
|
|
|
- </u-checkbox-group>
|
|
|
|
<view class="card-list-item"
|
|
<view class="card-list-item"
|
|
:style="'background:url('+item.currentBackground+');background-size:100% 100%'">
|
|
:style="'background:url('+item.currentBackground+');background-size:100% 100%'">
|
|
<view class="card-content style1" v-if="item.cuttentTemplate==1">
|
|
<view class="card-content style1" v-if="item.cuttentTemplate==1">
|
|
@@ -58,18 +54,27 @@
|
|
{{item.companyName}}
|
|
{{item.companyName}}
|
|
</view>
|
|
</view>
|
|
<view class="row3 flex" @click="">
|
|
<view class="row3 flex" @click="">
|
|
- <uni-icons type="map-filled" size="20" style="margin-right: 20rpx;"
|
|
|
|
- color="#5e6d82"></uni-icons>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
|
|
|
|
+ height="16px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="row4 flex">
|
|
<view class="row4 flex">
|
|
- <uni-icons type="phone-filled" size="20" style="margin-right: 20rpx;"
|
|
|
|
- color="#5e6d82"></uni-icons>{{ item.phone }}
|
|
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
|
|
|
|
+ height="13px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{ item.phone }}</view>
|
|
</view>
|
|
</view>
|
|
- <view @click='remarkEdit(item)' class="row2" style="color: #808080">
|
|
|
|
- <uni-icons type="redo" size="20" style="margin-right: 20rpx;"></uni-icons>
|
|
|
|
- <text>{{item.remark?item.remark:'单击添加备注'}}</text>
|
|
|
|
|
|
+ <view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
|
|
|
|
+ height="12px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{item.remark?item.remark:'单击添加备注'}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <u-checkbox-group v-if='islongPress' placement="column"
|
|
|
|
+ @change="checkboxChange($event,index)">
|
|
|
|
+ <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1'
|
|
|
|
+ :checked='item.checked' :customStyle="{marginBottom: '8px'}">
|
|
|
|
+ </u-checkbox>
|
|
|
|
+ </u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
<view class="card-content style1 flex-between" v-if="item.cuttentTemplate==2">
|
|
<view class="card-content style1 flex-between" v-if="item.cuttentTemplate==2">
|
|
<view class="right">
|
|
<view class="right">
|
|
@@ -81,16 +86,19 @@
|
|
{{item.companyName}}
|
|
{{item.companyName}}
|
|
</view>
|
|
</view>
|
|
<view class="row3 flex">
|
|
<view class="row3 flex">
|
|
- <uni-icons type="map-filled" size="20" style="margin-right: 20rpx;"
|
|
|
|
- color="#5e6d82"></uni-icons>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/address3.png" width="13px"
|
|
|
|
+ height="16px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="row4 flex">
|
|
<view class="row4 flex">
|
|
- <uni-icons type="phone-filled" size="20" style="margin-right: 20rpx;"
|
|
|
|
- color="#5e6d82"></uni-icons>{{ item.phone }}
|
|
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/phone3.png" width="12px"
|
|
|
|
+ height="13px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{ item.phone }}</view>
|
|
</view>
|
|
</view>
|
|
- <view @click='remarkEdit(item)' class="row2" style="color: #808080">
|
|
|
|
- <uni-icons type="redo" size="20" style="margin-right: 20rpx;"></uni-icons>
|
|
|
|
- <text>{{item.remark?item.remark:'单击添加备注'}}</text>
|
|
|
|
|
|
+ <view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/remark3.png" width="10px"
|
|
|
|
+ height="12px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{item.remark?item.remark:'单击添加备注'}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="left">
|
|
<view class="left">
|
|
@@ -99,6 +107,12 @@
|
|
<u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px"
|
|
<u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px"
|
|
height="66px" shape="circle" v-else></u--image>
|
|
height="66px" shape="circle" v-else></u--image>
|
|
</view>
|
|
</view>
|
|
|
|
+ <u-checkbox-group v-if='islongPress' placement="column"
|
|
|
|
+ @change="checkboxChange($event,index)">
|
|
|
|
+ <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1'
|
|
|
|
+ :checked='item.checked' :customStyle="{marginBottom: '8px'}">
|
|
|
|
+ </u-checkbox>
|
|
|
|
+ </u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
<view class="card-content style2" v-if="item.cuttentTemplate==3">
|
|
<view class="card-content style2" v-if="item.cuttentTemplate==3">
|
|
<view class="top">
|
|
<view class="top">
|
|
@@ -119,19 +133,28 @@
|
|
</view>
|
|
</view>
|
|
<view class="right">
|
|
<view class="right">
|
|
<view class="row1 flex">
|
|
<view class="row1 flex">
|
|
- <uni-icons type="map-filled" size="20" style="margin-right: 20rpx;"
|
|
|
|
- color="#5e6d82"></uni-icons>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
|
|
|
|
+ height="16px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="row2 flex">
|
|
<view class="row2 flex">
|
|
- <uni-icons type="phone-filled" size="20" style="margin-right: 20rpx;"
|
|
|
|
- color="#5e6d82"></uni-icons>{{ item.phone }}
|
|
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
|
|
|
|
+ height="13px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{ item.phone }}</view>
|
|
</view>
|
|
</view>
|
|
- <view @click='remarkEdit(item)' class="row2" style="color: #808080">
|
|
|
|
- <uni-icons type="redo" size="20" style="margin-right: 20rpx;"></uni-icons>
|
|
|
|
- <text>{{item.remark?item.remark:'单击添加备注'}}</text>
|
|
|
|
|
|
+ <view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
|
|
|
|
+ height="12px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{item.remark?item.remark:'单击添加备注'}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <u-checkbox-group v-if='islongPress' placement="column"
|
|
|
|
+ @change="checkboxChange($event,index)">
|
|
|
|
+ <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1'
|
|
|
|
+ :checked='item.checked' :customStyle="{marginBottom: '8px'}">
|
|
|
|
+ </u-checkbox>
|
|
|
|
+ </u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
<view class="card-content style2" v-if="item.cuttentTemplate==4">
|
|
<view class="card-content style2" v-if="item.cuttentTemplate==4">
|
|
<view class="top">
|
|
<view class="top">
|
|
@@ -153,19 +176,30 @@
|
|
</view>
|
|
</view>
|
|
<view class="right">
|
|
<view class="right">
|
|
<view class="row1 flex">
|
|
<view class="row1 flex">
|
|
- <uni-icons type="map-filled" size="20" style="margin-right: 20rpx;"
|
|
|
|
- color="#5e6d82"></uni-icons>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/address2.png" width="13px"
|
|
|
|
+ height="16px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="row2 flex">
|
|
<view class="row2 flex">
|
|
- <uni-icons type="phone-filled" size="20" style="margin-right: 20rpx;"
|
|
|
|
- color="#5e6d82"></uni-icons>{{ item.phone }}
|
|
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/phone2.png" width="12px"
|
|
|
|
+ height="13px"></u--image>
|
|
|
|
+ <view class='icon-text'>{{ item.phone }}</view>
|
|
</view>
|
|
</view>
|
|
- <view @click='remarkEdit(item)' class="row2" style="color: #808080">
|
|
|
|
- <uni-icons type="redo" size="20" style="margin-right: 20rpx;"></uni-icons>
|
|
|
|
- <text>{{item.remark?item.remark:'单击添加备注'}}</text>
|
|
|
|
|
|
+ <view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
|
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/remark2.png" width="10px"
|
|
|
|
+ height="12px"></u--image>
|
|
|
|
+ <view :style='item.remark?"color:#000;":"color:#808080;"' class='icon-text'>
|
|
|
|
+ {{item.remark?item.remark:'单击添加备注'}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <u-checkbox-group v-if='islongPress' placement="column"
|
|
|
|
+ @change="checkboxChange($event,index)">
|
|
|
|
+ <u-checkbox iconColor='#4977FC' activeColor="#fff" :name='index+1'
|
|
|
|
+ :checked='item.checked' :customStyle="{marginBottom: '8px'}">
|
|
|
|
+ </u-checkbox>
|
|
|
|
+ </u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
<view class="car-bottom flex">
|
|
<view class="car-bottom flex">
|
|
<view class="left">
|
|
<view class="left">
|
|
@@ -181,77 +215,39 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <!-- <view class="left">
|
|
|
|
- <view class="top flex-row-center">
|
|
|
|
- <image :src="item.headSculpture" mode="widthFix" class="img"></image>
|
|
|
|
- </view>
|
|
|
|
- <view class="bottom flex flex-evenly">
|
|
|
|
- <uni-icons @click="toHome(item)" type="home" size="20"></uni-icons>
|
|
|
|
- <text @click='switchType(item)'>{{item.classify?item.classifyName:'默'}}</text>
|
|
|
|
- <uni-icons @click='share(item)' type="redo" size="20" color=''></uni-icons>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="right">
|
|
|
|
- <view class="row1 flex">
|
|
|
|
- <text>{{item.name}}</text>
|
|
|
|
- <text class="line"></text>
|
|
|
|
- <text>{{item.post}}</text>
|
|
|
|
- <u-checkbox-group v-if='islongPress' placement="column"
|
|
|
|
- @change="checkboxChange($event,index)">
|
|
|
|
- <u-checkbox :name='index+1' :checked='item.checked'
|
|
|
|
- :customStyle="{marginBottom: '8px'}">
|
|
|
|
- </u-checkbox>
|
|
|
|
- </u-checkbox-group>
|
|
|
|
- </view>
|
|
|
|
- <view class="row2">
|
|
|
|
- {{item.companyName}}
|
|
|
|
- </view>
|
|
|
|
- <view class="row3" @click="toMap(item)">
|
|
|
|
- <uni-icons type="redo" size="20"></uni-icons>
|
|
|
|
- <text>{{item.province}}{{item.city}}{{item.area}}{{item.detailedAddress}}</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="row3">
|
|
|
|
- <uni-icons type="redo" size="20"></uni-icons>
|
|
|
|
- <text>{{item.phone}}</text>
|
|
|
|
- </view>
|
|
|
|
- <view @click='remarkEdit(item)' class="row3">
|
|
|
|
- <uni-icons type="redo" size="20"></uni-icons>
|
|
|
|
- <text>{{item.remark?item.remark:'单击添加备注'}}</text>
|
|
|
|
- </view>
|
|
|
|
- </view> -->
|
|
|
|
</view>
|
|
</view>
|
|
</mescroll-body>
|
|
</mescroll-body>
|
|
</view>
|
|
</view>
|
|
<view class="del-style" v-if="islongPress">
|
|
<view class="del-style" v-if="islongPress">
|
|
<view class="left">
|
|
<view class="left">
|
|
<text class="qx" @click="islongPress=false">取消</text>
|
|
<text class="qx" @click="islongPress=false">取消</text>
|
|
- <text class="del" @click="delShow=true">删除</text>
|
|
|
|
|
|
+ <text class="del" @click="del">删除</text>
|
|
</view>
|
|
</view>
|
|
- <view class="right">
|
|
|
|
- 全选
|
|
|
|
|
|
+ <view style='width:128rpx;' class="right flex">
|
|
|
|
+ <view>全选</view>
|
|
|
|
+ <u-checkbox-group class='' placement="column" @change="checkboxChange($event,'')">
|
|
|
|
+ <u-checkbox iconColor='#4977FC' activeColor="#fff" name='全选' :checked='checked'
|
|
|
|
+ :customStyle="{marginBottom: '8px',position: 'relative',top: '-19px',right:'-8px'}">
|
|
|
|
+ </u-checkbox>
|
|
|
|
+ </u-checkbox-group>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- <u-picker :show="isShowType" :columns="typeColumns" keyName="circleName" title="选择分类" @close="isShowType=false"
|
|
|
|
- @cancel="isShowType=false" closeOnClickOverlay @confirm="typeConfirm"></u-picker>
|
|
|
|
|
|
+ <u-picker :show="isShowType" :columns="typeColumns" keyName="circleName" :title="type == 2?'修改分类':'选择分类'"
|
|
|
|
+ @close="isShowType=false" @cancel="isShowType=false" closeOnClickOverlay @confirm="typeConfirm"></u-picker>
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-toast ref="uToast"></u-toast>
|
|
- <u-modal :show="delShow" title="提示" showCancelButton='true' @cancel="delShow=false" @confirm="delConfirm"
|
|
|
|
- :content='"已选中"+this.checkedList.length+"张名片,确定删除?"'></u-modal>
|
|
|
|
|
|
+ <u-modal :show="delShow" title="提示" confirmText='确定' showCancelButton='true' @cancel="delShow=false"
|
|
|
|
+ @confirm="delConfirm" :content='"已选中"+this.checkedList.length+"张名片,确定删除?"'></u-modal>
|
|
<u-modal :show="modalShow" @confirm='remarkConfirm' :confirmColor="remark?'#2979ff':'#ccc'"
|
|
<u-modal :show="modalShow" @confirm='remarkConfirm' :confirmColor="remark?'#2979ff':'#ccc'"
|
|
showCancelButton='true' title="备注">
|
|
showCancelButton='true' title="备注">
|
|
<view class="slot-content">
|
|
<view class="slot-content">
|
|
<u--textarea v-model="remark" placeholder="输入备注,不超过150个字"></u--textarea>
|
|
<u--textarea v-model="remark" placeholder="输入备注,不超过150个字"></u--textarea>
|
|
</view>
|
|
</view>
|
|
</u-modal>
|
|
</u-modal>
|
|
- <view v-if='qrcodeShow' class="shade">
|
|
|
|
- <view class='qrCode'>
|
|
|
|
- <view style='text-align:right;'>
|
|
|
|
- <uni-icons @click='qrcodeShow=false' type="close" size="20"></uni-icons>
|
|
|
|
- </view>
|
|
|
|
- <image :src="currectData.qrCode" mode=""></image>
|
|
|
|
- </view>
|
|
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
+ <u-popup :show="qrcodeShow" @close="qrcodeShow=false" mode="center" :round='10'>
|
|
|
|
+ <image style='margin:10px;' :src="currectData.qrCode" mode="widthFix"></image>
|
|
|
|
+ </u-popup>
|
|
<u-popup :show="popupshow" :closeOnClickOverlay='true' :overlayOpacity='0.4' @close='handleHiddenShare'
|
|
<u-popup :show="popupshow" :closeOnClickOverlay='true' :overlayOpacity='0.4' @close='handleHiddenShare'
|
|
:round="10" mode="bottom">
|
|
:round="10" mode="bottom">
|
|
<view>
|
|
<view>
|
|
@@ -306,7 +302,7 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- userInfo:{},
|
|
|
|
|
|
+ userInfo: {},
|
|
downOption: {
|
|
downOption: {
|
|
auto: false,
|
|
auto: false,
|
|
},
|
|
},
|
|
@@ -318,7 +314,7 @@
|
|
session_key: '',
|
|
session_key: '',
|
|
iv: '',
|
|
iv: '',
|
|
},
|
|
},
|
|
- key:'',
|
|
|
|
|
|
+ key: '',
|
|
isPhone: false,
|
|
isPhone: false,
|
|
canReset: false,
|
|
canReset: false,
|
|
poster: '',
|
|
poster: '',
|
|
@@ -342,6 +338,7 @@
|
|
unread: 0,
|
|
unread: 0,
|
|
clicknum: 0,
|
|
clicknum: 0,
|
|
noticeList: [],
|
|
noticeList: [],
|
|
|
|
+ status:0,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -355,21 +352,32 @@
|
|
});
|
|
});
|
|
this.searchVal = uni.getStorageSync("search_val") ? uni.getStorageSync("search_val") : ''
|
|
this.searchVal = uni.getStorageSync("search_val") ? uni.getStorageSync("search_val") : ''
|
|
} else {
|
|
} else {
|
|
- this.login()
|
|
|
|
|
|
+ if(uni.getLaunchOptionsSync().scene!=1154){
|
|
|
|
+ this.login()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
|
},
|
|
},
|
|
- onLoad: function() {
|
|
|
|
- wx.showShareMenu({
|
|
|
|
- withShareTicket: true,
|
|
|
|
- menus: ["shareAppMessage", "shareTimeline"]
|
|
|
|
- })
|
|
|
|
|
|
+ onLoad: function(options) {
|
|
|
|
+ this.status=uni.getLaunchOptionsSync().scene
|
|
|
|
+ if(uni.getLaunchOptionsSync().scene==1154){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请前往小程序查看名片',
|
|
|
|
+ icon:'none',
|
|
|
|
+ duration:10000
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
|
|
+ wx.showShareMenu({
|
|
|
|
+ withShareTicket: true,
|
|
|
|
+ menus: ["shareAppMessage", "shareTimeline"]
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
onShareAppMessage(res) {
|
|
onShareAppMessage(res) {
|
|
-
|
|
|
|
console.log(res, this.popupshow)
|
|
console.log(res, this.popupshow)
|
|
let that = this;
|
|
let that = this;
|
|
//生成名片图片
|
|
//生成名片图片
|
|
@@ -385,20 +393,12 @@
|
|
}
|
|
}
|
|
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: {
|
|
getPhoneNumber(e) {
|
|
getPhoneNumber(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
@@ -685,6 +685,15 @@
|
|
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
|
|
}
|
|
}
|
|
@@ -755,6 +764,15 @@
|
|
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') {
|
|
@@ -774,7 +792,8 @@
|
|
}
|
|
}
|
|
this.canvasData = {
|
|
this.canvasData = {
|
|
clicknum: this.clicknum++,
|
|
clicknum: this.clicknum++,
|
|
- list: data
|
|
|
|
|
|
+ list: data,
|
|
|
|
+ page:'cardHolder'
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
@@ -809,7 +828,15 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
del() {
|
|
del() {
|
|
- this.delShow = true
|
|
|
|
|
|
+
|
|
|
|
+ if (this.checkedList.length > 0) {
|
|
|
|
+ this.delShow = true
|
|
|
|
+ } else {
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: '请勾选后再进行删除!',
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
longpress() {
|
|
longpress() {
|
|
@@ -913,6 +940,13 @@
|
|
this.isShowType = false
|
|
this.isShowType = false
|
|
},
|
|
},
|
|
async upCallback(page) {
|
|
async upCallback(page) {
|
|
|
|
+ if(uni.getLaunchOptionsSync().scene==1154){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '请前往小程序查看名片',
|
|
|
|
+ icon:'none',
|
|
|
|
+ duration:10000
|
|
|
|
+ });
|
|
|
|
+ }else{
|
|
var that = this
|
|
var that = this
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '数据加载中'
|
|
title: '数据加载中'
|
|
@@ -982,6 +1016,7 @@
|
|
}
|
|
}
|
|
console.log(this.unread)
|
|
console.log(this.unread)
|
|
})
|
|
})
|
|
|
|
+ }
|
|
},
|
|
},
|
|
login() {
|
|
login() {
|
|
let that = this
|
|
let that = this
|
|
@@ -1171,7 +1206,6 @@
|
|
}
|
|
}
|
|
|
|
|
|
.row2 {
|
|
.row2 {
|
|
- margin-top: 10rpx;
|
|
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
color: #323333;
|
|
color: #323333;
|
|
@@ -1184,6 +1218,11 @@
|
|
color: #323333;
|
|
color: #323333;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .row2,
|
|
|
|
+ .row4 {
|
|
|
|
+ margin-top: 10rpx;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1242,6 +1281,7 @@
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
color: #323333;
|
|
color: #323333;
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
.right {
|
|
.right {
|
|
@@ -1253,7 +1293,8 @@
|
|
color: #323333;
|
|
color: #323333;
|
|
}
|
|
}
|
|
|
|
|
|
- .row2 {
|
|
|
|
|
|
+ .row2,
|
|
|
|
+ .row4 {
|
|
margin-top: 10rpx;
|
|
margin-top: 10rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1273,6 +1314,11 @@
|
|
position: absolute;
|
|
position: absolute;
|
|
bottom: 63rpx;
|
|
bottom: 63rpx;
|
|
left: 20rpx;
|
|
left: 20rpx;
|
|
|
|
+ bottom: 24rpx;
|
|
|
|
+ width: 94.9%;
|
|
|
|
+ background: url("../../static/imgs/card/bg5.png") no-repeat center;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ height: 80rpx;
|
|
|
|
|
|
// width: calc(100% - 40rpx);
|
|
// width: calc(100% - 40rpx);
|
|
.left {
|
|
.left {
|
|
@@ -1285,17 +1331,10 @@
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: space-evenly;
|
|
justify-content: space-evenly;
|
|
- background: url("../../static/imgs/card/bgc1.png") no-repeat center;
|
|
|
|
- background-size: 100% 100%;
|
|
|
|
- }
|
|
|
|
|
|
+ left: 0px;
|
|
|
|
|
|
- .right {
|
|
|
|
- position: absolute;
|
|
|
|
- left: 65vw;
|
|
|
|
- height: 80rpx;
|
|
|
|
- width: 30vw;
|
|
|
|
- background: url("../../static/imgs/card/right-bgc.png") no-repeat center;
|
|
|
|
- background-size: 100% 100%;
|
|
|
|
|
|
+ // background-size: 100% 100%;
|
|
|
|
+ overflow-y: hidden;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1351,6 +1390,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
/deep/.u-checkbox-group {
|
|
/deep/.u-checkbox-group {
|
|
|
|
+
|
|
position: absolute;
|
|
position: absolute;
|
|
right: 20px;
|
|
right: 20px;
|
|
z-index: 99;
|
|
z-index: 99;
|
|
@@ -1363,7 +1403,27 @@
|
|
width: calc(100vw - 40rpx);
|
|
width: calc(100vw - 40rpx);
|
|
position: fixed;
|
|
position: fixed;
|
|
display: flex;
|
|
display: flex;
|
|
|
|
+ z-index: 100;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
+
|
|
|
|
+ .right {
|
|
|
|
+ color: #344577;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .del,
|
|
|
|
+ .qx {
|
|
|
|
+ padding: 10rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .del {
|
|
|
|
+ color: #FF4040;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .qx {
|
|
|
|
+ color: #666;
|
|
bottom: 0
|
|
bottom: 0
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1384,7 +1444,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
.sq-view {
|
|
.sq-view {
|
|
- padding: 60rpx 80rpx 0 80rpx;
|
|
|
|
|
|
+ padding: 60rpx 80rpx 80rpx 80rpx;
|
|
|
|
|
|
.text {
|
|
.text {
|
|
display: flex;
|
|
display: flex;
|
|
@@ -1404,4 +1464,15 @@
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+
|
|
|
|
+ .icon-text {
|
|
|
|
+ margin-left: 10px;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #323333;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /deep/.u-checkbox__icon-wrap.u-checkbox__icon-wrap--square {
|
|
|
|
+ border-color: #D7DEEB !important;
|
|
|
|
+ }
|
|
|
|
+</style>
|