From 728f8b6dcd0f69c0351b525d6e8bba7fb484aeef Mon Sep 17 00:00:00 2001
From: zq <136432190602163.com>
Date: Tue, 5 Aug 2025 17:16:45 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=90=9C=E7=B4=A2=E3=80=81=E8=BF=9B?=
=?UTF-8?q?=E5=94=AE=E4=BB=B7=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/listWrap.vue | 169 +++++++++++++++++++
components/visitorInfo.vue | 2 +-
pages.json | 10 ++
pages/coinsDetail/index.vue | 277 ++++++++++++++++++++++++++++++--
pages/home/index.vue | 330 ++++++++++++++++++--------------------
pages/searchCoinName/index.vue | 250 +++++++++++++++++++++++++++++
static/images/form_edit.png | Bin 0 -> 1417 bytes
static/images/prescriptSearch.svg | 1 +
8 files changed, 848 insertions(+), 191 deletions(-)
create mode 100644 components/listWrap.vue
create mode 100644 pages/searchCoinName/index.vue
create mode 100644 static/images/form_edit.png
create mode 100644 static/images/prescriptSearch.svg
diff --git a/components/listWrap.vue b/components/listWrap.vue
new file mode 100644
index 0000000..03432c2
--- /dev/null
+++ b/components/listWrap.vue
@@ -0,0 +1,169 @@
+
+
+
+
+ {{ item.coin_name }}
+
+
+ {{ item.buying_price }}元{{ type == '2' ?'进':'' }}
+ {{ item.price }}元售
+
+
+
+
+
+
+
+ {{ item.year }}
+ {{ item.format }}
+
+ {{ item.rating_department }}
+
+
+
+ {{ item.operate_time }}
+ {{ item.rating_code }}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/visitorInfo.vue b/components/visitorInfo.vue
index 1a911de..96b380d 100644
--- a/components/visitorInfo.vue
+++ b/components/visitorInfo.vue
@@ -65,7 +65,7 @@ export default {
.user-info-com {
font-family: PingFang SC;
.user-info {
- margin: 0 18rpx 20rpx;
+ margin: 0 18rpx 0rpx;
background: #FFFFFF;
padding: 34rpx 24rpx 44rpx;
position: relative;
diff --git a/pages.json b/pages.json
index de6b1d8..8bcf631 100644
--- a/pages.json
+++ b/pages.json
@@ -19,6 +19,16 @@
"titleNView": false
}
}
+ },
+ {
+ "path": "pages/searchCoinName/index",
+ "style": {
+ "navigationBarTitleText": "搜索钱币信息",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "titleNView": false
+ }
+ }
}
],
diff --git a/pages/coinsDetail/index.vue b/pages/coinsDetail/index.vue
index 9918e89..6e407fe 100644
--- a/pages/coinsDetail/index.vue
+++ b/pages/coinsDetail/index.vue
@@ -1,10 +1,58 @@
-
-
+
+
+
+
+
+
+ {{ textObj[detailItem.ancient_coin_status] }}
+ 进价 {{ detailItem.buying_price }}元
+
+ 历史:
+ {{ detailItem.buying_price }}元进
+
+ {{ detailItem.price }}元售
+
+
+
+
+
+ 元
+
+
+
+
+
+ 售价
+
+
+
+
+ 元
+
+
+
+
+
+
+
+
+ 进价
+
+
+
+
+ 元
+
+
+
+
+
+
@@ -25,37 +73,57 @@ import VisitorInfo from '@/components/visitorInfo.vue';
export default {
name: "coinsDetail",
- props:['scanCodeDetail'],
+ props: ['scanCodeDetail'],
components: {
VisitorInfo,
ListBox
},
data() {
return {
+ textObj:{
+ 0:'进价:',
+ '1':'售价:',
+ '2':'再次入库价:',
+ },
+ cssUrl: this.cssUrl1,
visitorInfo: {},
- id:'',
+ id: '',
detailItem: {},
- scan_code_detail:''
+ scan_code_detail: '',
+ price: '',
+ buying_price:'',
+ price2:'',
+ isFocus:false
+ }
+ },
+ computed: {
+ price2Length() {
+ return this.price2.length
}
},
watch: {
scanCodeDetail(newVal, oldVal) {
- this.detailItem = {...newVal}//更新
+ this.detailItem = { ...newVal }//更新
}
},
- mounted(){
- if(this.scanCodeDetail && Object.keys(this.scanCodeDetail).length > 0){
- this.detailItem = {...this.scanCodeDetail}
+ mounted() {
+ if (this.scanCodeDetail && Object.keys(this.scanCodeDetail).length > 0) {
+ this.detailItem = { ...this.scanCodeDetail }
}
- },
+
+ },
onLoad(options) {
// console.log(options,'this.$route.query-=',this.scanCodeDetail);
- const {id} = options;
- // 跳转详情页
- if(id){
+ const { id } = options;
+ // 跳转详情页
+ if (id) {
this.id = id;
let detailItem = uni.getStorageSync('detail')
- if (detailItem)this.detailItem = JSON.parse(detailItem)
+ if (detailItem) this.detailItem = JSON.parse(detailItem)
+ this.price = this.detailItem.price;
+ // this.price1 = this.detailItem.price1 || ''
+ this.buying_price = this.detailItem.buying_price;
+
}
// else{
// // 扫描后的弹出框信息
@@ -63,14 +131,191 @@ export default {
// this.detailItem = {...this.scanCodeDetail}
// }
},
+ methods:{
+ updatePrice(type){
+ let params={
+ scan_code_detail:JSON.stringify({...this.detailItem}),
+ rating_code:this.detailItem.rating_code,
+ rating_agency_id:this.detailItem.rating_agency_id
+ }
+ if(type == 'buying_price'){
+ params.buying_price = this.buying_price;
+ }else{
+ params.price = this.price;
+ }
+ this.$http.req('/api/update_price', {
+ ...params
+ }, 'POST').then(data => {
+ if (data == -1) return
+ this.$pop.modelShow(data.msg)
+
+ }).catch(res => {
+ });
+ }
+ }
};
\ No newline at end of file
diff --git a/static/images/form_edit.png b/static/images/form_edit.png
new file mode 100644
index 0000000000000000000000000000000000000000..c4ebb8f855083dda0d5e5f637387053f856d50a3
GIT binary patch
literal 1417
zcmYL}do+}J7{`CF!OXg3Cf5`rB2Xcw`jH7;G`
zCCf>eE>1cUv#ZExrQH%bg)+Jjc_qDQ?Au@aJLh>m&vSmy`JUhJ`^S?X6u{P0GgJcr
zX!`kj1(QU-1x=OAU2d^`B%tJAwkK%r-|&uXl#@OELTThdXz_Ufs5tt0d4%#WeyH4<
z^xVh5r}MP>si8e(~P-_RnKduXu2-U*@^hxD$
zM#W#7T`aQnCq`Oy{O`@gEpo=vD_xaR*|Uj|5GacR4h9Eeb_c?q^{^&=xoLpQtz+?B
zIUPoKt@2(E^j}tX*Gao8m=}8s(nelBR`M5yvLy>b+Q!FrUly^b{=@aY(da|=s
zpar8YOkH)%SCh~yWv~Es!$i~*Zz(wXYU5~)jgo3m4#4e>nsPzZ+Mo_^Z)FXxx}k{Y
zXADvJxvKK0-+iRO*hGl<-=Gx?Q6@dT2yl&R)~f$BrSQ62j;(Z+9-**!9Jt;Q-C-`~
zS^sul4b8+g-K5ami5T!Ne_qeU`NA3{%)(XzA~J4^ujOkp+gH0AYRGZ>Nc*2ZlLe}G@?NaHX%Y!PS3rL@*UMF#kqjNts;5nhuP;@}fd-#0aO=PwB-&1ZmM{88@bYpwR
z^`8PeQ--hU+QL2Zo$7hRhT<1??Ayx(a;J2xVLOoV6d?s8
zz{d1pwVLUOVaF-ZjCs(o%E7LWzn
zGktY{d`hHcPD(F4pqf%)qHTi0pkPP_p6v?-bp#M_F0kTA5Nw=8D}wz=q7%WYNi8h`
zrjW{Rc(#;844#dW$i%Z@5|{97K%xVO9+8tg0_~xg#)Lk7`J43#4`NtGby4CACClKm
zYft^kJ!dL+_uQE`Lt+W22h9!cpP^|%p+B+fq#9iCV%D|07V*B9xywLqYjzljC88rx
z9#)HFc&T&q4<#_~*PUyu(n-^oNdkXT!VsrO29Vz=$pGS6_8|EI_hD6-h<)GyWLoS~
z@sF9wQ>;d9Yjfii)R=bftmc0n4=+^NCKek`FTNx28m`Gk=zy!xU5_GQ`O{>Y>
z(WPkAQoKq#z6Qlxu_h=;QP#2*$RycOz<))bZ(NP7oOf2CPc3zv59*-wr&2kZJcV~#
z@u}2mgnh9X@+!M5(w;+c*NNfQd7WU
z!K`4J%BaXcyLj1yn6K?kq;1Tld;XtBq<8Ie8X88@_apO-^lASt&a}wcpkg@q7TJ{*q5j#!@!r?Fh@A9YJB9ka{3F37-F
z^P8r7>D({vS&<`Iqsv>kDckvPXrhcStFgW{0IE}Uh{-FQ-cdydQmR33RnNoCxh~{7
N1%BQEUd^6d;eYulcd`Hg
literal 0
HcmV?d00001
diff --git a/static/images/prescriptSearch.svg b/static/images/prescriptSearch.svg
new file mode 100644
index 0000000..af867a0
--- /dev/null
+++ b/static/images/prescriptSearch.svg
@@ -0,0 +1 @@
+
\ No newline at end of file