代码优化

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,417 +1,438 @@
<template> <template>
<view> <view>
<view class="search-bar"> <view class="search-bar">
<uni-easyinput prefixIcon="search" v-model="inputs" placeholder="请输入名称"></uni-easyinput> <uni-easyinput
</view> prefixIcon="search"
<view class="dataInfo"> v-model="inputs"
<view class="dataList" v-for="(item,index) in searchData" :key="index"> placeholder="请输入名称"></uni-easyinput>
<checkbox-group @change="checkClick(item)"> </view>
<checkbox :checked="item.checked" /> <view class="dataInfo">
</checkbox-group> <view
<view class="details"> class="dataList"
<!-- <view class="img"> v-for="(item, index) in searchData"
:key="index">
<checkbox-group @change="checkClick(item)">
<checkbox :checked="item.checked" />
</checkbox-group>
<view class="details">
<!-- <view class="img">
<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
</view> >退料数量<uni-easyinput
</view> style="margin-top: 15rpx"
<!-- <view class="action"> v-model="item.offNum"
placeholder="请输入"
@change="exitNumChange($event, index)"
type="number"></uni-easyinput
></view>
</view>
</view>
<!-- <view class="action">
<text @click="reduce(item)">-</text> <text @click="reduce(item)">-</text>
<text>{{item.offNum}}</text> <text>{{item.offNum}}</text>
<text @click="add(item)">+</text> <text @click="add(item)">+</text>
</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" />
</checkbox-group> </checkbox-group>
<text>全选</text> <text>全选</text>
</view> </view>
<view class="total"> <view class="total">
<!-- {{ totalNum }} --> <!-- {{ totalNum }} -->
<view class="bill" @click="finishCart"> <view class="bill" @click="finishCart">
<text>提交</text> <text>提交</text>
</view> </view>
</view> </view>
</view> </view>
</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() { //
// var str = 0;
var str = 0; for (var i = 0; i < this.searchData.length; i++) {
for (var i = 0; i < this.searchData.length; i++) { if (this.searchData[i].checked) {
if (this.searchData[i].checked) { 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; }
} return this.list.filter((item) => {
return this.list.filter((item) => { return item.typeName.includes(this.inputs);
return item.typeName.includes(this.inputs); });
}); },
}, },
}, 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 //
if (num > 1) { let num = item.offNum;
num -= 1 if (num > 1) {
} else if (num = 1) { num -= 1;
uni.showToast({ } else if ((num = 1)) {
icon: 'none', uni.showToast({
title: "该器具无法再减少" icon: "none",
}) title: "该器具无法再减少",
} });
item.offNum = num }
}, item.offNum = num;
// },
checkClick(item) { //
item.checked = !item.checked checkClick(item) {
if (!item.checked) { item.checked = !item.checked;
this.allChecked = false if (!item.checked) {
} else { this.allChecked = false;
// } else {
const goods = this.list.every(item => { //
return item.checked === true const goods = this.list.every((item) => {
}) return item.checked === true;
if (goods) { });
this.allChecked = true if (goods) {
} else { this.allChecked = true;
this.allChecked = false } else {
} this.allChecked = false;
} }
}, }
checkAll() { },
this.allChecked = !this.allChecked checkAll() {
if (this.allChecked) { this.allChecked = !this.allChecked;
this.list.map(item => { if (this.allChecked) {
item.checked = true this.list.map((item) => {
}) item.checked = true;
} else { });
this.list.map(item => { } else {
item.checked = false this.list.map((item) => {
}) item.checked = false;
} });
}, }
finishCart () { },
let that = this finishCart() {
that.cartList = that.list.filter((item) => { let that = this;
return item.checked == true && item.offNum > 0 that.cartList = that.list.filter((item) => {
}) return item.checked == true && item.offNum > 0;
console.log(that.cartList); });
if (that.cartList.length == 0) { console.log(that.cartList);
uni.showToast({ if (that.cartList.length == 0) {
icon: 'none', uni.showToast({
title: '请选择退料数量大于0的退料项' icon: "none",
}) title: "请选择退料数量大于0的退料项",
} else { });
uni.showModal({ } else {
title: '退料选择', uni.showModal({
content: '确认提交吗?', title: "退料选择",
confirmText: '提交', content: "确认提交吗?",
success: (modalRes) => { confirmText: "提交",
if (modalRes.confirm) { success: (modalRes) => {
console.log(this.cartList); if (modalRes.confirm) {
that.submitList.backApplyDetails = that.cartList.map((item) => { console.log(this.cartList);
return { that.submitList.backApplyDetails =
typeId: item['typeId'], that.cartList.map((item) => {
preNum: item['offNum'], return {
createBy: uni.getStorageSync('userInfo').userid, typeId: item["typeId"],
companyId: item['companyId'] preNum: item["offNum"],
} createBy:
}) uni.getStorageSync("userInfo")
console.log(that.submitList); .userid,
// 退 companyId: item["companyId"],
that.$api.exitMaterial.subExitMaterial(that.submitList).then(res => { };
console.log(res); });
if (res.data.code == 200) { console.log(that.submitList);
uni.showToast({ // 退
icon: 'none', that.$api.exitMaterial
title: res.data.msg, .subExitMaterial(that.submitList)
success: () => { .then((res) => {
uni.navigateBack() console.log(res);
} if (res.data.code == 200) {
}) uni.showToast({
} else { icon: "none",
uni.showToast({ title: res.data.msg,
icon: 'none', success: () => {
title: res.data.msg uni.navigateBack();
}) },
} });
}).catch(err => { } else {
console.log(err); uni.showToast({
}) icon: "none",
} title: res.data.msg,
} });
}) }
} })
}, .catch((err) => {
exitNumChange (e, index) { console.log(err);
let that = this });
let numTest = /^\+?[1-9]\d*$/ }
console.log(e, that.list[index].num); },
if (!numTest.test(e)) { });
uni.showToast({ }
icon: 'none', },
title: '退料数量输入有误!', exitNumChange(e, index) {
success: () => { let that = this;
that.list[index].offNum = 0 let numTest = /^\+?[1-9]\d*$/;
} console.log(e, that.list[index].num);
}) if (!numTest.test(e)) {
} 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 },
} });
}) } else if (e > that.list[index].num) {
} uni.showToast({
} icon: "none",
}, title: "退料数量不得大于当前在用量!",
onLoad(params) { success: () => {
let that = this that.list[index].offNum = 0;
console.log(params); },
that.agreementId = params.agreeId });
that.submitList.parentId = params.id }
// 退 },
that.$api.exitMaterial.selectMaterial({ },
agreementId: params.agreeId onLoad(params) {
}).then(res => { let that = this;
console.log(res); console.log(params);
if (res.data.code == 200) { that.agreementId = params.agreeId;
if (res.data.data.length == 0) { that.submitList.parentId = params.id;
uni.showToast({ // 退
icon: 'none', that.$api.exitMaterial
title: '当前物料已退完,请重新领料!' .selectMaterial({
}) agreementId: params.agreeId,
} else { })
for (let i = 0; i < res.data.data.length; i++) { .then((res) => {
res.data.data[i].num = Number(res.data.data[i].num.split('.')[0]) console.log("数据获取成功!!!", res);
res.data.data[i].offNum = 0 if (res.data.code == 200) {
} if (res.data.data.length == 0) {
console.log(res); uni.showToast({
that.list = res.data.data icon: "none",
} title: "当前物料已退完,请重新领料!",
} });
}).catch(err => { } else {
console.log(err); 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].offNum = 0;
}
console.log(res);
that.list = res.data.data;
}
}
})
.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;
} }
/deep/uni-checkbox .uni-checkbox-input { /deep/uni-checkbox .uni-checkbox-input {
border-radius: 50%; border-radius: 50%;
} }
/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 {
border-color: #ddd; border-color: #ddd;
} }
/deep/uni-checkbox .uni-checkbox-input:hover { /deep/uni-checkbox .uni-checkbox-input:hover {
border-color: #ddd; border-color: #ddd;
} }
.search { .search {
padding-top: 20rpx; padding-top: 20rpx;
} }
.search .searchIput { .search .searchIput {
background-color: #e6e6e6; background-color: #e6e6e6;
width: 95%; width: 95%;
margin: 0 auto; margin: 0 auto;
height: 72rpx; height: 72rpx;
line-height: 72rpx; line-height: 72rpx;
border-radius: 50rpx; border-radius: 50rpx;
padding: 0 32rpx; padding: 0 32rpx;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.search .searchIput input { .search .searchIput input {
font-size: 26rpx; font-size: 26rpx;
width: 100%; width: 100%;
color: grey; color: grey;
} }
.search .searchIput image { .search .searchIput image {
width: 34rpx; width: 34rpx;
height: 34rpx; height: 34rpx;
} }
.dataInfo {
width: 95%;
.dataInfo { margin: 0 auto;
width: 95%; }
margin: 0 auto;
} .dataInfo .dataList {
display: flex;
.dataInfo .dataList { align-items: center;
display: flex; justify-content: space-between;
align-items: center; border-bottom: 2px solid #f1f1f1;
justify-content: space-between; padding: 25rpx 0;
border-bottom: 2px solid #F1F1F1; }
padding: 25rpx 0;
} .dataInfo .dataList .details {
display: flex;
.dataInfo .dataList .details { align-items: center;
display: flex; flex: 1;
align-items: center; font-size: 0;
flex: 1; }
font-size: 0;
} .dataInfo .dataList .details .img image {
width: 200rpx;
.dataInfo .dataList .details .img image { height: 140rpx;
width: 200rpx; padding: 0 20rpx;
height: 140rpx; }
padding: 0 20rpx;
} .dataInfo .dataList .details .text text {
color: #000;
.dataInfo .dataList .details .text text { font-size: 23rpx;
color: #000; display: block;
font-size: 23rpx; padding: 10rpx 0;
display: block; }
padding: 10rpx 0;
} .dataInfo .dataList .details .text {
color: red;
.dataInfo .dataList .details .text { font-size: 25rpx;
color: red; }
font-size: 25rpx;
} .dataInfo .dataList .action text {
font-size: 25rpx;
.dataInfo .dataList .action text { color: #000;
font-size: 25rpx; border: 1px solid #c8c7cc;
color: #000; display: inline-block;
border: 1px solid #C8C7CC; line-height: 50rpx;
display: inline-block; width: 60rpx;
line-height: 50rpx; text-align: center;
width: 60rpx; box-sizing: border-box;
text-align: center; }
box-sizing: border-box;
} .dataInfo .dataList .action text:nth-child(2) {
border-left: none;
.dataInfo .dataList .action text:nth-child(2) { border-right: none;
border-left: none; }
border-right: none;
} .buy {
display: flex;
.buy { align-items: center;
display: flex; justify-content: space-between;
align-items: center; position: fixed;
justify-content: space-between; left: 50%;
position: fixed; bottom: 0;
left: 50%; width: 95%;
bottom: 0; transform: translate(-50%, 0);
width: 95%; }
transform: translate(-50%, 0);
} .buy .checked {
display: flex;
.buy .checked { align-items: center;
display: flex; }
align-items: center;
} .buy .checked text {
font-size: 25rpx;
.buy .checked text { color: #000;
font-size: 25rpx; padding: 0 12rpx;
color: #000; }
padding: 0 12rpx;
} .buy .total {
display: flex;
.buy .total { align-items: center;
display: flex; justify-content: space-between;
align-items: center; }
justify-content: space-between;
} .buy .total .price {
padding-right: 20rpx;
.buy .total .price { }
padding-right: 20rpx;
.buy .total .price text {
} font-size: 27rpx;
color: #c8c7cc;
.buy .total .price text { display: inline-block;
font-size: 27rpx; }
color: #C8C7CC;
display: inline-block; .buy .total .price text:last-child {
} color: red;
font-weight: bold;
.buy .total .price text:last-child { }
color: red;
font-weight: bold; .buy .total .bill text {
} font-size: 25rpx;
color: #fff;
.buy .total .bill text { display: inline-block;
font-size: 25rpx; background-color: red;
color: #fff; line-height: 70rpx;
display: inline-block; width: 150rpx;
background-color: red; text-align: center;
line-height: 70rpx; }
width: 150rpx; </style>
text-align: center;
}
</style>

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;