wendy před 2 roky
revize
4bb671f5a8
100 změnil soubory, kde provedl 3542 přidání a 0 odebrání
  1. 14 0
      .gitignore
  2. 2 0
      .idea/.gitignore
  3. 6 0
      .idea/misc.xml
  4. 8 0
      .idea/modules.xml
  5. 6 0
      .idea/vcs.xml
  6. 9 0
      .idea/ypgapp.iml
  7. 188 0
      app.js
  8. 104 0
      app.json
  9. 9 0
      app.wxss
  10. 370 0
      font_ksq3u1eobo9lik9/demo.css
  11. 100 0
      font_ksq3u1eobo9lik9/demo_fontclass.html
  12. 143 0
      font_ksq3u1eobo9lik9/demo_symbol.html
  13. 138 0
      font_ksq3u1eobo9lik9/demo_unicode.html
  14. 37 0
      font_ksq3u1eobo9lik9/iconfont.css
  15. binární
      font_ksq3u1eobo9lik9/iconfont.eot
  16. 1 0
      font_ksq3u1eobo9lik9/iconfont.js
  17. 63 0
      font_ksq3u1eobo9lik9/iconfont.svg
  18. binární
      font_ksq3u1eobo9lik9/iconfont.ttf
  19. binární
      font_ksq3u1eobo9lik9/iconfont.woff
  20. binární
      images/ContentDetails.png
  21. binární
      images/ad.jpg
  22. binární
      images/addicon.png
  23. binární
      images/arrow.png
  24. binární
      images/box.png
  25. binární
      images/classify.png
  26. binární
      images/clock.png
  27. binární
      images/collect-s.png
  28. binární
      images/collect.png
  29. binární
      images/detail1.png
  30. binární
      images/detail2.png
  31. binární
      images/detail3.png
  32. binární
      images/follow.png
  33. binární
      images/followdy.png
  34. binární
      images/home.png
  35. binární
      images/jia1.png
  36. binární
      images/my.png
  37. binární
      images/newobj.png
  38. binární
      images/notplay.png
  39. binární
      images/orgin.png
  40. binární
      images/paimai.png
  41. binární
      images/paimaihui.png
  42. binární
      images/player.png
  43. binární
      images/record.png
  44. binární
      images/red.png
  45. binární
      images/rotate-black.png
  46. binární
      images/rotate-white.png
  47. binární
      images/s-classify.png
  48. binární
      images/s-home.png
  49. binární
      images/s-my.png
  50. binární
      images/s-newobj.png
  51. binární
      images/s-paimai.png
  52. binární
      images/s-player.png
  53. binární
      images/s-showdan.png
  54. binární
      images/share.png
  55. binární
      images/shouqi.png
  56. binární
      images/showdan.png
  57. binární
      images/up.png
  58. binární
      images/user.png
  59. binární
      images/userhead.png
  60. binární
      images/xh.png
  61. binární
      images/zhankan.png
  62. 1 0
      libs/jmessage-wxapplet-sdk-1.4.2.min.js
  63. 81 0
      pages/ContentDetails/ContentDetails.js
  64. 3 0
      pages/ContentDetails/ContentDetails.json
  65. 24 0
      pages/ContentDetails/ContentDetails.wxml
  66. 67 0
      pages/ContentDetails/ContentDetails.wxss
  67. 0 0
      pages/ContentDetails/index.js
  68. 173 0
      pages/LiveCustomer/LiveCustomer.js
  69. 4 0
      pages/LiveCustomer/LiveCustomer.json
  70. 33 0
      pages/LiveCustomer/LiveCustomer.wxml
  71. 119 0
      pages/LiveCustomer/LiveCustomer.wxss
  72. 247 0
      pages/OfflinePayment/OfflinePayment.js
  73. 3 0
      pages/OfflinePayment/OfflinePayment.json
  74. 106 0
      pages/OfflinePayment/OfflinePayment.wxml
  75. 273 0
      pages/OfflinePayment/OfflinePayment.wxss
  76. 82 0
      pages/OfflinePayment/pages/auctionprotocol/auctionprotocol.js
  77. 3 0
      pages/OfflinePayment/pages/auctionprotocol/auctionprotocol.json
  78. 62 0
      pages/OfflinePayment/pages/auctionprotocol/auctionprotocol.wxml
  79. 60 0
      pages/OfflinePayment/pages/auctionprotocol/auctionprotocol.wxss
  80. 81 0
      pages/OfflinePayment/pages/depositprotocol/depositprotocol.js
  81. 3 0
      pages/OfflinePayment/pages/depositprotocol/depositprotocol.json
  82. 32 0
      pages/OfflinePayment/pages/depositprotocol/depositprotocol.wxml
  83. 60 0
      pages/OfflinePayment/pages/depositprotocol/depositprotocol.wxss
  84. binární
      pages/activity/luckywheel/images/2018062710423299.png
  85. 243 0
      pages/activity/luckywheel/luckywheel.js
  86. 3 0
      pages/activity/luckywheel/luckywheel.json
  87. 39 0
      pages/activity/luckywheel/luckywheel.wxml
  88. 172 0
      pages/activity/luckywheel/luckywheel.wxss
  89. 59 0
      pages/agreement/agreement.js
  90. 1 0
      pages/agreement/agreement.json
  91. 2 0
      pages/agreement/agreement.wxml
  92. 1 0
      pages/agreement/agreement.wxss
  93. 135 0
      pages/auctioneer/auctioneer.js
  94. 3 0
      pages/auctioneer/auctioneer.json
  95. 33 0
      pages/auctioneer/auctioneer.wxml
  96. 104 0
      pages/auctioneer/auctioneer.wxss
  97. 5 0
      pages/classify/classify.js
  98. 3 0
      pages/classify/classify.json
  99. 24 0
      pages/classify/classify.wxml
  100. 0 0
      pages/classify/classify.wxss

+ 14 - 0
.gitignore

@@ -0,0 +1,14 @@
1
+# Windows
2
+[Dd]esktop.ini
3
+Thumbs.db
4
+$RECYCLE.BIN/
5
+
6
+# macOS
7
+.DS_Store
8
+.fseventsd
9
+.Spotlight-V100
10
+.TemporaryItems
11
+.Trashes
12
+
13
+# Node.js
14
+node_modules/

+ 2 - 0
.idea/.gitignore

@@ -0,0 +1,2 @@
1
+# Default ignored files
2
+/workspace.xml

+ 6 - 0
.idea/misc.xml

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="JavaScriptSettings">
4
+    <option name="languageLevel" value="ES6" />
5
+  </component>
6
+</project>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/.idea/ypgapp.iml" filepath="$PROJECT_DIR$/.idea/ypgapp.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
5
+  </component>
6
+</project>

+ 9 - 0
.idea/ypgapp.iml

@@ -0,0 +1,9 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+    <exclude-output />
5
+    <content url="file://$MODULE_DIR$" />
6
+    <orderEntry type="inheritedJdk" />
7
+    <orderEntry type="sourceFolder" forTests="false" />
8
+  </component>
9
+</module>

+ 188 - 0
app.js

@@ -0,0 +1,188 @@
1
+//app.js
2
+var JMessage = require('./libs/jmessage-wxapplet-sdk-1.4.2.min.js')
3
+App({
4
+  onLaunch: function () {
5
+    // 展示本地存储能力
6
+    let _this = this;
7
+    let logs = wx.getStorageSync('logs') || []
8
+    const updateManager = wx.getUpdateManager()
9
+
10
+    updateManager.onCheckForUpdate(function (res) {
11
+      // 请求完新版本信息的回调
12
+      if (res.hasUpdate) {
13
+        updateManager.onUpdateReady(function () {
14
+          wx.showModal({
15
+            title: '更新提示',
16
+            content: '新版本已经准备好,是否重启应用?',
17
+            success(res) {
18
+              if (res.confirm) {
19
+                // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
20
+                updateManager.applyUpdate()
21
+              }
22
+            }
23
+          })
24
+        })
25
+      };
26
+    })
27
+    
28
+    logs.unshift(Date.now());
29
+    wx.setStorageSync('logs', logs);
30
+    wx.login({
31
+      success: loginCode => {
32
+        wx.setStorageSync('key', { 'code': loginCode.code });
33
+        wx.request({
34
+          url: _this.globalData.prodUrl + 'web-sso/get_open_id',
35
+          data: {
36
+            code: loginCode.code
37
+          },
38
+          success: function (data) {
39
+
40
+            _this.globalData.requestStatus = true;
41
+            wx.setStorageSync('key', { 'openid': data.data.data.openid, 'ydw_token': data.data.ydw_token, 'persionid': data.data.persion.kid});
42
+            wx.setStorageSync('persion', { 'persion': data.data.persion });
43
+            // 去支付提醒
44
+            _this.payRemind();
45
+            if(data.data.is_first) {
46
+              _this.globalData.is_first = true; 
47
+            };
48
+            if(data.data.red_pack_msg.length>0) {
49
+              _this.globalData.red_pack_msg = data.data.red_pack_msg.length
50
+            }
51
+          }
52
+        })
53
+        // 发送 res.code 到后台换取 openId, sessionKey, unionId
54
+      }
55
+    })
56
+    //获取openID
57
+    // _this.getLogs(_this);
58
+    // 获取用户信息
59
+    // wx.getSetting({
60
+    //   success: res => {
61
+    //     if (res.authSetting['scope.userInfo']) {
62
+    //       // 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
63
+    //       wx.getUserInfo({
64
+    //         success: res => {
65
+    //           // 可以将 res 发送给后台解码出 unionId
66
+    //           this.globalData.userInfo = res.userInfo
67
+    //           console.log(this.globalData.userInfo)
68
+    //           // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
69
+    //           // 所以此处加入 callback 以防止这种情况
70
+    //           if (this.userInfoReadyCallback) {
71
+    //             this.userInfoReadyCallback(res)
72
+    //           }
73
+    //         }
74
+    //       })
75
+    //     }
76
+    //   }
77
+    // });
78
+  },
79
+  globalData: {
80
+    userInfo: null,
81
+    requestStatus: false,
82
+    prodUrl: 'https://www.eqbidding.com/',
83
+    is_first: false,
84
+    awardsConfig: {},
85
+    red_pack_msg:0
86
+  },
87
+  getLogs: function (obj) {
88
+    return new Promise((resolve, reject) => {
89
+      let _this = obj;
90
+      wx.login({
91
+        success: loginCode => {
92
+          wx.setStorageSync('key', { 'code': loginCode.code });
93
+          wx.request({
94
+            url: _this.globalData.prodUrl + 'web-sso/get_open_id',
95
+            data: {
96
+              code: loginCode.code
97
+            },
98
+            success: function (data) {
99
+              _this.globalData.requestStatus = true;
100
+              wx.setStorageSync('key', { 'openid': data.data.data.openid, 'ydw_token': data.data.ydw_token });
101
+              wx.setStorageSync('persion', { 'persion': data.data.persion });
102
+              resolve();
103
+              if (data.data.is_first) {
104
+                _this.globalData.is_first = true;
105
+              };
106
+              if (data.data.red_pack_msg.length > 0) {
107
+                _this.globalData.red_pack_msg = data.data.red_pack_msg.length
108
+              };
109
+            }, 
110
+            fail: reject 
111
+          })
112
+        }
113
+      })
114
+    })
115
+  },
116
+  payRemind : function () {
117
+    let _this = this;
118
+    wx.request({
119
+      url: _this.globalData.prodUrl + 'web-pm/wx/pm/wait_pay_money',
120
+      header: {
121
+        'ydw-token': wx.getStorageSync('key').ydw_token
122
+      },
123
+      success: function (data) {
124
+        if (data.data.status!=500){
125
+          if (data.data.data.length > 0) {
126
+            wx.showModal({
127
+              title: '温馨提示',
128
+              content: '您有' + data.data.data.length + '件商品未付款',
129
+              confirmText: '去支付',
130
+              showCancel: false,
131
+              success(res) {
132
+                if (res.confirm) {
133
+                  wx.navigateTo({
134
+                    url: '/pages/mine/wxml/beingphotographed/beingphotographed'
135
+                  })
136
+                }
137
+              }
138
+            })
139
+          }
140
+        }
141
+
142
+      },
143
+    });
144
+  },
145
+  update: function (userinfo) {
146
+    var _this = this;
147
+    wx.request({
148
+      url: _this.globalData.prodUrl + 'web-pm/wx/pm/update_userinfo',
149
+      data: {
150
+        userinfo
151
+      },
152
+      header: { 'ydw-token': wx.getStorageSync('key').ydw_token },
153
+      method: 'GET',
154
+      dataType: 'json',
155
+      responseType: 'text',
156
+      success: function (data) {
157
+        wx.setStorageSync('persion', { 'persion': data.data.persion });
158
+        _this.globalData.userInfo = true
159
+      },
160
+      fail: function (res) { }
161
+    })
162
+  },
163
+   smalltoBIG(n){
164
+        var fraction = ['角', '分'];
165
+        var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
166
+        var unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
167
+        var head = n < 0 ? '欠' : '';
168
+        n = Math.abs(n);
169
+
170
+        var s = '';
171
+
172
+        for(var i = 0; i<fraction.length; i++){
173
+            s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
174
+        }
175
+        s = s || '整';
176
+        n = Math.floor(n);
177
+
178
+        for (var i = 0; i < unit[0].length && n > 0; i++) {
179
+            var p = '';
180
+            for (var j = 0; j < unit[1].length && n > 0; j++) {
181
+                p = digit[n % 10] + unit[1][j] + p;
182
+                n = Math.floor(n / 10);
183
+            }
184
+            s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
185
+        }
186
+            return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整');    
187
+    }  
188
+})

+ 104 - 0
app.json

