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.
238 lines
7.8 KiB
238 lines
7.8 KiB
"use strict"; |
|
const common_vendor = require("../../common/vendor.js"); |
|
const config_host = require("../../config/host.js"); |
|
const HeaderNav = () => "../../components/HeaderNav/Index.js"; |
|
const FooterNav = () => "../../components/FooterNav/Index.js"; |
|
const RightNav = () => "../../components/RightNav/Index.js"; |
|
const MzButton = () => "../../components/MzButton/Index.js"; |
|
const _sfc_main = { |
|
components: { |
|
HeaderNav, |
|
FooterNav, |
|
RightNav, |
|
MzButton |
|
}, |
|
data() { |
|
return { |
|
staticImage: { |
|
orderCardBackground: config_host.imghost + "/static/image/order-card-background.png", |
|
wallpaperBgImage: config_host.imghost + "/static/image/background.png" |
|
}, |
|
radiolist1: [ |
|
{ |
|
name: "普通锁", |
|
disabled: true |
|
}, |
|
{ |
|
name: "密码锁", |
|
disabled: false |
|
} |
|
], |
|
showSex: false, |
|
model1: { |
|
userInfo: { |
|
name: "uview-plus UI", |
|
sex: "" |
|
} |
|
}, |
|
actions: [ |
|
{ |
|
name: "男" |
|
}, |
|
{ |
|
name: "女" |
|
}, |
|
{ |
|
name: "保密" |
|
} |
|
], |
|
rules: { |
|
"userInfo.name": { |
|
type: "string", |
|
required: true, |
|
message: "请填写姓名", |
|
trigger: ["blur", "change"] |
|
}, |
|
"userInfo.sex": { |
|
type: "string", |
|
max: 1, |
|
required: true, |
|
message: "请选择男或女", |
|
trigger: ["blur", "change"] |
|
} |
|
}, |
|
radio: "", |
|
switchVal: false |
|
}; |
|
}, |
|
onLoad() { |
|
}, |
|
methods: {}, |
|
onPageScroll(res) { |
|
if (res.scrollTop <= 20) { |
|
common_vendor.index.$emit("isTop", true); |
|
} else { |
|
common_vendor.index.$emit("isTop", false); |
|
} |
|
}, |
|
created() { |
|
} |
|
}; |
|
if (!Array) { |
|
const _component_HeaderNav = common_vendor.resolveComponent("HeaderNav"); |
|
const _easycom_u__input2 = common_vendor.resolveComponent("u--input"); |
|
const _easycom_u_form_item2 = common_vendor.resolveComponent("u-form-item"); |
|
const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon"); |
|
const _easycom_u__textarea2 = common_vendor.resolveComponent("u--textarea"); |
|
const _easycom_u_radio2 = common_vendor.resolveComponent("u-radio"); |
|
const _easycom_u_radio_group2 = common_vendor.resolveComponent("u-radio-group"); |
|
const _component_MzButton = common_vendor.resolveComponent("MzButton"); |
|
const _easycom_u__form2 = common_vendor.resolveComponent("u--form"); |
|
const _easycom_u_action_sheet2 = common_vendor.resolveComponent("u-action-sheet"); |
|
(_component_HeaderNav + _easycom_u__input2 + _easycom_u_form_item2 + _easycom_u_icon2 + _easycom_u__textarea2 + _easycom_u_radio2 + _easycom_u_radio_group2 + _component_MzButton + _easycom_u__form2 + _easycom_u_action_sheet2)(); |
|
} |
|
const _easycom_u__input = () => "../../node-modules/uview-plus/components/u--input/u--input.js"; |
|
const _easycom_u_form_item = () => "../../node-modules/uview-plus/components/u-form-item/u-form-item.js"; |
|
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; |
|
const _easycom_u__textarea = () => "../../node-modules/uview-plus/components/u--textarea/u--textarea.js"; |
|
const _easycom_u_radio = () => "../../node-modules/uview-plus/components/u-radio/u-radio.js"; |
|
const _easycom_u_radio_group = () => "../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js"; |
|
const _easycom_u__form = () => "../../node-modules/uview-plus/components/u--form/u--form.js"; |
|
const _easycom_u_action_sheet = () => "../../node-modules/uview-plus/components/u-action-sheet/u-action-sheet.js"; |
|
if (!Math) { |
|
(_easycom_u__input + _easycom_u_form_item + _easycom_u_icon + _easycom_u__textarea + _easycom_u_radio + _easycom_u_radio_group + _easycom_u__form + _easycom_u_action_sheet)(); |
|
} |
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { |
|
return { |
|
a: "url(" + $data.staticImage.wallpaperBgImage + ")", |
|
b: common_vendor.p({ |
|
title: "新增地址", |
|
["is-back"]: true |
|
}), |
|
c: common_vendor.o(($event) => $data.model1.userInfo.name = $event), |
|
d: common_vendor.p({ |
|
border: "none", |
|
inputAlign: "right", |
|
modelValue: $data.model1.userInfo.name |
|
}), |
|
e: common_vendor.sr("item1", "05117348-2,05117348-1"), |
|
f: common_vendor.p({ |
|
label: "家长姓名", |
|
prop: "userInfo.name", |
|
borderBottom: true |
|
}), |
|
g: common_vendor.o(($event) => $data.model1.userInfo.name = $event), |
|
h: common_vendor.p({ |
|
border: "none", |
|
inputAlign: "right", |
|
modelValue: $data.model1.userInfo.name |
|
}), |
|
i: common_vendor.sr("item1", "05117348-4,05117348-1"), |
|
j: common_vendor.p({ |
|
label: "家长电话", |
|
prop: "userInfo.name", |
|
borderBottom: true |
|
}), |
|
k: common_vendor.o(($event) => $data.model1.userInfo.sex = $event), |
|
l: common_vendor.p({ |
|
disabled: true, |
|
disabledColor: "#ffffff", |
|
placeholder: "请选择", |
|
border: "none", |
|
inputAlign: "right", |
|
modelValue: $data.model1.userInfo.sex |
|
}), |
|
m: common_vendor.p({ |
|
name: "arrow-right" |
|
}), |
|
n: common_vendor.sr("item1", "05117348-6,05117348-1"), |
|
o: common_vendor.o(($event) => { |
|
$data.showSex = true; |
|
_ctx.hideKeyboard(); |
|
}), |
|
p: common_vendor.p({ |
|
label: "省市区", |
|
prop: "userInfo.sex", |
|
borderBottom: true |
|
}), |
|
q: common_vendor.o(($event) => $data.model1.userInfo.sex = $event), |
|
r: common_vendor.p({ |
|
placeholder: "请填写详细地址信息,精确到门牌号", |
|
modelValue: $data.model1.userInfo.sex |
|
}), |
|
s: common_vendor.sr("item1", "05117348-9,05117348-1"), |
|
t: common_vendor.o(($event) => { |
|
$data.showSex = true; |
|
_ctx.hideKeyboard(); |
|
}), |
|
v: common_vendor.p({ |
|
labelPosition: "top", |
|
label: "详细地址", |
|
prop: "userInfo.sex", |
|
borderBottom: true |
|
}), |
|
w: common_vendor.f($data.radiolist1, (item, index, i0) => { |
|
return { |
|
a: index, |
|
b: common_vendor.o(_ctx.radioChange, index), |
|
c: "05117348-13-" + i0 + ",05117348-12", |
|
d: common_vendor.p({ |
|
customStyle: { |
|
marginBottom: "8px" |
|
}, |
|
label: item.name, |
|
name: item.name |
|
}) |
|
}; |
|
}), |
|
x: common_vendor.o(_ctx.groupChange), |
|
y: common_vendor.o(($event) => _ctx.radiovalue1 = $event), |
|
z: common_vendor.p({ |
|
placement: "column", |
|
modelValue: _ctx.radiovalue1 |
|
}), |
|
A: common_vendor.sr("item1", "05117348-11,05117348-1"), |
|
B: common_vendor.p({ |
|
label: "门锁密码", |
|
prop: "userInfo.name", |
|
borderBottom: true, |
|
inputAlign: "right" |
|
}), |
|
C: common_vendor.o(($event) => $data.model1.userInfo.name = $event), |
|
D: common_vendor.p({ |
|
border: "none", |
|
inputAlign: "right", |
|
modelValue: $data.model1.userInfo.name |
|
}), |
|
E: common_vendor.sr("item1", "05117348-14,05117348-1"), |
|
F: common_vendor.p({ |
|
label: "普通锁", |
|
prop: "userInfo.name", |
|
borderBottom: true |
|
}), |
|
G: common_vendor.p({ |
|
["button-width"]: "317.2rpx", |
|
["button-color"]: "#4DC3B8", |
|
["font-color"]: "#FFFFFF", |
|
title: "保存地址" |
|
}), |
|
H: common_vendor.sr("form1", "05117348-1"), |
|
I: common_vendor.p({ |
|
labelWidth: "auto", |
|
labelPosition: "left", |
|
model: $data.model1, |
|
rules: $data.rules |
|
}), |
|
J: common_vendor.o(($event) => $data.showSex = false), |
|
K: common_vendor.o(_ctx.sexSelect), |
|
L: common_vendor.p({ |
|
show: $data.showSex, |
|
actions: $data.actions, |
|
title: "请选择性别", |
|
description: "如果选择保密会报错" |
|
}) |
|
}; |
|
} |
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/Project/pet_web/pages/AddrDetail/index.vue"]]); |
|
_sfc_main.__runtimeHooks = 1; |
|
wx.createPage(MiniProgramPage);
|
|
|