Browse Source

2.2.5版本提交

feature/v2.2
xpz2018 4 years ago
parent
commit
f39ed48d6b
5 changed files with 11 additions and 5 deletions
  1. BIN
      assets/image/add_desktop.png
  2. 6
      components/add-tips/index.js
  3. 4
      components/add-tips/index.wxml
  4. 4
      pages/index/index.js
  5. 2
      pages/index/index.wxml

BIN
assets/image/add_desktop.png

Before After
Width: 200  |  Height: 200  |  Size: 1.1 KiB

6
components/add-tips/index.js

@ -13,7 +13,11 @@ Component({
delay: {
type: Number,
value: 2
},
},
ios: {
type: Boolean,
value: true
},
logo: {
type: String,
value: '/assets/image/add-tips.png'

4
components/add-tips/index.wxml

@ -1,7 +1,7 @@
<view class="box" wx:if="{{SHOW_TOP}}" style="top:{{custom?navbarHeight:0}}px;" id="add-tips">
<view class='arrow' style="margin-right:{{arrowR}}px;"></view>
<view class='body' bindtap='hidden' style="margin-right:{{bodyR}}px;">
<image src="{{logo}}" class="logo"></image>
<view class="tips">将“{{name}}”添加到手机桌面,下次访问更便捷</view>
<image src="{{ios ? '/assets/image/add_desktop.png' : '/assets/image/add-tips.png'}}" class="logo"></image>
<view class="tips">将“{{name}}”添加到{{ios ? '我的小程序' : '手机桌面'}},下次访问更便捷</view>
</view>
</view>

4
pages/index/index.js

@ -14,6 +14,7 @@ Scene({
data: {
safeBottom: app.globalData.safeBottom,
fragment: app.globalData.safeFragmentHeight,
ios: app.globalData.isIos,
userInfo: null,
tabList: [
{ index: 0, value: 'process', badge: 0, name: '采购', blue: '/assets/tabbar/process-blue.png', gray: '/assets/tabbar/process-gray.png' },
@ -86,7 +87,8 @@ Scene({
factoryName: app.userInfo.factoryName,
arrow: this.data.arrow,
customBar: app.globalData.CustomBar || (app.globalData.isIos ? 64 : 60),
fragment: app.globalData.safeFragmentHeight,
fragment: app.globalData.safeFragmentHeight,
ios: app.globalData.isIos,
safeBottom: app.globalData.safeBottom
})
event.on('EventMessage', this, this.onEvent)

2
pages/index/index.wxml

@ -5,7 +5,7 @@
<van-icon name="{{visible ? 'arrow-up' : 'arrow-down'}}" size="36rpx" color="white" wx:if="{{arrow}}"/>
</view>
</cu-custom>
<add-tips name="纸通宝工厂版" custom/>
<add-tips name="纸通宝工厂版" ios="{{ios}}" custom/>
<swiper current="{{tabIndex}}" duration="0" style="height:{{fragment}}rpx">
<swiper-item catchtouchmove="stopTouchMove">
<process id="{{tabList[0].value}}" bind:zIndex="onPopupChange" />

Loading…
Cancel
Save