├── app.js
├── .gitattributes
├── pages
├── about
│ ├── index.wxss
│ ├── index.json
│ ├── index.wxml
│ └── index.js
└── index
│ ├── index.json
│ ├── index.wxss
│ ├── index-.js
│ ├── index.js
│ └── index.wxml
├── sitemap.json
├── app.wxss
├── app.json
├── README.md
├── project.config.json
└── LICENSE
/app.js:
--------------------------------------------------------------------------------
1 | //app.js
2 | App({
3 | globalData:{
4 | banquan: "©2020 www.caozha.com 关于我们"
5 | }
6 | })
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.js linguist-language=javascript
2 | *.css linguist-language=javascript
3 | *.html linguist-language=javascript
4 | *.asp linguist-language=javascript
--------------------------------------------------------------------------------
/pages/about/index.wxss:
--------------------------------------------------------------------------------
1 | /* pages/about/index.wxss */
2 | .all{width:100%; text-align:center;}
3 | .con{width:90%;margin: auto;text-align:left; font-size: 40rpx;line-height: 180%;}
--------------------------------------------------------------------------------
/pages/about/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "联系反馈",
3 | "backgroundTextStyle": "light",
4 | "navigationBarBackgroundColor": "#83c46a",
5 | "navigationBarTextStyle": "white"
6 | }
--------------------------------------------------------------------------------
/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "尺码计算器",
3 | "backgroundTextStyle": "light",
4 | "navigationBarBackgroundColor": "#42BD56",
5 | "navigationBarTextStyle": "white"
6 | }
--------------------------------------------------------------------------------
/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/app.wxss:
--------------------------------------------------------------------------------
1 | /**app.wxss**/
2 | .banquan{
3 | clear: both;
4 | padding: 50rpx 0 100rpx 0;
5 | text-align:center;
6 | font-size: 14px;
7 | color:#999;
8 | font-family:Arial, Helvetica, sans-serif;
9 | }
--------------------------------------------------------------------------------
/pages/about/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 电脑版工具大全:tool.diannao.wang
5 |
6 | 开发者:草札 www.caozha.com
7 |
8 | 如遇到任何问题,欢迎给我反馈:
9 | 邮箱:8866629@qq.com
10 |
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index/index",
4 | "pages/about/index"
5 | ],
6 | "window": {
7 | "navigationBarTitleText": "尺码计算器",
8 | "backgroundTextStyle": "light",
9 | "navigationBarBackgroundColor": "#42BD56",
10 | "navigationBarTextStyle": "white"
11 | },
12 | "sitemapLocation": "sitemap.json"
13 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 尺码计算器
2 |
3 | 尺码计算器,是很实用的微信小程序,用于计算衣服、鞋子等尺码的计算器,网购时可以参考。
4 |
5 | ### 系统说明:
6 |
7 | 此小程序开发于2017年5月。
8 |
9 | 支持本程序,请到Gitee和GitHub给我们点Star!
10 |
11 | Gitee:https://gitee.com/dengzhenhua/wx-chima
12 |
13 | GitHub:https://github.com/dengcao/wx-chima
14 |
15 | ### 安装方法
16 |
17 | 直接将源代码复制到您的小程序根目录即可正常使用。
18 |
19 |
20 | ### 关于
21 |
22 | 开发:[邓草博客 blog.5300.cn](http://blog.5300.cn)
23 |
24 | 赞助:[品络互联 www.pinluo.com](http://www.pinluo.com) [AI工具箱 5300.cn](http://5300.cn) [汉语言文学网 hyywx.com](http://hyywx.com) [雄马 xiongma.cn](http://xiongma.cn) [优惠券 tm.gs](http://tm.gs)
25 |
26 |
27 | ### 扫码体验
28 |
29 | 
30 |
31 | ### 界面预览
32 |
33 |  
34 |
35 |
--------------------------------------------------------------------------------
/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目配置文件",
3 | "packOptions": {
4 | "ignore": []
5 | },
6 | "setting": {
7 | "urlCheck": true,
8 | "es6": true,
9 | "postcss": true,
10 | "preloadBackgroundData": false,
11 | "minified": true,
12 | "newFeature": true,
13 | "coverView": true,
14 | "autoAudits": false,
15 | "showShadowRootInWxmlPanel": true,
16 | "scopeDataCheck": false,
17 | "checkInvalidKey": true,
18 | "checkSiteMap": true,
19 | "uploadWithSourceMap": true,
20 | "babelSetting": {
21 | "ignore": [],
22 | "disablePlugins": [],
23 | "outputPath": ""
24 | }
25 | },
26 | "compileType": "miniprogram",
27 | "libVersion": "2.11.0",
28 | "appid": "wxbcadc4a9b00322f6",
29 | "projectname": "%E5%B0%BA%E7%A0%81%E8%AE%A1%E7%AE%97%E5%99%A8",
30 | "cloudfunctionTemplateRoot": "",
31 | "watchOptions": {
32 | "ignore": []
33 | },
34 | "debugOptions": {
35 | "hidedInDevtools": []
36 | },
37 | "scripts": {},
38 | "simulatorType": "wechat",
39 | "simulatorPluginLibVersion": {},
40 | "condition": {
41 | "search": {
42 | "current": -1,
43 | "list": []
44 | },
45 | "conversation": {
46 | "current": -1,
47 | "list": []
48 | },
49 | "plugin": {
50 | "current": -1,
51 | "list": []
52 | },
53 | "game": {
54 | "list": []
55 | },
56 | "gamePlugin": {
57 | "current": -1,
58 | "list": []
59 | },
60 | "miniprogram": {
61 | "current": -1,
62 | "list": []
63 | }
64 | }
65 | }
--------------------------------------------------------------------------------
/pages/about/index.js:
--------------------------------------------------------------------------------
1 | // pages/about/index.js
2 | /*
3 | ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
4 | ☆ ☆
5 | ☆ 系 统:尺码计算器 v1.0.0 ☆
6 | ☆ 日 期:2017-05 ☆
7 | ☆ 开 发:草札(www.caozha.com) ☆
8 | ☆ 鸣 谢:穷店(www.qiongdian.com) 品络(www.pinluo.com) ☆
9 | ☆ 声 明: 使用本程序源码必须保留此版权声明等相关信息! ☆
10 | ☆ Copyright ©2017 www.caozha.com All Rights Reserved. ☆
11 | ☆ ☆
12 | ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
13 | */
14 | Page({
15 |
16 | /**
17 | * 页面的初始数据
18 | */
19 | data: {
20 |
21 | },
22 |
23 | /**
24 | * 生命周期函数--监听页面加载
25 | */
26 | onLoad: function (options) {
27 |
28 | },
29 |
30 | /**
31 | * 生命周期函数--监听页面初次渲染完成
32 | */
33 | onReady: function () {
34 |
35 | },
36 |
37 | /**
38 | * 生命周期函数--监听页面显示
39 | */
40 | onShow: function () {
41 |
42 | },
43 |
44 | /**
45 | * 生命周期函数--监听页面隐藏
46 | */
47 | onHide: function () {
48 |
49 | },
50 |
51 | /**
52 | * 生命周期函数--监听页面卸载
53 | */
54 | onUnload: function () {
55 |
56 | },
57 |
58 | /**
59 | * 页面相关事件处理函数--监听用户下拉动作
60 | */
61 | onPullDownRefresh: function () {
62 |
63 | },
64 |
65 | /**
66 | * 页面上拉触底事件的处理函数
67 | */
68 | onReachBottom: function () {
69 |
70 | },
71 |
72 | /**
73 | * 用户点击右上角分享
74 | */
75 | onShareAppMessage: function () {
76 |
77 | },
78 |
79 | /**
80 | * 页面上拉触底事件的处理函数
81 | */
82 | onReachBottom: function () {
83 |
84 | },
85 |
86 | /**
87 | * 页面相关事件处理函数--监听用户下拉动作
88 | */
89 | onPullDownRefresh: function () {
90 |
91 | }
92 | })
--------------------------------------------------------------------------------
/pages/index/index.wxss:
--------------------------------------------------------------------------------
1 | /**index.wxss**/
2 |
3 | .container {
4 | height: 100%;
5 | display: flex;
6 | flex-direction: column;
7 | align-items: center;
8 | justify-content: space-between;
9 | padding: 80rpx 0;
10 | box-sizing: border-box;
11 | text-align: center;
12 | }
13 | input{
14 | border: 1px solid lawngreen;
15 | width: 86%;
16 | margin: 5%;
17 | padding: 5px;
18 | }
19 | button{width: 90%;}
20 | .cmb_con{
21 | width: 90%;margin: auto;
22 | text-align: left;
23 | font-size:30rpx;
24 | font-family:Arial, Helvetica, sans-serif;
25 | color: #000;
26 | padding-top: 50rpx;
27 | line-height: 180%;
28 | }
29 | .fuzhuang{text-align: left;}
30 | .title{font-weight: bold}
31 | .shuoming{font-size:30rpx;}
32 | .cmb_img{width:100%;height:auto;}
33 | .chimaInfo{font-size:32rpx;width: 90%;margin: 40rpx auto 0 auto;line-height: 180%;color: red;}
34 |
35 | .mytable {
36 | border: 1px solid #666;
37 | border-right: none;
38 | border-bottom: none;
39 | width:99%;
40 | font-size: 26rpx;
41 | }
42 | .mytable .tr {
43 | display: flex;
44 | width: 100%;
45 | justify-content: center;
46 | height: 2rem;
47 | align-items: center;
48 | border-bottom: 1px solid #666;
49 | }
50 | .mytable .td {
51 | width:14.2%;
52 | height: 2rem;
53 | justify-content: center;
54 | text-align: center;
55 | border-right: 1px solid #666;
56 | line-height: 2rem;
57 | }
58 | .mytable .w22{width:18%;}
59 | .mytable .bg-w{
60 | background: snow;
61 | }
62 | .mytable .bg-g{
63 | background: #E6F3F9;
64 | }
65 |
66 | .qz_table .td {width:16.3%;}
67 | .qz_table .w22{width:19%;}
68 |
69 | .nkz_table .td {width:20%;}
70 |
71 | .mytable .zghx .td{line-height:100%;word-break:break-all;padding-top:20rpx;}
72 |
73 | .xizhuang_table .td{width:14.2%;}
74 | .tongzhuang_table .td{width:19.8%;}
75 | .tongying_table .td{width:16.6%;}
76 | .zhongtong_table .td{width:19.8%;}
77 | .datong_table .td{width:19.8%;}
78 | .wenxiong_table .td{width:16.6%;}
79 | .neiku_table .td{width:19.8%;}
--------------------------------------------------------------------------------
/pages/index/index-.js:
--------------------------------------------------------------------------------
1 | //index.js
2 |
3 | //获取应用实例
4 | var app = getApp()
5 | Page({
6 | data: {
7 | banquan: app.globalData.banquan,
8 | motto: 'Hello World',
9 | userInfo: {},
10 | showLoading:false,
11 | my_shengao: "",
12 | my_tizhong: "",
13 | index: 0,
14 | show_no:0,//是否显示计算框
15 | kdgs: [{ id: "3", name: "女装" }, { id: "4", name: "女衬衫" }, { id: "5", name: "连衣裙" }, { id: "6", name: "女裤子" }, { id: "7", name: "男装" }, { id: "8", name: "男衬衫" }, { id: "9", name: "男西装" }, { id: "10", name: "男裤子" }, { id: "11", name: "童装" }, { id: "12", name: "婴童装(0-1.5岁)" }, { id: "13", name: "中童装(1.5-10岁)" }, { id: "14", name: "大童装(10-15岁)" }, { id: "15", name: "文胸" }, { id: "16", name: "内裤" }, { id: "17", name: "鞋码" }],
16 | ci:"",
17 | tishi1:"您的身高,单位:厘米",
18 | tishi2:"您的体重,单位:斤"
19 | },
20 |
21 | banquan: function () {
22 | wx.navigateTo({
23 | url: '../about/index'
24 | })
25 | },
26 | //输入框事件
27 | get_shengao: function(e) {
28 | //console.log(e);
29 | this.setData({ my_shengao: e.detail.value });
30 | },
31 | //输入框事件
32 | get_tizhong: function (e) {
33 | //console.log(e);
34 | this.setData({ my_tizhong: e.detail.value });
35 | },
36 |
37 | /**
38 | * 用户点击右上角分享
39 | */
40 | onShareAppMessage: function () {
41 |
42 | },
43 |
44 | bindPickerChange: function (e) {
45 | //console.log('picker发送选择改变,携带值为', e.detail.value)
46 | this.setData({
47 | index: e.detail.value
48 | })
49 | this.data.ci = this.data.kdgs[this.data.index].id;
50 | this.set_conbiao(this.data.ci);
51 | console.log('picker发送选择改变,携带值为', this.data.ci)
52 | this.setData({
53 | ci: this.data.ci
54 | })
55 | this.set_conbiao(this.data.ci);
56 | },
57 | onLoad: function () {
58 | console.log('onLoad')
59 | var that = this
60 | //调用应用实例的方法获取全局数据
61 |
62 | this.data.ci = this.data.kdgs[this.data.index].id;
63 | this.set_conbiao(this.data.ci);
64 |
65 | },
66 |
67 | //点击查询事件
68 | btnClick: function(){
69 | var thispage = this;
70 | this.calSize(this.data.my_shengao, this.data.my_tizhong, this.data.kdgs[this.data.index].id, function(data){
71 | //console.log(data);
72 | thispage.setData({chimaInfo: data});
73 | });
74 | },
75 |
76 | //设置页面内容
77 | set_conbiao:function(ci){
78 | if (ci == 3) {
79 | this.data.show_no = 0;
80 | var cm_title = "女装标准尺码对照表";
81 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,适用于绝大多数人群,不适用于特殊体型要求。\n国内比较普遍的一个判断胖瘦的公式是:\n女性之标准体重(千克)=身长(厘米)-102\n注意:身高体重与尺寸没有绝对的关系,155CM丰腴和168CM瘦高的女生也许会穿同一个尺寸。胸围是影响上衣尺寸选择的关键因素,建议你可以以胸围选择。";
82 | } else if(ci == 4) {
83 | this.data.show_no = 0;
84 | var cm_title = "女衬衫标准尺码对照表";
85 | var cm_shuoming = "\n国家服装号型的含义 号型定义:\n\"号\"指人体的身高,以cm为单位,是设计和选购服装长短的依据;\"型\"指人体的胸围和腰围,以cm为单位,是设计和选购服装肥瘦的依据。体型分类:以人体的胸围与腰围的差数为依据来划分体型,并将体型分为四类,体型分类代号分别为Y(偏瘦) 、A(正常)、B(偏胖)、C(肥胖)\n本尺码对照表仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
86 | } else if (ci == 5) {
87 | this.data.show_no = 0;
88 | var cm_title = "连衣裙尺码对照表";
89 | var cm_shuoming = "\n服装号型标志:\n号型的表示方法为号与型之间用斜线分开,后接体型分类代号。例如:上装160 / 84A,其中160为身高,代表号,84为胸围,代表型,A代表体型代号;下装160 / 68A,其中160为身高,代表号,68为腰围,代表型,A代表体型代号。\n本尺码对照表仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
90 | } else if (ci == 6) {
91 | this.data.show_no = 0;
92 | var cm_title = "女裤子尺码对照表";
93 | var cm_shuoming = "注意:上表中,裤子尺码的单位:英寸,臀围和胸围的单位:CM\n\n如何测量裤侧长:从腰部开始测量一直到脚裸的长度就是裤侧长。\n如何测量腰围:经脐点(om)的腰部水平围长\n标准腰围计算方法:腰围 = 身高的1 / 2减19厘米(如:身高160cm的标准腰围 = 160cm / 2 - 19=61cm )\n本尺码对照表仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
94 | } else if (ci == 7) {
95 | this.data.show_no = 0;
96 | var cm_title = "男装标准尺码对照表";
97 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,试用于绝大多数人群,不适用于特殊体型要求。\n国内比较普遍的一个判断胖瘦的公式是:\n 男性标准体重:身高(厘米)-105 = 标准体重(千克)\n本尺码对照表仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
98 | } else if (ci == 8) {
99 | this.data.show_no = 0;
100 | var cm_title = "男衬衫尺码对照表";
101 | var cm_shuoming = "\n注意:\n男式西服按照男士体型可分为偏瘦型、标准型、偏胖型。但这只是标准尺码,实际生活中因个人体型差异较大,本尺码仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
102 | } else if (ci == 9) {
103 | this.data.show_no = 0;
104 | var cm_title = "西装尺码对照表";
105 | var cm_shuoming = "\n注意:\n男式西服按照男士体型可分为偏瘦型、标准型、偏胖型。但这只是标准尺码,实际生活中因个人体型差异较大,本尺码仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
106 | } else if (ci == 10) {
107 | this.data.show_no = 0;
108 | var cm_title = "男裤子尺码对照表";
109 | var cm_shuoming = "\n注意:\n本尺码仅作参考之用。请您在试穿之后量身选择适合自己裤子尺码。";
110 | } else if (ci == 11) {
111 | this.data.show_no = 0;
112 | var cm_title = "童装尺码对照表";
113 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,试用于绝大多数人群,不适用于特殊体型要求。注意:表格中尺码项即为小孩身高,请顾客按照尺码项选择合适的码数,宝贝幼嫩肌肤。";
114 | } else if (ci == 12) {
115 | this.data.show_no = 0;
116 | var cm_title = "婴童尺码对照表";
117 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,试用于绝大多数人群,不适用于特殊体型要求。\n注意:表格中尺码项即为小孩身高,请顾客按照尺码项选择合适的码数。宝贝幼嫩肌肤,需要用心呵护。童装与成人服饰最大的区别在于用料和印染技术,童装需要精选上等环保面料,采用最新最环保的印染技术,保证毎一件衣服都对宝贝的皮肤无任何刺激。";
118 | } else if (ci == 13) {
119 | this.data.show_no = 0;
120 | var cm_title = "中童尺码对照表";
121 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,试用于绝大多数人群,不适用于特殊体型要求。\n注意:表格中尺码项即为小孩身高,请顾客按照尺码项选择合适的码数。\n吊牌上的执行标准的含义:\nA类,B类,C类的含义:这是国标中对甲醛含量的规定,A类是婴糼儿用品,B类是直接接触皮肤,C类是非直接接触皮肤。";
122 | } else if (ci == 14) {
123 | this.data.show_no = 0;
124 | var cm_title = "大童尺码对照表";
125 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,试用于绝大多数人群,不适用于特殊体型要求。\n注意:表格中尺码项即为小孩身高,请顾客按照尺码项选择合适的码数。\n宝贝幼嫩肌肤,需要用心呵护。童装与成人服饰最大的区别在于用料和印染技术,童装需要精选上等环保面料,采用最新最环保的印染技术,保证毎一件衣服都对宝贝的皮肤无任何刺激。";
126 | } else if (ci == 15) {
127 | this.data.show_no = 0;
128 | var cm_title = "文胸尺码对照表";
129 | var cm_shuoming = "\n注意:\n本尺码仅作参考之用。请您在试穿之后量身选择适合自己的尺码。";
130 | this.data.tishi1 = "上胸围,单位:厘米";
131 | this.data.tishi2 ="下胸围,单位:厘米"
132 | } else if (ci == 16) {
133 | var cm_title = "内裤尺码对照表";
134 | var cm_shuoming = "\n备注:\n按贴身腰围为准。相同码数,但因款式不同、材料不同等因素,会有2cm左右偏差,购买时最好咨询相关人员为准。\n本尺码仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
135 | this.data.show_no=1;
136 | } else if (ci == 17) {
137 | var cm_title = "鞋码尺码对照表";
138 | var cm_shuoming = "\n选购时请综合参考尺码表中的各项参数,这有助您选择到更好的尺码。\n(仅供参考,测量脚时请注意用适当力度轻踩水平面上。因测量方法不同,测量出来的数据也会不一样。)\n国际标准鞋号表示的是脚长的毫米数。中国标准采用毫米数或厘米数。如:245是毫米数,24 1/ 2是厘米数,表示一样的尺码。";
139 | this.data.show_no = 1;
140 | }
141 | this.setData({
142 | ci: ci, cm_title: cm_title, cm_shuoming: cm_shuoming, tishi1: this.data.tishi1, tishi2: this.data.tishi2, show_no: this.data.show_no
143 | })
144 | },
145 |
146 | //计算尺码
147 | calSize: function (height, wight, ci, cb){
148 | if (height == "" || wight == "" || isNaN(height) || isNaN(wight)) {
149 | cb("请输入有效的数据");return;
150 | }
151 | var size;var sarr= new Array();if(ci>=3 && ci <= 6) { sarr = ["S", 80, 99, 145, 149, "S", 90, 99, 150, 169, "S", 80, 89, 160, 169, "M", 80, 99, 170, 172, "M", 90, 99, 173, 175, "M", 100, 109, 145, 149, "M", 100, 109, 155, 179, "L", 110, 119, 145, 149, "L", 110, 119, 155, 179, "L", 120, 129, 155, 159, "L", 120, 129, 170, 179, "XS", 80, 89, 150, 159, "XL", 110, 119, 150, 154, "XL", 120, 129, 145, 154, "XL", 120, 129, 160, 169, "XL", 130, 139, 160, 179, "XL", 140, 149, 173, 179, "XXL", 130, 139, 150, 159, "XXL", 140, 149, 155, 172]; }
152 | else if(ci<=10) { sarr = [44, 85, 115, 153, 163, 44, 85, 105, 163, 168, 44, 85, 95, 168, 173, 46, 115, 135, 153, 163, 46, 135, 145, 153, 158, 46, 105, 125, 163, 168, 46, 95, 115, 168, 173, 46, 95, 105, 173, 178, 48, 145, 165, 153, 158, 48, 135, 155, 158, 163, 48, 125, 145, 163, 168, 48, 115, 145, 168, 173, 48, 105, 125, 173, 178, 48, 105, 115, 178, 183, 50, 165, 185, 153, 158, 50, 155, 175, 158, 163, 50, 145, 165, 163, 168, 50, 145, 155, 168, 173, 50, 125, 155, 173, 178, 50, 115, 135, 178, 183, 50, 115, 125, 183, 188, 52, 175, 195, 158, 163, 52, 165, 185, 163, 168, 52, 155, 175, 168, 173, 52, 155, 165, 173, 183, 52, 135, 155, 178, 183, 52, 125, 145, 183, 188, 52, 125, 135, 188, 193, 54, 185, 195, 163, 173, 54, 175, 185, 168, 178, 54, 165, 175, 173, 188, 54, 145, 165, 183, 188, 54, 135, 155, 188, 193, 56, 195, 215, 168, 183, 56, 185, 195, 173, 193, 56, 175, 185, 178, 193, 56, 155, 175, 188, 193, 58, 195, 215, 183, 193]; }
153 | else if(ci<=14) { sarr = [59, 6, 11, 55, 62, 66, 12, 14, 55, 62, 66, 8, 16, 63, 69, 73, 17, 20, 63, 69, 73, 12, 20, 70, 76, 80, 21, 24, 70, 76, 80, 16, 24, 77, 83, 90, 23, 28, 77, 83, 90, 20, 30, 84, 94, 100, 31, 36, 84, 94, 100, 22, 38, 95, 104, 110, 39, 44, 95, 104, 110, 26, 42, 105, 114, 120, 43, 52, 105, 114, 120, 34, 52, 115, 124, 130, 53, 60, 115, 124, 130, 40, 60, 125, 134, 140, 61, 80, 125, 134, 140, 52, 76, 135, 144, 150, 77, 90, 135, 144, 150, 70, 84, 145, 154, 160, 85, 100, 145, 154, 160, 80, 110, 155, 164, 165, 111, 130, 155, 164]; }
154 | else if(ci==15) { sarr = ["32/70A", 68, 72, 80, 82, "32/70B", 68, 72, 83, 84, "32/70C", 68, 72, 85, 87, "32/70D", 68, 72, 88, 88, "34/75A", 73, 77, 85, 87, "34/75B", 73, 77, 88, 89, "34/75C", 73, 77, 90, 94, "34/75D", 73, 77, 95, 97, "34/75E", 73, 77, 98, 98, "36/80A", 78, 82, 90, 92, "36/80B", 78, 82, 93, 94, "36/80C", 78, 82, 95, 97, "36/80D", 78, 82, 98, 102, "36/80E", 78, 82, 103, 103, "38/85A", 83, 87, 95, 97, "38/85B", 83, 87, 99, 101, "38/85C", 83, 87, 101, 103, "38/85D", 83, 87, 103, 105, "40/90B", 88, 92, 103, 104, "40/90C", 88, 92, 105, 107, "40/90D", 88, 92, 108, 112, "40/90E", 88, 92, 113, 113]; }
155 | for(var i= 0;i= sarr[5 * i + 1] && wight <= sarr[5 * i + 2] && height >= sarr[5 * i + 3] && height <= sarr[5 * i + 4]) { size = sarr[5 * i]; break; }
157 | if (i == sarr.length / 5 - 1) { cb("亲!你的身材实在是太棒了,已经超出了普通人的范畴!");return; }
158 | }
159 | if (ci == 6) { switch (size) { case "XS": size = "24/25"; break; case "S": size = "25/26"; break; case "M": size = "27/28"; break; case "L": size = "29/30"; break; case "XL": size = "31/32"; break; case "XXL": size = "33/34"; break; } }
160 | if (ci == 7) { switch (size) { case 44: size = "XS"; break; case 46: size = "S"; break; case 48: size = "M"; break; case 50: size = "L"; break; case 52: size = "XL"; break; case 54: size = "XXL"; break; case 56: size = "XXXL"; break; } }
161 | if (ci == 8) { switch (size) { case 44: size = "37"; break; case 46: size = "38"; break; case 48: size = "39"; break; case 50: size = "40"; break; case 52: size = "41"; break; case 54: size = "42"; break; case 56: size = "43"; break; } }
162 | if (ci == 10) { switch (size) { case 44: size = "27"; break; case 46: size = "28/29/30"; break; case 48: size = "30/31/32"; break; case 50: size = "33/34"; break; case 52: size = "35/36"; break; case 54: size = "38"; break; case 56: size = "40"; break; } }
163 | cb("您适合的尺码为:" + size); return;},
164 |
165 |
166 |
167 | })
168 |
--------------------------------------------------------------------------------
/pages/index/index.js:
--------------------------------------------------------------------------------
1 | //index.js
2 |
3 | /*
4 | ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
5 | ☆ ☆
6 | ☆ 系 统:尺码计算器 v1.0.0 ☆
7 | ☆ 日 期:2017-05 ☆
8 | ☆ 开 发:草札(www.caozha.com) ☆
9 | ☆ 鸣 谢:穷店(www.qiongdian.com) 品络(www.pinluo.com) ☆
10 | ☆ 声 明: 使用本程序源码必须保留此版权声明等相关信息! ☆
11 | ☆ Copyright ©2017 www.caozha.com All Rights Reserved. ☆
12 | ☆ ☆
13 | ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
14 | */
15 |
16 | //获取应用实例
17 | var app = getApp()
18 | Page({
19 | data: {
20 | banquan: app.globalData.banquan,
21 | motto: 'Hello World',
22 | userInfo: {},
23 | showLoading:false,
24 | my_shengao: "",
25 | my_tizhong: "",
26 | index: 0,
27 | show_no:0,//是否显示计算框
28 | kdgs: [{ id: "3", name: "女装" }, { id: "4", name: "女衬衫" }, { id: "5", name: "连衣裙" }, { id: "6", name: "女裤子" }, { id: "7", name: "男装" }, { id: "8", name: "男衬衫" }, { id: "9", name: "男西装" }, { id: "10", name: "男裤子" }, { id: "11", name: "童装" }, { id: "12", name: "婴童装(0-1.5岁)" }, { id: "13", name: "中童装(1.5-10岁)" }, { id: "14", name: "大童装(10-15岁)" }, { id: "15", name: "文胸" }, { id: "16", name: "内裤" }, { id: "17", name: "鞋码" }],
29 | ci:"",
30 | tishi1:"您的身高,单位:厘米",
31 | tishi2:"您的体重,单位:斤"
32 | },
33 |
34 | banquan: function () {
35 | wx.navigateTo({
36 | url: '../about/index'
37 | })
38 | },
39 | //输入框事件
40 | get_shengao: function(e) {
41 | //console.log(e);
42 | this.setData({ my_shengao: e.detail.value });
43 | },
44 | //输入框事件
45 | get_tizhong: function (e) {
46 | //console.log(e);
47 | this.setData({ my_tizhong: e.detail.value });
48 | },
49 |
50 | /**
51 | * 用户点击右上角分享
52 | */
53 | onShareAppMessage: function () {
54 |
55 | },
56 |
57 | bindPickerChange: function (e) {
58 | //console.log('picker发送选择改变,携带值为', e.detail.value)
59 | this.setData({
60 | index: e.detail.value
61 | })
62 | this.data.ci = this.data.kdgs[this.data.index].id;
63 | this.set_conbiao(this.data.ci);
64 | console.log('picker发送选择改变,携带值为', this.data.ci)
65 | this.setData({
66 | ci: this.data.ci
67 | })
68 | this.set_conbiao(this.data.ci);
69 | },
70 | onLoad: function () {
71 | console.log('onLoad')
72 | var that = this
73 | //调用应用实例的方法获取全局数据
74 |
75 | this.data.ci = this.data.kdgs[this.data.index].id;
76 | this.set_conbiao(this.data.ci);
77 |
78 | },
79 |
80 | //点击查询事件
81 | btnClick: function(){
82 | var thispage = this;
83 | this.calSize(this.data.my_shengao, this.data.my_tizhong, this.data.kdgs[this.data.index].id, function(data){
84 | //console.log(data);
85 | thispage.setData({chimaInfo: data});
86 | });
87 | },
88 |
89 | //设置页面内容
90 | set_conbiao:function(ci){
91 | if (ci == 3) {
92 | this.data.show_no = 0;
93 | var cm_title = "女装标准尺码对照表";
94 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,适用于绝大多数人群,不适用于特殊体型要求。\n国内比较普遍的一个判断胖瘦的公式是:\n女性之标准体重(千克)=身长(厘米)-102\n注意:身高体重与尺寸没有绝对的关系,155CM丰腴和168CM瘦高的女生也许会穿同一个尺寸。胸围是影响上衣尺寸选择的关键因素,建议你可以以胸围选择。";
95 | } else if(ci == 4) {
96 | this.data.show_no = 0;
97 | var cm_title = "女衬衫标准尺码对照表";
98 | var cm_shuoming = "\n国家服装号型的含义 号型定义:\n\"号\"指人体的身高,以cm为单位,是设计和选购服装长短的依据;\"型\"指人体的胸围和腰围,以cm为单位,是设计和选购服装肥瘦的依据。体型分类:以人体的胸围与腰围的差数为依据来划分体型,并将体型分为四类,体型分类代号分别为Y(偏瘦) 、A(正常)、B(偏胖)、C(肥胖)\n本尺码对照表仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
99 | } else if (ci == 5) {
100 | this.data.show_no = 0;
101 | var cm_title = "连衣裙尺码对照表";
102 | var cm_shuoming = "\n服装号型标志:\n号型的表示方法为号与型之间用斜线分开,后接体型分类代号。例如:上装160 / 84A,其中160为身高,代表号,84为胸围,代表型,A代表体型代号;下装160 / 68A,其中160为身高,代表号,68为腰围,代表型,A代表体型代号。\n本尺码对照表仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
103 | } else if (ci == 6) {
104 | this.data.show_no = 0;
105 | var cm_title = "女裤子尺码对照表";
106 | var cm_shuoming = "注意:上表中,裤子尺码的单位:英寸,臀围和胸围的单位:CM\n\n如何测量裤侧长:从腰部开始测量一直到脚裸的长度就是裤侧长。\n如何测量腰围:经脐点(om)的腰部水平围长\n标准腰围计算方法:腰围 = 身高的1 / 2减19厘米(如:身高160cm的标准腰围 = 160cm / 2 - 19=61cm )\n本尺码对照表仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
107 | } else if (ci == 7) {
108 | this.data.show_no = 0;
109 | var cm_title = "男装标准尺码对照表";
110 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,试用于绝大多数人群,不适用于特殊体型要求。\n国内比较普遍的一个判断胖瘦的公式是:\n 男性标准体重:身高(厘米)-105 = 标准体重(千克)\n本尺码对照表仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
111 | } else if (ci == 8) {
112 | this.data.show_no = 0;
113 | var cm_title = "男衬衫尺码对照表";
114 | var cm_shuoming = "\n注意:\n男式西服按照男士体型可分为偏瘦型、标准型、偏胖型。但这只是标准尺码,实际生活中因个人体型差异较大,本尺码仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
115 | } else if (ci == 9) {
116 | this.data.show_no = 0;
117 | var cm_title = "西装尺码对照表";
118 | var cm_shuoming = "\n注意:\n男式西服按照男士体型可分为偏瘦型、标准型、偏胖型。但这只是标准尺码,实际生活中因个人体型差异较大,本尺码仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
119 | } else if (ci == 10) {
120 | this.data.show_no = 0;
121 | var cm_title = "男裤子尺码对照表";
122 | var cm_shuoming = "\n注意:\n本尺码仅作参考之用。请您在试穿之后量身选择适合自己裤子尺码。";
123 | } else if (ci == 11) {
124 | this.data.show_no = 0;
125 | var cm_title = "童装尺码对照表";
126 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,试用于绝大多数人群,不适用于特殊体型要求。注意:表格中尺码项即为小孩身高,请顾客按照尺码项选择合适的码数,宝贝幼嫩肌肤。";
127 | } else if (ci == 12) {
128 | this.data.show_no = 0;
129 | var cm_title = "婴童尺码对照表";
130 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,试用于绝大多数人群,不适用于特殊体型要求。\n注意:表格中尺码项即为小孩身高,请顾客按照尺码项选择合适的码数。宝贝幼嫩肌肤,需要用心呵护。童装与成人服饰最大的区别在于用料和印染技术,童装需要精选上等环保面料,采用最新最环保的印染技术,保证毎一件衣服都对宝贝的皮肤无任何刺激。";
131 | } else if (ci == 13) {
132 | this.data.show_no = 0;
133 | var cm_title = "中童尺码对照表";
134 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,试用于绝大多数人群,不适用于特殊体型要求。\n注意:表格中尺码项即为小孩身高,请顾客按照尺码项选择合适的码数。\n吊牌上的执行标准的含义:\nA类,B类,C类的含义:这是国标中对甲醛含量的规定,A类是婴糼儿用品,B类是直接接触皮肤,C类是非直接接触皮肤。";
135 | } else if (ci == 14) {
136 | this.data.show_no = 0;
137 | var cm_title = "大童尺码对照表";
138 | var cm_shuoming = "\n说明:\n上述提供的计算公式是根据经验得到的数据参数,试用于绝大多数人群,不适用于特殊体型要求。\n注意:表格中尺码项即为小孩身高,请顾客按照尺码项选择合适的码数。\n宝贝幼嫩肌肤,需要用心呵护。童装与成人服饰最大的区别在于用料和印染技术,童装需要精选上等环保面料,采用最新最环保的印染技术,保证毎一件衣服都对宝贝的皮肤无任何刺激。";
139 | } else if (ci == 15) {
140 | this.data.show_no = 0;
141 | var cm_title = "文胸尺码对照表";
142 | var cm_shuoming = "\n注意:\n本尺码仅作参考之用。请您在试穿之后量身选择适合自己的尺码。";
143 | this.data.tishi1 = "上胸围,单位:厘米";
144 | this.data.tishi2 ="下胸围,单位:厘米"
145 | } else if (ci == 16) {
146 | var cm_title = "内裤尺码对照表";
147 | var cm_shuoming = "\n备注:\n按贴身腰围为准。相同码数,但因款式不同、材料不同等因素,会有2cm左右偏差,购买时最好咨询相关人员为准。\n本尺码仅作参考之用。请您在试穿之后量身选择适合自己的尺寸。";
148 | this.data.show_no=1;
149 | } else if (ci == 17) {
150 | var cm_title = "鞋码尺码对照表";
151 | var cm_shuoming = "\n选购时请综合参考尺码表中的各项参数,这有助您选择到更好的尺码。\n(仅供参考,测量脚时请注意用适当力度轻踩水平面上。因测量方法不同,测量出来的数据也会不一样。)\n国际标准鞋号表示的是脚长的毫米数。中国标准采用毫米数或厘米数。如:245是毫米数,24 1/ 2是厘米数,表示一样的尺码。";
152 | this.data.show_no = 1;
153 | }
154 | this.setData({
155 | ci: ci, cm_title: cm_title, cm_shuoming: cm_shuoming, tishi1: this.data.tishi1, tishi2: this.data.tishi2, show_no: this.data.show_no
156 | })
157 | },
158 |
159 | //计算尺码
160 | calSize: function (height, wight, ci, cb){
161 | if (height == "" || wight == "" || isNaN(height) || isNaN(wight)) {
162 | cb("请输入有效的数据");return;
163 | }
164 | var size;var sarr= new Array();if(ci>=3 && ci <= 6) { sarr = ["S", 80, 99, 145, 149, "S", 90, 99, 150, 169, "S", 80, 89, 160, 169, "M", 80, 99, 170, 172, "M", 90, 99, 173, 175, "M", 100, 109, 145, 149, "M", 100, 109, 155, 179, "L", 110, 119, 145, 149, "L", 110, 119, 155, 179, "L", 120, 129, 155, 159, "L", 120, 129, 170, 179, "XS", 80, 89, 150, 159, "XL", 110, 119, 150, 154, "XL", 120, 129, 145, 154, "XL", 120, 129, 160, 169, "XL", 130, 139, 160, 179, "XL", 140, 149, 173, 179, "XXL", 130, 139, 150, 159, "XXL", 140, 149, 155, 172]; }
165 | else if(ci<=10) { sarr = [44, 85, 115, 153, 163, 44, 85, 105, 163, 168, 44, 85, 95, 168, 173, 46, 115, 135, 153, 163, 46, 135, 145, 153, 158, 46, 105, 125, 163, 168, 46, 95, 115, 168, 173, 46, 95, 105, 173, 178, 48, 145, 165, 153, 158, 48, 135, 155, 158, 163, 48, 125, 145, 163, 168, 48, 115, 145, 168, 173, 48, 105, 125, 173, 178, 48, 105, 115, 178, 183, 50, 165, 185, 153, 158, 50, 155, 175, 158, 163, 50, 145, 165, 163, 168, 50, 145, 155, 168, 173, 50, 125, 155, 173, 178, 50, 115, 135, 178, 183, 50, 115, 125, 183, 188, 52, 175, 195, 158, 163, 52, 165, 185, 163, 168, 52, 155, 175, 168, 173, 52, 155, 165, 173, 183, 52, 135, 155, 178, 183, 52, 125, 145, 183, 188, 52, 125, 135, 188, 193, 54, 185, 195, 163, 173, 54, 175, 185, 168, 178, 54, 165, 175, 173, 188, 54, 145, 165, 183, 188, 54, 135, 155, 188, 193, 56, 195, 215, 168, 183, 56, 185, 195, 173, 193, 56, 175, 185, 178, 193, 56, 155, 175, 188, 193, 58, 195, 215, 183, 193]; }
166 | else if(ci<=14) { sarr = [59, 6, 11, 55, 62, 66, 12, 14, 55, 62, 66, 8, 16, 63, 69, 73, 17, 20, 63, 69, 73, 12, 20, 70, 76, 80, 21, 24, 70, 76, 80, 16, 24, 77, 83, 90, 23, 28, 77, 83, 90, 20, 30, 84, 94, 100, 31, 36, 84, 94, 100, 22, 38, 95, 104, 110, 39, 44, 95, 104, 110, 26, 42, 105, 114, 120, 43, 52, 105, 114, 120, 34, 52, 115, 124, 130, 53, 60, 115, 124, 130, 40, 60, 125, 134, 140, 61, 80, 125, 134, 140, 52, 76, 135, 144, 150, 77, 90, 135, 144, 150, 70, 84, 145, 154, 160, 85, 100, 145, 154, 160, 80, 110, 155, 164, 165, 111, 130, 155, 164]; }
167 | else if(ci==15) { sarr = ["32/70A", 68, 72, 80, 82, "32/70B", 68, 72, 83, 84, "32/70C", 68, 72, 85, 87, "32/70D", 68, 72, 88, 88, "34/75A", 73, 77, 85, 87, "34/75B", 73, 77, 88, 89, "34/75C", 73, 77, 90, 94, "34/75D", 73, 77, 95, 97, "34/75E", 73, 77, 98, 98, "36/80A", 78, 82, 90, 92, "36/80B", 78, 82, 93, 94, "36/80C", 78, 82, 95, 97, "36/80D", 78, 82, 98, 102, "36/80E", 78, 82, 103, 103, "38/85A", 83, 87, 95, 97, "38/85B", 83, 87, 99, 101, "38/85C", 83, 87, 101, 103, "38/85D", 83, 87, 103, 105, "40/90B", 88, 92, 103, 104, "40/90C", 88, 92, 105, 107, "40/90D", 88, 92, 108, 112, "40/90E", 88, 92, 113, 113]; }
168 | for(var i= 0;i= sarr[5 * i + 1] && wight <= sarr[5 * i + 2] && height >= sarr[5 * i + 3] && height <= sarr[5 * i + 4]) { size = sarr[5 * i]; break; }
170 | if (i == sarr.length / 5 - 1) { cb("亲!你的身材实在是太棒了,已经超出了普通人的范畴!");return; }
171 | }
172 | if (ci == 6) { switch (size) { case "XS": size = "24/25"; break; case "S": size = "25/26"; break; case "M": size = "27/28"; break; case "L": size = "29/30"; break; case "XL": size = "31/32"; break; case "XXL": size = "33/34"; break; } }
173 | if (ci == 7) { switch (size) { case 44: size = "XS"; break; case 46: size = "S"; break; case 48: size = "M"; break; case 50: size = "L"; break; case 52: size = "XL"; break; case 54: size = "XXL"; break; case 56: size = "XXXL"; break; } }
174 | if (ci == 8) { switch (size) { case 44: size = "37"; break; case 46: size = "38"; break; case 48: size = "39"; break; case 50: size = "40"; break; case 52: size = "41"; break; case 54: size = "42"; break; case 56: size = "43"; break; } }
175 | if (ci == 10) { switch (size) { case 44: size = "27"; break; case 46: size = "28/29/30"; break; case 48: size = "30/31/32"; break; case 50: size = "33/34"; break; case 52: size = "35/36"; break; case 54: size = "38"; break; case 56: size = "40"; break; } }
176 | cb("您适合的尺码为:" + size); return;},
177 |
178 |
179 |
180 | })
181 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/pages/index/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 计算类型:{{kdgs[index].name}}(点击选择)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 计算结果:{{chimaInfo}}
21 |
22 |
23 |
24 | {{cm_title}}
25 | {{cm_table}}
26 |
27 | 上衣尺码SMLXLXXLXXXL
28 | 服装尺码363840424446
29 |
30 | 胸围/cm79-8283-8687-9091-9495-9899-103
31 | 腰围/cm62-6667-7071-7475-7879-8283-86
32 |
33 | 肩宽/cm373839404142
34 | 身高155160165170172175
35 | 胸围82A86A90A 94A98A102A
36 |
37 |
38 |
39 |
40 | 衬衫尺码SMLXLXXLXXXL
41 | 国际尺码363738394041
42 |
43 | 胸围/cm79-8283-8687-9091-9495-9899-103
44 | 腰围/cm62-6667-7071-7475-7879-8283-86
45 |
46 | 肩宽/cm373839404142
47 | 身高155160165170172175
48 | 胸围82A86A90A 94A98A102A
49 |
50 |
51 |
52 |
53 | 裙子尺码SMLXLXXL
54 | 服装尺码3638404244
55 |
56 | 胸围/cm79-8283-8687-9091-9495-98
57 | 腰围/cm62-6667-7071-7475-7879-82
58 |
59 | 肩宽/cm3738394041
60 | 身高155160165170172
61 | 胸围82A86A90A 94A98A
62 |
63 |
64 |
65 |
66 | 女裤裤子尺码国标号型对应臀围对应腰围
67 | S25155/62A8562
68 |
69 | S26159/64A87.564.5
70 | M27160/66A9067
71 |
72 | M28164/68A92.569.5
73 | L29165/70A9572
74 | L30169/72A97.5 74.5
75 |
76 | XL31170/74A10077
77 | XL32170/76A102.579.5
78 |
79 |
80 |
81 |
82 | 上衣尺码SMLXLXXLXXXL
83 | 服装尺码464850525456
84 |
85 | 中国号型165/80A170/84A175/88A180/92A185/96A190/100A
86 | 胸围/cm82-8586-8990-9394-9798-102103-107
87 |
88 | 腰围/cm72-7576-7980-8485-8889-9293-96
89 | 肩宽/cm424446485052
90 | 适合身高/cm163/167168/172173/177178/182182/187187/190
91 |
92 |
93 |
94 |
95 | 上衣尺码XSSMLXLXXLXXXL
96 | 衬衫尺码37383940414243
97 |
98 | 国际型号160/80A165/84A170/88A175/92A180/96A180/100A185/104A
99 | 胸围/cm98-101102-105106-109110-113114-117118-121122-125
100 |
101 | 衣长72747678808283
102 | 肩宽/cm42-4344-4546-4747-4849-5051-5253-54
103 | 身高/cm160165170175180185190
104 |
105 |
106 |
107 | 尺码规格板型衣长胸围肩宽袖长
108 | 2R48165/96C偏胖7010644.760
109 | 2R50170/100C偏胖7211045.961.5
110 | 2R52175/104C偏胖7411447.163
111 | 2R54180/108C偏胖7611848.364.5
112 | 2R56185/112C偏胖7812249.566
113 | 4R46165/92B标准7010243.560
114 | 4R48170/96B标准7210644.761.5
115 | 4R50175/100B标准7411045.963
116 | 4R52180/104B标准7611447.164.5
117 | 4R54185/108B标准7811848.366
118 | 6R44165/88A偏瘦709842.360
119 | 6R46170/92A偏瘦7210243.561.5
120 | 6R48175/96A偏瘦7410644.763
121 | 6R50180/100A偏瘦7611045.964.5
122 | 6R52185/104A偏瘦7811447.166
123 |
124 |
125 |
126 |
127 |
128 | 男裤子尺码SSMMLL
129 | 男裤子尺码170/72A170/74A170/76A175/80A175/82A175/84A
130 | 裤子尺码(英寸)293031323334
131 | 对应臀围(cm)97.5100102.5105107.5110
132 | 对应腰围(cm)73.776.278.781.383.886.4
133 | 腰围/市尺2尺2寸2尺3寸2尺4寸2尺4寸2尺5寸2尺6寸
134 |
135 |
136 | 男裤子尺码XLXLXXLXXLXXXLXXXL
137 | 男裤子尺码180/86A180/90A185/92A185/94B190/98B195/102B
138 | 裤子尺码(英寸)353637384042
139 | 对应臀围(cm)112.5100117.5120122.5130
140 | 对应腰围(cm)8991.493.396.5101.6106.6
141 | 腰围/市尺2尺6寸2尺7寸2尺8寸2尺9寸3尺1寸3尺2寸
142 |
143 |
144 |
145 |
146 | 年龄尺码身高胸围腰围
147 | 0-3个月59595038
148 | 3-6个月66665340
149 | 6-9个月73735642
150 | 9-12个月80805944
151 | 1-1.5岁90906246
152 | 1.5岁-3岁1001005452
153 | 3岁-6岁1101105854
154 | 6岁-8岁1201206456
155 | 8岁-10岁1301306558
156 | 10岁-11岁1401506860
157 | 12岁-13岁1501507262
158 | 14岁-15岁1601607664
159 |
160 |
161 |
162 | 尺码(cm)5966738090
163 | 年龄0-3个月3-6个月6-9个月9-12个月1-1.5岁
164 | 身高5966738090
165 | 胸围4144475052
166 | 腰围3840424446
167 |
168 |
169 |
170 |
171 | 尺码(cm)100110120130
172 | 年龄1.5岁-3岁3岁-6岁6岁-8岁8岁-10岁
173 | 身高100110120130
174 | 胸围54586266
175 | 腰围52545658
176 |
177 |
178 |
179 |
180 | 尺码(cm)130140150160
181 | 年龄8岁-10岁10岁-11岁12岁-13岁14岁-15岁
182 | 身高130140150160
183 | 胸围66697378
184 | 腰围58606264
185 |
186 |
187 |
188 | 下胸围(cm)上胸围(cm)国际尺码下胸围(cm)上胸围(cm)国际尺码
189 | 68-728032/70A73-778534/75A
190 |
191 | 68-72
192 | 8332/70B
193 | 73-77
194 | 8834/75B
195 |
196 | 68-72
197 | 8532/70C
198 | 73-77
199 | 9034/75C
200 |
201 | 68-72
202 | 8832/70D
203 | 73-77
204 | 9534/75D
205 |
206 | 68-72
207 |
208 | 73-77
209 | 9834/75E
210 | 下胸围(cm)上胸围(cm)国际尺码下胸围(cm)上胸围(cm)国际尺码
211 | 78-829036/80A83-8795-9738/85A
212 |
213 | 78-82
214 | 9336/80B
215 | 83-87
216 | 99-10138/85B
217 |
218 | 78-82
219 | 9536/80C
220 | 83-87
221 | 101-10338/85C
222 |
223 | 78-82
224 | 9836/80D
225 | 83-87
226 | 103-105338/85D
227 |
228 | 78-82
229 | 10336/80E
230 |
231 |
232 | 下胸围(cm)上胸围(cm)国际尺码
233 | 88-9210340/90B
234 |
235 | 88-92
236 | 10540/90C
237 |
238 | 88-92
239 | 10840/90D
240 |
241 | 88-92
242 | 11340/90E
243 |
244 |
245 |
246 |
247 |
248 | 女式内裤
249 | 尺码SMLXL
250 | 腰围55-6161-6767-7373-79
251 | 腰围(市尺)1.8-1.91.9-2.12.1-2.22.2-2.3
252 | 臀围80-8685-9390-9895-103
253 | 男式内裤
254 | 尺码MLXLXXL
255 | 腰围62-7066-7472-8276-84
256 | 腰围(市尺)2.0-2.22.2-2.42.4-2.5>2.6
257 | 臀围82-9086-9488-9694-102
258 | 身高160-170165-175170-180175-185
259 |
260 |
261 |
262 |
263 |
264 | 男鞋
265 | 脚长 cm24.52525.52626.52727.528
266 | 欧洲EUR39 1/34040 2/341 1/34242 2/343 1/344
267 | 美国 US6.577.588.599.510
268 | 英国 UK66.577.588.599.5
269 |
270 | 女鞋
271 | 脚长 cm22.52323.52424.52525.526
272 | 欧洲EUR36 2/337 1/33838 2/339 1/34040 2/341 1/3
273 | 美国 US5.566.577.588.59
274 | 英国 UK4.555.566.577.58
275 |
276 |
277 |
278 |
279 |
280 | {{cm_shuoming}}
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 | {{banquan}}
292 |
293 |
--------------------------------------------------------------------------------