chengjie лет назад: 7
Родитель
Сommit
2adb29b069

+ 1 - 1
app.js

@@ -11,7 +11,7 @@ App({
11
     this.globalData.systemInfo = wx.getSystemInfoSync();
11
     this.globalData.systemInfo = wx.getSystemInfoSync();
12
   },
12
   },
13
   globalData: {
13
   globalData: {
14
-    Version: "1.1.3",
14
+    Version: "1.1.5",
15
     IsProduction: true,
15
     IsProduction: true,
16
     ProgramID: 106,
16
     ProgramID: 106,
17
     AppID: "wx313a8f2c0741efe1",
17
     AppID: "wx313a8f2c0741efe1",

BIN
images/02031.png


BIN
images/02032.png


BIN
images/04011.png


+ 10 - 0
pages/about/payfinished.js

@@ -37,6 +37,16 @@ Page({
37
       Text3: text3,
37
       Text3: text3,
38
       OrderType: options.type,
38
       OrderType: options.type,
39
     });
39
     });
40
+
41
+    //适配ipad
42
+    var systemInfo = wx.getSystemInfoSync();
43
+    if (systemInfo.model) {
44
+      if (systemInfo.model.indexOf("iPad") >= 0) {
45
+        this.setData({
46
+          ipad: "ipad",
47
+        })
48
+      }
49
+    }
40
   },
50
   },
41
   onUnload: function () {
51
   onUnload: function () {
42
     wx.reLaunch({
52
     wx.reLaunch({

+ 1 - 1
pages/about/payfinished.wxml

@@ -14,7 +14,7 @@
14
     </view>
14
     </view>
15
   </block>
15
   </block>
16
   
16
   
17
-  <view class="line2"></view>
17
+  <view class="line2 {{ipad}}"></view>
18
   <text class="text3">{{Text3}}</text>
18
   <text class="text3">{{Text3}}</text>
19
 
19
 
20
 </view>
20
 </view>

+ 6 - 0
pages/about/payfinished.wxss

@@ -24,6 +24,7 @@
24
   font-size:44rpx;
24
   font-size:44rpx;
25
   text-align: center;
25
   text-align: center;
26
   margin-top: 10rpx;
26
   margin-top: 10rpx;
27
+  z-index: 10;
27
 }
28
 }
28
 
29
 
29
 
30
 
@@ -57,6 +58,11 @@
57
   z-index: 10;
58
   z-index: 10;
58
 }
59
 }
59
 
60
 
61
+
62
+.ipad{
63
+  margin-top:140rpx;
64
+}
65
+
60
 .text3{
66
 .text3{
61
   font-size:22rpx;
67
   font-size:22rpx;
62
   width:560rpx; 
68
   width:560rpx; 

+ 9 - 0
pages/index/index.js

@@ -48,6 +48,15 @@ Page({
48
     });
48
     });
49
 
49
 
50
     this.getUserInfo();
50
     this.getUserInfo();
51
+
52
+    var systemInfo = wx.getSystemInfoSync();
53
+    if (systemInfo.model) {
54
+      if (systemInfo.model.indexOf("iPad") >= 0) {
55
+        this.setData({
56
+          ipad: "ipad",
57
+        })
58
+      }
59
+    }
51
   },
60
   },
52
   //得到用户信息
61
   //得到用户信息
53
   getUserInfo: function (cb) {
62
   getUserInfo: function (cb) {

+ 1 - 1
pages/index/index.wxml

@@ -1,5 +1,5 @@
1
 <view class="container FlexColumn" style='min-height:{{Height}}rpx;'>
1
 <view class="container FlexColumn" style='min-height:{{Height}}rpx;'>
2
-  <view class="index1 FlexRow">
2
+  <view class="index1 FlexRow {{ipad}}">
3
     <image src='../../images/01001.png' class="image01001" />
3
     <image src='../../images/01001.png' class="image01001" />
4
   </view>
4
   </view>
5
   <view class="index2 FlexRow">
5
   <view class="index2 FlexRow">

+ 4 - 0
pages/index/index.wxss

@@ -12,6 +12,10 @@
12
   width:100%;
12
   width:100%;
13
 }
13
 }
14
 
14
 