@@ -0,0 +1,104 @@
1
+{
2
+    "pages": [
3
+        "pages/index/index",
4
+        "pages/OfflinePayment/OfflinePayment",
5
+        "pages/mine/wxml/release/release",
6
+        "pages/details/details",
7
+        "pages/payDeposit/payDeposit",
8
+        "pages/ContentDetails/ContentDetails",
9
+        "pages/logs/logs",
10
+        "pages/newdeal/newdeal",
11
+        "pages/contactus/contactus",
12
+        "pages/mine/mine",
13
+        "pages/unboxing/unboxing",
14
+        "pages/classify/classify",
15
+        "pages/unboxingdetails/unboxingdetails",
16
+        "pages/recharge/recharge",
17
+        "pages/agreement/agreement",
18
+        "pages/livehome/livehome",
19
+        "pages/payDeposit/pages/auctionprotocol/auctionprotocol",
20
+        "pages/payDeposit/pages/depositprotocol/depositprotocol",
21
+        "pages/payDeposit/pages/commitment/commitment",
22
+        "pages/payDeposit/pages/networkprotocol/networkprotocol",
23
+        "pages/mine/wxml/setup/setup",
24
+        "pages/mine/wxml/personaldata/personaldata",
25
+        "pages/mine/wxml/beingphotographed/beingphotographed",
26
+        "pages/mine/wxml/pat/pat",
27
+        "pages/mine/wxml/news/news",
28
+        "pages/mine/wxml/receivingaddress/receivingaddress",
29
+        "pages/mine/wxml/add/add",
30
+        "pages/mine/wxml/seller/seller",
31
+        "pages/mine/wxml/certification/certification",
32
+        "pages/mine/wxml/submitinfo/submitinfo",
33
+        "pages/mine/wxml/allthesellers/allthesellers",
34
+        "pages/mine/wxml/collection/collection",
35
+        "pages/mine/wxml/goodstobereceived/goodstobereceived",
36
+        "pages/mine/wxml/pendingdelivery/pendingdelivery",
37
+        "pages/auctioneer/auctioneer",
38
+        "pages/mine/wxml/Connect/Connect",
39
+        "pages/mine/wxml/biddersrecord/biddersrecord",
40
+        "pages/mine/wxml/edit/edit",
41
+        "pages/mine/wxml/shopregistration/shopregistration",
42
+        "pages/mine/wxml/logistics/logistics",
43
+        "pages/mine/wxml/upload/upload",
44
+        "pages/mine/wxml/establish/establish",
45
+        "pages/mine/wxml/tobeaudited/tobeaudited",
46
+        "pages/mine/wxml/published/published",
47
+        "pages/mine/wxml/unchecked/unchecked",
48
+        "pages/mine/wxml/directlivemodification/directlivemodification",
49
+        "pages/mine/wxml/playpusher/playpusher",
50
+        "pages/mine/wxml/pendingreviews/pendingreviews",
51
+        "pages/mine/wxml/untriedproducts/untriedproducts",
52
+        "pages/mine/wxml/amendthebaby/amendthebaby",
53
+        "pages/mine/wxml/paypage/paypage",
54
+        "pages/mine/wxml/sold/sold",
55
+        "pages/mine/wxml/delivergoods/delivergoods",
56
+        "pages/mine/wxml/bond/bond",
57
+        "pages/mine/wxml/feedback/feedback",
58
+        "pages/mine/wxml/myredpacket/myredpacket",
59
+        "pages/mine/wxml/operating/operating",
60
+        "pages/mine/wxml/redpackrule/redpackrule",
61
+        "pages/list/list",
62
+        "pages/more/more",
63
+        "pages/live/live",
64
+        "pages/activity/luckywheel/luckywheel",
65
+        "pages/recordlist/recordlist"
66
+    ],
67
+    "window": {
68
+        "backgroundTextStyle": "dark",
69
+        "navigationBarBackgroundColor": "#fb752c",
70
+        "navigationBarTitleText": "云拍格",
71
+        "navigationBarTextStyle": "white",
72
+        "navigationStyle": "default",
73
+        "onPullDownRefresh": true,
74
+        "backgroundColor": "#f1f1f1"
75
+    },
76
+    "tabBar": {
77
+        "list": [
78
+            {
79
+                "pagePath": "pages/index/index",
80
+                "text": "珍品竞买",
81
+                "iconPath": "images/home.png",
82
+                "selectedIconPath": "images/s-home.png"
83
+            },
84
+            {
85
+                "pagePath": "pages/livehome/livehome",
86
+                "text": "专场拍卖会",
87
+                "iconPath": "images/paimai.png",
88
+                "selectedIconPath": "images/s-paimai.png"
89
+            },
90
+            {
91
+                "pagePath": "pages/mine/mine",
92
+                "text": "我的",
93
+                "iconPath": "images/my.png",
94
+                "selectedIconPath": "images/s-my.png"
95
+            }
96
+        ],
97
+        "color": "#333",
98
+        "selectedColor": "#fb752c",
99
+        "backgroundColor": "#f1f1f1",
100
+        "borderStyle": "black",
101
+        "position": "bottom"
102
+    },
103
+    "sitemapLocation": "sitemap.json"
104
+}

+ 9 - 0
app.wxss

@@ -0,0 +1,9 @@
1
+/**app.wxss**/
2
+.container {
3
+  height: 100%;
4
+  display: flex;
5
+  flex-direction: column;
6
+  align-items: center;
7
+  justify-content: space-between;
8
+  box-sizing: border-box;
9
+} 

+ 370 - 0
font_ksq3u1eobo9lik9/demo.css

