代码优化
This commit is contained in:
parent
85ab7057f1
commit
c107d0d80c
|
|
@ -18,7 +18,7 @@ class HttpConfig {
|
|||
// baseUrl = "https://z.csgmall.com.cn/gl"
|
||||
// baseUrl = "http://192.168.2.160: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
|
||||
// 基地址 (部署时使用 需要加 dev-api)
|
||||
// authPath = `${this.baseUrl}/dev-api/auth`
|
||||
|
|
|
|||
|
|
@ -1,417 +1,438 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="search-bar">
|
||||
<uni-easyinput prefixIcon="search" v-model="inputs" placeholder="请输入名称"></uni-easyinput>
|
||||
</view>
|
||||
<view class="dataInfo">
|
||||
<view class="dataList" 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">
|
||||
<view>
|
||||
<view class="search-bar">
|
||||
<uni-easyinput
|
||||
prefixIcon="search"
|
||||
v-model="inputs"
|
||||
placeholder="请输入名称"></uni-easyinput>
|
||||
</view>
|
||||
<view class="dataInfo">
|
||||
<view
|
||||
class="dataList"
|
||||
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>
|
||||
</view> -->
|
||||
<view class="text">
|
||||
<text>类型名称:{{item.typeName}}</text>
|
||||
<text>规格编号:{{item.typeCode}}</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>
|
||||
<!-- <view class="action">
|
||||
<view class="text">
|
||||
<text>类型名称:{{ item.typeName }}</text>
|
||||
<text>规格编号:{{ item.typeCode }}</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>
|
||||
<!-- <view class="action">
|
||||
<text @click="reduce(item)">-</text>
|
||||
<text>{{item.offNum}}</text>
|
||||
<text @click="add(item)">+</text>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="buy" style="background-color: #fff;">
|
||||
<view class="checked">
|
||||
<checkbox-group @tap="checkAll">
|
||||
<checkbox :checked="allChecked" />
|
||||
</checkbox-group>
|
||||
<text>全选</text>
|
||||
</view>
|
||||
<view class="total">
|
||||
<!-- {{ totalNum }} -->
|
||||
<view class="bill" @click="finishCart">
|
||||
<text>提交</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="buy" style="background-color: #fff">
|
||||
<view class="checked">
|
||||
<checkbox-group @tap="checkAll">
|
||||
<checkbox :checked="allChecked" />
|
||||
</checkbox-group>
|
||||
<text>全选</text>
|
||||
</view>
|
||||
<view class="total">
|
||||
<!-- {{ totalNum }} -->
|
||||
<view class="bill" @click="finishCart">
|
||||
<text>提交</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import { basePath } from '../../public';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
iptVal: '',
|
||||
allChecked: false,
|
||||
inputs: "",
|
||||
list: [
|
||||
],
|
||||
totalFine: '',
|
||||
cartList: [],
|
||||
agreementId: '',
|
||||
submitList: {
|
||||
parentId: '',
|
||||
backApplyDetails: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
totalNum() {
|
||||
//总计
|
||||
var str = 0;
|
||||
for (var i = 0; i < this.searchData.length; i++) {
|
||||
if (this.searchData[i].checked) {
|
||||
str += this.searchData[i].num;
|
||||
}
|
||||
}
|
||||
this.totalFine = str
|
||||
return str;
|
||||
},
|
||||
searchData: function() {
|
||||
//模糊查询
|
||||
if (!this.inputs) {
|
||||
return this.list;
|
||||
}
|
||||
return this.list.filter((item) => {
|
||||
return item.typeName.includes(this.inputs);
|
||||
});
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
iconClick () {
|
||||
console.log(this.iptVal);
|
||||
},
|
||||
add(item) { //加加
|
||||
let num = item.offNum
|
||||
/* if (num >= item.num) {
|
||||
import { basePath } from "../../public";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
iptVal: "",
|
||||
allChecked: false,
|
||||
inputs: "",
|
||||
list: [],
|
||||
totalFine: "",
|
||||
cartList: [],
|
||||
agreementId: "",
|
||||
submitList: {
|
||||
parentId: "",
|
||||
backApplyDetails: "",
|
||||
},
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
totalNum() {
|
||||
//总计
|
||||
var str = 0;
|
||||
for (var i = 0; i < this.searchData.length; i++) {
|
||||
if (this.searchData[i].checked) {
|
||||
str += this.searchData[i].num;
|
||||
}
|
||||
}
|
||||
this.totalFine = str;
|
||||
return str;
|
||||
},
|
||||
searchData: function () {
|
||||
//模糊查询
|
||||
if (!this.inputs) {
|
||||
return this.list;
|
||||
}
|
||||
return this.list.filter((item) => {
|
||||
return item.typeName.includes(this.inputs);
|
||||
});
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
iconClick() {
|
||||
console.log(this.iptVal);
|
||||
},
|
||||
add(item) {
|
||||
//加加
|
||||
let num = item.offNum;
|
||||
/* if (num >= item.num) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '退料数量不可大于当前在用量!'
|
||||
})
|
||||
} else { */
|
||||
item.offNum = num + 1
|
||||
// }
|
||||
},
|
||||
reduce(item) { //减减
|
||||
let num = item.offNum
|
||||
if (num > 1) {
|
||||
num -= 1
|
||||
} else if (num = 1) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: "该器具无法再减少"
|
||||
})
|
||||
}
|
||||
item.offNum = num
|
||||
},
|
||||
// 单个商品的选择
|
||||
checkClick(item) {
|
||||
item.checked = !item.checked
|
||||
if (!item.checked) {
|
||||
this.allChecked = false
|
||||
} else {
|
||||
// 判断每一个商品是否是被选择的状态
|
||||
const goods = this.list.every(item => {
|
||||
return item.checked === true
|
||||
})
|
||||
if (goods) {
|
||||
this.allChecked = true
|
||||
} else {
|
||||
this.allChecked = false
|
||||
}
|
||||
}
|
||||
},
|
||||
checkAll() {
|
||||
this.allChecked = !this.allChecked
|
||||
if (this.allChecked) {
|
||||
this.list.map(item => {
|
||||
item.checked = true
|
||||
})
|
||||
} else {
|
||||
this.list.map(item => {
|
||||
item.checked = false
|
||||
})
|
||||
}
|
||||
},
|
||||
finishCart () {
|
||||
let that = this
|
||||
that.cartList = that.list.filter((item) => {
|
||||
return item.checked == true && item.offNum > 0
|
||||
})
|
||||
console.log(that.cartList);
|
||||
if (that.cartList.length == 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请选择退料数量大于0的退料项!'
|
||||
})
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '退料选择',
|
||||
content: '确认提交吗?',
|
||||
confirmText: '提交',
|
||||
success: (modalRes) => {
|
||||
if (modalRes.confirm) {
|
||||
console.log(this.cartList);
|
||||
that.submitList.backApplyDetails = that.cartList.map((item) => {
|
||||
return {
|
||||
typeId: item['typeId'],
|
||||
preNum: item['offNum'],
|
||||
createBy: uni.getStorageSync('userInfo').userid,
|
||||
companyId: item['companyId']
|
||||
}
|
||||
})
|
||||
console.log(that.submitList);
|
||||
// 提交退料清单
|
||||
that.$api.exitMaterial.subExitMaterial(that.submitList).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg,
|
||||
success: () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
exitNumChange (e, index) {
|
||||
let that = this
|
||||
let numTest = /^\+?[1-9]\d*$/
|
||||
console.log(e, that.list[index].num);
|
||||
if (!numTest.test(e)) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '退料数量输入有误!',
|
||||
success: () => {
|
||||
that.list[index].offNum = 0
|
||||
}
|
||||
})
|
||||
} else if (e > that.list[index].num) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '退料数量不得大于当前在用量!',
|
||||
success: () => {
|
||||
that.list[index].offNum = 0
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad(params) {
|
||||
let that = this
|
||||
console.log(params);
|
||||
that.agreementId = params.agreeId
|
||||
that.submitList.parentId = params.id
|
||||
// 退料物料选择
|
||||
that.$api.exitMaterial.selectMaterial({
|
||||
agreementId: params.agreeId
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
if (res.data.data.length == 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '当前物料已退完,请重新领料!'
|
||||
})
|
||||
} else {
|
||||
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);
|
||||
})
|
||||
}
|
||||
}
|
||||
item.offNum = num + 1;
|
||||
// }
|
||||
},
|
||||
reduce(item) {
|
||||
//减减
|
||||
let num = item.offNum;
|
||||
if (num > 1) {
|
||||
num -= 1;
|
||||
} else if ((num = 1)) {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "该器具无法再减少",
|
||||
});
|
||||
}
|
||||
item.offNum = num;
|
||||
},
|
||||
// 单个商品的选择
|
||||
checkClick(item) {
|
||||
item.checked = !item.checked;
|
||||
if (!item.checked) {
|
||||
this.allChecked = false;
|
||||
} else {
|
||||
// 判断每一个商品是否是被选择的状态
|
||||
const goods = this.list.every((item) => {
|
||||
return item.checked === true;
|
||||
});
|
||||
if (goods) {
|
||||
this.allChecked = true;
|
||||
} else {
|
||||
this.allChecked = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
checkAll() {
|
||||
this.allChecked = !this.allChecked;
|
||||
if (this.allChecked) {
|
||||
this.list.map((item) => {
|
||||
item.checked = true;
|
||||
});
|
||||
} else {
|
||||
this.list.map((item) => {
|
||||
item.checked = false;
|
||||
});
|
||||
}
|
||||
},
|
||||
finishCart() {
|
||||
let that = this;
|
||||
that.cartList = that.list.filter((item) => {
|
||||
return item.checked == true && item.offNum > 0;
|
||||
});
|
||||
console.log(that.cartList);
|
||||
if (that.cartList.length == 0) {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "请选择退料数量大于0的退料项!",
|
||||
});
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: "退料选择",
|
||||
content: "确认提交吗?",
|
||||
confirmText: "提交",
|
||||
success: (modalRes) => {
|
||||
if (modalRes.confirm) {
|
||||
console.log(this.cartList);
|
||||
that.submitList.backApplyDetails =
|
||||
that.cartList.map((item) => {
|
||||
return {
|
||||
typeId: item["typeId"],
|
||||
preNum: item["offNum"],
|
||||
createBy:
|
||||
uni.getStorageSync("userInfo")
|
||||
.userid,
|
||||
companyId: item["companyId"],
|
||||
};
|
||||
});
|
||||
console.log(that.submitList);
|
||||
// 提交退料清单
|
||||
that.$api.exitMaterial
|
||||
.subExitMaterial(that.submitList)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: res.data.msg,
|
||||
success: () => {
|
||||
uni.navigateBack();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: res.data.msg,
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
exitNumChange(e, index) {
|
||||
let that = this;
|
||||
let numTest = /^\+?[1-9]\d*$/;
|
||||
console.log(e, that.list[index].num);
|
||||
if (!numTest.test(e)) {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "退料数量输入有误!",
|
||||
success: () => {
|
||||
that.list[index].offNum = 0;
|
||||
},
|
||||
});
|
||||
} else if (e > that.list[index].num) {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "退料数量不得大于当前在用量!",
|
||||
success: () => {
|
||||
that.list[index].offNum = 0;
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
onLoad(params) {
|
||||
let that = this;
|
||||
console.log(params);
|
||||
that.agreementId = params.agreeId;
|
||||
that.submitList.parentId = params.id;
|
||||
// 退料物料选择
|
||||
that.$api.exitMaterial
|
||||
.selectMaterial({
|
||||
agreementId: params.agreeId,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log("数据获取成功!!!", res);
|
||||
if (res.data.code == 200) {
|
||||
if (res.data.data.length == 0) {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "当前物料已退完,请重新领料!",
|
||||
});
|
||||
} else {
|
||||
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>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
body{
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 10vh;
|
||||
}
|
||||
|
||||
.search-bar{
|
||||
width: 95%;
|
||||
margin: 20rpx auto;
|
||||
}
|
||||
|
||||
/deep/uni-checkbox .uni-checkbox-input {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/deep/uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
|
||||
border-color: #ddd;
|
||||
color: #fff !important;
|
||||
background-color: #2DCF8C !important;
|
||||
}
|
||||
|
||||
/deep/uni-checkbox .uni-checkbox-input {
|
||||
border-color: #ddd;
|
||||
}
|
||||
|
||||
/deep/uni-checkbox .uni-checkbox-input:hover {
|
||||
border-color: #ddd;
|
||||
}
|
||||
|
||||
.search {
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
|
||||
.search .searchIput {
|
||||
background-color: #e6e6e6;
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
height: 72rpx;
|
||||
line-height: 72rpx;
|
||||
border-radius: 50rpx;
|
||||
padding: 0 32rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search .searchIput input {
|
||||
font-size: 26rpx;
|
||||
width: 100%;
|
||||
color: grey;
|
||||
}
|
||||
|
||||
.search .searchIput image {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.dataInfo {
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.dataInfo .dataList {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2px solid #F1F1F1;
|
||||
padding: 25rpx 0;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .details {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .details .img image {
|
||||
width: 200rpx;
|
||||
height: 140rpx;
|
||||
padding: 0 20rpx;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .details .text text {
|
||||
color: #000;
|
||||
font-size: 23rpx;
|
||||
display: block;
|
||||
padding: 10rpx 0;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .details .text {
|
||||
color: red;
|
||||
font-size: 25rpx;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .action text {
|
||||
font-size: 25rpx;
|
||||
color: #000;
|
||||
border: 1px solid #C8C7CC;
|
||||
display: inline-block;
|
||||
line-height: 50rpx;
|
||||
width: 60rpx;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .action text:nth-child(2) {
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.buy {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
bottom: 0;
|
||||
width: 95%;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
.buy .checked {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.buy .checked text {
|
||||
font-size: 25rpx;
|
||||
color: #000;
|
||||
padding: 0 12rpx;
|
||||
}
|
||||
|
||||
.buy .total {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.buy .total .price {
|
||||
padding-right: 20rpx;
|
||||
|
||||
}
|
||||
|
||||
.buy .total .price text {
|
||||
font-size: 27rpx;
|
||||
color: #C8C7CC;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.buy .total .price text:last-child {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.buy .total .bill text {
|
||||
font-size: 25rpx;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
background-color: red;
|
||||
line-height: 70rpx;
|
||||
width: 150rpx;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
body {
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 10vh;
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
width: 95%;
|
||||
margin: 20rpx auto;
|
||||
}
|
||||
|
||||
/deep/uni-checkbox .uni-checkbox-input {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/deep/uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
|
||||
border-color: #ddd;
|
||||
color: #fff !important;
|
||||
background-color: #2dcf8c !important;
|
||||
}
|
||||
|
||||
/deep/uni-checkbox .uni-checkbox-input {
|
||||
border-color: #ddd;
|
||||
}
|
||||
|
||||
/deep/uni-checkbox .uni-checkbox-input:hover {
|
||||
border-color: #ddd;
|
||||
}
|
||||
|
||||
.search {
|
||||
padding-top: 20rpx;
|
||||
}
|
||||
|
||||
.search .searchIput {
|
||||
background-color: #e6e6e6;
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
height: 72rpx;
|
||||
line-height: 72rpx;
|
||||
border-radius: 50rpx;
|
||||
padding: 0 32rpx;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search .searchIput input {
|
||||
font-size: 26rpx;
|
||||
width: 100%;
|
||||
color: grey;
|
||||
}
|
||||
|
||||
.search .searchIput image {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
}
|
||||
|
||||
.dataInfo {
|
||||
width: 95%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.dataInfo .dataList {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 2px solid #f1f1f1;
|
||||
padding: 25rpx 0;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .details {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .details .img image {
|
||||
width: 200rpx;
|
||||
height: 140rpx;
|
||||
padding: 0 20rpx;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .details .text text {
|
||||
color: #000;
|
||||
font-size: 23rpx;
|
||||
display: block;
|
||||
padding: 10rpx 0;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .details .text {
|
||||
color: red;
|
||||
font-size: 25rpx;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .action text {
|
||||
font-size: 25rpx;
|
||||
color: #000;
|
||||
border: 1px solid #c8c7cc;
|
||||
display: inline-block;
|
||||
line-height: 50rpx;
|
||||
width: 60rpx;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.dataInfo .dataList .action text:nth-child(2) {
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.buy {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
bottom: 0;
|
||||
width: 95%;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
.buy .checked {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.buy .checked text {
|
||||
font-size: 25rpx;
|
||||
color: #000;
|
||||
padding: 0 12rpx;
|
||||
}
|
||||
|
||||
.buy .total {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.buy .total .price {
|
||||
padding-right: 20rpx;
|
||||
}
|
||||
|
||||
.buy .total .price text {
|
||||
font-size: 27rpx;
|
||||
color: #c8c7cc;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.buy .total .price text:last-child {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.buy .total .bill text {
|
||||
font-size: 25rpx;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
background-color: red;
|
||||
line-height: 70rpx;
|
||||
width: 150rpx;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -3283,25 +3283,11 @@ var render = function () {
|
|||
],
|
||||
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(
|
||||
"v-uni-button",
|
||||
{
|
||||
staticClass: _vm._$g(15, "sc"),
|
||||
attrs: { _i: 15 },
|
||||
staticClass: _vm._$g(14, "sc"),
|
||||
attrs: { _i: 14 },
|
||||
on: {
|
||||
click: function ($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
|
|
@ -3320,23 +3306,23 @@ var render = function () {
|
|||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm._$g(16, "v-show"),
|
||||
expression: "_$g(16,'v-show')",
|
||||
value: _vm._$g(15, "v-show"),
|
||||
expression: "_$g(15,'v-show')",
|
||||
},
|
||||
],
|
||||
ref: "veriForm",
|
||||
staticClass: _vm._$g(16, "sc"),
|
||||
attrs: { _i: 16 },
|
||||
staticClass: _vm._$g(15, "sc"),
|
||||
attrs: { _i: 15 },
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"uni-forms-item",
|
||||
{ attrs: { _i: 17 } },
|
||||
{ attrs: { _i: 16 } },
|
||||
[
|
||||
_c("uni-easyinput", {
|
||||
attrs: { _i: 18 },
|
||||
attrs: { _i: 17 },
|
||||
model: {
|
||||
value: _vm._$g(18, "v-model"),
|
||||
value: _vm._$g(17, "v-model"),
|
||||
callback: function () {},
|
||||
expression: "veriFormData.phone",
|
||||
},
|
||||
|
|
@ -3346,12 +3332,12 @@ var render = function () {
|
|||
),
|
||||
_c(
|
||||
"uni-forms-item",
|
||||
{ attrs: { _i: 19 } },
|
||||
{ attrs: { _i: 18 } },
|
||||
[
|
||||
_c("uni-easyinput", {
|
||||
attrs: { _i: 20 },
|
||||
attrs: { _i: 19 },
|
||||
model: {
|
||||
value: _vm._$g(20, "v-model"),
|
||||
value: _vm._$g(19, "v-model"),
|
||||
callback: function () {},
|
||||
expression: "veriFormData.code",
|
||||
},
|
||||
|
|
@ -3359,9 +3345,9 @@ var render = function () {
|
|||
_c(
|
||||
"v-uni-button",
|
||||
{
|
||||
staticClass: _vm._$g(21, "sc"),
|
||||
staticClass: _vm._$g(20, "sc"),
|
||||
staticStyle: { "font-size": "14px" },
|
||||
attrs: { disabled: _vm._$g(21, "a-disabled"), _i: 21 },
|
||||
attrs: { disabled: _vm._$g(20, "a-disabled"), _i: 20 },
|
||||
on: {
|
||||
click: function ($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
|
|
@ -3369,14 +3355,14 @@ var render = function () {
|
|||
},
|
||||
},
|
||||
[
|
||||
_vm._$g(22, "i")
|
||||
? _c("span", { attrs: { _i: 22 } }, [
|
||||
_vm._$g(21, "i")
|
||||
? _c("span", { attrs: { _i: 21 } }, [
|
||||
_vm._v("发送验证码"),
|
||||
])
|
||||
: _vm._e(),
|
||||
_vm._$g(23, "i")
|
||||
? _c("span", { attrs: { _i: 23 } }, [
|
||||
_vm._v(_vm._$g(23, "t0-0") + "s"),
|
||||
_vm._$g(22, "i")
|
||||
? _c("span", { attrs: { _i: 22 } }, [
|
||||
_vm._v(_vm._$g(22, "t0-0") + "s"),
|
||||
])
|
||||
: _vm._e(),
|
||||
],
|
||||
|
|
@ -3388,8 +3374,8 @@ var render = function () {
|
|||
_c(
|
||||
"v-uni-button",
|
||||
{
|
||||
staticClass: _vm._$g(24, "sc"),
|
||||
attrs: { _i: 24 },
|
||||
staticClass: _vm._$g(23, "sc"),
|
||||
attrs: { _i: 23 },
|
||||
on: {
|
||||
click: function ($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
|
|
@ -3404,7 +3390,7 @@ var render = function () {
|
|||
],
|
||||
1
|
||||
),
|
||||
_c("u-loading-page", { attrs: { _i: 25 } }),
|
||||
_c("u-loading-page", { attrs: { _i: 24 } }),
|
||||
],
|
||||
1
|
||||
)
|
||||
|
|
@ -4529,25 +4515,11 @@ var render = function () {
|
|||
],
|
||||
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(
|
||||
"v-uni-button",
|
||||
{
|
||||
staticClass: _vm._$g(15, "sc"),
|
||||
attrs: { _i: 15 },
|
||||
staticClass: _vm._$g(14, "sc"),
|
||||
attrs: { _i: 14 },
|
||||
on: {
|
||||
click: function ($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
|
|
@ -4566,23 +4538,23 @@ var render = function () {
|
|||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm._$g(16, "v-show"),
|
||||
expression: "_$g(16,'v-show')",
|
||||
value: _vm._$g(15, "v-show"),
|
||||
expression: "_$g(15,'v-show')",
|
||||
},
|
||||
],
|
||||
ref: "veriForm",
|
||||
staticClass: _vm._$g(16, "sc"),
|
||||
attrs: { _i: 16 },
|
||||
staticClass: _vm._$g(15, "sc"),
|
||||
attrs: { _i: 15 },
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"uni-forms-item",
|
||||
{ attrs: { _i: 17 } },
|
||||
{ attrs: { _i: 16 } },
|
||||
[
|
||||
_c("uni-easyinput", {
|
||||
attrs: { _i: 18 },
|
||||
attrs: { _i: 17 },
|
||||
model: {
|
||||
value: _vm._$g(18, "v-model"),
|
||||
value: _vm._$g(17, "v-model"),
|
||||
callback: function () {},
|
||||
expression: "veriFormData.phone",
|
||||
},
|
||||
|
|
@ -4592,22 +4564,22 @@ var render = function () {
|
|||
),
|
||||
_c(
|
||||
"uni-forms-item",
|
||||
{ attrs: { _i: 19 } },
|
||||
{ attrs: { _i: 18 } },
|
||||
[
|
||||
_c(
|
||||
"uni-view",
|
||||
{ staticClass: _vm._$g(20, "sc"), attrs: { _i: 20 } },
|
||||
{ staticClass: _vm._$g(19, "sc"), attrs: { _i: 19 } },
|
||||
[
|
||||
_c("uni-easyinput", {
|
||||
attrs: { _i: 21 },
|
||||
attrs: { _i: 20 },
|
||||
model: {
|
||||
value: _vm._$g(21, "v-model"),
|
||||
value: _vm._$g(20, "v-model"),
|
||||
callback: function () {},
|
||||
expression: "veriFormData.imgCode",
|
||||
},
|
||||
}),
|
||||
_c("img", {
|
||||
attrs: { src: _vm._$g(22, "a-src"), _i: 22 },
|
||||
attrs: { src: _vm._$g(21, "a-src"), _i: 21 },
|
||||
on: {
|
||||
click: function ($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
|
|
@ -4622,12 +4594,12 @@ var render = function () {
|
|||
),
|
||||
_c(
|
||||
"uni-forms-item",
|
||||
{ attrs: { _i: 23 } },
|
||||
{ attrs: { _i: 22 } },
|
||||
[
|
||||
_c("uni-easyinput", {
|
||||
attrs: { _i: 24 },
|
||||
attrs: { _i: 23 },
|
||||
model: {
|
||||
value: _vm._$g(24, "v-model"),
|
||||
value: _vm._$g(23, "v-model"),
|
||||
callback: function () {},
|
||||
expression: "veriFormData.code",
|
||||
},
|
||||
|
|
@ -4635,9 +4607,9 @@ var render = function () {
|
|||
_c(
|
||||
"v-uni-button",
|
||||
{
|
||||
staticClass: _vm._$g(25, "sc"),
|
||||
staticClass: _vm._$g(24, "sc"),
|
||||
staticStyle: { "font-size": "14px" },
|
||||
attrs: { disabled: _vm._$g(25, "a-disabled"), _i: 25 },
|
||||
attrs: { disabled: _vm._$g(24, "a-disabled"), _i: 24 },
|
||||
on: {
|
||||
click: function ($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
|
|
@ -4645,14 +4617,14 @@ var render = function () {
|
|||
},
|
||||
},
|
||||
[
|
||||
_vm._$g(26, "i")
|
||||
? _c("span", { attrs: { _i: 26 } }, [
|
||||
_vm._$g(25, "i")
|
||||
? _c("span", { attrs: { _i: 25 } }, [
|
||||
_vm._v("发送验证码"),
|
||||
])
|
||||
: _vm._e(),
|
||||
_vm._$g(27, "i")
|
||||
? _c("span", { attrs: { _i: 27 } }, [
|
||||
_vm._v(_vm._$g(27, "t0-0") + "s"),
|
||||
_vm._$g(26, "i")
|
||||
? _c("span", { attrs: { _i: 26 } }, [
|
||||
_vm._v(_vm._$g(26, "t0-0") + "s"),
|
||||
])
|
||||
: _vm._e(),
|
||||
],
|
||||
|
|
@ -4664,8 +4636,8 @@ var render = function () {
|
|||
_c(
|
||||
"v-uni-button",
|
||||
{
|
||||
staticClass: _vm._$g(28, "sc"),
|
||||
attrs: { _i: 28 },
|
||||
staticClass: _vm._$g(27, "sc"),
|
||||
attrs: { _i: 27 },
|
||||
on: {
|
||||
click: function ($event) {
|
||||
return _vm.$handleViewEvent($event)
|
||||
|
|
@ -4680,7 +4652,7 @@ var render = function () {
|
|||
],
|
||||
1
|
||||
),
|
||||
_c("u-loading-page", { attrs: { _i: 29 } }),
|
||||
_c("u-loading-page", { attrs: { _i: 28 } }),
|
||||
],
|
||||
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);
|
||||
exports = ___CSS_LOADER_API_IMPORT___(false);
|
||||
// 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
|
||||
module.exports = exports;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue