From 2a916c6ba74aeb2c4536eced42c5165c89a7d786 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Fri, 25 Feb 2022 17:56:08 +0800 Subject: [PATCH 1/5] =?UTF-8?q?-=20=E5=A2=9E=E5=8A=A0=20=E9=9D=9E=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=AE=9D=E6=B5=8F=E8=A7=88=E7=8E=AF=E5=A2=83=E4=B8=8B?= =?UTF-8?q?=E6=89=AB=E7=A0=81=E5=88=87=E6=8D=A2=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=8F=90=E7=A4=BA=20-=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20android=E5=92=8Cios=E8=AE=BE=E5=A4=87=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=AE=9D=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5=20-=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20android=E8=AE=BE=E5=A4=87=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E7=B2=98=E8=B4=B4=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++-- src/App.vue | 8 ++--- src/config/models.js | 16 +++++++--- src/main.js | 7 +++-- src/utils/index.js | 31 ++++++++++++++++++- src/views/AliPayIndex.vue | 63 +++++++++++++++++++++++++++++++++++---- 6 files changed, 117 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 2868fee..a058952 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -27,6 +27,7 @@ npm run build - css类名: 小写驼峰 中间用 - 隔开 - js函数方法: 开头小写后面开头大写驼峰 - .vue 文件命名: 统一大写驼峰 +- 常量命名: 全部大写 以_拼接, 具体例子见: /src/config/models下的文件 ### git 提交规范 - feature 新增一个功能 @@ -53,4 +54,11 @@ build - 增加 环境设置脚本 - 增加 nginx.conf文件 fix -- 修复 路由history模式原因引起的页面空白的问题 \ No newline at end of file +- 修复 路由history模式原因引起的页面空白的问题 + +### v1.0.1 +`2022.02.25` +feature +- 增加 非支付宝浏览环境下扫码切换支付宝弹窗提示 +- 增加 android和ios设备支付宝下载链接 +- 增加 android设备复制粘贴下载链接功能 \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 1b58adb..ef212b3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,8 @@ + + diff --git a/src/main.js b/src/main.js index b7c720c..2f14456 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,7 @@ /* * @Date: 2022-01-19 10:08:26 * @LastEditors: JinxChen - * @LastEditTime: 2022-02-25 17:51:58 + * @LastEditTime: 2022-03-04 15:00:32 * @FilePath: \AntpayFrontEnd\src\main.js * @description: */ @@ -34,7 +34,11 @@ import { Notify, Loading, Toast, -} from 'vant'; + Popup, + Area, + Cascader, + Picker, +} from 'vant'; //按需加载vant组件 Vue .use(Button) @@ -59,9 +63,14 @@ Vue .use(Notify) .use(Loading) .use(Toast) + .use(Area) + .use(Popup) + .use(Picker) + .use(Cascader) .use(Tabs); Vue.config.productionTip = false; +Vue.prototype.$bus = new Vue(); new Vue({ router, store, From b116b9d3b3194d7d2c8234d04a65adb437530c66 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Fri, 4 Mar 2022 15:53:42 +0800 Subject: [PATCH 4/5] =?UTF-8?q?-=20=E5=A2=9E=E5=8A=A0=20Checkbox=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6,=20'@/components/checkbox'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Checkbox.vue | 76 +++++++++++++++++++++++++++++++++++++ src/utils/bus.js | 10 +++++ 2 files changed, 86 insertions(+) create mode 100644 src/components/Checkbox.vue create mode 100644 src/utils/bus.js diff --git a/src/components/Checkbox.vue b/src/components/Checkbox.vue new file mode 100644 index 0000000..e887ae0 --- /dev/null +++ b/src/components/Checkbox.vue @@ -0,0 +1,76 @@ + + + + + + \ No newline at end of file diff --git a/src/utils/bus.js b/src/utils/bus.js new file mode 100644 index 0000000..fbd053e --- /dev/null +++ b/src/utils/bus.js @@ -0,0 +1,10 @@ +/* + * @Date: 2022-02-28 15:30:40 + * @LastEditors: JinxChen + * @LastEditTime: 2022-02-28 15:30:43 + * @FilePath: \AntpayFrontEnd\src\utils\bus.js + * @description: + */ +import Vue from 'vue'; +const bus = new Vue(); +export default bus; \ No newline at end of file From f8b5e74366c0e9d0adb4be102052110c5f457e12 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Fri, 4 Mar 2022 15:54:18 +0800 Subject: [PATCH 5/5] =?UTF-8?q?-=20=E5=A2=9E=E5=8A=A0=20=E6=98=A5=E9=9B=A8?= =?UTF-8?q?=E4=B8=AA=E6=80=A7=E5=8C=96=E5=AE=9A=E5=88=B6=20'@/views/chunyu?= =?UTF-8?q?/AliPayForm'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/customize.js | 13 + src/config/models.js | 4 +- src/router/index.js | 6 +- src/views/AliPayForm.vue | 228 ++++++++------- src/views/AliPayIndex.vue | 86 +++--- src/views/AliPayRedirect.vue | 8 +- src/views/AliPayResult.vue | 8 +- src/views/ComponentsTest.vue | 46 +++ src/views/chunyu/AliPayForm.vue | 501 ++++++++++++++++++++++++++++++++ 9 files changed, 751 insertions(+), 149 deletions(-) create mode 100644 src/config/customize.js create mode 100644 src/views/ComponentsTest.vue create mode 100644 src/views/chunyu/AliPayForm.vue diff --git a/src/config/customize.js b/src/config/customize.js new file mode 100644 index 0000000..9c6f92f --- /dev/null +++ b/src/config/customize.js @@ -0,0 +1,13 @@ +/* + * @Date: 2022-02-26 15:09:25 + * @LastEditors: JinxChen + * @LastEditTime: 2022-03-04 10:58:12 + * @FilePath: \AntpayFrontEnd\src\config\customize.js + * @description: 个性化定制, 根据不同的商家定制个性化的界面 + * 注意: 后期可以根据接口来实现 + */ +import store from '../store/index'; + +export const CUSTOMIZE_SERVICE = { + isChunyu:() => store.getters.goodsNo === 889, +}; \ No newline at end of file diff --git a/src/config/models.js b/src/config/models.js index cad0eb8..742a8b0 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -1,11 +1,11 @@ /* * @Date: 2021-11-20 10:26:39 * @LastEditors: JinxChen - * @LastEditTime: 2022-02-25 17:57:21 + * @LastEditTime: 2022-03-04 11:38:20 * @FilePath: \AntpayFrontEnd\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.1'; +export const VERSION_MODEL = '1.0.2'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', diff --git a/src/router/index.js b/src/router/index.js index 53398ca..22d2b63 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,7 +1,7 @@ /* * @Date: 2022-01-19 10:08:26 * @LastEditors: JinxChen - * @LastEditTime: 2022-02-25 15:26:05 + * @LastEditTime: 2022-02-28 09:47:42 * @FilePath: \AntpayFrontEnd\src\router\index.js * @description: */ @@ -19,6 +19,10 @@ const routes = [ { path: '/redirect', name: 'redirect', component: resolve => require(['@/views/AliPayRedirect'], resolve) }, { path: '/result', name: 'result', component: resolve => require(['@/views/AliPayResult'], resolve) }, { path: '/404', name: 'page-not-found', component: resolve => require(['@/views/page-not-found/index'], resolve) }, + // 春雨 + { path: '/chunyuForm', name: 'chunyuForm', component: resolve => require(['@/views/chunyu/AliPayForm'], resolve) }, + // 组件测试页面 + { path: '/compTest', name: 'compTest', component: resolve => require(['@/views/ComponentsTest'], resolve) }, ]; diff --git a/src/views/AliPayForm.vue b/src/views/AliPayForm.vue index 4321484..47e9be0 100644 --- a/src/views/AliPayForm.vue +++ b/src/views/AliPayForm.vue @@ -1,22 +1,30 @@ diff --git a/src/views/AliPayIndex.vue b/src/views/AliPayIndex.vue index 66577dc..a365721 100644 --- a/src/views/AliPayIndex.vue +++ b/src/views/AliPayIndex.vue @@ -1,7 +1,7 @@ @@ -13,8 +13,8 @@
-