@@ -0,0 +1,370 @@
1
+*{margin: 0;padding: 0;list-style: none;}
2
+/*
3
+KISSY CSS Reset
4
+理念:1. reset 的目的不是清除浏览器的默认样式,这仅是部分工作。清除和重置是紧密不可分的。
5
+2. reset 的目的不是让默认样式在所有浏览器下一致,而是减少默认样式有可能带来的问题。
6
+3. reset 期望提供一套普适通用的基础样式。但没有银弹,推荐根据具体需求,裁剪和修改后再使用。
7
+特色:1. 适应中文;2. 基于最新主流浏览器。
8
+维护:玉伯<lifesinger@gmail.com>, 正淳<ragecarrier@gmail.com>
9
+ */
10
+
11
+/** 清除内外边距 **/
12
+body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
13
+dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
14
+pre, /* text formatting elements 文本格式元素 */
15
+form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
16
+th, td /* table elements 表格元素 */ {
17
+  margin: 0;
18
+  padding: 0;
19
+}
20
+
21
+/** 设置默认字体 **/
22
+body,
23
+button, input, select, textarea /* for ie */ {
24
+  font: 12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;
25
+}
26
+h1, h2, h3, h4, h5, h6 { font-size: 100%; }
27
+address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
28
+code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */
29
+small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
30
+
31
+/** 重置列表元素 **/
32
+ul, ol { list-style: none; }
33
+
34
+/** 重置文本格式元素 **/
35
+a { text-decoration: none; }
36
+a:hover { text-decoration: underline; }
37
+
38
+
39
+/** 重置表单元素 **/
40
+legend { color: #000; } /* for ie6 */
41
+fieldset, img { border: 0; } /* img 搭车:让链接里的 img 无边框 */
42
+button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
43
+/* 注:optgroup 无法扶正 */
44
+
45
+/** 重置表格元素 **/
46
+table { border-collapse: collapse; border-spacing: 0; }
47
+
48
+/* 清除浮动 */
49
+.ks-clear:after, .clear:after {
50
+  content: '\20';
51
+  display: block;
52
+  height: 0;
53
+  clear: both;
54
+}
55
+.ks-clear, .clear {
56
+  *zoom: 1;
57
+}
58
+
59
+.main {
60
+  padding: 30px 100px;
61
+width: 960px;
62
+margin: 0 auto;
63
+}
64
+.main h1{font-size:36px; color:#333; text-align:left;margin-bottom:30px; border-bottom: 1px solid #eee;}
65
+
66
+.helps{margin-top:40px;}
67
+.helps pre{
68
+  padding:20px;
69
+  margin:10px 0;
70
+  border:solid 1px #e7e1cd;
71
+  background-color: #fffdef;
72
+  overflow: auto;
73
+}
74
+
75
+.icon_lists{
76
+  width: 100% !important;
77
+
78
+}
79
+
80
+.icon_lists li{
81
+  float:left;
82
+  width: 100px;
83
+  height:180px;
84
+  text-align: center;
85
+  list-style: none !important;
86
+}
87
+.icon_lists .icon{
88
+  font-size: 42px;
89
+  line-height: 100px;
90
+  margin: 10px 0;
91
+  color:#333;
92
+  -webkit-transition: font-size 0.25s ease-out 0s;
93
+  -moz-transition: font-size 0.25s ease-out 0s;
94
+  transition: font-size 0.25s ease-out 0s;
95
+
96
+}
97
+.icon_lists .icon:hover{
98
+  font-size: 100px;
99
+}
100
+
101
+
102
+
103
+.markdown {
104
+  color: #666;
105
+  font-size: 14px;
106
+  line-height: 1.8;
107
+}
108
+
109
+.highlight {
110
+  line-height: 1.5;
111
+}
112
+
113
+.markdown img {
114
+  vertical-align: middle;
115
+  max-width: 100%;
116
+}
117
+
118
+.markdown h1 {
119
+  color: #404040;
120
+  font-weight: 500;
121
+  line-height: 40px;
122
+  margin-bottom: 24px;
123
+}
124
+
125
+.markdown h2,
126
+.markdown h3,
127
+.markdown h4,
128
+.markdown h5,
129
+.markdown h6 {
130
+  color: #404040;
131
+  margin: 1.6em 0 0.6em 0;
132
+  font-weight: 500;
133
+  clear: both;
134
+}
135
+
136
+.markdown h1 {
137
+  font-size: 28px;
138
+}
139
+
140
+.markdown h2 {
141
+  font-size: 22px;
142
+}
143
+
144
+.markdown h3 {
145
+  font-size: 16px;
146
+}
147
+
148
+.markdown h4 {
149
+  font-size: 14px;
150
+}
151
+
152
+.markdown h5 {
153
+  font-size: 12px;
154
+}
155
+
156
+.markdown h6 {
157
+  font-size: 12px;
158
+}
159
+
160
+.markdown hr {
161
+  height: 1px;
162
+  border: 0;
163
+  background: #e9e9e9;
164
+  margin: 16px 0;
165
+  clear: both;
166
+}
167
+
168
+.markdown p,
169
+.markdown pre {
170
+  margin: 1em 0;
171
+}
172
+
173
+.markdown > p,
174
+.markdown > blockquote,
175
+.markdown > .highlight,
176
+.markdown > ol,
177
+.markdown > ul {
178
+  width: 80%;
179
+}
180
+
181
+.markdown ul > li {
182
+  list-style: circle;
183
+}
184
+
185
+.markdown > ul li,
186
+.markdown blockquote ul > li {
187
+  margin-left: 20px;
188
+  padding-left: 4px;
189
+}
190
+
191
+.markdown > ul li p,
192
+.markdown > ol li p {
193
+  margin: 0.6em 0;
194
+}
195
+
196
+.markdown ol > li {
197
+  list-style: decimal;
198
+}
199
+
200
+.markdown > ol li,
201
+.markdown blockquote ol > li {
202
+  margin-left: 20px;
203
+  padding-left: 4px;
204
+}
205
+
206
+.markdown code {
207
+  margin: 0 3px;
208
+  padding: 0 5px;
209
+  background: #eee;
210
+  border-radius: 3px;
211
+}
212
+
213
+.markdown pre {
214
+  border-radius: 6px;
215
+  background: #f7f7f7;
216
+  padding: 20px;
217
+}
218
+
219
+.markdown pre code {
220
+  border: none;
221
+  background: #f7f7f7;
222
+  margin: 0;
223
+}
224
+
225
+.markdown strong,
226
+.markdown b {
227
+  font-weight: 600;
228
+}
229
+
230
+.markdown > table {
231
+  border-collapse: collapse;
232
+  border-spacing: 0px;
233
+  empty-cells: show;
234
+  border: 1px solid #e9e9e9;
235
+  width: 95%;
236
+  margin-bottom: 24px;
237
+}
238
+
239
+.markdown > table th {
240
+  white-space: nowrap;
241
+  color: #333;
242
+  font-weight: 600;
243
+
244
+}
245
+
246
+.markdown > table th,
247
+.markdown > table td {
248
+  border: 1px solid #e9e9e9;
249
+  padding: 8px 16px;
250
+  text-align: left;
251
+}
252
+
253
+.markdown > table th {
254
+  background: #F7F7F7;
255
+}
256
+
257
+.markdown blockquote {
258
+  font-size: 90%;
259
+  color: #999;
260
+  border-left: 4px solid #e9e9e9;
261
+  padding-left: 0.8em;
262
+  margin: 1em 0;
263
+  font-style: italic;
264
+}
265
+
266
+.markdown blockquote p {
267
+  margin: 0;
268
+}
269
+
270
+.markdown .anchor {
271
+  opacity: 0;
272
+  transition: opacity 0.3s ease;
273
+  margin-left: 8px;
274
+}
275
+
276
+.markdown .waiting {
277
+  color: #ccc;
278
+}
279
+
280
+.markdown h1:hover .anchor,
281
+.markdown h2:hover .anchor,
282
+.markdown h3:hover .anchor,
283
+.markdown h4:hover .anchor,
284
+.markdown h5:hover .anchor,
285
+.markdown h6:hover .anchor {
286
+  opacity: 1;
287
+  display: inline-block;
288
+}
289
+
290
+.markdown > br,
291
+.markdown > p > br {
292
+  clear: both;
293
+}
294
+
295
+
296
+.hljs {
297
+  display: block;
298
+  background: white;
299
+  padding: 0.5em;
300
+  color: #333333;
301
+  overflow-x: auto;
302
+}
303
+
304
+.hljs-comment,
305
+.hljs-meta {
306
+  color: #969896;
307
+}
308
+
309
+.hljs-string,
310
+.hljs-variable,
311
+.hljs-template-variable,
312
+.hljs-strong,
313
+.hljs-emphasis,
314
+.hljs-quote {
315
+  color: #df5000;
316
+}
317
+
318
+.hljs-keyword,
319
+.hljs-selector-tag,
320
+.hljs-type {
321
+  color: #a71d5d;
322
+}
323
+
324
+.hljs-literal,
325
+.hljs-symbol,
326
+.hljs-bullet,
327
+.hljs-attribute {
328
+  color: #0086b3;
329
+}
330
+
331
+.hljs-section,
332
+.hljs-name {
333
+  color: #63a35c;
334
+}
335
+
336
+.hljs-tag {
337
+  color: #333333;
338
+}
339
+
340
+.hljs-title,
341
+.hljs-attr,
342
+.hljs-selector-id,
343
+.hljs-selector-class,
344
+.hljs-selector-attr,
345
+.hljs-selector-pseudo {
346
+  color: #795da3;
347
+}
348
+
349
+.hljs-addition {
350
+  color: #55a532;
351
+  background-color: #eaffea;
352
+}
353
+
354
+.hljs-deletion {
355
+  color: #bd2c00;
356
+  background-color: #ffecec;
357
+}
358
+
359
+.hljs-link {
360
+  text-decoration: underline;
361
+}
362
+
363
+pre{
364
+  background: #fff;
365
+}
366
+
367
+
368
+
369
+
370
+

+ 100 - 0
font_ksq3u1eobo9lik9/demo_fontclass.html

@@ -0,0 +1,100 @@
1
+
2
+<!DOCTYPE html>
3
+<html>
4
+<head>
5
+    <meta charset="utf-8"/>
6
+    <title>IconFont</title>
7
+    <link rel="stylesheet" href="demo.css">
8
+    <link rel="stylesheet" href="iconfont.css">
9
+</head>
10
+<body>
11
+    <div class="main markdown">
12
+        <h1>IconFont 图标</h1>
13
+        <ul class="icon_lists clear">
14
+            
15
+                <li>
16
+                <i class="icon iconfont icon-rejectedorder"></i>
17
+                    <div class="name">rejected-order</div>
18
+                    <div class="fontclass">.icon-rejectedorder</div>
19
+                </li>
20
+            
21
+                <li>
22
+                <i class="icon iconfont icon-daifukuan"></i>
23
+                    <div class="name">待付 款</div>
24
+                    <div class="fontclass">.icon-daifukuan</div>
25
+                </li>
26
+            
27
+                <li>
28
+                <i class="icon iconfont icon-templatedefault"></i>
29
+                    <div class="name">template-default</div>
30
+                    <div class="fontclass">.icon-templatedefault</div>
31
+                </li>
32
+            
33
+                <li>
34
+                <i class="icon iconfont icon-xiangjixianxing"></i>
35
+                    <div class="name">相机-线性</div>
36
+                    <div class="fontclass">.icon-xiangjixianxing</div>
37
+                </li>
38
+            
39
+                <li>
40
+                <i class="icon iconfont icon-map"></i>
41
+                    <div class="name">地址</div>
42
+                    <div class="fontclass">.icon-map</div>
43
+                </li>
44
+            
45
+                <li>
46
+                <i class="icon iconfont icon-shezhi"></i>
47
+                    <div class="name">设置</div>
48
+                    <div class="fontclass">.icon-shezhi</div>
49
+                </li>
50
+            
51
+                <li>
52
+                <i class="icon iconfont icon-quanbu"></i>
53
+                    <div class="name">全部</div>
54
+                    <div class="fontclass">.icon-quanbu</div>
55
+                </li>
56
+            
57
+                <li>
58
+                <i class="icon iconfont icon-message"></i>
59
+                    <div class="name">消息</div>
60
+                    <div class="fontclass">.icon-message</div>
61
+                </li>
62
+            
63
+                <li>
64
+                <i class="icon iconfont icon-file"></i>
65
+                    <div class="name">文本</div>
66
+                    <div class="fontclass">.icon-file</div>
67
+                </li>
68
+            
69
+                <li>
70
+                <i class="icon iconfont icon-qian"></i>
71
+                    <div class="name">钱</div>
72
+                    <div class="fontclass">.icon-qian</div>
73
+                </li>
74
+            
75
+        </ul>
76
+
77
+        <h2 id="font-class-">font-class引用</h2>
78
+        <hr>
79
+
80
+        <p>font-class是unicode使用方式的一种变种,主要是解决unicode书写不直观,语意不明确的问题。</p>
81
+        <p>与unicode使用方式相比,具有如下特点:</p>
82
+        <ul>
83
+        <li>兼容性良好,支持ie8+,及所有现代浏览器。</li>
84
+        <li>相比于unicode语意明确,书写更直观。可以很容易分辨这个icon是什么。</li>
85
+        <li>因为使用class来定义图标,所以当要替换图标时,只需要修改class里面的unicode引用。</li>
86
+        <li>不过因为本质上还是使用的字体,所以多色图标还是不支持的。</li>
87
+        </ul>
88
+        <p>使用步骤如下:</p>
89
+        <h3 id="-fontclass-">第一步:引入项目下面生成的fontclass代码:</h3>
90
+
91
+
92
+        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
93
+        <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
94
+        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
95
+        <blockquote>
96
+        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
97
+        </blockquote>
98
+    </div>
99
+</body>
100
+</html>

+ 143 - 0
font_ksq3u1eobo9lik9/demo_symbol.html

@@ -0,0 +1,143 @@
1
+
2
+<!DOCTYPE html>
3
+<html>
4
+<head>
5
+    <meta charset="utf-8"/>
6
+    <title>IconFont</title>
7
+    <link rel="stylesheet" href="demo.css">
8
+    <script src="iconfont.js"></script>
9
+
10
+    <style type="text/css">
11
+        .icon {
12
+          /* 通过设置 font-size 来改变图标大小 */
13
+          width: 1em; height: 1em;
14
+          /* 图标和文字相邻时,垂直对齐 */
15
+          vertical-align: -0.15em;
16
+          /* 通过设置 color 来改变 SVG 的颜色/fill */
17
+          fill: currentColor;
18
+          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
19
+             normalize.css 中也包含这行 */
20
+          overflow: hidden;
21
+        }
22
+
23
+    </style>
24
+</head>
25
+<body>
26
+    <div class="main markdown">
27
+        <h1>IconFont 图标</h1>
28
+        <ul class="icon_lists clear">
29
+            
30
+                <li>
31
+                    <svg class="icon" aria-hidden="true">
32
+                        <use xlink:href="#icon-rejectedorder"></use>
33
+                    </svg>
34
+                    <div class="name">rejected-order</div>
35
+                    <div class="fontclass">#icon-rejectedorder</div>
36
+                </li>
37
+            
38
+                <li>
39
+                    <svg class="icon" aria-hidden="true">
40
+                        <use xlink:href="#icon-daifukuan"></use>
41
+                    </svg>
42
+                    <div class="name">待付 款</div>
43
+                    <div class="fontclass">#icon-daifukuan</div>
44
+                </li>
45
+            
46
+                <li>
47
+                    <svg class="icon" aria-hidden="true">
48
+                        <use xlink:href="#icon-templatedefault"></use>
49
+                    </svg>
50
+                    <div class="name">template-default</div>
51
+                    <div class="fontclass">#icon-templatedefault</div>
52
+                </li>
53
+            
54
+                <li>
55
+                    <svg class="icon" aria-hidden="true">
56
+                        <use xlink:href="#icon-xiangjixianxing"></use>
57
+                    </svg>
58
+                    <div class="name">相机-线性</div>
59
+                    <div class="fontclass">#icon-xiangjixianxing</div>
60
+                </li>
61
+            
62
+                <li>
63
+                    <svg class="icon" aria-hidden="true">
64
+                        <use xlink:href="#icon-map"></use>
65
+                    </svg>
66
+                    <div class="name">地址</div>
67
+                    <div class="fontclass">#icon-map</div>
68
+                </li>
69
+            
70
+                <li>
71
+                    <svg class="icon" aria-hidden="true">
72
+                        <use xlink:href="#icon-shezhi"></use>
73
+                    </svg>
74
+                    <div class="name">设置</div>
75
+                    <div class="fontclass">#icon-shezhi</div>
76
+                </li>
77
+            
78
+                <li>
79
+                    <svg class="icon" aria-hidden="true">
80
+                        <use xlink:href="#icon-quanbu"></use>
81
+                    </svg>
82
+                    <div class="name">全部</div>
83
+                    <div class="fontclass">#icon-quanbu</div>
84
+                </li>
85
+            
86
+                <li>
87
+                    <svg class="icon" aria-hidden="true">
88
+                        <use xlink:href="#icon-message"></use>
89
+                    </svg>
90
+                    <div class="name">消息</div>
91
+                    <div class="fontclass">#icon-message</div>
92
+                </li>
93
+            
94
+                <li>
95
+                    <svg class="icon" aria-hidden="true">
96
+                        <use xlink:href="#icon-file"></use>
97
+                    </svg>
98
+                    <div class="name">文本</div>
99
+                    <div class="fontclass">#icon-file</div>
100
+                </li>
101
+            
102
+                <li>
103
+                    <svg class="icon" aria-hidden="true">
104
+                        <use xlink:href="#icon-qian"></use>
105
+                    </svg>
106
+                    <div class="name">钱</div>
107
+                    <div class="fontclass">#icon-qian</div>
108
+                </li>
109
+            
110
+        </ul>
111
+
112
+
113
+        <h2 id="symbol-">symbol引用</h2>
114
+        <hr>
115
+
116
+        <p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
117
+        这种用法其实是做了一个svg的集合,与另外两种相比具有如下特点:</p>
118
+        <ul>
119
+          <li>支持多色图标了,不再受单色限制。</li>
120
+          <li>通过一些技巧,支持像字体那样,通过<code>font-size</code>,<code>color</code>来调整样式。</li>
121
+          <li>兼容性较差,支持 ie9+,及现代浏览器。</li>
122
+          <li>浏览器渲染svg的性能一般,还不如png。</li>
123
+        </ul>
124
+        <p>使用步骤如下:</p>
125
+        <h3 id="-symbol-">第一步:引入项目下面生成的symbol代码:</h3>
126
+        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
127
+        <h3 id="-css-">第二步:加入通用css代码(引入一次就行):</h3>
128
+        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
129
+.icon {
130
+   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
131
+   vertical-align: <span class="hljs-number">-0.15</span>em;
132
+   fill: currentColor;
133
+   overflow: hidden;
134
+}
135
+&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
136
+        <h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3>
137
+        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
138
+  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
139
+</span>&lt;<span class="hljs-regexp">/svg&gt;
140
+        </span></code></pre>
141
+    </div>
142
+</body>
143
+</html>

+ 138 - 0
font_ksq3u1eobo9lik9/demo_unicode.html

@@ -0,0 +1,138 @@
1
+
2
+<!DOCTYPE html>
3
+<html>
4
+<head>
5
+    <meta charset="utf-8"/>
6
+    <title>IconFont</title>
7
+    <link rel="stylesheet" href="demo.css">
8
+
9
+    <style type="text/css">
10
+
11
+        @font-face {font-family: "iconfont";
12
+          src: url('iconfont.eot'); /* IE9*/
13
+          src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
14
+          url('iconfont.woff') format('woff'), /* chrome, firefox */
15
+          url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
16
+          url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
17
+        }
18
+
19
+        .iconfont {
20
+          font-family:"iconfont" !important;
21
+          font-size:16px;
22
+          font-style:normal;
23
+          -webkit-font-smoothing: antialiased;
24
+          -webkit-text-stroke-width: 0.2px;
25
+          -moz-osx-font-smoothing: grayscale;
26
+        }
27
+
28
+    </style>
29
+</head>
30
+<body>
31
+    <div class="main markdown">
32
+        <h1>IconFont 图标</h1>
33
+        <ul class="icon_lists clear">
34
+            
35
+                <li>
36
+                <i class="icon iconfont">&#xe724;</i>
37
+                    <div class="name">rejected-order</div>
38
+                    <div class="code">&amp;#xe724;</div>
39
+                </li>
40
+            
41
+                <li>
42
+                <i class="icon iconfont">&#xe607;</i>
43
+                    <div class="name">待付 款</div>
44
+                    <div class="code">&amp;#xe607;</div>
45
+                </li>
46
+            
47
+                <li>
48
+                <i class="icon iconfont">&#xe74a;</i>
49
+                    <div class="name">template-default</div>
50
+                    <div class="code">&amp;#xe74a;</div>
51
+                </li>
52
+            
53
+                <li>
54
+                <i class="icon iconfont">&#xe63f;</i>
55
+                    <div class="name">相机-线性</div>
56
+                    <div class="code">&amp;#xe63f;</div>
57
+                </li>
58
+            
59
+                <li>
60
+                <i class="icon iconfont">&#xe699;</i>
61
+                    <div class="name">地址</div>
62
+                    <div class="code">&amp;#xe699;</div>
63
+                </li>
64
+            
65
+                <li>
66
+                <i class="icon iconfont">&#xe601;</i>
67
+                    <div class="name">设置</div>
68
+                    <div class="code">&amp;#xe601;</div>
69
+                </li>
70
+            
71
+                <li>
72
+                <i class="icon iconfont">&#xe639;</i>
73
+                    <div class="name">全部</div>
74
+                    <div class="code">&amp;#xe639;</div>
75
+                </li>
76
+            
77
+                <li>
78
+                <i class="icon iconfont">&#xe618;</i>
79
+                    <div class="name">消息</div>
80
+                    <div class="code">&amp;#xe618;</div>
81
+                </li>
82
+            
83
+                <li>
84
+                <i class="icon iconfont">&#xe6d3;</i>
85
+                    <div class="name">文本</div>
86
+                    <div class="code">&amp;#xe6d3;</div>
87
+                </li>
88
+            
89
+                <li>
90
+                <i class="icon iconfont">&#xe602;</i>
91
+                    <div class="name">钱</div>
92
+                    <div class="code">&amp;#xe602;</div>
93
+                </li>
94
+            
95
+        </ul>
96
+        <h2 id="unicode-">unicode引用</h2>
97
+        <hr>
98
+
99
+        <p>unicode是字体在网页端最原始的应用方式,特点是:</p>
100
+        <ul>
101
+        <li>兼容性最好,支持ie6+,及所有现代浏览器。</li>
102
+        <li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
103
+        <li>但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。</li>
104
+        </ul>
105
+        <blockquote>
106
+        <p>注意:新版iconfont支持多色图标,这些多色图标在unicode模式下将不能使用,如果有需求建议使用symbol的引用方式</p>
107
+        </blockquote>
108
+        <p>unicode使用步骤如下:</p>
109
+        <h3 id="-font-face">第一步:拷贝项目下面生成的font-face</h3>
110
+        <pre><code class="lang-js hljs javascript">@font-face {
111
+  font-family: <span class="hljs-string">'iconfont'</span>;
112
+  src: url(<span class="hljs-string">'iconfont.eot'</span>);
113
+  src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>),
114
+  url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>),
115
+  url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>),
116
+  url(<span class="hljs-string">'iconfont.svg#iconfont'</span>) format(<span class="hljs-string">'svg'</span>);
117
+}
118
+</code></pre>
119
+        <h3 id="-iconfont-">第二步:定义使用iconfont的样式</h3>
120
+        <pre><code class="lang-js hljs javascript">.iconfont{
121
+  font-family:<span class="hljs-string">"iconfont"</span> !important;
122
+  font-size:<span class="hljs-number">16</span>px;font-style:normal;
123
+  -webkit-font-smoothing: antialiased;
124
+  -webkit-text-stroke-width: <span class="hljs-number">0.2</span>px;
125
+  -moz-osx-font-smoothing: grayscale;
126
+}
127
+</code></pre>
128
+        <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
129
+        <pre><code class="lang-js hljs javascript">&lt;i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"iconfont"</span>&gt;&amp;#x33;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span></span></code></pre>
130
+
131
+        <blockquote>
132
+        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
133
+        </blockquote>
134
+    </div>
135
+
136
+
137
+</body>
138
+</html>

Diff nebyl zobrazen, protože je příliš veliký
+ 37 - 0
font_ksq3u1eobo9lik9/iconfont.css


binární
font_ksq3u1eobo9lik9/iconfont.eot


Diff nebyl zobrazen, protože je příliš veliký
+ 1 - 0
font_ksq3u1eobo9lik9/iconfont.js


Diff nebyl zobrazen, protože je příliš veliký
+ 63 - 0
font_ksq3u1eobo9lik9/iconfont.svg


binární
font_ksq3u1eobo9lik9/iconfont.ttf


binární
font_ksq3u1eobo9lik9/iconfont.woff


binární
images/ContentDetails.png


binární
images/ad.jpg


binární
images/addicon.png


binární
images/arrow.png


binární
images/box.png


binární
images/classify.png


binární
images/clock.png


binární
images/collect-s.png


binární
images/collect.png


binární
images/detail1.png


binární
images/detail2.png


binární
images/detail3.png


binární
images/follow.png


binární
images/followdy.png


binární
images/home.png


binární
images/jia1.png


binární
images/my.png


binární
images/newobj.png


binární
images/notplay.png


binární
images/orgin.png


binární
images/paimai.png


binární
images/paimaihui.png


binární
images/player.png


binární
images/record.png


binární
images/red.png


binární
images/rotate-black.png


binární
images/rotate-white.png


binární
images/s-classify.png


binární
images/s-home.png


binární
images/s-my.png


binární
images/s-newobj.png


binární
images/s-paimai.png


binární
images/s-player.png


binární
images/s-showdan.png


binární
images/share.png


binární
images/shouqi.png


binární
images/showdan.png


binární
images/up.png


binární
images/user.png


binární
images/userhead.png


binární
images/xh.png


binární
images/zhankan.png


Diff nebyl zobrazen, protože je příliš veliký
+ 1 - 0
libs/jmessage-wxapplet-sdk-1.4.2.min.js


+ 81 - 0
pages/ContentDetails/ContentDetails.js

@@ -0,0 +1,81 @@
1
+// pages/ContentDetails/ContentDetails.js
2
+Page({
3
+
4
+  /**
5
+   * 页面的初始数据
6
+   */
7
+  data: {
8
+
9
+  },
10
+
11
+  /**
12
+   * 生命周期函数--监听页面加载
13
+   */
14
+  onLoad: function (options) {
15
+
16
+  },
17
+
18
+  /**
19
+   * 拨打电话
20
+   */ 
21
+  phoneCall: function () {
22
+    wx.makePhoneCall({
23
+      phoneNumber: '400-609-9105',
24
+      fail: function () {
25
+        wx.showToast({
26
+          title: '电话拨打失败',
27
+          icon: 'none'
28
+        })
29
+      }
30
+    })
31
+  },
32
+
33
+  /**
34
+   * 生命周期函数--监听页面初次渲染完成
35
+   */
36
+  onReady: function () {
37
+
38
+  },
39
+
40
+  /**
41
+   * 生命周期函数--监听页面显示
42
+   */
43
+  onShow: function () {
44
+
45
+  },
46
+
47
+  /**
48
+   * 生命周期函数--监听页面隐藏
49
+   */
50
+  onHide: function () {
51
+
52
+  },
53
+
54
+  /**
55
+   * 生命周期函数--监听页面卸载
56
+   */
57
+  onUnload: function () {
58
+
59
+  },
60
+
61
+  /**
62
+   * 页面相关事件处理函数--监听用户下拉动作
63
+   */
64
+  onPullDownRefresh: function () {
65
+
66
+  },
67
+
68
+  /**
69
+   * 页面上拉触底事件的处理函数
70
+   */
71
+  onReachBottom: function () {
72
+
73
+  },
74
+
75
+  /**
76
+   * 用户点击右上角分享
77
+   */
78
+  onShareAppMessage: function () {
79
+
80
+  }
81
+})

