no message
This commit is contained in:
84
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.js
vendored
Normal file
84
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.js
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const hooks_useNav = require("../../hooks/useNav.js");
|
||||
const utils_fun = require("../../utils/fun.js");
|
||||
if (!Array) {
|
||||
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
||||
const _easycom_cc_myTabbar2 = common_vendor.resolveComponent("cc-myTabbar");
|
||||
(_easycom_statusBar2 + _easycom_up_input2 + _easycom_up_button2 + _easycom_cc_myTabbar2)();
|
||||
}
|
||||
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
|
||||
const _easycom_cc_myTabbar = () => "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar.js";
|
||||
if (!Math) {
|
||||
(_easycom_statusBar + _easycom_up_input + _easycom_up_button + _easycom_cc_myTabbar)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "sweep",
|
||||
setup(__props) {
|
||||
const { nav, navTo } = hooks_useNav.useNav();
|
||||
let value = common_vendor.ref("");
|
||||
common_vendor.onLoad(() => {
|
||||
});
|
||||
const scan = async () => {
|
||||
common_vendor.index.scanCode({
|
||||
success: function(res) {
|
||||
let query = utils_fun.urlQuery(res.result);
|
||||
if (!query.num) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请扫描正确的设备码",
|
||||
icon: "none"
|
||||
});
|
||||
} else {
|
||||
navTo(`/pages/home/star?id=${query.num}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
const toCd = async () => {
|
||||
if (!value.value) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请输入枪号",
|
||||
icon: "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
navTo(`/pages/home/star?id=${value.value}`);
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_0$3,
|
||||
b: common_assets._imports_1$2,
|
||||
c: common_assets._imports_2$1,
|
||||
d: common_vendor.o(($event) => common_vendor.isRef(value) ? value.value = $event : value = $event),
|
||||
e: common_vendor.p({
|
||||
placeholder: "请输入充电枪编号",
|
||||
type: "number",
|
||||
border: "surround",
|
||||
modelValue: common_vendor.unref(value)
|
||||
}),
|
||||
f: common_vendor.o(toCd),
|
||||
g: common_vendor.p({
|
||||
type: "primary",
|
||||
text: "确定"
|
||||
}),
|
||||
h: common_vendor.o(scan),
|
||||
i: common_vendor.p({
|
||||
type: "primary",
|
||||
shape: "circle",
|
||||
text: "扫码充电"
|
||||
}),
|
||||
j: common_vendor.p({
|
||||
tabBarShow: 2
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2f0b12d1"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/sweep/sweep.js.map
|
||||
10
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.json
vendored
Normal file
10
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "扫码充电",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"status-bar": "../../components/statusBar/statusBar",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-button": "../../uni_modules/uview-plus/components/u-button/u-button",
|
||||
"cc-my-tabbar": "../../uni_modules/cc-myTabbar/components/cc-myTabbar/cc-myTabbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="sweep data-v-2f0b12d1"><status-bar class="data-v-2f0b12d1" u-i="2f0b12d1-0" bind:__l="__l"/><view class="sweep_note data-v-2f0b12d1"><view class="sweep_note_view data-v-2f0b12d1"><view class="sweep_note_view_img data-v-2f0b12d1"><image class="data-v-2f0b12d1" src="{{a}}" mode="widthFix"></image></view><view class="data-v-2f0b12d1">插上</view><view class="data-v-2f0b12d1">充电枪</view></view><view class="sweep_note_view data-v-2f0b12d1"><view class="sweep_note_view_img data-v-2f0b12d1"><image class="data-v-2f0b12d1" src="{{b}}" mode="widthFix"></image></view><view class="data-v-2f0b12d1">点击</view><view class="data-v-2f0b12d1">扫码充电</view></view><view class="sweep_note_view data-v-2f0b12d1"><view class="sweep_note_view_img data-v-2f0b12d1"><image class="data-v-2f0b12d1" src="{{c}}" mode="widthFix"></image></view><view class="data-v-2f0b12d1">点击</view><view class="data-v-2f0b12d1">开始充电</view></view></view><view class="sweep_scan data-v-2f0b12d1" style="margin-top:300rpx"><up-input wx:if="{{e}}" class="data-v-2f0b12d1" u-i="2f0b12d1-1" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-input><view class="data-v-2f0b12d1" style="width:100rpx"><up-button wx:if="{{g}}" class="data-v-2f0b12d1" bindclick="{{f}}" u-i="2f0b12d1-2" bind:__l="__l" u-p="{{g}}"></up-button></view></view><view class="sweep_scan data-v-2f0b12d1" style="margin-top:150rpx"><up-button wx:if="{{i}}" class="data-v-2f0b12d1" bindclick="{{h}}" u-i="2f0b12d1-3" bind:__l="__l" u-p="{{i}}"></up-button></view><cc-my-tabbar wx:if="{{j}}" class="data-v-2f0b12d1" u-i="2f0b12d1-4" bind:__l="__l" u-p="{{j}}"></cc-my-tabbar></view>
|
||||
41
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.wxss
vendored
Normal file
41
unpackage/dist/dev/mp-weixin/pages/sweep/sweep.wxss
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
.sweep_note.data-v-2f0b12d1 {
|
||||
padding: 0 60rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.sweep_note_view.data-v-2f0b12d1 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
font-weight: 800;
|
||||
font-size: 32rpx;
|
||||
color: #4879e6;
|
||||
}
|
||||
.sweep_note_view_img.data-v-2f0b12d1 {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
height: 115rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.sweep_note_view:nth-child(1) image.data-v-2f0b12d1 {
|
||||
width: 151rpx;
|
||||
height: 99rpx;
|
||||
}
|
||||
.sweep_note_view:nth-child(2) image.data-v-2f0b12d1 {
|
||||
width: 120rpx;
|
||||
height: 99rpx;
|
||||
}
|
||||
.sweep_note_view:nth-child(3) image.data-v-2f0b12d1 {
|
||||
width: 106rpx;
|
||||
height: 113rpx;
|
||||
}
|
||||
.sweep_scan.data-v-2f0b12d1 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: start;
|
||||
padding: 0 120rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user