Browse Source

Merge branch 'develop' into test

test
JinxChen 1 year ago
parent
commit
65478db37c
6 changed files with 87 additions and 18 deletions
  1. +7
    -0
      README.md
  2. BIN
      src/assets/online.png
  3. BIN
      src/assets/wx-pay.png
  4. +2
    -2
      src/config/models.js
  5. +14
    -3
      src/views/active-status/index.vue
  6. +64
    -13
      src/views/package-list/index.vue

+ 7
- 0
README.md View File

@@ -214,3 +214,10 @@ update
`2023.2.26` `2023.2.26`
update update
- 增加 激活成功显示页面 - 增加 激活成功显示页面


## v1.0.24
`2023.2.27`
update
- 增加 激活成功页面在线图标
- 优化 支付方式选择页面

BIN
src/assets/online.png View File

Before After
Width: 107  |  Height: 37  |  Size: 8.5KB

BIN
src/assets/wx-pay.png View File

Before After
Width: 81  |  Height: 81  |  Size: 2.3KB

+ 2
- 2
src/config/models.js View File

@@ -1,11 +1,11 @@
/* /*
* @Date: 2021-11-20 10:26:39 * @Date: 2021-11-20 10:26:39
* @LastEditors: JinxChen * @LastEditors: JinxChen
* @LastEditTime: 2023-02-26 16:07:34
* @LastEditTime: 2023-02-27 09:59:02
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @FilePath: \TelpoH5FrontendWeb\src\config\models.js
* @description: * @description:
*/ */
export const VERSION_MODEL = '1.0.23F'; //版本号
export const VERSION_MODEL = '1.0.24F'; //版本号
export const IMAGE_URL = { export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/', production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/',


+ 14
- 3
src/views/active-status/index.vue View File

@@ -6,7 +6,8 @@
</div> </div>
<div class="main"> <div class="main">
<div class="text success" v-if="isActive"> <div class="text success" v-if="isActive">
<p>激活成功,请重启设备,看到连接平台图标后,则可正常使用。</p>
<p>激活成功,请重启设备,看到连接平台</p>
<p class="img">图标<img src="../../assets/online.png"/>后,则可正常使用。</p>
</div> </div>
<div class="text fail" v-else> <div class="text fail" v-else>
<p>电话卡激活失败!请进行实名认证与绑定SIM卡。如您已实名认证,请5分钟后,再进行设备绑定。</p> <p>电话卡激活失败!请进行实名认证与绑定SIM卡。如您已实名认证,请5分钟后,再进行设备绑定。</p>
@@ -105,7 +106,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.active-container { .active-container {
height: 100vh; height: 100vh;
padding: 40px 60px;
padding: 40px 50px;
.header { .header {
padding: 10px 0; padding: 10px 0;
@include center(); @include center();
@@ -121,8 +122,18 @@ export default {
width: 100%; width: 100%;
font-size: 16px; font-size: 16px;
text-align: left; text-align: left;
letter-spacing: 1px;
font-weight: 500; font-weight: 500;
margin: 5px 0;
img {
height: 25px;
width: 60px;
margin: 0 5px;
}
.img {
display: flex;
justify-content: flex-start;
align-items: center;
}
} }
} }
.van-button { .van-button {


+ 64
- 13
src/views/package-list/index.vue View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2022-03-29 16:57:58 * @Date: 2022-03-29 16:57:58
* @LastEditors: JinxChen * @LastEditors: JinxChen
* @LastEditTime: 2023-02-26 15:57:18
* @LastEditTime: 2023-02-27 09:53:05
* @FilePath: \TelpoH5FrontendWeb\src\views\package-list\index.vue * @FilePath: \TelpoH5FrontendWeb\src\views\package-list\index.vue
* @description: TODO 小台风充值h5 * @description: TODO 小台风充值h5
--> -->
@@ -75,25 +75,62 @@
<!-- 底部支付类型选择 --> <!-- 底部支付类型选择 -->
<div class="pay-radios"> <div class="pay-radios">
<div class="radios-con"> <div class="radios-con">
<van-radio-group v-model="radio" direction="horizontal" @change="onRaidoChange">
<!-- <van-radio-group v-model="radio" direction="horizontal" @change="onRaidoChange">
<van-radio name="1"> <van-radio name="1">
<template #default> <template #default>
<span>微信支付</span> <span>微信支付</span>
<!-- <img src="../../assets/wx_pay_icon.png"/> -->
<img src="../../assets/wx_pay_icon.png"/>
</template> </template>
</van-radio> </van-radio>
<van-radio name="2"> <van-radio name="2">
<template #default> <template #default>
<span>支付宝</span> <span>支付宝</span>
<!-- <img src="../../assets/alipay.png"/> -->
<img src="../../assets/alipay.png"/>
</template> </template>
</van-radio> </van-radio>
<van-radio name="3"> <van-radio name="3">
<template #default> <template #default>
<span>花呗</span> <span>花呗</span>
<!-- <img src="../../assets/antpay.png"/> -->
<img src="../../assets/antpay.png"/>
</template> </template>
</van-radio> </van-radio>
</van-radio-group> -->
<van-radio-group v-model="radio" @change="onRaidoChange">
<van-cell-group border >
<van-cell clickable @click="radio = '1'" center>
<template #default>
<div class="van-cell-text">
<img src="../../assets/wx-pay.png" alt="">
<span class="custom-title">微信支付</span>
</div>
</template>
<template #right-icon>
<van-radio name="1" />
</template>
</van-cell>
<van-cell clickable @click="radio = '2'">
<template #default>
<div class="van-cell-text">
<img src="../../assets/alipay.png"/>
<span class="custom-title">支付宝支付</span>
</div>
</template>
<template #right-icon>
<van-radio name="2" />
</template>
</van-cell>
<van-cell clickable @click="radio = '3'" >
<template #default >
<div class="van-cell-text">
<img src="../../assets/antpay.png"/>
<span class="custom-title">花呗支付</span>
</div>
</template>
<template #right-icon>
<van-radio name="3" />
</template>
</van-cell>
</van-cell-group>
</van-radio-group> </van-radio-group>
</div> </div>
</div> </div>
@@ -308,7 +345,8 @@ export default {
}) })
} else { } else {
this.packageIssue = 1; this.packageIssue = 1;
this.wxPay(data);
// todo 暂时取消开放微信支付
//this.wxPay(data);
console.log("openid为空"); console.log("openid为空");
} }
} }
@@ -381,14 +419,17 @@ export default {
fail: err => { fail: err => {
console.log("支付出错了::", err); console.log("支付出错了::", err);
that.$dialog.confirm({ that.$dialog.confirm({
title: "支付失败",
message: "出错了,请您重新进入"
title: "温馨提示",
message: "出错了,请您重新进入",
showCancelButton: false
}); });
}, },
cancel: function(err) { cancel: function(err) {
// 用户取消支付 // 用户取消支付
that.$dialog.confirm({ that.$dialog.confirm({
message: "您取消了支付"
title: "温馨提示",
message: "您取消了支付",
showCancelButton: false
}); });
console.log("用户取消了支付::", err); console.log("用户取消了支付::", err);
} }
@@ -485,13 +526,14 @@ export default {
background-color: white; background-color: white;
height: 100vh; height: 100vh;
.topup-container { .topup-container {
position: relative;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
background-color: white; background-color: white;
overflow: scroll; overflow: scroll;
height: calc(100vh - 4rem);
/* height: calc(100vh - 4rem); */
.main { .main {
padding: 0 10px; padding: 0 10px;
display: flex; display: flex;
@@ -646,14 +688,15 @@ export default {
} }
} }
.pay-radios { .pay-radios {
position: absolute;
bottom: 0;
position: relative;
top: 0;
width: 100%; width: 100%;
/* background-color: red; */ /* background-color: red; */
/* padding: 0 15px; */ /* padding: 0 15px; */
.radios-con { .radios-con {
padding: 20px 10px; padding: 20px 10px;
@include center();
/* @include center(); */
align-items: center;
font-size: 18px; font-size: 18px;
box-shadow: rgba(14, 30, 37, 0.12) 0 3px 5px 0, box-shadow: rgba(14, 30, 37, 0.12) 0 3px 5px 0,
rgba(14, 30, 37, 0.32) 0 2px 16px 0; rgba(14, 30, 37, 0.32) 0 2px 16px 0;
@@ -661,6 +704,14 @@ export default {
height: 35px; height: 35px;
width: auto; width: auto;
} }
.van-cell-text {
display: flex;
justify-content: flex-start;
align-items: center;
span {
padding: 0 5px;
}
}
} }
} }
} }


Loading…
Cancel
Save