+ 3 - 0
pages/ContentDetails/ContentDetails.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "一站式保函"
3
+}

Diff nebyl zobrazen, protože je příliš veliký
+ 24 - 0
pages/ContentDetails/ContentDetails.wxml


+ 67 - 0
pages/ContentDetails/ContentDetails.wxss

@@ -0,0 +1,67 @@
1
+/* pages/ContentDetails/ContentDetails.wxss */
2
+
3
+text {
4
+  padding: 0;
5
+  margin: 0;
6
+}
7
+
8
+.image {
9
+  height: 300rpx;
10
+  width: 100%;
11
+  overflow: hidden;
12
+}
13
+
14
+.image image {
15
+  height: 100%;
16
+  width: 100%;
17
+}
18
+
19
+.content {
20
+  padding: 0 10rpx;
21
+  box-sizing: border-box;
22
+  text-indent: 2em;
23
+  display: block;
24
+  font-size: 24rpx;
25
+  line-height: 48rpx;
26
+  text-align: left;
27
+  letter-spacing: 3rpx;
28
+  margin: 20rpx 0;
29
+}
30
+
31
+.content_img {
32
+  height: 160rpx;
33
+  width: 100%;
34
+  display: flex;
35
+  align-items: center;
36
+  justify-content: space-around;
37
+  letter-spacing: 3rpx;
38
+  margin-top: 10rpx;
39
+}
40
+
41
+.content_img image {
42
+  height: 100%;
43
+  width: 30%;
44
+}
45
+
46
+.process {
47
+  height: 930rpx;
48
+  width: 100%;
49
+  background: #fff;
50
+}
51
+
52
+.process image {
53
+  display: block;
54
+  width: 90%;
55
+  height: 100%;
56
+  margin: 0 auto;
57
+}
58
+
59
+.phoneCall {
60
+  text-align: center;
61
+  margin: 40rpx 0;
62
+  padding-bottom: 60rpx;
63
+}
64
+
65
+.phoneCall text {
66
+  color: #fb752c;
67
+}

+ 0 - 0
pages/ContentDetails/index.js


+ 173 - 0
pages/LiveCustomer/LiveCustomer.js

@@ -0,0 +1,173 @@
1
+// pages/LiveCustomer/LiveCustomer.js
2
+const app = getApp();
3
+Component({
4
+  /**
5
+   * 组件的属性列表
6
+   */
7
+  properties: {
8
+    pullUrl: {
9
+      type: String
10
+    },
11
+    kid : {
12
+      type : String
13
+    },
14
+    online_sum : {
15
+      type : Number
16
+    }
17
+  },
18
+
19
+  /**
20
+   * 组件的初始数据
21
+   */
22
+  data: {
23
+    bool : true,
24
+    x: 0,
25
+    y: 0,
26
+    chatText : "",
27
+    chatList : [],
28
+    playData : null,
29
+    scrollTop : 300,
30
+    time : 0,
31
+    num : 1,
32
+    timer : null
33
+  },
34
+  ready	 : function() {
35
+    var _this = this;
36
+    // _this.getTime();
37
+    // console.log(this.data.kid)
38
+     _this.getChatList();
39
+  },
40
+  /**
41
+   * 组件的方法列表
42
+   */
43
+  methods: {
44
+    doubleClick : function(e) {
45
+      var that = this
46
+      // 控制点击事件在350ms内触发,加这层判断是为了防止长按时会触发点击事件
47
+      if (that.data.touchEndTime - that.data.touchStartTime < 350) {
48
+        // 当前点击的时间
49
+        var currentTime = e.timeStamp
50
+        var lastTapTime = that.lastTapTime
51
+        // 更新最后一次点击时间
52
+        that.lastTapTime = currentTime
53
+        // 如果两次点击时间在300毫秒内,则认为是双击事件
54
+        if (currentTime - lastTapTime < 300) {
55
+          console.log("double tap")
56
+          // 成功触发双击事件时,取消单击事件的执行
57
+          this.setData({
58
+            bool : !this.data.bool
59
+          },function(){
60
+            setInterval(() => {
61
+              that.getChatList();
62
+            },1000)
63
+          })
64
+        }
65
+      }
66
+    },
67
+    touchStart: function (e) {
68
+      this.setData({
69
+        touchStartTime: e.timeStamp
70
+      })
71
+    },
72
+    /// 按钮触摸结束触发的事件
73
+    touchEnd: function (e) {
74
+      this.setData({
75
+        touchEndTime: e.timeStamp
76
+      })
77
+    },
78
+    send(e) {
79
+      let _this = this;
80
+      if (_this.data.chatText !== '') {
81
+        wx.request({
82
+          url: app.globalData.prodUrl + 'web-pm/wx/pm/add_chitchat',
83
+          data: {
84
+            content: _this.data.chatText,
85
+            liveroom_id: _this.data.kid
86
+          },
87
+          header: { 'ydw-token': wx.getStorageSync('key').ydw_token },
88
+          method: 'GET',
89
+          dataType: 'json',
90
+          responseType: 'text',
91
+          success: function (data) {
92
+            console.log(data)
93
+            _this.setData({
94
+              chatText: ''
95
+            },function() {
96
+              _this.getChatList()
97
+            })
98
+          }
99
+        })
100
+      } else {
101
+        
102
+      }
103
+    },
104
+    chatText(e) {
105
+      this.setData({
106
+        chatText: e.detail.value
107
+      })
108
+    },
109
+    getChatList() {
110
+      var _this = this;
111
+      wx.request({
112
+        url: app.globalData.prodUrl + 'web-pm/wx/pm/get_chatting_records',
113
+        data: {
114
+          live_room_id : _this.data.kid,
115
+          chat_time: _this.data.time
116
+        },
117
+        header: {
118
+          'ydw-token': wx.getStorageSync('key').ydw_token
119
+        },
120
+        method: 'GET',
121
+        dataType: 'json',
122
+        responseType: 'text',
123
+        success: function (data) {
124
+          var chatList = data.data.data;
125
+          var time = data.data.data[0].created;
126
+          _this.setData({
127
+            chatList: chatList,
128
+            time 
129
+          },function() {
130
+            _this.pageScrollToBottom();
131
+          })
132
+
133
+        }
134
+      })
135
+    },
136
+    pageScrollToBottom: function () {
137
+      var _this = this;
138
+        this.setData({
139
+          scrollTop : this.data.scrollTop + 40
140
+        },function() {
141
+          // console.log(_this.data.scrollTop)
142
+        }
143
+        )
144
+    },
145
+    Caeel : function() {
146
+      return false;
147
+    },
148
+    getTime : function() {
149
+      var _this = this;
150
+      wx.request({
151
+        url: app.globalData.prodUrl + 'web-pm/wx/pm/select_list',
152
+        data: {
153
+          kid: _this.data.kid
154
+        },
155
+        header: {
156
+          'ydw-token': wx.getStorageSync('key').ydw_token
157
+        },
158
+        success: function (data) {
159
+          _this.setData({
160
+            time: data.data.nowtime
161
+          },function(){
162
+            // setInterval(function () {
163
+            //   _this.getChatList();
164
+            // }, 1000)
165
+          })
166
+        }
167
+      })
168
+    },
169
+    updataUserInfo : function(e) {
170
+      console.log(e)
171
+    }
172
+  } 
173
+})

+ 4 - 0
pages/LiveCustomer/LiveCustomer.json

@@ -0,0 +1,4 @@
1
+{
2
+  "component": true,
3
+  "usingComponents": {}
4
+}

+ 33 - 0
pages/LiveCustomer/LiveCustomer.wxml

@@ -0,0 +1,33 @@
1
+<!--/pages/LiveCustomer/LiveCustomer.wxml-->
2
+<!-- 
3
+拍卖待完成:
4
+1.视频可拖拽
5
+2.视频双击可全屏,全屏双击可收缩
6
+3.后台开通拍卖客服,用户进入后打开拍卖;后台不开通,进入后不打开
7
+-->
8
+<!-- 自定义拍卖客服组件 -->
9
+<view class="box">
10
+<movable-area class="LiveCustomer">
11
+    <movable-view  x="{{0}}" y="{{0}}" direction="all" style="{{bool ? 'width: 150px;height:225px;' : 'width:100%;height:100%'}}" catchtouchmove="Caeel">
12
+          <live-player id="player" object-fit="fillCrop" src="{{pullUrl}}" mode="live" autoplay bindtap="doubleClick" bindtouchstart="touchStart" bindtouchend="touchEnd" data-time="{{lastTapTime}}" class="{{bool ? 'Liveplay' : 'LiveCustomerScreen'}}" />
13
+    </movable-view>
14
+    <view class="online_number">
15
+      <text>在线人数{{21 + online_sum}}人</text>
16
+    </view>
17
+  </movable-area>
18
+  <view class="chat" wx:if="{{!bool}}" catchtouchmove="Caeel">
19
+    <scroll-view class="chatbox" scroll-y="true" scroll-top="{{scrollTop}}" >
20
+      <view class="flex-wrp scro" style="flex-direction:column;" wx:for="{{chatList}}" wx:key="{{index}}" >
21
+        <view class="flex-item flex-item-V talk" id="chat">
22
+          <image src="{{item.avatarUrl}}" class="user_img"></image>
23
+          <text class="user">{{item.content ?  item.content : ""}}</text>
24
+        </view>
25
+      </view>
26
+    </scroll-view>
27
+    <view class="send" catchtouchmove="Caeel">
28
+      <input placeholder="说点什么吧~" bindinput="chatText" value="{{chatText}}" confirm-type="done" bindconfirm='send'></input>
29
+      <!-- <button bindtap='send'>发送</button> -->
30
+    </view>
31
+  </view>
32
+</view>
33
+

+ 119 - 0
pages/LiveCustomer/LiveCustomer.wxss

@@ -0,0 +1,119 @@
1
+/* pages/LiveCustomer/LiveCustomer.wxss */
2
+/* page {
3
+  height: 100%;
4
+  width: 100%;
5
+} */
6
+ .LiveCustomer{
7
+  overflow: hidden;
8
+  width: 100%;
9
+  height: 100%;
10
+  position: fixed;
11
+  z-index: 1000;
12
+  right: 0;
13
+  left: 0;
14
+  bottom: 0;
15
+  top: 0;
16
+}
17
+.Liveplay {
18
+  width: 150px;
19
+  position: fixed;
20
+  right: 0;
21
+  z-index: 1000;
22
+}
23
+.LiveCustomerScreen {
24
+  width: 100%;
25
+  height: 100%;
26
+  position: fixed;
27
+  z-index: 1000;
28
+} 
29
+/* live-player {
30
+  width: 150px;
31
+  height: 225px;
32
+} */
33
+.chat{
34
+  width: 100%;
35
+  height: 80rpx;
36
+  box-sizing: border-box;
37
+  /* border-top: 2rpx solid #ccc; */
38
+  position: absolute;
39
+  bottom: 190rpx;
40
+  left: 0;
41
+  z-index: 1001;
42
+}
43
+.chat input{
44
+  float: left;
45
+  width: 81%;
46
+  height: 60rpx;
47
+  background: #ededed;
48
+  margin: 20rpx 0 20rpx 30rpx;
49
+  border-radius: 30rpx; 
50
+  font-size: 28rpx;
51
+  padding-left: 40rpx;
52
+  padding-right: 40rpx;
53
+}
54
+.chat .btn{
55
+  float: right;
56
+  width: 50rpx;
57
+  height: 50rpx;
58
+  border-radius: 0;
59
+  background: none;
60
+  margin: 27rpx 20rpx 0 20rpx;
61
+}
62
+.chat .btn image{
63
+  width: 100%;
64
+  height: 100%;
65
+}
66
+.chat button{
67
+  float: left;
68
+  width: 20%;
69
+  height: 60rpx;
70
+  margin: 20rpx 0 20rpx 20rpx;
71
+  font-size: 28rpx;
72
+  background: #fb752c;
73
+  border-radius: 30rpx;
74
+  color: #fff;
75
+  line-height: 60rpx;
76
+}
77
+.scro {
78
+  overflow-y: scroll; 
79
+  margin-bottom: 20rpx; 
80
+}
81
+.user_img {
82
+  width: 40rpx;
83
+  height: 39rpx;
84
+  float: left;
85
+  margin-right: 18rpx;
86
+  border: 1px solid #fff;
87
+}
88
+.chatbox {
89
+  overflow: auto;
90
+  position: absolute;
91
+  z-index: 9999;
92
+  height: 300rpx;
93
+  bottom: 80rpx;
94
+  width: 90%;
95
+  padding-left: 30rpx;
96
+  padding-right: 60rpx;
97
+}
98
+.talk {
99
+  padding-left: 10rpx;
100
+  font-size: 14px;
101
+}
102
+.talk .user {
103
+  color: #60a2f0;
104
+  /* display: inline-block; */
105
+  /* vertical-align: middle; */
106
+}
107
+.talk .content {
108
+  color: #60a2f0;
109
+  height: 50rpx;
110
+  display: inline-block;
111
+  vertical-align: middle;
112
+}
113
+.online_number {
114
+  color: #60a2f0;
115
+  position: absolute;
116
+  top: 1%;
117
+  left: 3%;
118
+  font-size: 12px;
119
+}

+ 247 - 0
pages/OfflinePayment/OfflinePayment.js

