generated from linheng/yaofang
50 lines
1.3 KiB
JavaScript
50 lines
1.3 KiB
JavaScript
var a, t;
|
|
|
|
a = getApp(), t = require("../../utils/util.js"), Page({
|
|
data: {
|
|
list: a.globalData.xzwdata,
|
|
swidth: a.globalData.swidth,
|
|
modalHidden: !1,
|
|
showModalStatus: !1,
|
|
mengshow: !1,
|
|
bottom: "-100%",
|
|
male: 1,
|
|
female: 1,
|
|
malecheck: 1,
|
|
femalecheck: 1,
|
|
maleclickid: 1,
|
|
femaleclickid: 1
|
|
},
|
|
onLoad: function(a) {
|
|
t.initdata(this, "xz");
|
|
},
|
|
showModal: function(a) {
|
|
t.showModal(this);
|
|
},
|
|
cancel: function(a) {
|
|
t.cancel(this);
|
|
},
|
|
setIcon: function(a) {
|
|
t.setIcon(this, "xz");
|
|
},
|
|
scrollFun: function(a) {
|
|
t.scrollFun(this, a);
|
|
},
|
|
clickIcon: function(a) {
|
|
t.clickIcon(this, a);
|
|
},
|
|
pair: function(a) {
|
|
var o = t.formatCxLink(2, [ this.data.male + 1, this.data.female + 1 ]);
|
|
console.log(this.data.male + 1, this.data.female + 1), console.log("id", o);
|
|
var i = "/pages/pair_astro/xzpair_info?id=" + o;
|
|
wx.navigateTo({
|
|
url: i
|
|
});
|
|
},
|
|
onShareAppMessage: function(a) {
|
|
return "button" === a.from && console.log(a.target), {
|
|
title: "星座配对",
|
|
path: "/pages/pair_astro/index"
|
|
};
|
|
}
|
|
}); |