|
@@ -19,9 +19,6 @@ Page({
|
|
|
cardno: null
|
|
cardno: null
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
- if (_Http.cardno) this.setData({
|
|
|
|
|
- cardno: _Http.cardno
|
|
|
|
|
- })
|
|
|
|
|
if (options.params) {
|
|
if (options.params) {
|
|
|
let params = JSON.parse(options.params);
|
|
let params = JSON.parse(options.params);
|
|
|
if (!params.content.pageNumber || !params.content.pageTotal) {
|
|
if (!params.content.pageNumber || !params.content.pageTotal) {
|
|
@@ -29,9 +26,26 @@ Page({
|
|
|
params.content.pageTotal = 1;
|
|
params.content.pageTotal = 1;
|
|
|
}
|
|
}
|
|
|
this.setData({
|
|
this.setData({
|
|
|
- params
|
|
|
|
|
|
|
+ params,
|
|
|
|
|
+ copyParams: JSON.parse(JSON.stringify(params))
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
+ if (_Http.cardno) {
|
|
|
|
|
+ let cardno = _Http.cardno;
|
|
|
|
|
+ this.setData({
|
|
|
|
|
+ params: {
|
|
|
|
|
+ "id": 2025080511204503,
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "itemid": cardno.itemid,
|
|
|
|
|
+ "sa_orderid": _Http.sa_orderid,
|
|
|
|
|
+ pageNumber: 1,
|
|
|
|
|
+ pageTotal: 1,
|
|
|
|
|
+ pageSize: 20,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ cardno
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
this.setData({
|
|
this.setData({
|
|
|
radio: options.radio ? true : false,
|
|
radio: options.radio ? true : false,
|
|
|
idname: options.idname || this.data.idname,
|
|
idname: options.idname || this.data.idname,
|
|
@@ -62,6 +76,13 @@ Page({
|
|
|
title: res.msg,
|
|
title: res.msg,
|
|
|
icon: "none"
|
|
icon: "none"
|
|
|
})
|
|
})
|
|
|
|
|
+ if (res.pageNumber == 1 && res.data.length == 0 && params.id == '2025080511204503') {
|
|
|
|
|
+ this.setData({
|
|
|
|
|
+ params: this.data.copyParams
|
|
|
|
|
+ })
|
|
|
|
|
+ this.getList(true)
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
const CNY = num => currency(num, {
|
|
const CNY = num => currency(num, {
|
|
|
symbol: "¥",
|
|
symbol: "¥",
|
|
|
precision: 2
|
|
precision: 2
|