@@ -0,0 +1,247 @@
1
+// pages/OfflinePayment/OfflinePayment.js
2
+const app = getApp()
3
+Page({
4
+
5
+  /**
6
+   * 页面的初始数据
7
+   */
8
+  data: {
9
+    kid: '',
10
+    deposit: '',
11
+    agree: true,
12
+    img:'',
13
+    fileid: '',
14
+    bidding_agreement_path:'https://www.eqbidding.com/web-cp-all/img_pm/file/1518499383111454720',
15
+    bidding_rules_path:'https://www.eqbidding.com/web-cp-all/img_pm/file/1518499383111454720',
16
+  },
17
+  formSubmit: function(e) {
18
+    
19
+    var _this = this;
20
+    var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
21
+    var format = /^(([1][1-5])|([2][1-3])|([3][1-7])|([4][1-6])|([5][0-4])|([6][1-5])|([7][1])|([8][1-2]))\d{4}(([1][9]\d{2})|([2]\d{3}))(([0][1-9])|([1][0-2]))(([0][1-9])|([1-2][0-9])|([3][0-1]))\d{3}[0-9xX]$/;
22
+    var receive_mobile = e.detail.value.number;
23
+    var id_card = e.detail.value.card;
24
+    var company_name = e.detail.value.company_name;
25
+    if (company_name == '' || company_name == undefined) {
26
+      wx.showToast({
27
+        title: '公司名称不能为空',
28
+        icon: 'none',
29
+        duration: 2000
30
+      });
31
+    } else if (!myreg.test(receive_mobile) || receive_mobile == "" || receive_mobile == undefined) {
32
+      wx.showToast({
33
+        title: '请输入正确的手机号',
34
+        icon: 'none',
35
+        duration: 2000
36
+      });
37
+    } else if (!format.test(id_card) || id_card == "" || id_card == undefined) {
38
+      wx.showToast({
39
+        title: '请输入正确格式的身份证号',
40
+        icon: 'none',
41
+        duration: 2000
42
+      });
43
+    } else if (this.data.agree) {
44
+      wx.request({
45
+        url: app.globalData.prodUrl + 'web-pm/wx/submit/offline_apply',
46
+        data: {
47
+          pm_item_id: this.data.kid,
48
+          receive_name: e.detail.value.name,
49
+          receive_mobile: receive_mobile,
50
+          id_card: id_card,
51
+          company_name: company_name,
52
+          file_id:this.data.fileid,
53
+
54
+        },
55
+        header: {
56
+          'ydw-token': wx.getStorageSync('key').ydw_token
57
+        },
58
+        method: 'GET',
59
+        dataType: 'json',
60
+        responseType: 'text',
61
+        success: function(res) {
62
+        
63
+          if (res.statusCode == 200) {
64
+            wx.navigateBack({})
65
+          }
66
+        },
67
+        fail: function(res) {}
68
+      })
69
+    } else {
70
+      wx.showToast({
71
+        title: '请确认同意《用户竞买协议》和《保证金规则》',
72
+        icon: 'none',
73
+        duration: 3000,
74
+        success: function(res) {
75
+        
76
+        }
77
+      })
78
+    }
79
+
80
+  },
81
+ 
82
+
83
+
84
+    // 选择图片
85
+    selectimg: function () {
86
+    const that = this;
87
+    wx.chooseImage({
88
+      count: 1, // 最多可以选择的图片张数(最大数量-当前已上传数量)
89
+      sizeType: ['original', 'compressed'],
90
+      sourceType: ['album', 'camera'],
91
+      success: function (res) {
92
+      
93
+        that.setData({
94
+          img: res.tempFilePaths[0]
95
+        });
96
+        var imgUrl = res.tempFilePaths[0];
97
+      
98
+        wx.uploadFile({
99
+          //上传图片的网路请求地址
100
+          url: app.globalData.prodUrl + 'web-cp-all/upload_pm/upload',
101
+          //选择
102
+          filePath: imgUrl,
103
+          name: 'file',
104
+     
105
+          method: "POST",
106
+          success: function (res) {      
107
+          that.setData({
108
+            fileid: JSON.parse(res.data).file_id          
109
+          })
110
+          },
111
+          fail: function (res) {
112
+            wx.showToast({
113
+              title: keyurl.message + '请重新上传',
114
+              icon: 'none'
115
+            })
116
+          }
117
+        });
118
+
119
+      },
120
+
121
+    })
122
+
123
+
124
+  },
125
+
126
+  // 图片预览
127
+  previewImage: function(e) {
128
+    var current = e.target.dataset.src
129
+    wx.previewImage({
130
+      current: current,
131
+      urls: this.data.img,
132
+    })
133
+  },
134
+
135
+
136
+  // 删除图片(选中图片移除)
137
+  delImg: function (e) {
138
+    const that = this;
139
+    that.setData({
140
+      img: '',
141
+    })
142
+  },
143
+  
144
+
145
+  // 勾选同意协议事件
146
+  checkboxChange: function(e) {
147
+    if (e.detail.value[0] === '确认同意') {
148
+      this.setData({
149
+        agree: true
150
+      })
151
+    } else {
152
+      this.setData({
153
+        agree: false
154
+      })
155
+    }
156
+  },
157
+  getWeiz: function(e) {
158
+
159
+    var name = e.target.dataset.name;
160
+    var lat = e.target.dataset.lat;
161
+    var lng = e.target.dataset.lng;
162
+    wx.openLocation({ //​使用微信内置地图查看位置。
163
+      name: name,
164
+      scale: 28,
165
+      address: name
166
+    })
167
+  },
168
+  // 点击事件
169
+openFile(event) { // item为当前点击的事物对象
170
+  
171
+  // 预览网络文档
172
+  wx.downloadFile({
173
+    url: event.currentTarget.dataset.id, // 文件的本身url
174
+    filePath: wx.env.USER_DATA_PATH + '/res' , // 本地自定义的文件名
175
+    success: function (res) {
176
+      let filePath = res.filePath; // 微信临时文件路径(这里要使用自定义的名字文件名,否则打开的文件名是乱码)
177
+      wx.openDocument({
178
+        filePath: filePath,
179
+        fileType: 'pdf',
180
+        success: function () {   
181
+        }, 
182
+      });
183
+    },
184
+  });
185
+},
186
+
187
+
188
+  /**
189
+   * 生命周期函数--监听页面加载
190
+   */
191
+  onLoad: function(options) {
192
+    this.setData({
193
+      kid: options.kid,
194
+      deposit: options.deposit,
195
+    })
196
+
197
+  },
198
+
199
+  /**
200
+   * 生命周期函数--监听页面初次渲染完成
201
+   */
202
+  onReady: function() {
203
+
204
+  },
205
+
206
+  /**
207
+   * 生命周期函数--监听页面显示
208
+   */
209
+  onShow: function() {
210
+
211
+  },
212
+
213
+  /**
214
+   * 生命周期函数--监听页面隐藏
215
+   */
216
+  onHide: function() {
217
+
218
+  },
219
+
220
+  /**
221
+   * 生命周期函数--监听页面卸载
222
+   */
223
+  onUnload: function() {
224
+
225
+  },
226
+
227
+  /**
228
+   * 页面相关事件处理函数--监听用户下拉动作
229
+   */
230
+  onPullDownRefresh: function() {
231
+
232
+  },
233
+
234
+  /**
235
+   * 页面上拉触底事件的处理函数
236
+   */
237
+  onReachBottom: function() {
238
+
239
+  },
240
+
241
+  /**
242
+   * 用户点击右上角分享
243
+   */
244
+  onShareAppMessage: function() {
245
+
246
+  }
247
+})

+ 3 - 0
pages/OfflinePayment/OfflinePayment.json

@@ -0,0 +1,3 @@
1
+{
2
+  "usingComponents": {}
3
+}

+ 106 - 0
pages/OfflinePayment/OfflinePayment.wxml

@@ -0,0 +1,106 @@
1
+<!--pages/payDeposit/payDeposit.wxml-->
2
+<view class="tip">
3
+	<view class="deposit-protocol">
4
+		<view class="offine_Tips">
5
+			<view class="offine_Tips_title">友情提示</view>
6
+		</view>
7
+		<text class="offine_Tips_p">1、若竞买不成功,保证金将全额退还。</text>
8
+		<text class="offine_Tips_p">2、若竞买成功,保证金将于您交易完成后全额退还,请您在72小时内支付尾款,逾期未付款将扣除保证金。</text>
9
+	</view>
10
+</view>
11
+<view class="payInfo">
12
+	<view class="deposit-sum">
13
+		<text class="payInfo_title">公司地址:</text>
14
+		<text bindtap="getWeiz" data-name="太原高新区电子数码港B座 " data-lat="37.7930600000" data-lng="112.5681200000" class="offine_Tips_p payInfo_content ">中国山西省太原市小店区南中环街与数码东路交叉数码港B座1层</text>
15
+	<view class="cl"></view>
16
+	</view>
17
+	
18
+		<!-- <view class="deposit-sum">
19
+			<text class="payInfo_title">保证金:</text>
20
+			<text class="" style="color:#e22">¥{{deposit}}元</text>
21
+			<view class="cl"></view>
22
+		</view> -->
23
+</view>
24
+
25
+<form bindsubmit="formSubmit" id="container" bindreset="formReset" report-submit='true'>
26
+	
27
+	<view class="container">
28
+		<view class="section">
29
+			<view class="">
30
+				基本信息填写
31
+			</view>
32
+		</view>
33
+    <view class="section">
34
+			<view class="section_left">
35
+				公司名称:
36
+			</view>
37
+			<input placeholder-class="place-holder" placeholder="请填写您的公司名称" type='text' name="company_name" />
38
+		</view>
39
+		<view class="section">
40
+			<view class="section_left">
41
+				姓名:
42
+			</view>
43
+			<input placeholder-class="place-holder" placeholder="请填写您的真实姓名" type='text' name="name" maxlength="4" />
44
+		</view>  
45
+		<view class="section">
46
+			<view class="section_left">
47
+				手机号:
48
+			</view>
49
+			<input placeholder-class="place-holder" placeholder="请填写您的手机号" type='number' name="number" maxlength="11" />
50
+		</view>
51
+		<view class="section">
52
+			<view class="section_left">
53
+				身份证号:
54
+			</view>
55
+			<input placeholder-class="place-holder" placeholder="请填写您的身份证号" type='number' name="card" />
56
+		</view>
57
+		<view class="section">
58
+			<view class="section_left">
59
+				支付凭证
60
+			</view>
61
+					
62
+					<view class="img-list">
63
+						<view class="list" >
64
+							<!-- 图片展示列表 -->
65
+
66
+							<view class="li"  wx:if="{{img.length > 0}}">
67
+								<image class="file" src="{{img}}" bindtap="previewImage"></image>
68
+								<!-- 删除图片 -->
69
+								<image class="close" src="../../images/xh.png"  bindtap="delImg"></image>
70
+
71
+							</view>
72
+							<!-- 添加图片 -->
73
+							<view class="li"  bindtap="selectimg" wx:if="{{img.length < 1}}">
74
+
75
+								<image class="file" src="../../images/jia1.png"></image>
76
+							</view>
77
+						</view>
78
+					</view>
79
+
80
+				</view>
81
+		<!-- 协议 -->
82
+		<view class="protocol">
83
+			<checkbox-group bindchange="checkboxChange">
84
+				<label class="checkbox">
85
+					<checkbox value="确认同意" checked='{{agree}}' />
86
+				</label>
87
+			</checkbox-group>
88
+			<!-- <view class="protocol-text">
89
+				<text>确认同意</text>
90
+				<navigator hover-class="none" url="./pages/auctionprotocol/auctionprotocol">《竞买协议》</navigator>
91
+				<text>和</text>
92
+				<navigator hover-class="none" url="./pages/depositprotocol/depositprotocol">《竞买规则及注意事项》</navigator>
93
+			</view> -->
94
+			<view class="protocol-text">
95
+				<text>确认同意</text>
96
+				<navigator hover-class="none" data-id="{{bidding_agreement_path}}" bindtap="openFile">《竞买协议》</navigator>
97
+				<text>和</text>
98
+				<navigator hover-class="none"  data-id="{{bidding_rules_path}}" bindtap="openFile">《竞买规则及注意事项》</navigator>
99
+			</view>
100
+		</view>
101
+		<!-- 支付功能 -->
102
+		<button class="pay" formType="submit">
103
+			<text>同意并支付保证金</text>
104
+		</button>
105
+	</view>
106
+</form>

+ 273 - 0
pages/OfflinePayment/OfflinePayment.wxss

@@ -0,0 +1,273 @@
1
+page {
2
+	background: #f6f6f6;
3
+}
4
+
5
+.container {
6
+	padding-top: 10rpx;
7
+}
8
+
9
+.consignee-info {
10
+	width: 100%;
11
+}
12
+
13
+.payInfo {
14
+	height: auto;
15
+	width: 100%;
16
+	margin-top: 25rpx;
17
+	background: #fff;
18
+	
19
+}
20
+
21
+.pay {
22
+	bottom: 0;
23
+	width: 90%;
24
+	background: #fb752c;
25
+	margin-top: 100rpx;
26
+}
27
+
28
+.pay text {
29
+	color: #fff;
30
+	line-height: 100rpx;
31
+	text-align: center;
32
+	font-size: 40rpx;
33
+	display: block;
34
+}
35
+
36
+.payInfo_title {
37
+	height: 100%;
38
+	width: 22%;
39
+	display: block;
40
+	float: left;
41
+	font-size:28rpx;
42
+	color:#333;
43
+	line-height: 50rpx;
44
+	text-indent:15rpx;
45
+	text-align: justify;
46
+	font-weight: 400;
47
+}
48
+/* .payInfo_title::after {
49
+	width: 100%;
50
+	display: inline-block;
51
+	content: ''
52
+} */
53
+.consignee-info-hint text {
54
+	font-size: 24rpx;
55
+	color: #999;
56
+	padding: 10rpx 20rpx;
57
+	width: 100%;
58
+	display: block;
59
+}
60
+
61
+.cl {
62
+	clear: both;
63
+}
64
+
65
+.payInfo_content {
66
+	font-size: 24rpx;
67
+	height: 100%;
68
+	width: 75%;
69
+	display: block;
70
+	float: left;
71
+	align-content: left;
72
+	color:#999;
73
+	font-weight: 400;
74
+}
75
+
76
+.consignee-site {
77
+	background: #fff;
78
+	padding: 20rpx;
79
+	border-bottom: 1px splid #999;
80
+	margin-bottom: 20rpx;
81
+}
82
+
83
+.consignee-user text {
84
+	font-size: 32rpx;
85
+	font-weight: 600;
86
+	margin-bottom: 20rpx;
87
+}
88
+
89
+.consignee-user-address text {
90
+	font-size: 28rpx;
91
+	color: #333;
92
+	width: 90%;
93
+	display: block;
94
+}
95
+
96
+.warning {
97
+	background: #fff;
98
+	padding: 20rpx;
99
+	width: 100%;
100
+	box-sizing: border-box;
101
+}
102
+
103
+.warning-title {
104
+	font-size: 32rpx;
105
+	font-weight: 600;
106
+}
107
+
108
+.deposit-info {
109
+	background: #fff;
110
+	width: 100%;
111
+	box-sizing: border-box;
112
+}
113
+
114
+.deposit-sum {
115
+	font-size: 32rpx;
116
+	font-weight: 600;
117
+	margin-bottom: 20rpx;
118
+	border-bottom:1rpx solid #dfdfdf;
119
+	padding:10rpx 0;
120
+	box-sizing: border-box;
121
+}
122
+
123
+.deposit-protocol {
124
+	padding: 15rpx;
125
+	margin-top: 25rpx;
126
+	background: #fff;
127
+}
128
+
129
+.deposit-protocol text {
130
+	display: block;
131
+	font-size: 24rpx;
132
+	color: #999;
133
+}
134
+
135
+.protocol {
136
+	padding: 20rpx;
137
+	width: 100%;
138
+	box-sizing: border-box;
139
+}
140
+
141
+checkbox-group {
142
+	float: left;
143
+	width: 48rpx;
144
+	height: 48rpx;
145
+}
146
+
147
+.protocol .checkbox checkbox {
148
+	transform: scale(0.7);
149
+	height: 48rpx;
150
+}
151
+
152
+.protocol-text::after {
153
+	content: '';
154
+	display: block;
155
+	clear: both;
156
+}
157
+
158
+.protocol-text {
159
+	float: left;
160
+	line-height: 56rpx;
161
+	margin-left: 5rpx;
162
+}
163
+
164
+.protocol-text text,
165
+.protocol-text navigator {
166
+	display: block;
167
+	float: left;
168
+	color: #333;
169
+	font-size: 24rpx;
170
+}
171
+
172
+.protocol-text navigator {
173
+	color: #00adfe;
174
+}
175
+
176
+.offine_Tips_title {
177
+	font-size: 25rpx;
178
+	line-height: 50rpx;
179
+}
180
+
181
+.offine_Tips_p {
182
+	line-height: 40rpx;
183
+	padding: 5rpx 0;
184
+	font-size: 24rpx;
185
+}
186
+
187
+.section {
188
+	width: 100%;
189
+	margin: 0 auto;
190
+	background: #fff;
191
+	padding: 20rpx;
192
+	box-sizing: border-box;
193
+	font-size: 30rpx;
194
+	border-bottom: 1px solid #ececec;
195
+	line-height: 50rpx;
196
+}
197
+
198
+.section view,
199
+.section input,
200
+.section textarea {
201
+	float: left;
202
+}
203
+
204
+.place-holder {
205
+	font-size: 28rpx;
206
+	color: #ccc;
207
+	letter-spacing: 1rpx;
208
+}
209
+
210
+.section input {
211
+	width: 70%;
212
+	font-size: 28rpx;
213
+	letter-spacing: 1rpx;
214
+}
215
+
216
+.section text {
217
+	float: right;
218
+}
219
+
220
+.section::after {
221
+	clear: both;
222
+	content: "";
223
+	display: block;
224
+}
225
+
226
+.section_left {
227
+	width: 165rpx;
228
+	color: #333;
229
+	text-align: justify
230
+}
231
+.img-list {
232
+    width: 700rpx;
233
+    margin: 0 auto;
234
+}
235
+
236
+
237
+.img-list .list {
238
+    width: 700rpx;
239
+}
240
+
241
+.img-list .list .li {
242
+    width: 84rpx;
243
+    margin: 10rpx 0 0 10rpx;
244
+    height: 84rpx;
245
+    float: left;
246
+    position: relative;
247
+    top: 10rpx;
248
+    left: 10rpx;
249
+}
250
+
251
+
252
+
253
+.img-list .list .li .file {
254
+    display: block;
255
+    width: 84rpx;
256
+    height: 84rpx;
257
+    position: relative;
258
+
259
+}
260
+
261
+.img-list .list .li .close {
262
+    position: absolute;
263
+    top: 7rpx;
264
+    right: 0;
265
+    width: 30rpx;
266
+    height: 30rpx;
267
+}
268
+
269
+/* .section_left::after {
270
+	width: 100%;
271
+	display: inline-block;
272
+	content: ''
273
+} */