15
+.ipad {
16
+  top: 78rpx;
17
+}
18
+
15
 .image01001 {
19
 .image01001 {
16
   width: 462rpx;
20
   width: 462rpx;
17
   height: 516rpx;
21
   height: 516rpx;

+ 10 - 1
pages/main/detail.js

@@ -21,7 +21,7 @@ Page({
21
     IntervalSecondIndex: 2,//播放间隔秒数索引
21
     IntervalSecondIndex: 2,//播放间隔秒数索引
22
     IsImageError: false,
22
     IsImageError: false,
23
     SpeakerArray: [{ name: "温柔姐姐(推荐)", value: "woman", isShow: true }, { name: "爽朗哥哥", value: "man", isShow: false }, { name: "古韵叔叔", value: "oldman", isShow: false }, { name: "可爱妹妹", value: "sister", isShow: false }],
23
     SpeakerArray: [{ name: "温柔姐姐(推荐)", value: "woman", isShow: true }, { name: "爽朗哥哥", value: "man", isShow: false }, { name: "古韵叔叔", value: "oldman", isShow: false }, { name: "可爱妹妹", value: "sister", isShow: false }],
24
-
24
+    pinyinCss:"",
25
   },
25
   },
26
   onLoad: function (options) {
26
   onLoad: function (options) {
27
     var bookID = options.bookid || 0;
27
     var bookID = options.bookid || 0;
@@ -98,6 +98,15 @@ Page({
98
     if (this.data.WordType == "normal")
98
     if (this.data.WordType == "normal")
99
       this.submitData();
99
       this.submitData();
100
 
100
 
101
+    var systemInfo = wx.getSystemInfoSync();
102
+    if (systemInfo.model) {
103
+      if (systemInfo.model.indexOf("iPad") >= 0) {
104
+        this.setData({
105
+          pinyinCss:"pinyinCssIpad",
106
+        })
107
+      }
108
+    }
109
+
101
   },
110
   },
102
   onShow: function (e) {
111
   onShow: function (e) {
103
     if (app.globalData.IsSaveCustom) {
112
     if (app.globalData.IsSaveCustom) {

+ 1 - 1
pages/main/detail.wxml

@@ -1,7 +1,7 @@
1
 <view class="container FlexColumn" style='height:{{Height}}rpx;'>
1
 <view class="container FlexColumn" style='height:{{Height}}rpx;'>
2
   <view class="main FlexColumn" bindtap='playAudio' data-click="true">
2
   <view class="main FlexColumn" bindtap='playAudio' data-click="true">
3
     <block wx:if="{{CurrentIndex<List.length-1}}">
3
     <block wx:if="{{CurrentIndex<List.length-1}}">
4
-      <view class="pinyin">
4
+      <view class="pinyin {{pinyinCss}}">
5
         <block wx:if="{{ShowPinyin}}">
5
         <block wx:if="{{ShowPinyin}}">
6
           {{List[CurrentIndex].Pinyin}}
6
           {{List[CurrentIndex].Pinyin}}
7
         </block>
7
         </block>

+ 4 - 0
pages/main/detail.wxss

@@ -76,6 +76,10 @@
76
   height:110rpx;
76
   height:110rpx;
77
 }
77
 }
78
 
78
 
79
+.main .pinyinCssIpad{
80
+  margin-top: 112rpx;
81
+}
82
+
79
 .main .wordImage{
83
 .main .wordImage{
80
   margin-top: 40rpx;
84
   margin-top: 40rpx;
81
   margin-right: 10rpx;
85
   margin-right: 10rpx;

+ 10 - 0
pages/main/index.wxml

@@ -52,6 +52,16 @@
52
             </view>
52
             </view>
53
           </view>
53
           </view>
54
         </view>
54
         </view>
55
+        <view class="btn" bindtap="goto" data-id="5">
56
+          <view class="btn1">
57
+            <view class="panel1 FlexRow">
58
+              <image src='../../images/02031.png' class="img" />
59
+            </view>
60
+            <view class="panel2 FlexRow">
61
+              <image src='../../images/02032.png' class="img2" />
62
+            </view>
63
+          </view>
64
+        </view>
55
       </view>
65
       </view>
56
     </view>
66
     </view>
57
     <view class="index7 FlexRow">
67
     <view class="index7 FlexRow">

+ 1 - 1
pages/main/index.wxss

@@ -64,7 +64,7 @@
64
 
64
 
65
 .index2{
65
 .index2{
66
   width:100%;
66
   width:100%;
67
-  height:1038rpx;
67
+  height:1486rpx;
68
   background-color: #DFC7A4;
68
   background-color: #DFC7A4;
69
   justify-content: flex-start;
69
   justify-content: flex-start;
70
 }
70
 }

+ 6 - 1
pages/main/list.js

@@ -76,9 +76,14 @@ Page({
76
         break;
76
         break;
77
       }
77
       }
78
     }
78
     }
79
+    var imgNum = this.data.BookID;
80
+    if (imgNum==5)
81
+      imgNum="11";
82
+    else
83
+      imgNum="0"+imgNum;
79
     this.setData({
84
     this.setData({
80
       List: result.Units,
85
       List: result.Units,
81
-      topImage: "../../images/0400" + this.data.BookID + ".png"
86
+      topImage: "../../images/040" + imgNum + ".png"
82
     });
87
     });
83
     wx.setNavigationBarTitle({
88
     wx.setNavigationBarTitle({
84
       title: result.Name,
89
       title: result.Name,