代码优化

This commit is contained in:
BianLzhaoMin 2024-09-12 08:53:42 +08:00
parent 85ab7057f1
commit c107d0d80c
4 changed files with 527 additions and 536 deletions

View File

@ -18,7 +18,7 @@ class HttpConfig {
// baseUrl = "https://z.csgmall.com.cn/gl" // baseUrl = "https://z.csgmall.com.cn/gl"
// baseUrl = "http://192.168.2.160:39080" // 梁超 // baseUrl = "http://192.168.2.160:39080" // 梁超
// baseUrl = "http://192.168.2.218:39080" // 福 // baseUrl = "http://192.168.2.218:39080" // 福
target = "http://192.168.43.200:39080"; // 开发阶段后台ip target = "http://192.168.0.56:21627"; // 开发阶段后台ip
// #endif // #endif
// 基地址 (部署时使用 需要加 dev-api // 基地址 (部署时使用 需要加 dev-api
// authPath = `${this.baseUrl}/dev-api/auth` // authPath = `${this.baseUrl}/dev-api/auth`

View File

@ -1,10 +1,16 @@
<template> <template>
<view> <view>
<view class="search-bar"> <view class="search-bar">
<uni-easyinput prefixIcon="search" v-model="inputs" placeholder="请输入名称"></uni-easyinput> <uni-easyinput
prefixIcon="search"
v-model="inputs"
placeholder="请输入名称"></uni-easyinput>
</view> </view>
<view class="dataInfo"> <view class="dataInfo">
<view class="dataList" v-for="(item,index) in searchData" :key="index"> <view
class="dataList"
v-for="(item, index) in searchData"
:key="index">
<checkbox-group @change="checkClick(item)"> <checkbox-group @change="checkClick(item)">
<checkbox :checked="item.checked" /> <checkbox :checked="item.checked" />
</checkbox-group> </checkbox-group>
@ -13,10 +19,17 @@
<image :src="item.url"></image> <image :src="item.url"></image>
</view> --> </view> -->
<view class="text"> <view class="text">
<text>类型名称{{item.typeName}}</text> <text>类型名称{{ item.typeName }}</text>
<text>规格编号{{item.typeCode}}</text> <text>规格编号{{ item.typeCode }}</text>
<text>当前在用量{{item.num}}</text> <text>当前在用量{{ item.num }}</text>
<view>退料数量<uni-easyinput style="margin-top: 15rpx;" v-model="item.offNum" placeholder="请输入" @change="exitNumChange($event, index)" type="number"></uni-easyinput></view> <view
>退料数量<uni-easyinput
style="margin-top: 15rpx"
v-model="item.offNum"
placeholder="请输入"
@change="exitNumChange($event, index)"
type="number"></uni-easyinput
></view>
</view> </view>
</view> </view>
<!-- <view class="action"> <!-- <view class="action">
@ -26,7 +39,7 @@
</view> --> </view> -->
</view> </view>
</view> </view>
<view class="buy" style="background-color: #fff;"> <view class="buy" style="background-color: #fff">
<view class="checked"> <view class="checked">
<checkbox-group @tap="checkAll"> <checkbox-group @tap="checkAll">
<checkbox :checked="allChecked" /> <checkbox :checked="allChecked" />
@ -43,23 +56,22 @@
</view> </view>
</template> </template>
<script> <script>
import { basePath } from '../../public'; import { basePath } from "../../public";
export default { export default {
data() { data() {
return { return {
iptVal: '', iptVal: "",
allChecked: false, allChecked: false,
inputs: "", inputs: "",
list: [ list: [],
], totalFine: "",
totalFine: '',
cartList: [], cartList: [],
agreementId: '', agreementId: "",
submitList: { submitList: {
parentId: '', parentId: "",
backApplyDetails: '' backApplyDetails: "",
} },
} };
}, },
computed: { computed: {
totalNum() { totalNum() {
@ -70,10 +82,10 @@ import { basePath } from '../../public';
str += this.searchData[i].num; str += this.searchData[i].num;
} }
} }
this.totalFine = str this.totalFine = str;
return str; return str;
}, },
searchData: function() { searchData: function () {
// //
if (!this.inputs) { if (!this.inputs) {
return this.list; return this.list;
@ -84,177 +96,189 @@ import { basePath } from '../../public';
}, },
}, },
methods: { methods: {
iconClick () { iconClick() {
console.log(this.iptVal); console.log(this.iptVal);
}, },
add(item) { // add(item) {
let num = item.offNum //
let num = item.offNum;
/* if (num >= item.num) { /* if (num >= item.num) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '退料数量不可大于当前在用量!' title: '退料数量不可大于当前在用量!'
}) })
} else { */ } else { */
item.offNum = num + 1 item.offNum = num + 1;
// } // }
}, },
reduce(item) { // reduce(item) {
let num = item.offNum //
let num = item.offNum;
if (num > 1) { if (num > 1) {
num -= 1 num -= 1;
} else if (num = 1) { } else if ((num = 1)) {
uni.showToast({ uni.showToast({
icon: 'none', icon: "none",
title: "该器具无法再减少" title: "该器具无法再减少",
}) });
} }
item.offNum = num item.offNum = num;
}, },
// //
checkClick(item) { checkClick(item) {
item.checked = !item.checked item.checked = !item.checked;
if (!item.checked) { if (!item.checked) {
this.allChecked = false this.allChecked = false;
} else { } else {
// //
const goods = this.list.every(item => { const goods = this.list.every((item) => {
return item.checked === true return item.checked === true;
}) });
if (goods) { if (goods) {
this.allChecked = true this.allChecked = true;
} else { } else {
this.allChecked = false this.allChecked = false;
} }
} }
}, },
checkAll() { checkAll() {
this.allChecked = !this.allChecked this.allChecked = !this.allChecked;
if (this.allChecked) { if (this.allChecked) {
this.list.map(item => { this.list.map((item) => {
item.checked = true item.checked = true;
}) });
} else { } else {
this.list.map(item => { this.list.map((item) => {
item.checked = false item.checked = false;
}) });
} }
}, },
finishCart () { finishCart() {
let that = this let that = this;
that.cartList = that.list.filter((item) => { that.cartList = that.list.filter((item) => {
return item.checked == true && item.offNum > 0 return item.checked == true && item.offNum > 0;
}) });
console.log(that.cartList); console.log(that.cartList);
if (that.cartList.length == 0) { if (that.cartList.length == 0) {
uni.showToast({ uni.showToast({
icon: 'none', icon: "none",
title: '请选择退料数量大于0的退料项' title: "请选择退料数量大于0的退料项",
}) });
} else { } else {
uni.showModal({ uni.showModal({
title: '退料选择', title: "退料选择",
content: '确认提交吗?', content: "确认提交吗?",
confirmText: '提交', confirmText: "提交",
success: (modalRes) => { success: (modalRes) => {
if (modalRes.confirm) { if (modalRes.confirm) {
console.log(this.cartList); console.log(this.cartList);
that.submitList.backApplyDetails = that.cartList.map((item) => { that.submitList.backApplyDetails =
that.cartList.map((item) => {
return { return {
typeId: item['typeId'], typeId: item["typeId"],
preNum: item['offNum'], preNum: item["offNum"],
createBy: uni.getStorageSync('userInfo').userid, createBy:
companyId: item['companyId'] uni.getStorageSync("userInfo")
} .userid,
}) companyId: item["companyId"],
};
});
console.log(that.submitList); console.log(that.submitList);
// 退 // 退
that.$api.exitMaterial.subExitMaterial(that.submitList).then(res => { that.$api.exitMaterial
.subExitMaterial(that.submitList)
.then((res) => {
console.log(res); console.log(res);
if (res.data.code == 200) { if (res.data.code == 200) {
uni.showToast({ uni.showToast({
icon: 'none', icon: "none",
title: res.data.msg, title: res.data.msg,
success: () => { success: () => {
uni.navigateBack() uni.navigateBack();
} },
}) });
} else { } else {
uni.showToast({ uni.showToast({
icon: 'none', icon: "none",
title: res.data.msg title: res.data.msg,
}) });
} }
}).catch(err => { })
.catch((err) => {
console.log(err); console.log(err);
}) });
}
}
})
} }
}, },
exitNumChange (e, index) { });
let that = this }
let numTest = /^\+?[1-9]\d*$/ },
exitNumChange(e, index) {
let that = this;
let numTest = /^\+?[1-9]\d*$/;
console.log(e, that.list[index].num); console.log(e, that.list[index].num);
if (!numTest.test(e)) { if (!numTest.test(e)) {
uni.showToast({ uni.showToast({
icon: 'none', icon: "none",
title: '退料数量输入有误!', title: "退料数量输入有误!",
success: () => { success: () => {
that.list[index].offNum = 0 that.list[index].offNum = 0;
} },
}) });
} else if (e > that.list[index].num) { } else if (e > that.list[index].num) {
uni.showToast({ uni.showToast({
icon: 'none', icon: "none",
title: '退料数量不得大于当前在用量!', title: "退料数量不得大于当前在用量!",
success: () => { success: () => {
that.list[index].offNum = 0 that.list[index].offNum = 0;
} },
}) });
}
} }
}, },
},
onLoad(params) { onLoad(params) {
let that = this let that = this;
console.log(params); console.log(params);
that.agreementId = params.agreeId that.agreementId = params.agreeId;
that.submitList.parentId = params.id that.submitList.parentId = params.id;
// 退 // 退
that.$api.exitMaterial.selectMaterial({ that.$api.exitMaterial
agreementId: params.agreeId .selectMaterial({
}).then(res => { agreementId: params.agreeId,
console.log(res); })
.then((res) => {
console.log("数据获取成功!!!", res);
if (res.data.code == 200) { if (res.data.code == 200) {
if (res.data.data.length == 0) { if (res.data.data.length == 0) {
uni.showToast({ uni.showToast({
icon: 'none', icon: "none",
title: '当前物料已退完,请重新领料!' title: "当前物料已退完,请重新领料!",
}) });
} else { } else {
for (let i = 0; i < res.data.data.length; i++) { for (let i = 0; i < res.data.data.length; i++) {
res.data.data[i].num = Number(res.data.data[i].num.split('.')[0]) // res.data.data[i].num = Number(
res.data.data[i].offNum = 0 // res.data.data[i].num.split(".")[0]
// );
res.data.data[i].offNum = 0;
} }
console.log(res); console.log(res);
that.list = res.data.data that.list = res.data.data;
} }
} }
}).catch(err => {
console.log(err);
}) })
} .catch((err) => {
} console.log(err);
});
},
};
</script> </script>
<style> <style>
body{ body {
box-sizing: border-box; box-sizing: border-box;
padding-bottom: 10vh; padding-bottom: 10vh;
} }
.search-bar{ .search-bar {
width: 95%; width: 95%;
margin: 20rpx auto; margin: 20rpx auto;
} }
@ -266,7 +290,7 @@ import { basePath } from '../../public';
/deep/uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked { /deep/uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
border-color: #ddd; border-color: #ddd;
color: #fff !important; color: #fff !important;
background-color: #2DCF8C !important; background-color: #2dcf8c !important;
} }
/deep/uni-checkbox .uni-checkbox-input { /deep/uni-checkbox .uni-checkbox-input {
@ -305,8 +329,6 @@ import { basePath } from '../../public';
height: 34rpx; height: 34rpx;
} }
.dataInfo { .dataInfo {
width: 95%; width: 95%;
margin: 0 auto; margin: 0 auto;
@ -316,7 +338,7 @@ import { basePath } from '../../public';
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
border-bottom: 2px solid #F1F1F1; border-bottom: 2px solid #f1f1f1;
padding: 25rpx 0; padding: 25rpx 0;
} }
@ -348,7 +370,7 @@ import { basePath } from '../../public';
.dataInfo .dataList .action text { .dataInfo .dataList .action text {
font-size: 25rpx; font-size: 25rpx;
color: #000; color: #000;
border: 1px solid #C8C7CC; border: 1px solid #c8c7cc;
display: inline-block; display: inline-block;
line-height: 50rpx; line-height: 50rpx;
width: 60rpx; width: 60rpx;
@ -391,12 +413,11 @@ import { basePath } from '../../public';
.buy .total .price { .buy .total .price {
padding-right: 20rpx; padding-right: 20rpx;
} }
.buy .total .price text { .buy .total .price text {
font-size: 27rpx; font-size: 27rpx;
color: #C8C7CC; color: #c8c7cc;
display: inline-block; display: inline-block;
} }

File diff suppressed because one or more lines are too long

View File

@ -3283,25 +3283,11 @@ var render = function () {
], ],
1 1
), ),
_c(
"v-uni-text",
{
staticStyle: {
width: "100%",
display: "flex",
"justify-content": "flex-end",
color: "#3689ff",
"font-size": "14px",
},
attrs: { _i: 14 },
},
[_vm._v("忘记密码")]
),
_c( _c(
"v-uni-button", "v-uni-button",
{ {
staticClass: _vm._$g(15, "sc"), staticClass: _vm._$g(14, "sc"),
attrs: { _i: 15 }, attrs: { _i: 14 },
on: { on: {
click: function ($event) { click: function ($event) {
return _vm.$handleViewEvent($event) return _vm.$handleViewEvent($event)
@ -3320,23 +3306,23 @@ var render = function () {
{ {
name: "show", name: "show",
rawName: "v-show", rawName: "v-show",
value: _vm._$g(16, "v-show"), value: _vm._$g(15, "v-show"),
expression: "_$g(16,'v-show')", expression: "_$g(15,'v-show')",
}, },
], ],
ref: "veriForm", ref: "veriForm",
staticClass: _vm._$g(16, "sc"), staticClass: _vm._$g(15, "sc"),
attrs: { _i: 16 }, attrs: { _i: 15 },
}, },
[ [
_c( _c(
"uni-forms-item", "uni-forms-item",
{ attrs: { _i: 17 } }, { attrs: { _i: 16 } },
[ [
_c("uni-easyinput", { _c("uni-easyinput", {
attrs: { _i: 18 }, attrs: { _i: 17 },
model: { model: {
value: _vm._$g(18, "v-model"), value: _vm._$g(17, "v-model"),
callback: function () {}, callback: function () {},
expression: "veriFormData.phone", expression: "veriFormData.phone",
}, },
@ -3346,12 +3332,12 @@ var render = function () {
), ),
_c( _c(
"uni-forms-item", "uni-forms-item",
{ attrs: { _i: 19 } }, { attrs: { _i: 18 } },
[ [
_c("uni-easyinput", { _c("uni-easyinput", {
attrs: { _i: 20 }, attrs: { _i: 19 },
model: { model: {
value: _vm._$g(20, "v-model"), value: _vm._$g(19, "v-model"),
callback: function () {}, callback: function () {},
expression: "veriFormData.code", expression: "veriFormData.code",
}, },
@ -3359,9 +3345,9 @@ var render = function () {
_c( _c(
"v-uni-button", "v-uni-button",
{ {
staticClass: _vm._$g(21, "sc"), staticClass: _vm._$g(20, "sc"),
staticStyle: { "font-size": "14px" }, staticStyle: { "font-size": "14px" },
attrs: { disabled: _vm._$g(21, "a-disabled"), _i: 21 }, attrs: { disabled: _vm._$g(20, "a-disabled"), _i: 20 },
on: { on: {
click: function ($event) { click: function ($event) {
return _vm.$handleViewEvent($event) return _vm.$handleViewEvent($event)
@ -3369,14 +3355,14 @@ var render = function () {
}, },
}, },
[ [
_vm._$g(22, "i") _vm._$g(21, "i")
? _c("span", { attrs: { _i: 22 } }, [ ? _c("span", { attrs: { _i: 21 } }, [
_vm._v("发送验证码"), _vm._v("发送验证码"),
]) ])
: _vm._e(), : _vm._e(),
_vm._$g(23, "i") _vm._$g(22, "i")
? _c("span", { attrs: { _i: 23 } }, [ ? _c("span", { attrs: { _i: 22 } }, [
_vm._v(_vm._$g(23, "t0-0") + "s"), _vm._v(_vm._$g(22, "t0-0") + "s"),
]) ])
: _vm._e(), : _vm._e(),
], ],
@ -3388,8 +3374,8 @@ var render = function () {
_c( _c(
"v-uni-button", "v-uni-button",
{ {
staticClass: _vm._$g(24, "sc"), staticClass: _vm._$g(23, "sc"),
attrs: { _i: 24 }, attrs: { _i: 23 },
on: { on: {
click: function ($event) { click: function ($event) {
return _vm.$handleViewEvent($event) return _vm.$handleViewEvent($event)
@ -3404,7 +3390,7 @@ var render = function () {
], ],
1 1
), ),
_c("u-loading-page", { attrs: { _i: 25 } }), _c("u-loading-page", { attrs: { _i: 24 } }),
], ],
1 1
) )
@ -4529,25 +4515,11 @@ var render = function () {
], ],
1 1
), ),
_c(
"v-uni-text",
{
staticStyle: {
width: "100%",
display: "flex",
"justify-content": "flex-end",
color: "#3689ff",
"font-size": "14px",
},
attrs: { _i: 14 },
},
[_vm._v("忘记密码")]
),
_c( _c(
"v-uni-button", "v-uni-button",
{ {
staticClass: _vm._$g(15, "sc"), staticClass: _vm._$g(14, "sc"),
attrs: { _i: 15 }, attrs: { _i: 14 },
on: { on: {
click: function ($event) { click: function ($event) {
return _vm.$handleViewEvent($event) return _vm.$handleViewEvent($event)
@ -4566,23 +4538,23 @@ var render = function () {
{ {
name: "show", name: "show",
rawName: "v-show", rawName: "v-show",
value: _vm._$g(16, "v-show"), value: _vm._$g(15, "v-show"),
expression: "_$g(16,'v-show')", expression: "_$g(15,'v-show')",
}, },
], ],
ref: "veriForm", ref: "veriForm",
staticClass: _vm._$g(16, "sc"), staticClass: _vm._$g(15, "sc"),
attrs: { _i: 16 }, attrs: { _i: 15 },
}, },
[ [
_c( _c(
"uni-forms-item", "uni-forms-item",
{ attrs: { _i: 17 } }, { attrs: { _i: 16 } },
[ [
_c("uni-easyinput", { _c("uni-easyinput", {
attrs: { _i: 18 }, attrs: { _i: 17 },
model: { model: {
value: _vm._$g(18, "v-model"), value: _vm._$g(17, "v-model"),
callback: function () {}, callback: function () {},
expression: "veriFormData.phone", expression: "veriFormData.phone",
}, },
@ -4592,22 +4564,22 @@ var render = function () {
), ),
_c( _c(
"uni-forms-item", "uni-forms-item",
{ attrs: { _i: 19 } }, { attrs: { _i: 18 } },
[ [
_c( _c(
"uni-view", "uni-view",
{ staticClass: _vm._$g(20, "sc"), attrs: { _i: 20 } }, { staticClass: _vm._$g(19, "sc"), attrs: { _i: 19 } },
[ [
_c("uni-easyinput", { _c("uni-easyinput", {
attrs: { _i: 21 }, attrs: { _i: 20 },
model: { model: {
value: _vm._$g(21, "v-model"), value: _vm._$g(20, "v-model"),
callback: function () {}, callback: function () {},
expression: "veriFormData.imgCode", expression: "veriFormData.imgCode",
}, },
}), }),
_c("img", { _c("img", {
attrs: { src: _vm._$g(22, "a-src"), _i: 22 }, attrs: { src: _vm._$g(21, "a-src"), _i: 21 },
on: { on: {
click: function ($event) { click: function ($event) {
return _vm.$handleViewEvent($event) return _vm.$handleViewEvent($event)
@ -4622,12 +4594,12 @@ var render = function () {
), ),
_c( _c(
"uni-forms-item", "uni-forms-item",
{ attrs: { _i: 23 } }, { attrs: { _i: 22 } },
[ [
_c("uni-easyinput", { _c("uni-easyinput", {
attrs: { _i: 24 }, attrs: { _i: 23 },
model: { model: {
value: _vm._$g(24, "v-model"), value: _vm._$g(23, "v-model"),
callback: function () {}, callback: function () {},
expression: "veriFormData.code", expression: "veriFormData.code",
}, },
@ -4635,9 +4607,9 @@ var render = function () {
_c( _c(
"v-uni-button", "v-uni-button",
{ {
staticClass: _vm._$g(25, "sc"), staticClass: _vm._$g(24, "sc"),
staticStyle: { "font-size": "14px" }, staticStyle: { "font-size": "14px" },
attrs: { disabled: _vm._$g(25, "a-disabled"), _i: 25 }, attrs: { disabled: _vm._$g(24, "a-disabled"), _i: 24 },
on: { on: {
click: function ($event) { click: function ($event) {
return _vm.$handleViewEvent($event) return _vm.$handleViewEvent($event)
@ -4645,14 +4617,14 @@ var render = function () {
}, },
}, },
[ [
_vm._$g(26, "i") _vm._$g(25, "i")
? _c("span", { attrs: { _i: 26 } }, [ ? _c("span", { attrs: { _i: 25 } }, [
_vm._v("发送验证码"), _vm._v("发送验证码"),
]) ])
: _vm._e(), : _vm._e(),
_vm._$g(27, "i") _vm._$g(26, "i")
? _c("span", { attrs: { _i: 27 } }, [ ? _c("span", { attrs: { _i: 26 } }, [
_vm._v(_vm._$g(27, "t0-0") + "s"), _vm._v(_vm._$g(26, "t0-0") + "s"),
]) ])
: _vm._e(), : _vm._e(),
], ],
@ -4664,8 +4636,8 @@ var render = function () {
_c( _c(
"v-uni-button", "v-uni-button",
{ {
staticClass: _vm._$g(28, "sc"), staticClass: _vm._$g(27, "sc"),
attrs: { _i: 28 }, attrs: { _i: 27 },
on: { on: {
click: function ($event) { click: function ($event) {
return _vm.$handleViewEvent($event) return _vm.$handleViewEvent($event)
@ -4680,7 +4652,7 @@ var render = function () {
], ],
1 1
), ),
_c("u-loading-page", { attrs: { _i: 29 } }), _c("u-loading-page", { attrs: { _i: 28 } }),
], ],
1 1
) )
@ -22678,7 +22650,7 @@ if(false) {}
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../HBuilderX.3.98.2023112510/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 16); var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../HBuilderX.3.98.2023112510/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 16);
exports = ___CSS_LOADER_API_IMPORT___(false); exports = ___CSS_LOADER_API_IMPORT___(false);
// Module // Module
exports.push([module.i, "\nbody{\n\tbox-sizing: border-box;\n\tpadding-bottom: 10vh;\n}\n.search-bar{\n\twidth: 95%;\n\tmargin: 20rpx auto;\n}\n uni-checkbox .uni-checkbox-input {\n\tborder-radius: 50%;\n}\n uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {\n\tborder-color: #ddd;\n\tcolor: #fff !important;\n\tbackground-color: #2DCF8C !important;\n}\n uni-checkbox .uni-checkbox-input {\n\tborder-color: #ddd;\n}\n uni-checkbox .uni-checkbox-input:hover {\n\tborder-color: #ddd;\n}\n.search {\n\tpadding-top: 20rpx;\n}\n.search .searchIput {\n\tbackground-color: #e6e6e6;\n\twidth: 95%;\n\tmargin: 0 auto;\n\theight: 72rpx;\n\tline-height: 72rpx;\n\tborder-radius: 50rpx;\n\tpadding: 0 32rpx;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\talign-items: center;\n}\n.search .searchIput uni-input {\n\tfont-size: 26rpx;\n\twidth: 100%;\n\tcolor: grey;\n}\n.search .searchIput uni-image {\n\twidth: 34rpx;\n\theight: 34rpx;\n}\n.dataInfo {\n\twidth: 95%;\n\tmargin: 0 auto;\n}\n.dataInfo .dataList {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tborder-bottom: 2px solid #F1F1F1;\n\tpadding: 25rpx 0;\n}\n.dataInfo .dataList .details {\n\tdisplay: flex;\n\talign-items: center;\n\tflex: 1;\n\tfont-size: 0;\n}\n.dataInfo .dataList .details .img uni-image {\n\twidth: 200rpx;\n\theight: 140rpx;\n\tpadding: 0 20rpx;\n}\n.dataInfo .dataList .details .text uni-text {\n\tcolor: #000;\n\tfont-size: 23rpx;\n\tdisplay: block;\n\tpadding: 10rpx 0;\n}\n.dataInfo .dataList .details .text {\n\tcolor: red;\n\tfont-size: 25rpx;\n}\n.dataInfo .dataList .action uni-text {\n\tfont-size: 25rpx;\n\tcolor: #000;\n\tborder: 1px solid #C8C7CC;\n\tdisplay: inline-block;\n\tline-height: 50rpx;\n\twidth: 60rpx;\n\ttext-align: center;\n\tbox-sizing: border-box;\n}\n.dataInfo .dataList .action uni-text:nth-child(2) {\n\tborder-left: none;\n\tborder-right: none;\n}\n.buy {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tposition: fixed;\n\tleft: 50%;\n\tbottom: 0;\n\twidth: 95%;\n\t-webkit-transform: translate(-50%, 0);\n\t transform: translate(-50%, 0);\n}\n.buy .checked {\n\tdisplay: flex;\n\talign-items: center;\n}\n.buy .checked uni-text {\n\tfont-size: 25rpx;\n\tcolor: #000;\n\tpadding: 0 12rpx;\n}\n.buy .total {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n.buy .total .price {\n\tpadding-right: 20rpx;\n}\n.buy .total .price uni-text {\n\tfont-size: 27rpx;\n\tcolor: #C8C7CC;\n\tdisplay: inline-block;\n}\n.buy .total .price uni-text:last-child {\n\tcolor: red;\n\tfont-weight: bold;\n}\n.buy .total .bill uni-text {\n\tfont-size: 25rpx;\n\tcolor: #fff;\n\tdisplay: inline-block;\n\tbackground-color: red;\n\tline-height: 70rpx;\n\twidth: 150rpx;\n\ttext-align: center;\n}\n", ""]); exports.push([module.i, "\nbody {\n box-sizing: border-box;\n padding-bottom: 10vh;\n}\n.search-bar {\n width: 95%;\n margin: 20rpx auto;\n}\n uni-checkbox .uni-checkbox-input {\n border-radius: 50%;\n}\n uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {\n border-color: #ddd;\n color: #fff !important;\n background-color: #2dcf8c !important;\n}\n uni-checkbox .uni-checkbox-input {\n border-color: #ddd;\n}\n uni-checkbox .uni-checkbox-input:hover {\n border-color: #ddd;\n}\n.search {\n padding-top: 20rpx;\n}\n.search .searchIput {\n background-color: #e6e6e6;\n width: 95%;\n margin: 0 auto;\n height: 72rpx;\n line-height: 72rpx;\n border-radius: 50rpx;\n padding: 0 32rpx;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n}\n.search .searchIput uni-input {\n font-size: 26rpx;\n width: 100%;\n color: grey;\n}\n.search .searchIput uni-image {\n width: 34rpx;\n height: 34rpx;\n}\n.dataInfo {\n width: 95%;\n margin: 0 auto;\n}\n.dataInfo .dataList {\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-bottom: 2px solid #f1f1f1;\n padding: 25rpx 0;\n}\n.dataInfo .dataList .details {\n display: flex;\n align-items: center;\n flex: 1;\n font-size: 0;\n}\n.dataInfo .dataList .details .img uni-image {\n width: 200rpx;\n height: 140rpx;\n padding: 0 20rpx;\n}\n.dataInfo .dataList .details .text uni-text {\n color: #000;\n font-size: 23rpx;\n display: block;\n padding: 10rpx 0;\n}\n.dataInfo .dataList .details .text {\n color: red;\n font-size: 25rpx;\n}\n.dataInfo .dataList .action uni-text {\n font-size: 25rpx;\n color: #000;\n border: 1px solid #c8c7cc;\n display: inline-block;\n line-height: 50rpx;\n width: 60rpx;\n text-align: center;\n box-sizing: border-box;\n}\n.dataInfo .dataList .action uni-text:nth-child(2) {\n border-left: none;\n border-right: none;\n}\n.buy {\n display: flex;\n align-items: center;\n justify-content: space-between;\n position: fixed;\n left: 50%;\n bottom: 0;\n width: 95%;\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n}\n.buy .checked {\n display: flex;\n align-items: center;\n}\n.buy .checked uni-text {\n font-size: 25rpx;\n color: #000;\n padding: 0 12rpx;\n}\n.buy .total {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.buy .total .price {\n padding-right: 20rpx;\n}\n.buy .total .price uni-text {\n font-size: 27rpx;\n color: #c8c7cc;\n display: inline-block;\n}\n.buy .total .price uni-text:last-child {\n color: red;\n font-weight: bold;\n}\n.buy .total .bill uni-text {\n font-size: 25rpx;\n color: #fff;\n display: inline-block;\n background-color: red;\n line-height: 70rpx;\n width: 150rpx;\n text-align: center;\n}\n", ""]);
// Exports // Exports
module.exports = exports; module.exports = exports;