diff --git a/components/pageBottomBtn.vue b/components/pageBottomBtn.vue
new file mode 100644
index 0000000..04da89c
--- /dev/null
+++ b/components/pageBottomBtn.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/visitorInfo.vue b/components/visitorInfo.vue
new file mode 100644
index 0000000..d17e0b8
--- /dev/null
+++ b/components/visitorInfo.vue
@@ -0,0 +1,202 @@
+
+
+
+
+
+ {{ visitorInfo.coin_name }}
+ {{ visitorInfo.year }}年
+
+ {{ descObj[visitorInfo.status] }}
+ {{ visitorInfo.ancient_coin_status_desc }}
+
+
+ 板式:{{ visitorInfo.format }}
+ {{ visitorInfo.operate_time }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/main.js b/main.js
index 3ba6261..d3aa128 100644
--- a/main.js
+++ b/main.js
@@ -152,15 +152,18 @@ try{
Vue.prototype.isMobile = isMobile();
}
-// const NODE_ENV = 'development';
-const NODE_ENV = 'production';
+const NODE_ENV = 'development';
+// const NODE_ENV = 'production';
if(Vue.prototype.provider == Vue.prototype.provider_weixin){
if (NODE_ENV == "development") {
- Vue.prototype.request_domain = 'http://jasonyizherenxin.checkcopy.com/';
+ Vue.prototype.request_domain = 'http://coin.checkcopy.com/';
+ Vue.prototype.cssUrl = '/static/images/'
+ // Vue.prototype.request_domain = 'http://jasonyizherenxin.checkcopy.com/';
} else {
Vue.prototype.request_domain = 'https://api.yizherenxin.cn/';
}
- Vue.prototype.cssUrl = Vue.prototype.request_domain + '/images/frontend/user/';
+ // 暂时注释
+ // Vue.prototype.cssUrl = Vue.prototype.request_domain + '/images/frontend/user/';
}else{
if(NODE_ENV == 'development'){
Vue.prototype.request_domain = "http://jasonyizherenxin.checkcopy.com/";
@@ -183,7 +186,7 @@ if(Vue.prototype.provider == Vue.prototype.provider_weixin) {
Vue.prototype.View = currentPageView+'New';
}
-const CODE_SUCCESS = 0;
+const CODE_SUCCESS = 200;
const CODE_ERROR = 40001;
const CODE_LOGIN_EXIPRE = 40002;
@@ -222,7 +225,7 @@ function req(url, data={}, method = 'POST', header={}) {
var isNeedLogin = !noNeedLoginFunc.includes(url);
var headerObj = {'content-type': 'application/x-www-form-urlencoded'};
- var token = getToken();
+ var token = uni.getStorageSync("u_token");
if(token) headerObj.AUTH = token
return new Promise((resolve, reject) => {
@@ -260,8 +263,7 @@ function req(url, data={}, method = 'POST', header={}) {
});
return;
}
-
- if(data.xcx_scource == Vue.prototype.USER_SOURCE_WX_XCX && !data.repeat && rdata.code==CODE_LOGIN_EXIPRE && url != '/api/common/xcx_login'){
+ if(data.xcx_scource == Vue.prototype.USER_SOURCE_WX_XCX && !data.repeat && rdata.code==CODE_LOGIN_EXIPRE && url != '/api/login'){
removeLogin();
xcx_login(url, data, method).then(data=>{
return resolve(data);
@@ -328,12 +330,15 @@ function xcx_login(url, eqdata={}, method = 'POST') {
pdata.code = res.code;
var doctor_id = uni.getStorageSync('doctor_id');
pdata.state = 'user-'+doctor_id;
-
- req('/api/common/xcx_login', pdata).then(data=>{
+ debugger
+ req('/api/login', pdata).then(data=>{
var udata = data
+ console.log(data,'===2222');
if(udata && udata.jwttoken) {
- setToken(udata.jwttoken)
- setUinfo(JSON.stringify(udata))
+ uni.setStorageSync("u_token", udata.jwttoken)
+
+ // setToken(udata.jwttoken)
+ // setUinfo(JSON.stringify(udata))
}
pdata.repeat = 1;
diff --git a/pages.json b/pages.json
index 2a5b1c4..de6b1d8 100644
--- a/pages.json
+++ b/pages.json
@@ -4,6 +4,7 @@
"style": {
"navigationBarTitleText": "出入库",
"enablePullDownRefresh": true,
+ "onReachBottomDistance": 50,
"app-plus": {
"titleNView": false
}
@@ -13,7 +14,7 @@
"path": "pages/coinsDetail/index",
"style": {
"navigationBarTitleText": "出入库详情",
- "enablePullDownRefresh": true,
+ "enablePullDownRefresh": false,
"app-plus": {
"titleNView": false
}
diff --git a/pages/coinsDetail/index.vue b/pages/coinsDetail/index.vue
index ac6a58a..88baf7f 100644
--- a/pages/coinsDetail/index.vue
+++ b/pages/coinsDetail/index.vue
@@ -2,16 +2,16 @@
-
+
-
-
-
+
+
+
-
+
@@ -30,35 +30,48 @@ export default {
data() {
return {
visitorInfo: {},
+ id:'',
detailItem: {
- name: '北京公博二部',
- num: '1310684212',
- count: 'AU 58',
- size: '24.0*1.1mm,3.5g',
- operate: '泅渡'
+ // "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": "未入库" //状态描述
},
- id:''
+ 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){
+ this.detailItem = {...this.scanCodeDetail}
+ }
+ },
onLoad(options) {
- console.log(options,'this.$route.query-=');
+ // console.log(options,'this.$route.query-=',this.scanCodeDetail);
const {id} = options;
// 跳转详情页
if(id){
this.id = id;
- }else{
- // 扫描后的弹出框信息
- // scanCodeDetail props传参
- this.detailItem = {...this.scanCodeDetail}
+ let detailItem = uni.getStorageSync('detail')
+ if (detailItem)this.detailItem = JSON.parse(detailItem)
}
- // this.getDetail()
+ // else{
+ // // 扫描后的弹出框信息
+ // // scanCodeDetail props传参
+ // this.detailItem = {...this.scanCodeDetail}
+ // }
},
- methods: {
- // 获取详情信息
- getDetail(){
-
- }
- }
};
-->
-
-
-
-
-
-
-
-
-
-
+ .loading-text, .no-more-text {
+ text-align: center;
+ padding: 20rpx;
+ color: #999;
+ }
+}
+
\ No newline at end of file
diff --git a/static/images/qrcode_get.png b/static/images/qrcode_get.png
new file mode 100644
index 0000000..185b33f
Binary files /dev/null and b/static/images/qrcode_get.png differ