Browse Source

no message

feature/v2.2
xpz2018 4 years ago
parent
commit
6297bbdb64
2 changed files with 3 additions and 10 deletions
  1. 4
      pages/home/qrcode-info/index.js
  2. 9
      pages/home/qrcode-info/index.wxml

4
pages/home/qrcode-info/index.js

@ -20,7 +20,7 @@ Scene({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
if(!util.isEmpty(options.id)){
if(options.id){
this.data.id = options.id this.data.id = options.id
this.data.userId = options.userId this.data.userId = options.userId
if(!util.isEmpty(options.type)){ if(!util.isEmpty(options.type)){
@ -82,7 +82,7 @@ Scene({
} }
}) })
}, },
toDetail: function(){
lookDetail: function(){
if(this.data.type == 0){ if(this.data.type == 0){
wx.navigateTo({ url: `/pages/home/customer-info/index?id=${this.data.id}&userId=${this.data.userId}` }) wx.navigateTo({ url: `/pages/home/customer-info/index?id=${this.data.id}&userId=${this.data.userId}` })
} else if(this.data.type == 1){ } else if(this.data.type == 1){

9
pages/home/qrcode-info/index.wxml

@ -4,7 +4,7 @@
<view style="padding:32rpx;margin-top:64rpx" wx:if="{{form}}"> <view style="padding:32rpx;margin-top:64rpx" wx:if="{{form}}">
<van-cell clickable is-link> <van-cell clickable is-link>
<view slot="title" class="flex flex-justify" style="width:100%" bindtap="toDetail">
<view slot="title" class="flex flex-justify" style="width:100%" bindtap="lookDetail">
<van-image round width="80rpx" height="80rpx" src="{{'/assets/image/ygImg.png' }}" /> <van-image round width="80rpx" height="80rpx" src="{{'/assets/image/ygImg.png' }}" />
<view style="width:100%;flex:1;margin-left: 18rpx"> <view style="width:100%;flex:1;margin-left: 18rpx">
<view class="text-sg text-bold">{{form.name || form.enterpriseMemberName || ''}}</view> <view class="text-sg text-bold">{{form.name || form.enterpriseMemberName || ''}}</view>
@ -18,12 +18,5 @@
<canvas style="width:600rpx; height:600rpx;" canvas-id="van-qrcode"></canvas> <canvas style="width:600rpx; height:600rpx;" canvas-id="van-qrcode"></canvas>
</view> </view>
</view> </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" /> <notification id="qn-notification" />
Loading…
Cancel
Save