+ 82 - 0
pages/OfflinePayment/pages/auctionprotocol/auctionprotocol.js

@@ -0,0 +1,82 @@
1
+// pages/payDeposit/pages/auctionprotocol/auctionprotocol.js
2
+const app = getApp();
3
+var util = require('../../../../utils/util.js');
4
+Page({
5
+
6
+  /**
7
+   * 页面的初始数据
8
+   */
9
+  data: {
10
+      price : "",
11
+      timeStr : ""
12
+  },
13
+
14
+  /**
15
+   * 生命周期函数--监听页面加载
16
+   */
17
+  onLoad: function (options) {
18
+      var _this = this;
19
+      this.setData({
20
+          deposit: options.deposit,
21
+          auction_way: options.auction_way,
22
+          time: options.time
23
+      },function() {
24
+          var time = parseInt(this.data.time)
25
+          var timer = util.formatTimeTwo(time, 'Y-M-D')
26
+          console.log(timer.split("-"))
27
+          var timeStr = timer.split("-")[0] + '年' + timer.split("-")[1] + '月' + timer.split("-")[2]  +'日'
28
+          _this.setData({
29
+              timeStr
30
+          })
31
+      })
32
+      
33
+      
34
+  },
35
+
36
+  /**
37
+   * 生命周期函数--监听页面初次渲染完成
38
+   */
39
+  onReady: function () {
40
+      var price = app.smalltoBIG(this.data.deposit);
41
+      this.setData({
42
+          price
43
+      },function() {
44
+          console.log(this.data.price)
45
+      })
46
+  },
47
+
48
+  /**
49
+   * 生命周期函数--监听页面显示
50
+   */
51
+  onShow: function () {
52
+
53
+  },
54
+
55
+  /**
56
+   * 生命周期函数--监听页面隐藏
57
+   */
58
+  onHide: function () {
59
+
60
+  },
61
+
62
+  /**
63
+   * 生命周期函数--监听页面卸载
64
+   */
65
+  onUnload: function () {
66
+
67
+  },
68
+
69
+  /**
70
+   * 页面相关事件处理函数--监听用户下拉动作
71
+   */
72
+  onPullDownRefresh: function () {
73
+
74
+  },
75
+
76
+  /**
77
+   * 页面上拉触底事件的处理函数
78
+   */
79
+  onReachBottom: function () {
80
+
81
+  }
82
+})

+ 3 - 0
pages/OfflinePayment/pages/auctionprotocol/auctionprotocol.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "竞买协议"
3
+}

+ 62 - 0
pages/OfflinePayment/pages/auctionprotocol/auctionprotocol.wxml

@@ -0,0 +1,62 @@
1
+<view class="commitment-content">
2
+
3
+<view class="title">竞买协议</view>
4
+  <view >根据《中华人民共和国拍卖法》就竞买人参与 2021 年 12月 24日(星期五)上午 10:00在山西综改示范区太原学府园区南中环街402号数码港B座C1区举行拍卖会,经双方协商,达成以下协议:</view>
5
+ 
6
+  <text class="title-h1"> 一、竞买标的及说明</text>
7
+  <text>(1)竞买标的:此次拍卖的车辆类型包括奥迪、别克商务、雅阁、明锐、福特蒙迪欧、桑塔纳、帕萨特、丰田等共计17辆。</text>
8
+  <text>(2)每个标的按其类分别设定起拍价,加价幅度统一设定。</text>
9
+  <text>(3)竞买人应在拍卖会举行前熟练掌握网上竞拍的方法,完全了解并认知《拍卖规则及注意事项》中的相关规定及要求。</text>
10
+  <text>(4)竞买人在拍卖会前已对竞买标的的实物现状及现场提货可能发生的情况进行了审慎的了解、确认,并进行了风险评估。自愿接受拍卖标的存在或可能存在以及提货中遇到或可能遇到的所有瑕疵及风险,自愿对自己的竞买行为承担法律后果责任,拍卖人对已知的或未知的瑕疵或风险不构成任何担保或承诺。</text>
11
+  <text>(5)本次拍卖会提供的图文资料仅作为参考,拍卖人、委托人及产权单位对标的的质量、数量、型号等参数均不提供任何保证。若标的实际情况与竞买资料载明的有差异,以标的现状为准,其差异不影响竞买成交价。</text>
12
+
13
+  <text class="title-h1"> 二、竞买人资格条件</text>
14
+  <text>凡具有经济能力的企业、组织和个人均可参与本次竞拍(信誉良好无不良记录)。参与竞买报名时,企业、组织类须持有效营业执照复印件、法人代表身份证复印件及委托书(以上复印件均加盖公章),自然人须持本人身份证原件及复印件。</text>
15
+
16
+  <text class="title-h1">三、竞买保证金和报名的约定</text>
17
+  <text>1.竞买人应在公告规定的期间内缴纳竞买保证金后再办理其他报名手续。</text>
18
+  <text>2.竞买单辆须缴纳保证金人民币:¥10000元(大写壹万元整),竞买两辆及以上须缴纳保证金人民币:¥30000元(大写叁万元整)。保证金不计息,手续费由竞买人承担。同时应一并缴纳报名手续及资料费人民币:¥200元(大写贰佰元整),标的车辆停车费人民币:¥500元/辆(大写伍佰元整)。</text>
19
+  <text>3.办理竞买登记手续时,须出示竞买保证金交款凭证,同时签署《竞买协议》等法律文书。各项手续均办理完毕后,方能获得参与竞买的账号。</text>
20
+  <text>4.竞买成功后,且买受人不存在本协议约定的违约行为,其拍卖会前交纳的竞买保证金在扣除拍卖佣金后的余额(不计息),待车辆移交完毕后原路退回。</text>
21
+  <text>5.竞买未成功,竞买人应在拍卖会结束后交回竞买保证金收据,竞买保证金在拍卖日后5
22
+个工作日内退还至竞买人账户(不计息)。</text>
23
+  <text>6.拍卖会仅允许持有竞买账号的竞买人参与竞价。竞买账号为竞买人参加拍卖会的唯一合法身份证明,应妥善保存,不得随意转让。一旦账号被他人使用,均视作竞买人本人的竞买行为,其产生的一切后果由竞买人本人负责。</text>
24
+
25
+  <text class="title-h1">四、竞买方式</text>
26
+  <text>本次拍卖方式为网络竞价的增价竞买方式。拍卖时,由网拍平台报出标的起拍价,按照增价幅度或增价幅度的整数倍逐步增价,每当产生新应价后竞价即进入30秒倒计时,若在倒计时期间无人继续报价,即告成交;若在倒计时期间内有人报价,则竞价继续进行,如此类推往复,直至成交。</text>
27
+
28
+  <text class="title-h1">五、成交、竞买佣金及结算</text>
29
+  <text>1.竞价过程中,最终出价最高的竞买人即为买受人。报价不达标的保留价(底价)不成交。</text>
30
+  <text>2.竞买成功后,买受人须当场签署《成交凭证》、《拍卖成交确认书》、《拍卖笔录》等成交法律文书。上述文件签署与否,不影响拍卖成交结果的法律效力。</text>
31
+  <text>3.拍卖服务佣金为最终成交价款的2%,成交后由拍卖人直接从竞买保证金中扣除。</text>
32
+  <text>4.买受人应于拍卖会现场即时办理结算手续,将应付成交总价款一次性汇入拍卖人的指定账户。</text>
33
+
34
+  <text class="title-h1">六、拍卖标的的移交条件及其他约定</text>
35
+  <text>拍卖标的的移交条件:</text>
36
+  <text>1.买受人已签署所有拍卖成交确认文件。</text>
37
+  <text>2.拍卖人已经足额收到买受人支付的成交价款及其他相关费用。</text>
38
+  <text>3.拍卖人已经足额收到买受人应支付的拍卖服务佣金。</text>
39
+  <text>4.买受人已办结车辆过户手续。逾期提车所产生的相关费用及相应责任由买受人承担。买受人自行承担因提车而产生的费用及安全责任。</text>
40
+
41
+  <text class="title-h1">七、违约说明及违约责任</text>
42
+  <text>以下情况均视为违约:</text>
43
+  <text>1.竞买人提供虚假报名资料,或恶意串通、胁迫、恐吓、干扰他人参与竞买;</text>
44
+  <text>2.竞买成交后,买受人不按约定签署《成交凭证》、《拍卖成交确认书》、《拍卖笔录》、等成交确认文件;</text>
45
+  <text>3.买受人逾期不支付标的的成交价款、拍卖服务佣金和其他应付费用;</text>
46
+  <text>4.买受人未按约定及时提车。</text>
47
+  <text>5.买受人的其他违法违规行为。</text>
48
+  <text>买受人违约后,其所交竞买保证金在扣除拍卖服务佣金后视为违约金不予退还,并按照《中华人民共和国拍卖法》进行处理。同时,买受人还应承担由此产生的其他相关违约责任。</text>
49
+ 
50
+  <text class="title-h1">八、其他特别说明及约定</text>
51
+  <text>1.拍卖人作为接受委托并举行拍卖活动的中介机构,对委托竞价的标的不提供任何有关质量、数量及瑕疵保证,请竞买人认真查验标的,谨慎竞买。</text>
52
+  <text>2.竞买人承诺其提供的所有报名资料全部合法、真实、正确、有效,并自愿为其提供的所有报名资料承担一切法律后果责任。拍卖人对其因提供的报名资料而引起的纠纷不负任何法律责任,该等事项若有发生,拍卖人有权将其所交竞买保证金、成交价款(若有)扣除作为违约金不予返还,并依法追究其法律责任。</text>
53
+  <text>3.《竞买规则及注意事项》、《竞买承诺书》与本协议具有同等的法律效力,竞买人在签署本《竞买协议》前,已认真阅读并认可其各项规定和要求,签署《竞买协议》即表明已完全理解并自愿遵守《竞买规则及注意事项》等文件中的各项条款规定。</text>
54
+  <text>4.现场买受人在成交当日即应付清拍卖标的成交价款及约定的拍卖佣金和其他费用,同时凭《拍卖成交确认书》及其他相关凭证办理拍卖标的的过户、变更和保险等手续。远程参加竞买成交后,买受人应在两日内联系拍卖人办结《拍卖成交确认书》与《拍卖笔录》签字及结算、过户、变更和保险等手续。</text>
55
+  <text>5.本协议双方签字盖章后生效。协议一式四份,甲方执三份(其中委托方一份),乙方一份。</text>
56
+  <text>6.账户信息:</text>
57
+  <text>公司名称:山西云得格工程项目管理有限公司</text>
58
+  <text>开 户 行:中国民生银行股份有限公司太原五一路支行</text>
59
+  <text>账    号:630221958</text>
60
+
61
+  
62
+</view>

+ 60 - 0
pages/OfflinePayment/pages/auctionprotocol/auctionprotocol.wxss

@@ -0,0 +1,60 @@
1
+/* pages/payDeposit/pages/auctionprotocol/auctionprotocol.wxss */
2
+.commitment-content,.deposit-notice-content{
3
+  padding:20rpx;
4
+  background: #fff;
5
+}
6
+.commitment-content text,.deposit-notice-content text{
7
+  display: block;
8
+  font-size: 28rpx;
9
+  color: #666;
10
+  line-height: 48rpx;
11
+}
12
+.commitment-content .title-h1,.deposit-notice-content .title-h1{
13
+  color: #000;
14
+  font-size: 32rpx;
15
+  font-weight: 600;
16
+  margin: 20rpx 0; 
17
+}
18
+.commitment-content .title-h2,.deposit-notice-content .title-h2{
19
+  color: #333;
20
+  font-size: 30rpx;
21
+  font-weight: 600;
22
+  margin: 20rpx 0;
23
+}
24
+.goods-caution{
25
+  padding: 20rpx;
26
+  background: #fff;
27
+}
28
+.goods-caution-title{
29
+  display: block;
30
+  background: #eee;
31
+  color: #333;
32
+  text-align: center;
33
+  padding: 10rpx;
34
+  font-size: 32rpx;
35
+  font-weight: 600;
36
+  margin: 20rpx 0;
37
+}
38
+.goods-caution-list text{
39
+  font-size: 28rpx;
40
+  color: #333;
41
+  margin-bottom: 20rpx;
42
+  display: block;
43
+}
44
+.goods-detail-content image{
45
+  width: 100%;
46
+  height: 600rpx;
47
+}
48
+.text{
49
+  text-indent: 60rpx;
50
+  text-align: left;
51
+}
52
+.inli {
53
+    display: inline-block;
54
+    margin: 0 10rpx;
55
+}
56
+.title {
57
+  text-align: center;
58
+  font-size: 22px;
59
+  font-weight: 600;
60
+}

+ 81 - 0
pages/OfflinePayment/pages/depositprotocol/depositprotocol.js

@@ -0,0 +1,81 @@
1
+// pages/payDeposit/pages/depositprotocol/depositprotocol.js
2
+const app = getApp();
3
+var util = require('../../../../utils/util.js');
4
+Page({
5
+
6
+  /**
7
+   * 页面的初始数据
8
+   */
9
+  data: {
10
+      timeStr : "",
11
+      price : ""
12
+  },
13
+
14
+  /**
15
+   * 生命周期函数--监听页面加载
16
+   */
17
+  onLoad: function (options) {
18
+      var _this = this;
19
+      this.setData({
20
+          deposit: options.deposit,
21
+          auction_way: options.auction_way,
22
+          time: options.time
23
+      },function() {
24
+          var time = parseInt(this.data.time)
25
+          var timer = util.formatTimeTwo(time, 'Y-M-D')
26
+          console.log(timer.split("-"))
27
+          var timeStr = timer.split("-")[0] + '年' + timer.split("-")[1] + '月' + timer.split("-")[2] + '日'
28
+          _this.setData({
29
+              timeStr
30
+          })
31
+      })
32
+      console.log(options)
33
+  },
34
+
35
+  /**
36
+   * 生命周期函数--监听页面初次渲染完成
37
+   */
38
+  onReady: function () {
39
+      var price = app.smalltoBIG(this.data.deposit);
40
+      this.setData({
41
+          price
42
+      }, function () {
43
+          console.log(this.data.price)
44
+      })
45
+  },
46
+
47
+  /**
48
+   * 生命周期函数--监听页面显示
49
+   */
50
+  onShow: function () {
51
+
52
+  },
53
+
54
+  /**
55
+   * 生命周期函数--监听页面隐藏
56
+   */
57
+  onHide: function () {
58
+
59
+  },
60
+
61
+  /**
62
+   * 生命周期函数--监听页面卸载
63
+   */
64
+  onUnload: function () {
65
+
66
+  },
67
+
68
+  /**
69
+   * 页面相关事件处理函数--监听用户下拉动作
70
+   */
71
+  onPullDownRefresh: function () {
72
+
73
+  },
74
+
75
+  /**
76
+   * 页面上拉触底事件的处理函数
77
+   */
78
+  onReachBottom: function () {
79
+
80
+  }
81
+})