月套餐费: ¥{{ (goodsData.price/goodsData.goodCount).toFixed(2) }} x {{goodsData.goodCount}}期 = ¥{{goodsData.price}}

-

可切换支付方式:

+

月套餐费: ¥{{ (goodsData.price/goodsData.count).toFixed(2) }} x {{goodsData.count}}期 = ¥{{goodsData.price}}

+

{{switchPayType}}:

@@ -59,21 +59,21 @@

我要开通花呗

-

{{agreement.agreementTitle}}

+

{{agreement.title}}

一.开通需知及承诺

1.感谢用户使用支付宝花呗分期功能。

-

2.用户自愿开通4G电子学生证资费套餐服务({{goodsData.goodCount}}期)每月自动通过支付宝花呗分期支付资费(话费+流量)套餐费{{(goodsData.price/goodsData.goodCount).toFixed(2)}}元/月。

+

2.用户自愿开通4G电子学生证资费套餐服务({{goodsData.count}}期)每月自动通过支付宝花呗分期支付资费(话费+流量)套餐费{{(goodsData.price/goodsData.count).toFixed(2)}}元/月。

3.用户需连续使用该资费套餐24期,可据此领取4G电子学生证1台、电话卡1张。

-

4.{{goodsData.goodDescription}}

+

4.{{goodsData.description}}

5.协议期内,电子学生证非人为损坏或进水按“三包”政策进行免费维修或更换。如丢失或人为损坏,按优惠价重新购买。

6.北京随手精灵科技有限公司接受电子学生证运营销售商委托采用支付宝花呗分期付代收业务货款。

二.用户承诺
@@ -92,11 +92,11 @@