diff --git a/common/config.js b/common/config.js
index ff0a685..28a73ee 100644
--- a/common/config.js
+++ b/common/config.js
@@ -6,8 +6,8 @@
* loginTimeoutPage = "/pages/login/index", // 登录超时或失效的情况下,跳转到的登录页面
*/
module.exports = {
- baseUrl: 'http://192.168.2.106:7201',
- // baseUrl: 'https://supervise.yxtsoft.com/lpkapi',
+ // baseUrl: 'http://192.168.2.106:7201',
+ baseUrl: 'https://supervise.yxtsoft.com/lpkapi',
// baseUrl: 'http://jianguan.yyundong.com/api',
tokenName: "Authorization", // 请求头中token的名字,与服务器端对应
loginTimeoutCode: "5001", // 登录超时或失效的情况下,服务器端返回的错误码
diff --git a/common/request.api.js b/common/request.api.js
index ed0dfaf..2621799 100644
--- a/common/request.api.js
+++ b/common/request.api.js
@@ -6,6 +6,8 @@ export default {
// 不显示loading true
// 提货卡列表
cardList: (params = {}) => request.post("/lpkgiftcard/gifCardByCustomerSid", params, {}, {}, true),
+ // 企业卡列表
+ empcardList: (params = {}) => request.post("/empcard/getEmpCardByCustomerSid", params, {}, {}, true),
// 提货卡详情
cardDetail: (params = {}) => request.get("/lpkgiftcard/getGifCardBySid/" + params, params, {}, {}, true),
// 提货日期 周六日的日期组合
@@ -16,6 +18,8 @@ export default {
cardBookingSave: (params = {}) => request.post("/lpksreservoorder/submission", params),
// 绑定提货卡
cardBind: (params = {}) => request.post("/lpkgiftcard/bindCard", params),
+ // 绑定企业卡
+ empcardBind: (params = {}) => request.post("/empcard/bindCard", params),
// 单一提货卡预约记录
orderByCardSid: (params = {}) => request.get("/lpksreservoorder/orderByCardSid/" + params, params, {}, {}, true),
// 预约记录
diff --git a/manifest.json b/manifest.json
index 4b09164..c2b91d6 100644
--- a/manifest.json
+++ b/manifest.json
@@ -50,7 +50,7 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
- "appid" : "wx11565021714ba796",
+ "appid" : "wx4724e3a3c27f36b5",
"setting" : {
"urlCheck" : false
},
diff --git a/pages.json b/pages.json
index 18fd272..1b1c85d 100644
--- a/pages.json
+++ b/pages.json
@@ -51,7 +51,14 @@
"style": {
"navigationStyle": "custom"
}
- }, {
+ },
+ {
+ "path": "pages/card/card_bind3",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
"path": "pages/index/BindPhone",
"style": {
"navigationBarTitleText": "绑定账号",
@@ -129,12 +136,12 @@
"iconPath": "static/bomicon/bom_notRecord.png",
"selectedIconPath": "static/bomicon/bom_record.png"
}
- , {
- "pagePath": "pages/enterprise/corporateCard",
- "text": "企业卡",
- "iconPath": "static/bomicon/bom_notCard.png",
- "selectedIconPath": "static/bomicon/bom_card.png"
- }
+ // , {
+ // "pagePath": "pages/enterprise/corporateCard",
+ // "text": "企业卡",
+ // "iconPath": "static/bomicon/bom_notCard.png",
+ // "selectedIconPath": "static/bomicon/bom_card.png"
+ // }
]
},
"uniIdRouter": {}
diff --git a/pages/card/card - 副本.vue b/pages/card/card - 副本.vue
deleted file mode 100644
index befebf4..0000000
--- a/pages/card/card - 副本.vue
+++ /dev/null
@@ -1,241 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 绑定新卡
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 卡号: {{item.serialNumber}}
-
- {{item.time}}
-
-
-
- 预约提货
-
-
-
-
- {{item.pname}}
-
- {{item.state}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/card/card-223-12-12.vue b/pages/card/card-223-12-12.vue
new file mode 100644
index 0000000..09f5a05
--- /dev/null
+++ b/pages/card/card-223-12-12.vue
@@ -0,0 +1,357 @@
+
+
+
+
+
+
+
+
+
+
+
+ 绑定新卡
+
+
+
+
+
+
+
+
+
+
+ 提货卡
+
+
+
+ 福礼卡
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 卡号:
+ {{item.serialNumber}}
+
+ {{item.time}}
+
+
+
+ 预约提货
+
+
+
+
+ {{item.pname}}
+
+ {{item.state}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 卡号:
+ {{item.serialNumber}}
+
+ {{item.time}}
+
+
+
+ 预约提货
+
+
+
+
+ {{item.pname}}
+
+ {{item.state}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/card/card.vue b/pages/card/card.vue
index 19c7ef0..a425f7a 100644
--- a/pages/card/card.vue
+++ b/pages/card/card.vue
@@ -21,139 +21,59 @@
-
+
- 提货卡
-
-
-
- 福礼卡
+
-
+
+
-
-
-
-
+
+
+
-
+
+
-
-
+
-
-
-
+
-
+
+ 卡号: {{item.serialNumber}}
+
+ {{item.time}}
-
-
-
-
-
- 卡号:
- {{item.serialNumber}}
-
- {{item.time}}
-
-
-
- 预约提货
-
-
-
-
- {{item.pname}}
-
- {{item.state}}
-
-
-
+
+ 预约提货
+
+
+
+ {{item.pname}}
+
+ {{item.state}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 卡号:
- {{item.serialNumber}}
-
- {{item.time}}
-
-
-
- 预约提货
-
-
-
-
- {{item.pname}}
-
- {{item.state}}
-
-
-
-
-
-
-
+
-
-
-
+
@@ -171,7 +91,6 @@
endHeight: 0
},
data: [],
- currentTab: 0,
}
},
onLoad() {
@@ -243,14 +162,6 @@
})
}
- },
- tab(index) {
- this.currentTab = index
-
- },
- tabChange(event) {
- console.log("eeee", event.detail.current)
- this.currentTab = event.detail.current
}
}
}
@@ -327,31 +238,4 @@
page {
background: #FFFFFF;
}
-
- .tab-box {
- box-sizing: border-box;
- height: 100vw;
- }
-
- .tab-content {
- overflow-y: scroll;
- }
-
- .tab-bj1 {
- background: #FFF6EF;
- color: #FF7200;
- font-size: 16px;
- border-radius: 25px;
- border: 1px solid #FF7200;
- padding: 5px 30px;
- }
-
- .tab-bj2 {
- background: #E7E7E7;
- color: #9D9D9D;
- font-size: 16px;
- border-radius: 25px;
- padding: 5px 30px;
- border: none;
- }
\ No newline at end of file
diff --git a/pages/card/card_bind3.vue b/pages/card/card_bind3.vue
new file mode 100644
index 0000000..e32219a
--- /dev/null
+++ b/pages/card/card_bind3.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 绑定企业卡
+
+
+ 提货编码
+
+
+
+
+
+ 提货密码
+
+
+
+
+
+ 绑定
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/enterprise/corporateCard.vue b/pages/enterprise/corporateCard.vue
index 321ec17..4aae4c8 100644
--- a/pages/enterprise/corporateCard.vue
+++ b/pages/enterprise/corporateCard.vue
@@ -1,7 +1,8 @@
-
+
@@ -14,7 +15,69 @@
style="display: flex;flex-direction: column;background-color: #fff; border-top-left-radius: 25px;border-top-right-radius: 25px;margin-top: 5vw;">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 卡号:{{item.serialNumber}}
+
+ 礼包名称:{{item.pname}}
+
+
+
+ {{item.state}}
+
+
+
+
+
+ 企业卡内的商品及数量可以派生出“福礼卡”
+ 当前卡片已失效
+
+
+ 发放福礼卡
+
+
+
+
+
+
+
+
+
@@ -24,14 +87,20 @@
export default {
data() {
return {
-
+ data: [],
}
},
+ onLoad() {
+ uni.$on("order2", (e) => {
+ // 相当与下拉刷新
+ this.$refs.paging.reload(true);
+ })
+ },
methods: {
- // 分页的请求
+ // 分页的请求
queryList(pageNo, pageSize) {
let _this = this
- _this.$api.cardList({
+ _this.$api.empcardList({
"current": pageNo,
"size": pageSize,
"params": {
@@ -45,10 +114,63 @@
_this.$refs.paging.complete(false);
})
},
+ bind() {
+ uni.navigateTo({
+ url: '/pages/card/card_bind3'
+ })
+ }
}
}
\ No newline at end of file