+ 3 - 0
pages/OfflinePayment/pages/depositprotocol/depositprotocol.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "拍卖规则及注意事项"
3
+}

Diff nebyl zobrazen, protože je příliš veliký
+ 32 - 0
pages/OfflinePayment/pages/depositprotocol/depositprotocol.wxml


+ 60 - 0
pages/OfflinePayment/pages/depositprotocol/depositprotocol.wxss

@@ -0,0 +1,60 @@
1
+/* pages/payDeposit/pages/depositprotocol/depositprotocol.wxss */
2
+.commitment-content,.deposit-notice-content{
3
+  padding:20rpx;
4
+  background: #fff;
5
+}
6
+.commitment-content text,.deposit-notice-content text{
7
+  display: block;
8
+  font-size: 28rpx;
9
+  color: #666;
10
+  line-height: 48rpx;
11
+}
12
+.commitment-content .title-h1,.deposit-notice-content .title-h1{
13
+  color: #000;
14
+  font-size: 32rpx;
15
+  font-weight: 600;
16
+  margin: 20rpx 0; 
17
+}
18
+.commitment-content .title-h2,.deposit-notice-content .title-h2{
19
+  color: #333;
20
+  font-size: 30rpx;
21
+  font-weight: 600;
22
+  margin: 20rpx 0;
23
+}
24
+.goods-caution{
25
+  padding: 20rpx;
26
+  background: #fff;
27
+}
28
+.goods-caution-title{
29
+  display: block;
30
+  background: #eee;
31
+  color: #333;
32
+  text-align: center;
33
+  padding: 10rpx;
34
+  font-size: 32rpx;
35
+  font-weight: 600;
36
+  margin: 20rpx 0;
37
+}
38
+.goods-caution-list text{
39
+  font-size: 28rpx;
40
+  color: #333;
41
+  margin-bottom: 20rpx;
42
+  display: block;
43
+}
44
+.goods-detail-content image{
45
+  width: 100%;
46
+  height: 600rpx;
47
+}
48
+.text{
49
+  text-indent: 60rpx;
50
+  text-align: left;
51
+}
52
+.title {
53
+    text-align: center;
54
+    font-size: 22px;
55
+    font-weight: 600;
56
+}
57
+#inli {
58
+    display: inline-block;
59
+    margin: 0 10rpx;
60
+}

binární
pages/activity/luckywheel/images/2018062710423299.png


+ 243 - 0
pages/activity/luckywheel/luckywheel.js

@@ -0,0 +1,243 @@
1
+var app = getApp()
2
+Page({
3
+  data: {
4
+    awardsList: {},
5
+    animationData: {},
6
+    btnDisabled: '',
7
+    record: [],
8
+    prize: '',
9
+    mobile: '',
10
+    awardsConfig: [
11
+      { 'index': 1, 'name': '你要发', awards: '一等奖' },
12
+      { 'index': 2, 'name': '路路顺', awards: '二等奖'},
13
+      { 'index': 3, 'name': '一定发', awards: '三等奖'},
14
+      { 'index': 4, 'name': '财运来', awards: '四等奖'},
15
+      { 'index': 5, 'name': '好运来', awards: '五等奖'},
16
+      { 'index': 6, 'name': '谢谢参与', awards: '谢谢参与'}
17
+    ]
18
+  },
19
+  onLoad:function () {
20
+    let _this = this;
21
+    _this.getList();
22
+  },
23
+  onShow: function () {
24
+    let _this = this;
25
+    let mobile = wx.getStorageSync('persion').persion.mobile;
26
+    if(!mobile) {
27
+      wx.showModal({
28
+        title: '提示',
29
+        content: '您没有绑定手机号!',
30
+        confirmText: '绑定抽奖',
31
+        cancelText: '残忍拒绝',
32
+        success(res) {
33
+          if (res.confirm) {
34
+            wx.navigateTo({
35
+              url: '/pages/mine/wxml/Connect/Connect'
36
+            })
37
+          } else if (res.cancel) {
38
+            wx.navigateBack({
39
+              delta: 1
40
+            })
41
+          }
42
+        }
43
+      })
44
+    } else {
45
+      var reg = /^(\d{3})\d{4}(\d{4})$/;
46
+      _this.setData({
47
+        mobile: mobile.replace(reg, "$1****$2")
48
+      })
49
+    }
50
+  },
51
+
52
+  startLottery: function (e) {
53
+    let _this = this;
54
+    _this.setData({
55
+      btnDisabled: 'disabled'
56
+    })
57
+    wx.request({
58
+      url: app.globalData.prodUrl + 'web-pm/wx/pm/wx_lottery_raffle',
59
+      data: '',
60
+      header: { 'ydw-token': wx.getStorageSync('key').ydw_token },
61
+      method: 'GET',
62
+      dataType: 'json',
63
+      responseType: 'text',
64
+      success: function(data) {
65
+        if(data.data.tip.type === "success"){
66
+          _this.getLottery(data.data.ranking-1)
67
+        } else {
68
+          wx.showModal({
69
+            title: '提示',
70
+            content: data.data.tip.msg,
71
+            showCancel: false
72
+          });
73
+          _this.setData({
74
+            btnDisabled: ''
75
+          })
76
+        }
77
+      },
78
+      fail: function(res) {},
79
+      complete: function (res) {},
80
+    })
81
+  },
82
+  getLottery: function (awards) {
83
+    var that = this
84
+    // var num = Math.random();
85
+    // var awardIndex = num * 6 >>> 0;
86
+    var awardIndex = awards;
87
+    // 获取奖品配置
88
+    var awardsConfig = app.awardsConfig
89
+    // if (awardIndex < 2) awardsConfig.chance = false
90
+    // 初始化 rotate
91
+    var animationInit = wx.createAnimation({
92
+      duration: 1
93
+    })
94
+    this.animationInit = animationInit;
95
+    animationInit.rotate(0).step()
96
+    this.setData({
97
+      animationData: animationInit.export(),
98
+      btnDisabled: 'disabled'
99
+    })
100
+
101
+    // 旋转抽奖
102
+    setTimeout(function () {
103
+      var animationRun = wx.createAnimation({
104
+        duration: 4000,
105
+        timingFunction: 'ease'
106
+      })
107
+      that.animationRun = animationRun
108
+      animationRun.rotate(360 * 8 - awardIndex * (360 / 6)).step()
109
+      that.setData({
110
+        animationData: animationRun.export()
111
+      })
112
+    }, 100)
113
+
114
+    // 中奖提示
115
+    setTimeout(function () {
116
+      wx.showModal({
117
+        title: '恭喜',
118
+        content: '您抽中了' + (awardsConfig.awards[awardIndex].awards + awardsConfig.awards[awardIndex].name),
119
+        showCancel: false
120
+      });
121
+      if (awardsConfig.chance) {
122
+        that.setData({
123
+          btnDisabled: ''
124
+        })
125
+      };
126
+      that.getList();
127
+    }, 4100);
128
+
129
+
130
+    /*wx.request({
131
+      url: '../../data/getLottery.json',
132
+      data: {},
133
+      header: {
134
+          'Content-Type': 'application/json'
135
+      },
136
+      success: function(data) {
137
+      },
138
+      fail: function(error) {
139
+        wx.showModal({
140
+          title: '抱歉',
141
+          content: '网络异常,请重试',
142
+          showCancel: false
143
+        })
144
+      }
145
+    })*/
146
+  },
147
+  onReady: function (e) {
148
+
149
+    var that = this;
150
+
151
+    // getAwardsConfig
152
+    app.awardsConfig = {
153
+      chance: true,
154
+      awards: [
155
+        { 'index': 1, 'name': '你要发', awards: '一等奖' },
156
+        { 'index': 2, 'name': '路路顺', awards: '二等奖' },
157
+        { 'index': 3, 'name': '一定发', awards: '三等奖' },
158
+        { 'index': 4, 'name': '财运来', awards: '四等奖' },
159
+        { 'index': 5, 'name': '好运来', awards: '五等奖' },
160
+        { 'index': 6, 'name': '谢谢参与', awards: '' }
161
+      ]
162
+    }
163
+
164
+    // wx.setStorageSync('awardsConfig', JSON.stringify(awardsConfig))
165
+
166
+
167
+    // 绘制转盘
168
+    var awardsConfig = app.awardsConfig.awards,
169
+      len = awardsConfig.length,
170
+      rotateDeg = 360 / len / 2 + 90,
171
+      html = [],
172
+      turnNum = 1 / len  // 文字旋转 turn 值
173
+    that.setData({
174
+      btnDisabled: app.awardsConfig.chance ? '' : 'disabled'
175
+    })
176
+    var ctx = wx.createContext()
177
+    for (var i = 0; i < len; i++) {
178
+      // 保存当前状态
179
+      ctx.save();
180
+      // 开始一条新路径
181
+      ctx.beginPath();
182
+      // 位移到圆心,下面需要围绕圆心旋转
183
+      ctx.translate(150, 150);
184
+      // 从(0, 0)坐标开始定义一条新的子路径
185
+      ctx.moveTo(0, 0);
186
+      // 旋转弧度,需将角度转换为弧度,使用 degrees * Math.PI/180 公式进行计算。
187
+      ctx.rotate((360 / len * i - rotateDeg) * Math.PI / 180);
188
+      // 绘制圆弧
189
+      ctx.arc(0, 0, 150, 0, 2 * Math.PI / len, false);
190
+
191
+      // 颜色间隔
192
+      if (i % 2 == 0) {
193
+        ctx.setFillStyle('#ffb820');
194
+      } else {
195
+        ctx.setFillStyle('#ffcb3f');
196
+      }
197
+
198
+      // 填充扇形
199
+      ctx.fill();
200
+      // 绘制边框
201
+      ctx.setLineWidth(0.5);
202
+      ctx.setStrokeStyle('#e4370e');
203
+      ctx.stroke();
204
+
205
+      // 恢复前一个状态
206
+      ctx.restore();
207
+
208
+      // 奖项列表
209
+      html.push({ turn: i * turnNum + 'turn', award: awardsConfig[i].name });
210
+    }
211
+    that.setData({
212
+      awardsList: html
213
+    });
214
+
215
+    wx.drawCanvas({
216
+      canvasId: 'lotteryCanvas',
217
+      actions: ctx.getActions()
218
+    })
219
+
220
+  },
221
+  getList: function () {
222
+    let _this = this;
223
+    wx.request({
224
+      url: app.globalData.prodUrl + 'web-pm/wx/pm/list_lottery',
225
+      data: '',
226
+      header: { 'ydw-token': wx.getStorageSync('key').ydw_token },
227
+      method: 'GET',
228
+      dataType: 'json',
229
+      responseType: 'text',
230
+      success: function (data) {
231
+        if (data.data.data.length > 0) {
232
+          _this.setData({
233
+            record: data.data.data,
234
+            prize: _this.data.awardsConfig[data.data.data[0].ranking - 1].name
235
+          });
236
+        }
237
+      },
238
+      fail: function (res) { },
239
+      complete: function (res) { },
240
+    })
241
+  }
242
+
243
+})

+ 3 - 0
pages/activity/luckywheel/luckywheel.json

@@ -0,0 +1,3 @@
1
+{
2
+  "usingComponents": {}
3
+}

+ 39 - 0
pages/activity/luckywheel/luckywheel.wxml

@@ -0,0 +1,39 @@
1
+<view class="wrapper">
2
+
3
+	<view class="header">
4
+		<text class="header-title"> 幸运大转盘 </text>
5
+		<text class="header-subtitle">  云得集团年会大抽奖 祝您猪年行大运 </text> 
6
+	</view>
7
+	<view class="main">
8
+		<view class="canvas-container">
9
+			<view  animation="{{animationData}}" class="canvas-content" >
10
+				<!-- <canvas style="width: 300px; height: 300px;" class="canvas-element" canvas-id="lotteryCanvas"></canvas> -->
11
+				<view class="canvas-list" wx:for="{{awardsList}}" wx:key="unique">
12
+					<view class="canvas-item">
13
+				  	<view class="canvas-item-text" style="-webkit-transform: rotate({{item.turn}});transform: rotate({{item.turn}})">{{item.award}}</view>
14
+					</view>
15
+				</view>
16
+			</view>
17
+			<view bindtap="startLottery" class="canvas-btn {{btnDisabled}}">抽奖</view>		
18
+		</view>
19
+		<view class="main-container">
20
+      <view class="phone">
21
+        <text class="">您的手机号是({{mobile}})</text>
22
+      </view>
23
+			<view class="main-container-btn">
24
+        <view class="tip" wx:if="{{record.length > 0}}" wx:for="{{record}}" wx:key="{{index}}">
25
+        第<text >{{index+1}}</text>轮您抽中了"<text >{{awardsConfig[item.ranking - 1].name}}</text>"!
26
+          <text ></text>
27
+        </view>
28
+			</view>
29
+			<view class="main-container-rule">
30
+				<text class="main-rule-title">活动规则:</text>
31
+				<text class="main-rule-item">1、本活动仅限年会人员参加,每人每轮有一次机会,共三轮。</text>
32
+				<text class="main-rule-item">2、凭小程序绑定手机尾号领奖、工作人员将现场发放奖励。</text>	
33
+				<text class="main-rule-item">3、奖等信息:一等奖“你要发”1名(118元);二等奖“路路顺”2名(66元);三等奖“一定发”3名(18元);四等奖“财运来”10名(8元);五等奖“好运来”若干(3元)。</text>	
34
+				<text class="main-rule-item">4、奖品将以现金红包形式发放。</text>	
35
+				<text class="main-rule-item">5、本活动最终解释权归云得集团所有。</text>	
36
+			</view>	
37
+		</view>
38
+	</view>
39
+</view>

+ 172 - 0
pages/activity/luckywheel/luckywheel.wxss

