12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <template name="wxContact">
- <view>
- <!-- #ifdef MP-WEIXIN -->
- <button class="cu-btn cuIcon bg-red lg shadow echo-wxcontact" @tap="showConcatModel">
- <text class="cuIcon-servicefill"></text>
- </button>
- <view class="cu-modal" :class="{show:concatModel}" @tap="hideConcatModel">
- <view class="cu-dialog" @tap.stop>
- <view class="cu-card">
- <view class="cu-item">
- <view class="text-xl padding">人工协助</view>
- <image :show-menu-by-longpress="true" style="width: 80%;display: block;margin: 0 auto;" :src="$getImageUrl('static/images/applet/qrcode_contact.png')"></image>
- <view class="text-xl padding">长按图片添加好友</view>
- </view>
- </view>
- <view class="padding flex flex-direction">
- <button class="cu-btn bg-red lg" @tap="phone()">
- 拔打客服电话
- </button>
- </view>
- <view class="padding flex flex-direction">
- <button class="cu-btn bg-red lg" open-type="contact">
- 在线客服
- </button>
- </view>
- </view>
- </view>
- </view>
- <!-- #endif -->
- </template>
- <script>
- export default {
- name: 'wxContact',
- data() {
- return {
- concatModel: false
- };
- },
- methods:{
- showConcatModel() {
- this.concatModel = true;
- },
- hideConcatModel() {
- this.concatModel = false;
- },
- phone() {
- uni.makePhoneCall({
- phoneNumber: '19959780161'
- });
- }
- }
- }
- </script>
- <style>
- .echo-wxcontact{ position: fixed; left: 0rpx; bottom: 180rpx; border-radius: 0rpx 50% 50% 0rpx !important; }
- </style>
|