Browse Source

关注公众号,兼容低版本

tags/2.2.4
Stormeye.Wu 7 years ago
parent
commit
58d0228f3c
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      pages/user/index.js
  2. +1
    -1
      pages/user/index.wxml

+ 1
- 0
pages/user/index.js View File

@@ -6,6 +6,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
canIUse: wx.canIUse('official-account'),
// user: { // user: {
// avatar: // avatar:
// "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" // "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg"


+ 1
- 1
pages/user/index.wxml View File

@@ -72,5 +72,5 @@
</view> </view>
</view> </view>
<view class='of'> <view class='of'>
<official-account class="gzh"></official-account>
<official-account wx:if="{{canIUse}}" class="gzh"></official-account>
</view> </view>

Loading…
Cancel
Save