@@ -0,0 +1,172 @@
1
+page {
2
+	background: #fa1d48;
3
+}
4
+.wrapper{
5
+  background-image: url('http://e.eqbidding.com/web-cp-all/img_pm/img/1087633247090905088');
6
+  background-size: 100%;
7
+  background-repeat: no-repeat;
8
+}
9
+.header{
10
+	padding: 1rem 0;
11
+	text-align: center;
12
+  
13
+}
14
+.header-title{
15
+	display: block;
16
+	padding: .4rem 0;
17
+	font-size: 2rem;
18
+  color: #fff;
19
+  font-weight: 600;
20
+}
21
+.header-subtitle{
22
+	color: #fff;
23
+  font-size: 32rpx;
24
+}
25
+/* 转盘 */
26
+.canvas-container ul,
27
+.canvas-container li{
28
+  margin: 0 ;
29
+  padding: 0;
30
+  list-style: none;
31
+}
32
+
33
+.canvas-container{
34
+  margin: 0 auto;
35
+  position: relative;
36
+  width: 300px;
37
+  height: 300px;  
38
+  border-radius: 50%;
39
+  border: 2px solid #E44025;
40
+  box-shadow: 0 2px 3px #333, 0 0 2px #000;
41
+  
42
+}
43
+.canvas-content{
44
+  position: absolute;
45
+  left: 0;
46
+  top: 0;
47
+  z-index: 1;
48
+  display: block;
49
+  width: inherit;
50
+  height: inherit;
51
+  border-radius: inherit;
52
+  background-clip: padding-box;
53
+  background-color: #ffcb3f;
54
+  background-image: url('http://e.eqbidding.com/web-cp-all/img_pm/img/1087631585571901440');
55
+  background-size: 100%;
56
+}
57
+.canvas-element{
58
+  width: inherit;
59
+  height: inherit;
60
+  border-radius: 50%;
61
+}
62
+.canvas-list{
63
+  position: absolute;
64
+  left: 0;
65
+  top: 0;
66
+  width: inherit;
67
+  height: inherit;
68
+  z-index: 2;
69
+}
70
+.canvas-item{
71
+  position: absolute;
72
+  left: 0;
73
+  top: 0;
74
+  width: 100%;
75
+  height: 100%;
76
+  color: #e4370e;
77
+  font-weight: bold;
78
+  text-shadow: 0 1px 1px rgba(255,255,255,.6);
79
+}
80
+.canvas-item-text{
81
+  position: relative;
82
+  display: block;
83
+  padding-top: 35px;
84
+  /* width: 50px; */
85
+  margin: 0 auto;
86
+  text-align: center; 
87
+  z-index: 999999;
88
+  -webkit-transform-origin: 50% 150px; 
89
+  transform-origin: 50% 150px;
90
+}
91
+
92
+.canvas-btn{
93
+  position: absolute;
94
+  left: 110px;
95
+  top: 110px;
96
+  z-index: 999999;
97
+  width: 80px;
98
+  height: 80px;
99
+  border-radius: 50%;
100
+  color: #F4E9CC;
101
+  background-color: #E44025;
102
+  line-height: 80px;
103
+  text-align: center;
104
+  font-size: 20px;
105
+  text-shadow: 0 -1px 1px rgba(0,0,0,.6);
106
+  box-shadow: 0 3px 5px rgba(0,0,0,.6);
107
+  text-decoration: none;
108
+}
109
+.canvas-btn::after{
110
+  position: absolute;
111
+  display: block;
112
+  content: ' ';
113
+  left: 10px;
114
+  top: -46px;
115
+  width: 0;
116
+  height: 0;
117
+  overflow: hidden;
118
+  border-width: 30px;
119
+  border-style: solid;
120
+  border-color: transparent;
121
+  border-bottom-color: #E44025; 
122
+}
123
+.canvas-btn.disabled{
124
+    pointer-events: none;
125
+    background: #B07A7B;
126
+    color: #ccc;
127
+}
128
+.canvas-btn.disabled::after{
129
+  border-bottom-color: #B07A7B;
130
+}
131
+
132
+
133
+.gb-run{ 
134
+    -webkit-transition: all 6s ease;
135
+    transition: all 6s ease;
136
+}
137
+
138
+
139
+/* 查看中奖 */
140
+.main-container{
141
+	margin: 1rem 2rem;
142
+}
143
+
144
+.main-container-rule{
145
+	padding: 1rem 0;
146
+  color: #fff;
147
+  font-size: 30rpx;
148
+}
149
+.main-container-btn text {
150
+  color: #fdf573;
151
+}
152
+.main-rule-title{
153
+	display: block;
154
+	padding: 4px 0;
155
+	font-size: 16px;
156
+	font-weight: bold;
157
+}
158
+.main-rule-item{
159
+	display: block;
160
+	padding: 2px 0;
161
+}
162
+.tip{
163
+  color: #fff;
164
+  font-size: 32rpx;
165
+  text-align: center;
166
+}
167
+.phone{
168
+  text-align: center;
169
+  color: #fff;
170
+  font-size: 30rpx;
171
+  margin-bottom: 40rpx;
172
+}

+ 59 - 0
pages/agreement/agreement.js

@@ -0,0 +1,59 @@
1
+// pages/agreement/agreement.js
2
+Page({
3
+
4
+  /**
5
+   * 页面的初始数据
6
+   */
7
+  data: {
8
+  
9
+  },
10
+
11
+  /**
12
+   * 生命周期函数--监听页面加载
13
+   */
14
+  onLoad: function (options) {
15
+  
16
+  },
17
+
18
+  /**
19
+   * 生命周期函数--监听页面初次渲染完成
20
+   */
21
+  onReady: function () {
22
+  
23
+  },
24
+
25
+  /**
26
+   * 生命周期函数--监听页面显示
27
+   */
28
+  onShow: function () {
29
+  
30
+  },
31
+
32
+  /**
33
+   * 生命周期函数--监听页面隐藏
34
+   */
35
+  onHide: function () {
36
+  
37
+  },
38
+
39
+  /**
40
+   * 生命周期函数--监听页面卸载
41
+   */
42
+  onUnload: function () {
43
+  
44
+  },
45
+
46
+  /**
47
+   * 页面相关事件处理函数--监听用户下拉动作
48
+   */
49
+  onPullDownRefresh: function () {
50
+  
51
+  },
52
+
53
+  /**
54
+   * 页面上拉触底事件的处理函数
55
+   */
56
+  onReachBottom: function () {
57
+  
58
+  }
59
+})

+ 1 - 0
pages/agreement/agreement.json

@@ -0,0 +1 @@
1
+{}

+ 2 - 0
pages/agreement/agreement.wxml

@@ -0,0 +1,2 @@
1
+<!--pages/agreement/agreement.wxml-->
2
+<text>竞买协议</text>

+ 1 - 0
pages/agreement/agreement.wxss

@@ -0,0 +1 @@
1
+/* pages/agreement/agreement.wxss */

+ 135 - 0
pages/auctioneer/auctioneer.js

@@ -0,0 +1,135 @@
1
+// pages/auctioneer/auctioneer.js
2
+Page({
3
+
4
+  /**
5
+   * 页面的初始数据
6
+   */
7
+  data: {
8
+    goods:[
9
+      {
10
+        collect: true,
11
+        goodsimg: "images/goods-img-1.jpg",
12
+        state: true,
13
+        money: "¥88.5",
14
+        username: "134****6521"
15
+      },
16
+      {
17
+        collect: false,
18
+        goodsimg: "images/goods-img-1.jpg",
19
+        state: false,
20
+        money: "¥828.5",
21
+        username: "134****6521"
22
+      },
23
+      {
24
+        collect: false,
25
+        goodsimg: "images/goods-img-1.jpg",
26
+        state: true,
27
+        money: "¥599.5",
28
+        username: "134****6521"
29
+      },
30
+      {
31
+        collect: true,
32
+        goodsimg: "images/goods-img-1.jpg",
33
+        state: false,
34
+        money: "¥58.5",
35
+        username: "134****6521"
36
+      }, {
37
+        collect: true,
38
+        goodsimg: "images/goods-img-1.jpg",
39
+        state: true,
40
+        money: "¥88.5",
41
+        username: "134****6521"
42
+      },
43
+      {
44
+        collect: false,
45
+        goodsimg: "images/goods-img-1.jpg",
46
+        state: false,
47
+        money: "¥828.5",
48
+        username: "134****6521"
49
+      },
50
+      {
51
+        collect: false,
52
+        goodsimg: "images/goods-img-1.jpg",
53
+        state: true,
54
+        money: "¥599.5",
55
+        username: "134****6521"
56
+      },
57
+      {
58
+        collect: true,
59
+        goodsimg: "images/goods-img-1.jpg",
60
+        state: false,
61
+        money: "¥58.5",
62
+        username: "134****6521"
63
+      }
64
+    ],
65
+    templateName:'goodsModular'
66
+  },
67
+
68
+  /**
69
+   * 生命周期函数--监听页面加载
70
+   */
71
+  onLoad: function (options) {
72
+    var _this = this;
73
+    wx.createSelectorQuery().select('.company-title-content').boundingClientRect(function (rect) {
74
+      _this.setData({
75
+        pageScrollTop: rect.top
76
+      })
77
+    }).exec()
78
+  },
79
+
80
+  /**
81
+   * 生命周期函数--监听页面初次渲染完成
82
+   */
83
+  onReady: function () {
84
+  
85
+  },
86
+
87
+  /**
88
+   * 生命周期函数--监听页面显示
89
+   */
90
+  onShow: function () {
91
+  
92
+  },
93
+
94
+  /**
95
+   * 生命周期函数--监听页面隐藏
96
+   */
97
+  onHide: function () {
98
+  
99
+  },
100
+
101
+  /**
102
+   * 生命周期函数--监听页面卸载
103
+   */
104
+  onUnload: function () {
105
+  
106
+  },
107
+
108
+  /**
109
+   * 页面相关事件处理函数--监听用户下拉动作
110
+   */
111
+  onPullDownRefresh: function () {
112
+  
113
+  },
114
+
115
+  /**
116
+   * 页面上拉触底事件的处理函数
117
+   */
118
+  onReachBottom: function () {
119
+  
120
+  },
121
+  onPageScroll:function(e){
122
+    var _this = this;
123
+    var scrollTop = _this.data.pageScrollTop;
124
+    if (e.scrollTop > scrollTop) {
125
+      this.setData({
126
+        classifyPosition: true
127
+      })
128
+    }
129
+    if (e.scrollTop < scrollTop) {
130
+      this.setData({
131
+        classifyPosition: false
132
+      })
133
+    }
134
+  }
135
+})

+ 3 - 0
pages/auctioneer/auctioneer.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText":"竞买师详情"
3
+}

+ 33 - 0
pages/auctioneer/auctioneer.wxml

@@ -0,0 +1,33 @@
1
+<view class="container">
2
+  <view class="auctioneer-hader">
3
+    <view class="hader-img">
4
+      <image src=""></image>
5
+    </view>
6
+    <view class="auctioneer-name">
7
+      <text>竞买师</text>
8
+      <text class="sign">已认证</text>
9
+    </view>
10
+    <view class="auctioneer-company">
11
+      <text>竞买师所属竞买公司</text>
12
+    </view>
13
+    <view class="auctioneer-describe">
14
+      <text>一段自我评价,一段自我评价一段自我评价,一段自我评价。一段自我评价一段自我评价,一段自我评价。 </text>
15
+    </view>
16
+  </view>
17
+  <view class="company">
18
+    <view class="company-title">
19
+      <view class="company-title-content {{classifyPosition ? 'position-fixed':''}}" bindtap='onPageScroll'>
20
+        <view class="title-content-left">
21
+          <text class="on">即将开始</text>
22
+        </view>
23
+        <view class="title-content-right">
24
+          <text>即将截至</text>        
25
+        </view>
26
+      </view>
27
+    </view>
28
+    <view class="company-content">
29
+      <import src="../../template/template.wxml"></import>
30
+      <template is="{{templateName}}" data="{{goods}}"></template>
31
+    </view>
32
+  </view>
33
+</view>

+ 104 - 0
pages/auctioneer/auctioneer.wxss

@@ -0,0 +1,104 @@
1
+@import "../../template/template.wxss";
2
+page{
3
+  background: #f1f1f1;
4
+}
5
+.container{
6
+  width: 100%;
7
+}
8
+.auctioneer-hader{
9
+  width: 100%;
10
+  padding-top: 40rpx;
11
+  background: #fff;
12
+  margin-bottom: 10rpx;
13
+}
14
+.auctioneer-hader .hader-img{
15
+  width: 200rpx;
16
+  height: 200rpx;
17
+  margin: 0 auto;
18
+  margin-bottom: 20rpx;
19
+}
20
+.auctioneer-hader .hader-img image{
21
+  width: 100%;
22
+  height: 100%;
23
+  border-radius: 50%;
24
+  background: #fb752c;
25
+}
26
+.auctioneer-hader .auctioneer-name{
27
+  text-align: center;
28
+  font-size: 34rpx;
29
+  position: relative;
30
+  margin-bottom: 15rpx;
31
+}
32
+.auctioneer-hader .auctioneer-name .sign{
33
+  font-size: 20rpx;
34
+  color:#2abf01;
35
+  border:1px solid #2abf01;
36
+  background:#efffea;
37
+  margin-left: 15rpx;
38
+  position: absolute;
39
+  top: 10rpx;
40
+  padding: 0 5rpx;
41
+}
42
+.auctioneer-hader .auctioneer-company{
43
+  font-size: 28rpx;
44
+  color: #333;
45
+  text-align: center;
46
+  margin-bottom: 15rpx;
47
+}
48
+.auctioneer-hader .auctioneer-describe{
49
+  height: 100rpx;
50
+  color: #999;
51
+  font-size: 28rpx;
52
+  padding: 0 20rpx;
53
+  text-align: center;
54
+}
55
+.company{
56
+  width: 100%;
57
+  background: #fff;
58
+}
59
+.company .company-title{
60
+  border-bottom: 1px solid #f1f1f1;
61
+  height: 80rpx;
62
+}
63
+.company .company-title .company-title-content{
64
+  width: 100%;
65
+  margin: 0 auto;
66
+}
67
+.company-title-content::after{
68
+  content: '';
69
+  display: block;
70
+  clear: both;
71
+}
72
+.company .company-title .company-title-content view{
73
+  font-size: 34rpx;
74
+  text-align: center;
75
+  width: 50%;
76
+  float: left;
77
+}
78
+.company .company-title .company-title-content view text{
79
+  padding: 15rpx 0; 
80
+  display: block;
81
+  width: 60%;
82
+  margin: 0 auto;
83
+}
84
+.company .company-title .company-title-content .on{
85
+  color: #fb752c;
86
+  border-bottom: 2px solid #fb752c;
87
+}
88
+.company .company-content::after{
89
+  content: "";
90
+  display: block;
91
+  clear: both;
92
+}
93
+.company .company-content{
94
+  background: #f1f1f1;
95
+}
96
+.position-fixed{
97
+  background: #fff;
98
+  width: 100%;
99
+  position: fixed;
100
+  left: 0;
101
+  top: 0;
102
+  z-index: 999;
103
+  box-shadow: 5rpx 0rpx 10rpx rgba(0, 0, 0, 0.3)
104
+}

+ 5 - 0
pages/classify/classify.js

@@ -0,0 +1,5 @@
1
+Page({
2
+  data:{
3
+    classify:["全部商品","苹果专区","卡券专区","小米专区","华为专区","金银珠宝","运动健身","家居日用","食品酒类","十元专区"]
4
+  }
5
+})

+ 3 - 0
pages/classify/classify.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "商品分类"
3
+}

+ 24 - 0
pages/classify/classify.wxml

@@ -0,0 +1,24 @@
1
+<view class="container">
2
+  <view class="search-box">
3
+    <navigator class="search" hover-stay-time="1" url="">
4
+      <image src="images/search.png"></image>
5
+      <text>搜索您需要的商品</text>
6
+    </navigator>
7
+  </view>
8
+  <view class="classify-box">
9
+    <view class="classify-block" wx:for="{{classify}}" wx:key="*this">{{item}}</view>
10
+  </view>
11
+  <view class="content-box">
12
+    <navigator url="../details/details" class="goods" wx:for="{{[1,2,3,4,5,6,7,8,9]}}" hover-stay-time="100" wx:key="*this">
13
+      <image src="" class="goods-img"></image>
14
+      <view class="goods-details">
15
+        <text class="goods-name">商品名称</text>
16
+        <text class="goods-info">商品名称商品名称商品名称商品名称</text>
17
+        <text class="goods-time">00:00:10</text>
18
+        <text class="goods-price">¥5.0</text>
19
+        <text class="goods-price">用户134****3828</text>
20
+      </view>
21
+      <text class="goods-btn">竞买</text>
22
+    </navigator>
23
+  </view>
24
+</view>

+ 0 - 0
pages/classify/classify.wxss


Některé soubory nejsou zobrazny, neboť je v této revizi změněno mnoho souborů