| | |
| | | <!-- 名片展示区域 --> |
| | | <view class="content"> |
| | | <view class="business-card"> |
| | | <image style="width: 100%;" @tap="viewPicture(businessImage)" mode="widthFix" :src="businessImage"></image> |
| | | <image style="width: 100%;" @tap="viewPicture(businessImage)" mode="widthFix" :src="businessImage"> |
| | | </image> |
| | | </view> |
| | | |
| | | <!-- 名片操作按钮 --> |
| | |
| | | </view> |
| | | |
| | | <!-- 切换名片弹窗 --> |
| | | <Popup :show="popupShow" type="bottom" :mask-click="false"> |
| | | <Popup :show="popupShow" type="bottom" :width="screenWidth" :mask-click="false"> |
| | | <view class="popup-content"> |
| | | <view class="popup-header"> |
| | | <text class="title">选择名片</text> |
| | |
| | | <view class="card-item" v-for="(card, index) in businessList" :key="index" |
| | | :class="{active: index === current}" @click="selectCard(index)"> |
| | | <view class="card-preview"> |
| | | <view class="card-name">{{card.real_name}}</view> |
| | | <view class="card-company">{{card.company_name}}</view> |
| | | <image style="width: 650rpx;" :src="card.mp" mode="widthFix"></image> |
| | | </view> |
| | | <text v-if="index === current" class="icon iconfont icon-check"></text> |
| | | </view> |
| | |
| | | search: '', |
| | | businessImage: '', |
| | | height: 0, |
| | | screenWidth: 0, // 屏幕宽度 |
| | | popupShow: false |
| | | }; |
| | | }, |
| | |
| | | this.getbusinessList(); |
| | | //this.getStatistics(); |
| | | this.getVisitorList(); |
| | | const systemInfo = uni.getSystemInfoSync() |
| | | this.screenWidth=systemInfo.screenWidth*2-70; |
| | | }, |
| | | getbusinessList() { |
| | | let _this = this; |
| | | _this._post('plus.business.business/getList', {}, function(res) { |
| | | _this._post('plus.business.business/getList', {user_id:uni.removeStorageSync('user_id')}, function(res) { |
| | | _this.businessList = res.data.data; |
| | | if (_this.businessList.length > 0) { |
| | | _this.getbusiness(_this.businessList[_this.current].user_id) |