chengjie 7 lat temu
rodzic
commit
2adb29b069

+ 1 - 1
app.js

@@ -11,7 +11,7 @@ App({
11 11
     this.globalData.systemInfo = wx.getSystemInfoSync();
12 12
   },
13 13
   globalData: {
14
-    Version: "1.1.3",
14
+    Version: "1.1.5",
15 15
     IsProduction: true,
16 16
     ProgramID: 106,
17 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 37
       Text3: text3,
38 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 51
   onUnload: function () {
42 52
     wx.reLaunch({

+ 1 - 1
pages/about/payfinished.wxml

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

+ 6 - 0
pages/about/payfinished.wxss

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

+ 9 - 0
pages/index/index.js

@@ -48,6 +48,15 @@ Page({
48 48
     });
49 49
 
50 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 62
   getUserInfo: function (cb) {

+ 1 - 1
pages/index/index.wxml

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

+ 4 - 0
pages/index/index.wxss

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

+ 10 - 1
pages/main/detail.js

@@ -21,7 +21,7 @@ Page({
21 21
     IntervalSecondIndex: 2,//播放间隔秒数索引
22 22
     IsImageError: false,
23 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 26
   onLoad: function (options) {
27 27
     var bookID = options.bookid || 0;
@@ -98,6 +98,15 @@ Page({
98 98
     if (this.data.WordType == "normal")
99 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 111
   onShow: function (e) {
103 112
     if (app.globalData.IsSaveCustom) {

+ 1 - 1
pages/main/detail.wxml

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

+ 4 - 0
pages/main/detail.wxss

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

+ 10 - 0
pages/main/index.wxml

@@ -52,6 +52,16 @@
52 52
             </view>
53 53
           </view>
54 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 65
       </view>
56 66
     </view>
57 67
     <view class="index7 FlexRow">

+ 1 - 1
pages/main/index.wxss

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

+ 6 - 1
pages/main/list.js

@@ -76,9 +76,14 @@ Page({
76 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 84
     this.setData({
80 85
       List: result.Units,
81
-      topImage: "../../images/0400" + this.data.BookID + ".png"
86
+      topImage: "../../images/040" + imgNum + ".png"
82 87
     });
83 88
     wx.setNavigationBarTitle({
84 89
       title: result.Name,