Browse Source

no message

master
xpz2018 4 years ago
parent
commit
f6ab4d764a
3 changed files with 5 additions and 8 deletions
  1. 2
      pages/home/customer-info/index.js
  2. 5
      pages/home/customer-list/index.wxml
  3. 6
      pages/login/index.js

2
pages/home/customer-info/index.js

@ -122,7 +122,7 @@ Scene({
saveCustomer(this.data.form).then(result => { saveCustomer(this.data.form).then(result => {
wx.hideLoading() wx.hideLoading()
util.showBackToast('添加成功') util.showBackToast('添加成功')
event.emit('EventMessage', { what: 102, detail: this.data.form })
event.emit('EventMessage', { what: 101, detail: this.data.form })
}).catch(err => { }).catch(err => {
wx.hideLoading() wx.hideLoading()
util.showToast(err) util.showToast(err)

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

@ -20,7 +20,10 @@
<van-image round width="80rpx" height="80rpx" src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}" /> <van-image round width="80rpx" height="80rpx" src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}" />
<view style="margin-left:18rpx;width:100%;flex:1"> <view style="margin-left:18rpx;width:100%;flex:1">
<view class="text-sg text-bold">{{item.name || ''}}</view> <view class="text-sg text-bold">{{item.name || ''}}</view>
<view class="text-sm text-gray" style="line-height:32rpx">{{item.mobile || ('卡号:' + item.cardNo)}}</view>
<view class="text-sm text-gray" style="line-height:32rpx;height:32rpx">
<text wx:if="{{item.mobile}}">{{'电话号码:' + item.mobile}}</text>
<text wx:elif="{{item.cardNo}}">{{'卡号:' + item.cardNo}}</text>
</view>
</view> </view>
<view class="text-blue" style="padding:6rpx 0rpx" data-page="{{pageIndex}}" data-index="{{index}}" <view class="text-blue" style="padding:6rpx 0rpx" data-page="{{pageIndex}}" data-index="{{index}}"
catchtap="bindCustomer" wx:if="{{!item.userId}}">注册纸通宝</view> catchtap="bindCustomer" wx:if="{{!item.userId}}">注册纸通宝</view>

6
pages/login/index.js

@ -31,12 +31,6 @@ Page({
}, },
/************************************** 初始化登录流程 ********************************************/ /************************************** 初始化登录流程 ********************************************/
onLoad: function (options) { onLoad: function (options) {
const updateManager = wx.getUpdateManager()
updateManager.onCheckForUpdate()
updateManager.onUpdateReady(function () {
// 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
updateManager.applyUpdate()
})
app.globalData.keyboardHeight = storage.get('keyboardHeight') || 0 app.globalData.keyboardHeight = storage.get('keyboardHeight') || 0
if(options.q){ if(options.q){
//扫二维码进入的, //扫二维码进入的,

Loading…
Cancel
Save