You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// app.js
App ( {
onLaunch : function ( ) {
if ( ! wx . cloud ) {
console . error ( '请使用 2.2.3 或以上的基础库以使用云能力' ) ;
} else {
wx . cloud . init ( {
// env 参数说明:
// env 参数决定接下来小程序发起的云开发调用( wx.cloud.xxx) 会默认请求到哪个云环境的资源
// 此处请填入环境 ID, 环境 ID 可打开云控制台查看
// 如不填则使用默认环境(第一个创建的环境)
// env: 'my-env-id',
env : 'cloud1-5ggzbo3kcd4ea4e2' ,
traceUser : true ,
} ) ;
}
} ,
//全局变量
globalData : {
url : null
} ,
//wx.cloud.callFunction({
//name:'get',
// data:{
// name:"",
// pattern:"",
// kind:"",
// style:"",
// colour:"",
// T:"",
// thickness:"",
// season:""
// },
// success:res=>{
// this.globalData.openid=res.result.openid
// },
// fail:err=>{
// console.error('[云函数] [login] 调用失败',err)
// }
//})
globalData : {
clothes : [ {
name : "t-shirt1" ,
pattern : "up" ,
kind : "t-shirt" ,
style : "leisure" ,
colour : "white" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "t-shirt2" ,
pattern : "up" ,
kind : "t-shirt" ,
style : "leisure" ,
colour : "red" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "t-shirt3" ,
pattern : "up" ,
kind : "t-shirt" ,
style : "leisure" ,
colour : "orange" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "t-shirt4" ,
pattern : "up" ,
kind : "t-shirt" ,
style : "leisure" ,
colour : "black" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "t-shirt5" ,
pattern : "up" ,
kind : "t-shirt" ,
style : "leisure" ,
colour : "red" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "t-shirt6" ,
pattern : "up" ,
kind : "t-shirt" ,
style : "leisure" ,
colour : "purple" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "t-shirt7" ,
pattern : "up" ,
kind : "t-shirt" ,
style : "leisure" ,
colour : "green" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "t-shirt8" ,
pattern : "up" ,
kind : "t-shirt" ,
style : "sports" ,
colour : "white" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "t-shirt9" ,
pattern : "up" ,
kind : "t-shirt" ,
style : "sports" ,
colour : "black" ,
T : - 4 ,
thickness : "thin" ,
season : "summer"
} , {
name : "t-shirt10" ,
pattern : "up" ,
kind : "t-shirt" ,
style : "leisure" ,
colour : "blue" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "hoodie1" ,
pattern : "up" ,
kind : "hoodie" ,
style : "leisure" ,
colour : "white" ,
T : 2 ,
thickness : "thin" ,
season : "spring"
} , {
name : "hoodie2" ,
pattern : "up" ,
kind : "hoodie" ,
style : "leisure" ,
colour : "brown" ,
T : 5 ,
thickness : "thin" ,
season : "winter"
} , {
name : "hoodie3" ,
pattern : "up" ,
kind : "hoodie" ,
style : "leisure" ,
colour : "white" ,
T : 5 ,
thickness : "thin" ,
season : "winter"
} , {
name : "hoodie4" ,
pattern : "up" ,
kind : "hoodie" ,
style : "leisure" ,
colour : "black" ,
T : 3 ,
thickness : "proper" ,
season : "autumn"
} , {
name : "hoodie5" ,
pattern : "up" ,
kind : "hoodie" ,
style : "sports" ,
colour : "yellow" ,
T : 3 ,
thickness : "proper" ,
season : "spring"
} , {
name : "hoodie6" ,
pattern : "up" ,
kind : "hoodie" ,
style : "leisure" ,
colour : "black" ,
T : 4 ,
thickness : "proper" ,
season : "spring"
} , {
name : "hoodie7" ,
pattern : "up" ,
kind : "hoodie" ,
style : "leisure" ,
colour : "white" ,
T : 3 ,
thickness : "proper" ,
season : "autumn"
} , {
name : "hoodie8" ,
pattern : "up" ,
kind : "hoodie" ,
style : "sports" ,
colour : "white" ,
T : 3 ,
thickness : "proper" ,
season : "autumn"
} , {
name : "hoodie9" ,
pattern : "up" ,
kind : "hoodie" ,
style : "sports" ,
colour : "pink" ,
T : 5 ,
thickness : "thick" ,
season : "winter"
} , {
name : "hoodie10" ,
pattern : "up" ,
kind : "hoodie" ,
style : "sports" ,
colour : "green" ,
T : 4 ,
thickness : "proper" ,
season : "spring"
} , {
name : "skirt1" ,
pattern : "down" ,
kind : "skirt" ,
style : "leisure" ,
colour : "blue" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "skirt2" ,
pattern : "down" ,
kind : "skirt" ,
style : "business" ,
colour : "brown" ,
T : 3 ,
thickness : "thin" ,
season : "winter"
} , {
name : "skirt3" ,
pattern : "down" ,
kind : "skirt" ,
style : "sport" ,
colour : "white" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "skirt4" ,
pattern : "down" ,
kind : "skirt" ,
style : "leisure" ,
colour : "brown" ,
T : 2 ,
thickness : "proper" ,
season : "autumn"
} , {
name : "skirt5" ,
pattern : "all" ,
kind : "skirt" ,
style : "leisure" ,
colour : "red" ,
T : - 10 ,
thickness : "thin" ,
season : "summer"
} , {
name : "skirt6" ,
pattern : "all" ,
kind : "skirt" ,
style : "business" ,
colour : "white" ,
T : - 10 ,
thickness : "thin" ,
season : "summer"
} , {
name : "skirt7" ,
pattern : "all" ,
kind : "skirt" ,
style : "leisure" ,
colour : "black" ,
T : 5 ,
thickness : "proper" ,
season : "autumn"
} , {
name : "skirt8" ,
pattern : "down" ,
kind : "skirt" ,
style : "business" ,
colour : "black" ,
T : - 5 ,
thickness : "thin" ,
season : "autumn"
} , {
name : "skirt9" ,
pattern : "down" ,
kind : "skirt" ,
style : "leisure" ,
colour : "pink" ,
T : 1 ,
thickness : "proper" ,
season : "spring"
} , {
name : "skirt10" ,
pattern : "all" ,
kind : "skirt" ,
style : "leisure" ,
colour : "white" ,
T : - 10 ,
thickness : "thin" ,
season : "summer"
} , {
name : "coat1" ,
pattern : "up" ,
kind : "coat" ,
style : "leisure" ,
colour : "black" ,
T : 5 ,
thickness : "proper" ,
season : "autumn"
} , {
name : "coat2" ,
pattern : "up" ,
kind : "coat" ,
style : "leisure" ,
colour : "white" ,
T : 4 ,
thickness : "proper" ,
season : "autumn"
} , {
name : "coat3" ,
pattern : "up" ,
kind : "coat" ,
style : "business" ,
colour : "white" ,
T : 2 ,
thickness : "thin" ,
season : "spring"
} , {
name : "coat4" ,
pattern : "up" ,
kind : "coat" ,
style : "business" ,
colour : "red" ,
T : 5 ,
thickness : "thick" ,
season : "winter"
} , {
name : "coat5" ,
pattern : "up" ,
kind : "coat" ,
style : "leisure" ,
colour : "white" ,
T : 1 ,
thickness : "thin" ,
season : "summer"
} , {
name : "coat6" ,
pattern : "up" ,
kind : "coat" ,
style : "leisure" ,
colour : "black" ,
T : 9 ,
thickness : "thick" ,
season : "winter"
} , {
name : "coat7" ,
pattern : "up" ,
kind : "coat" ,
style : "sports" ,
colour : "black" ,
T : 3 ,
thickness : "thin" ,
season : "spring"
} , {
name : "coat8" ,
pattern : "up" ,
kind : "coat" ,
style : "leisure" ,
colour : "pink" ,
T : 5 ,
thickness : "proper" ,
season : "autumn"
} , {
name : "coat9" ,
pattern : "up" ,
kind : "coat" ,
style : "leisure" ,
colour : "white" ,
T : 10 ,
thickness : "thick" ,
season : "winter"
} , {
name : "coat10" ,
pattern : "up" ,
kind : "coat" ,
style : "leisure" ,
colour : "khaki" ,
T : 3 ,
thickness : "thin" ,
season : "autumn"
} , {
name : "sweater1" ,
pattern : "up" ,
kind : "sweater" ,
style : "leisure" ,
colour : "white" ,
T : 3 ,
thickness : "thin" ,
season : "autumn"
} , {
name : "sweater2" ,
pattern : "up" ,
kind : "sweater" ,
style : "leisure" ,
colour : "black" ,
T : 4 ,
thickness : "thick" ,
season : "winter"
} , {
name : "sweater3" ,
pattern : "up" ,
kind : "sweater" ,
style : "leisure" ,
colour : "blue" ,
T : 4 ,
thickness : "thick" ,
season : "winter"
} , {
name : "sweater4" ,
pattern : "up" ,
kind : "sweater" ,
style : "leisure" ,
colour : "blue" ,
T : 4 ,
thickness : "thick" ,
season : "winter"
} , {
name : "sweater5" ,
pattern : "up" ,
kind : "sweater" ,
style : "leisure" ,
colour : "gray" ,
T : 3 ,
thickness : "thin" ,
season : "autumn"
} , {
name : "sweater6" ,
pattern : "up" ,
kind : "sweater" ,
style : "leisure" ,
colour : "yellow" ,
T : 3 ,
thickness : "thin" ,
season : "autumn"
} , {
name : "sweater7" ,
pattern : "up" ,
kind : "sweater" ,
style : "leisure" ,
colour : "yellow" ,
T : 4 ,
thickness : "thick" ,
season : "winter"
} , {
name : "sweater8" ,
pattern : "up" ,
kind : "sweater" ,
style : "leisure" ,
colour : "brown" ,
T : 3 ,
thickness : "thin" ,
season : "autumn"
} , {
name : "sweater9" ,
pattern : "up" ,
kind : "sweater" ,
style : "leisure" ,
colour : "white" ,
T : 4 ,
thickness : "thick" ,
season : "winter"
} , {
name : "sweater10" ,
pattern : "up" ,
kind : "sweater" ,
style : "leisure" ,
colour : "yellow" ,
T : 3 ,
thickness : "thin" ,
season : "autumn"
} , {
name : "pants1" ,
pattern : "down" ,
kind : "long" ,
style : "leisure" ,
colour : "black" ,
T : 1 ,
thickness : "thin" ,
season : "spring"
} , {
name : "pants2" ,
pattern : "down" ,
kind : "long" ,
style : "sports" ,
colour : "white" ,
T : 3 ,
thickness : "proper" ,
season : "autumn"
} , {
name : "pants3" ,
pattern : "down" ,
kind : "long" ,
style : "sports" ,
colour : "purple" ,
T : 1 ,
thickness : "thin" ,
season : "summer"
} , {
name : "pants4" ,
pattern : "down" ,
kind : "long" ,
style : "leisure" ,
colour : "blue" ,
T : 5 ,
thickness : "thick" ,
season : "winter"
} , {
name : "pants5" ,
pattern : "down" ,
kind : "long" ,
style : "business" ,
colour : "gray" ,
T : 3 ,
thickness : "proper" ,
season : "autumn"
} , {
name : "pants6" ,
pattern : "down" ,
kind : "short" ,
style : "leisure" ,
colour : "black" ,
T : 3 ,
thickness : "proper" ,
season : "winter"
} , {
name : "pants7" ,
pattern : "down" ,
kind : "short" ,
style : "leisure" ,
colour : "black" ,
T : 3 ,
thickness : "proper" ,
season : "winter"
} , {
name : "pants8" ,
pattern : "down" ,
kind : "short" ,
style : "sports" ,
colour : "white" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "pants9" ,
pattern : "down" ,
kind : "short" ,
style : "leisure" ,
colour : "black" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
} , {
name : "pants10" ,
pattern : "down" ,
kind : "short" ,
style : "business" ,
colour : "brown" ,
T : - 5 ,
thickness : "thin" ,
season : "summer"
}
]
} ,
} )