Browse Source

no message

feature/v2.2
xpz2018 4 years ago
parent
commit
e1d1831b06
4 changed files with 26 additions and 4 deletions
  1. 3
      pages/home/customer-code/index.js
  2. 2
      pages/home/customer-code/index.json
  3. 23
      pages/home/customer-code/index.wxml
  4. 2
      pages/home/customer-list/index.wxml

3
pages/home/customer-code/index.js

@ -39,5 +39,8 @@ Scene({
wx.previewImage({ urls: [res.tempFilePath] })
}
})
},
customerInfo: function(){
}
})

2
pages/home/customer-code/index.json

@ -1,6 +1,8 @@
{
"usingComponents": {
"van-button": "/components/button/index",
"van-cell": "/components/cell/index",
"van-image": "/components/image/index",
"notification": "/pages/message/notification/index"
}
}

23
pages/home/customer-code/index.wxml

@ -2,11 +2,28 @@
<view slot="content">客户二维码</view>
</cu-custom>
<view class="flex flex-center flex-column" style="margin-top:48rpx">
<view class="bg-white" style="padding:32rpx" bindtap="previewImage">
<view style="padding:32rpx;margin-top:64rpx">
<van-cell clickable is-link>
<view slot="title" class="flex flex-justify" style="width:100%" bindtap="customerInfo">
<van-image round width="80rpx" height="80rpx" src="{{'/assets/image/ygImg.png' }}" />
<view style="width:100%;flex:1;margin-left: 18rpx">
<view class="text-sg text-bold">{{name || ''}}</view>
<view class="text-sm text-gray" style="line-height:32rpx;height:32rpx">
<text>电话号码:18545124454</text>
</view>
</view>
</view>
</van-cell>
<view class="bg-white flex flex-center" style="padding:48rpx 32rpx;" bindtap="previewImage">
<canvas style="width:600rpx; height:600rpx;" canvas-id="van-qrcode"></canvas>
</view>
<text class="text-xl" style="margin-top:96rpx;text-align:center">{{name}}</text>
</view>
<!-- <view style="margin-top:16rpx;padding:48rpx 44rpx">
<van-button block type="primary" bind:click="registCustomer" wx:if="{{form.id && !form.userId}}">邀请注册纸通宝</van-button>
<view style="height:36rpx" wx:if="{{form.id && !form.userId}}"></view>
<van-button block type="danger" bind:click="deleteForm">删除客户</van-button>
<view style="height:36rpx"></view>
<van-button block type="info" bind:click="submitForm">修改客户信息</van-button>
</view> -->
<notification id="qn-notification" />

2
pages/home/customer-list/index.wxml

@ -70,7 +70,7 @@
<text class="text-sg" style="line-height:50rpx;padding-left:32rpx">{{pageItem.sign}}</text>
</view>
<van-cell clickable wx:for="{{pageItem.data}}" wx:key="index">
<view slot="title" class="flex flex-justify" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="customerInfo">
<view slot="title" class="flex flex-justify" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="qrcodeCustomer">
<!-- <van-image round width="80rpx" height="80rpx" src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}" /> -->
<view style="width:100%;flex:1">
<view class="text-sg text-bold">{{item.name || ''}}</view>

Loading…
Cancel
Save