diff --git a/App.vue b/App.vue
index 36ba049..504784c 100644
--- a/App.vue
+++ b/App.vue
@@ -84,30 +84,30 @@
}
if(!did){
- var doctor_id = uni.getStorageSync(this.globalData.doctoridStorageKey)
- if(doctor_id){
- this.globalData.doctorId = doctor_id
- }else{
+ // var doctor_id = uni.getStorageSync(this.globalData.doctoridStorageKey)
+ // if(doctor_id){
+ // this.globalData.doctorId = doctor_id
+ // }else{
- // #ifdef H5
- document.getElementsByTagName('body')[0].innerHTML = ""
- setTimeout(function(){
- alert('请扫描二维码或点击分享网站链接进入');
- }, 500)
- // #endif
+ // // #ifdef H5
+ // document.getElementsByTagName('body')[0].innerHTML = ""
+ // setTimeout(function(){
+ // alert('请扫描二维码或点击分享网站链接进入');
+ // }, 500)
+ // // #endif
- // #ifdef MP-WEIXIN
- // uni.showModal({
- // title: '请扫描小程序二维码或点击小程序链接进入',
- // content: '',
- // showCancel: false,
- // success: ({ confirm, cancel }) => {}
- // })
- uni.reLaunch({ url: '/pages/explain/explain' })
- throw new Error('请扫描小程序二维码或点击小程序链接进入')
- // #endif
+ // // #ifdef MP-WEIXIN
+ // // uni.showModal({
+ // // title: '请扫描小程序二维码或点击小程序链接进入',
+ // // content: '',
+ // // showCancel: false,
+ // // success: ({ confirm, cancel }) => {}
+ // // })
+ // // uni.reLaunch({ url: '/pages/explain/explain' })
+ // throw new Error('请扫描小程序二维码或点击小程序链接进入')
+ // // #endif
- }
+ // }
}else{
this.globalData.doctorId = did
uni.setStorageSync(this.globalData.doctoridStorageKey, did)
diff --git a/components/visitorInfo.vue b/components/visitorInfo.vue
index d17e0b8..1a911de 100644
--- a/components/visitorInfo.vue
+++ b/components/visitorInfo.vue
@@ -4,13 +4,15 @@
{{ visitorInfo.coin_name }}
- {{ visitorInfo.year }}年
+ {{ visitorInfo.year }}
{{ descObj[visitorInfo.status] }}
{{ visitorInfo.ancient_coin_status_desc }}
-
- 板式:{{ visitorInfo.format }}
+
+
+ 板式:{{ visitorInfo.format }}
+
{{ visitorInfo.operate_time }}
diff --git a/pages/coinsDetail/index.vue b/pages/coinsDetail/index.vue
index 88baf7f..4cf4f44 100644
--- a/pages/coinsDetail/index.vue
+++ b/pages/coinsDetail/index.vue
@@ -1,15 +1,18 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -31,29 +34,17 @@ export default {
return {
visitorInfo: {},
id:'',
- detailItem: {
- // "rating_agency_id": "1", //评级机构id
- // "coin_name": "机制光绪通宝", //名称
- // "rating_code": "1310684212", //评级编号
- // "rating_department": "北京公博二部", //评级部门
- // "grade": "AU 58", //分数
- // "size": "24.0*1.1mm,3.5g", //尺寸
- // "year": "1889", //年份
- // "format": "库平一钱满汉广", //版式
- // "ancient_coin_status": 0, //状态
- // "ancient_coin_status_desc": "未入库" //状态描述
- },
+ detailItem: {},
scan_code_detail:''
}
},
watch: {
scanCodeDetail(newVal, oldVal) {
- // console.log('someProp changed:', newVal, 'from', oldVal);
this.detailItem = {...newVal}//更新
}
},
mounted(){
- if(Object.keys(this.scanCodeDetail).length > 0){
+ if(this.scanCodeDetail && Object.keys(this.scanCodeDetail).length > 0){
this.detailItem = {...this.scanCodeDetail}
}
},
diff --git a/pages/home/index.vue b/pages/home/index.vue
index 11d4658..6973000 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -18,7 +18,6 @@
-
@@ -49,12 +48,10 @@
-
-
@@ -132,7 +129,6 @@ export default {
// var token = uni.getStorageSync("u_token");
// 初始化情求
this.getCoinsList()
-
// this.$refs.coinsPopup.openPop();
},
onPullDownRefresh() {
@@ -141,7 +137,6 @@ export default {
this.getCoinsList()
},
onReachBottom() {
- // debugger
if (!this.noMore && !this.loading) {
this.page++;
this.getCoinsList();
@@ -149,15 +144,11 @@ export default {
},
methods: {
onScroll() {
- console.log(this.noMore, '000', this.loading, 'this.loading==');
if (!this.noMore && !this.loading) {
this.page++;
this.getCoinsList();
}
},
- getList(e) {
- console.log(e, '=====eeee');
- },
getCoinsList() {
this.loading = true;
// 获取列表信息
@@ -183,7 +174,6 @@ export default {
},
lookDetail(item) {
uni.setStorageSync('detail', JSON.stringify(item))
- // let url = `/pages/coinsDetail/index`
let url = `/pages/coinsDetail/index?id=${item.rating_code}`
this.$nav.navToPath(url)
},
@@ -226,6 +216,7 @@ export default {
url: result
}, 'POST').then(data => {
console.log(data, 'data===data');
+ if(data == -1)return
this.scanCodeDetail = data;
this.$set(this, 'scanCodeDetail', data)
setTimeout(() => {
@@ -277,6 +268,10 @@ export default {
}