1.整理银联页面

master
杨杰 3 years ago
parent c3755c05c4
commit f86c251edb
  1. 16
      high-unionPay/App.vue
  2. 6
      high-unionPay/manifest.json
  3. 104
      high-unionPay/pages.json
  4. 4
      high-unionPay/pages/goods/goods-list/goods-list.vue
  5. 2
      high-unionPay/pages/goods/refuel/refuel.vue
  6. 20
      high-unionPay/pages/login/register.vue
  7. 41
      high-unionPay/pages/tabBar/user/user.vue
  8. 145
      high-unionPay/pages/unionPay/recharge-centre/recharge-centre.vue
  9. 30
      high-unionPay/pages/unionPay/recharge/recharge.vue
  10. 55
      high-unionPay/pages/unionPay/unionPay-entrance/unionPay-entrance.vue
  11. 28
      high-unionPay/pages/unionPay/unionPay.vue
  12. BIN
      high-unionPay/static/img/unionimg/hsg1.jpg
  13. BIN
      high-unionPay/static/img/unionimg/hsg2.jpg
  14. BIN
      high-unionPay/static/img/unionimg/hsg3.jpg
  15. BIN
      high-unionPay/static/img/unionimg/hsg4.jpg
  16. BIN
      high-unionPay/static/img/unionimg/union1.jpg
  17. BIN
      high-unionPay/static/img/unionimg/union2.jpg
  18. BIN
      high-unionPay/static/img/unionimg/upay1.jpg
  19. BIN
      high-unionPay/static/img/unionimg/upay2.jpg
  20. BIN
      high-unionPay/static/img/unionimg/upay3.jpg
  21. BIN
      high-unionPay/static/img/unionimg/upay4.jpg

@ -5,15 +5,15 @@
// brestUrl: 'http://192.168.3.4:9302/brest', // brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
// url: 'https://hsg.dctpay.com/crest', url: 'https://hsg.dctpay.com/crest',
// imgUrl: 'https://hsg.dctpay.com/filesystem/', imgUrl: 'https://hsg.dctpay.com/filesystem/',
// brestUrl : 'https://hsg.dctpay.com/brest', brestUrl : 'https://hsg.dctpay.com/brest',
// imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/',
// //
url: 'https://hsgcs.dctpay.com/crest', // url: 'https://hsgcs.dctpay.com/crest',
brestUrl : 'https://hsgcs.dctpay.com/brest', // brestUrl : 'https://hsgcs.dctpay.com/brest',
imgUrl: 'https://hsgcs.dctpay.com/filesystem/', // imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', // imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
userInfo: "", userInfo: "",
brestUserInfo : '', brestUserInfo : '',
openId: '', openId: '',

@ -83,13 +83,13 @@
"title" : "嗨森逛", "title" : "嗨森逛",
"router" : { "router" : {
"mode" : "hash", "mode" : "hash",
"base" : "/H5" "base" : "/unionPay"
}, },
"devServer" : { "devServer" : {
"port" : "", "port" : "",
"https" : true "https" : false
}, },
"domain" : "https://hsgcs.dctpay.com", "domain" : "https://hsg.dctpay.com",
"template" : "" "template" : ""
} }
} }

@ -1,6 +1,17 @@
{ {
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{ {
"path" : "pages/unionPay/unionPay",
"style" :
{
"navigationBarTitleText": "银联支付",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"enablePullDownRefresh": false
}
},{
"path": "pages/tabBar/home/home", "path": "pages/tabBar/home/home",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
@ -139,7 +150,7 @@
"backgroundColorTop": "#0083f5", "backgroundColorTop": "#0083f5",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"app-plus": { "app-plus": {
"titleNView": false, // // "titleNView": false, //
"subNVues": [{ "subNVues": [{
"id": "userTitleNvue", // "id": "userTitleNvue", //
"path": "pages/tabBar/user/subNvue/userTitleNvue", // "path": "pages/tabBar/user/subNvue/userTitleNvue", //
@ -463,8 +474,43 @@
} }
} }
,{
], "path" : "pages/unionPay/recharge/recharge",
"style" :
{
"navigationBarTitleText": "话费充值",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/unionPay/unionPay-entrance/unionPay-entrance",
"style" :
{
"navigationBarTitleText": "银联入口",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/unionPay/recharge-centre/recharge-centre",
"style" :
{
"navigationBarTitleText": "",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"enablePullDownRefresh": false
}
}
],
"subpackages": [{ "subpackages": [{
"root": "subPages", "root": "subPages",
"pages": [{ "pages": [{
@ -487,31 +533,31 @@
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"backgroundColorTop": "#ffffff", "backgroundColorTop": "#ffffff",
"backgroundColorBottom": "#ffffff" "backgroundColorBottom": "#ffffff"
},
"tabBar": {
"color": "#333333",
"selectedColor": "#0083f5",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages/tabBar/home/home",
"iconPath": "static/img/tabBar/home.png",
"selectedIconPath": "static/img/tabBar/home-on.png",
"text": "首页"
},
{
"pagePath": "pages/tabBar/category/category",
"iconPath": "static/img/tabBar/category.png",
"selectedIconPath": "static/img/tabBar/category-on.png",
"text": "导航"
},
{
"pagePath": "pages/tabBar/user/user",
"iconPath": "static/img/tabBar/user.png",
"selectedIconPath": "static/img/tabBar/user-on.png",
"text": "我的"
}
]
} }
// "tabBar": {
// "color": "#333333",
// "selectedColor": "#0083f5",
// "borderStyle": "black",
// "backgroundColor": "#ffffff",
// "list": [{
// "pagePath": "pages/tabBar/home/home",
// "iconPath": "static/img/tabBar/home.png",
// "selectedIconPath": "static/img/tabBar/home-on.png",
// "text": "首页"
// },
// {
// "pagePath": "pages/tabBar/category/category",
// "iconPath": "static/img/tabBar/category.png",
// "selectedIconPath": "static/img/tabBar/category-on.png",
// "text": "导航"
// },
// {
// "pagePath": "pages/tabBar/user/user",
// "iconPath": "static/img/tabBar/user.png",
// "selectedIconPath": "static/img/tabBar/user-on.png",
// "text": "我的"
// }
// ]
// }
} }

@ -110,7 +110,7 @@
// //
getCmsContent() { getCmsContent() {
let params = { let params = {
regionId: app.globalData.cityId, regionId: '500000',
categoryCode: 'CMS_WX_APPLETS_GOODS_LIST' categoryCode: 'CMS_WX_APPLETS_GOODS_LIST'
} }
getCmsContent(params).then(res => { getCmsContent(params).then(res => {
@ -134,7 +134,7 @@
} }
let pagenum = this.pageNum; let pagenum = this.pageNum;
let params = { let params = {
regionId: app.globalData.cityId, regionId: '500000',
pageNum: pagenum, pageNum: pagenum,
pageSize: this.pageSize, pageSize: this.pageSize,
displayArea: this.typeId, displayArea: this.typeId,

@ -391,7 +391,7 @@
let params = { let params = {
storeName: this.searname, storeName: this.searname,
distance: this.distanceNum, distance: this.distanceNum,
regionId: app.globalData.cityId, regionId: '500000',
oilNoName: this.onilName, oilNoName: this.onilName,
latitude: this.latitudeful, latitude: this.latitudeful,
longitude: this.longitudeful, longitude: this.longitudeful,

@ -9,11 +9,11 @@
</view> </view>
<view class="form re"> <view class="form re">
<view class="username"> <view class="username">
<view class="get-code" :style="{'color':getCodeBtnColor}" @click.stop="getCode()">{{getCodeText}}</view> <view class="get-code" style="color: #676767;" @click.stop="getCode()">{{getCodeText}}</view>
<input placeholder="请输入手机号" v-model="phoneNumber" placeholder-style="color: rgba(255,255,255,0.8);" /> <input placeholder="请输入手机号" v-model="phoneNumber" placeholder-style="color: #676767;" />
</view> </view>
<view class="code"> <view class="code">
<input placeholder="请输入验证码" v-model="code" placeholder-style="color: rgba(255,255,255,0.8);" /> <input placeholder="请输入验证码" v-model="code" placeholder-style="color: #676767;" />
</view> </view>
<!-- <view class="password"> <!-- <view class="password">
<input placeholder="请输入密码" v-model="passwd" password=true placeholder-style="color: rgba(255,255,255,0.8);"/> <input placeholder="请输入密码" v-model="passwd" password=true placeholder-style="color: rgba(255,255,255,0.8);"/>
@ -24,7 +24,7 @@
<view @tap="toLogin">已有账号立即登录</view> <view @tap="toLogin">已有账号立即登录</view>
</view> --> </view> -->
<image v-if="Typeid == 1" @click="openWx" :src="imagewxUrl+imgadres" class="wximg"></image> <!-- <image v-if="Typeid == 1" @click="openWx" :src="imagewxUrl+imgadres" class="wximg"></image> -->
</view> </view>
</view> </view>
@ -43,7 +43,7 @@
return { return {
phoneNumber: "", phoneNumber: "",
imagewxUrl: app.globalData.imageWxImg, imagewxUrl: app.globalData.imageWxImg,
imgadres:'wx.png', imgadres: 'wx.png',
code: '', code: '',
passwd: "", passwd: "",
getCodeText: '获取验证码', getCodeText: '获取验证码',
@ -149,13 +149,14 @@
}) })
if (this.isWeiXinLogin()) { if (this.isWeiXinLogin()) {
// //
location.href ='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa075e8509802f826&redirect_uri=https%3A%2F%2Fhsgcs.dctpay.com%2FH5%2Findex.html%23%2F&response_type=code&scope=snsapi_base&state=1#wechat_redirect' location.href =
}else{ 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa075e8509802f826&redirect_uri=https%3A%2F%2Fhsgcs.dctpay.com%2FH5%2Findex.html%23%2F&response_type=code&scope=snsapi_base&state=1#wechat_redirect'
} else {
uni.reLaunch({ uni.reLaunch({
url: '/pages/tabBar/home/home' url: '/pages/tabBar/home/home'
}) })
} }
} else { } else {
uni.showToast({ uni.showToast({
title: res.return_msg, title: res.return_msg,
@ -224,6 +225,7 @@
width: 50px; width: 50px;
height: 50px; height: 50px;
margin-left: 40%; margin-left: 40%;
margin-top: 250upx; margin-top: 90px;
margin-bottom: 40px;
} }
</style> </style>

@ -31,12 +31,12 @@
</button> </button>
<!-- #endif --> <!-- #endif -->
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<button class="erweima fotct aliitem font14" v-if="user.phone == null" @click="jumpH5Bding"> <!-- <button class="erweima fotct aliitem font14" v-if="user.phone == null" @click="jumpH5Bding">
<image src="../../../static/img/jingbi.png"></image> 充值金额 <image src="../../../static/img/jingbi.png"></image> 充值金额
</button> </button>
<button class="erweima fotct aliitem font14" v-else @click="toDeposit"> <button class="erweima fotct aliitem font14" v-else @click="toDeposit">
<image src="../../../static/img/jingbi.png"></image> 充值金额 <image src="../../../static/img/jingbi.png"></image> 充值金额
</button> </button> -->
<!-- #endif --> <!-- #endif -->
</view> </view>
<!-- 订单-余额 --> <!-- 订单-余额 -->
@ -65,7 +65,7 @@
<uni-badge style="width: 20px;position: absolute; right: 30%;" v-if="row.text == '我的卡券' && textnum " <uni-badge style="width: 20px;position: absolute; right: 30%;" v-if="row.text == '我的卡券' && textnum "
:text="textnum" type="error" size="normal"></uni-badge> :text="textnum" type="error" size="normal"></uni-badge>
<uni-badge style="width: 20px;position: absolute; right: 7%;" <uni-badge style="width: 20px;position: absolute; right: 53%;"
v-if="row.text == '我的优惠券' && textSend " :text="textSend" type="error" size="normal"></uni-badge> v-if="row.text == '我的优惠券' && textSend " :text="textSend" type="error" size="normal"></uni-badge>
<view class="img"> <view class="img">
<image :src="imagewxUrl+row.img"></image> <image :src="imagewxUrl+row.img"></image>
@ -164,11 +164,12 @@
} }
], ],
// //
mytoolbarList: [{ mytoolbarList: [
url: '/pages/goods/recording/recording?id=1', // {
text: '充值记录', // url: '/pages/goods/recording/recording?id=1',
img: 'user/mingxi.png' // text: '',
}, // img: 'user/mingxi.png'
// },
{ {
url: '/pages/goods/recording/recording?id=2', url: '/pages/goods/recording/recording?id=2',
text: '消费记录', text: '消费记录',
@ -243,15 +244,16 @@
}, },
onShow() { onShow() {
// if (app.globalData.userInfo) { // if (app.globalData.userInfo) {
this.findUser(); // this.findUser();
// } // }
if (!app.globalData.userInfo.isSetPayPwd) { if (!app.globalData.userInfo.isSetPayPwd) {
this.czList = [{ this.czList = [
url: '../../user/cardDes/cardDes', // {
text: '工会卡', // url: '../../user/cardDes/cardDes',
img: '../../../static/img/ghkpay.png' // text: '',
}, // img: '../../../static/img/ghkpay.png'
// },
{ {
url: '../../login/updatePas/updatePas', url: '../../login/updatePas/updatePas',
text: '设置密码', text: '设置密码',
@ -261,11 +263,12 @@
return; return;
} }
// '../../user/unionCard/unionCard' // '../../user/unionCard/unionCard'
this.czList = [{ this.czList = [
url: '../../user/cardDes/cardDes', // {
text: '工会卡', // url: '../../user/cardDes/cardDes',
img: '../../../static/img/ghkpay.png' // text: '',
}, // img: '../../../static/img/ghkpay.png'
// },
{ {
url: '../../login/updatePas/resetPas', url: '../../login/updatePas/resetPas',
text: '修改密码', text: '修改密码',

@ -0,0 +1,145 @@
<template>
<view>
<view class="width100 height100p backcorf06">
<view class="block">
<view class="content height60">
<input type="number" class="my flleft font18 fcorfff" placeholder="请输入充值号码" v-model="inputPhone" />
</view>
<view class="line1 width100 backcorfff"></view>
</view>
</view>
<view class="width90 font16 fcor333 fontwig6 mart40">
选择金额
</view>
<view class="list">
<view class="box" :class="{'on':100 == inputAmount}" @click="select(100)">
<view class="heTitle">100</view>
</view>
<view class="box" :class="{'on':200 == inputAmount}" @click="select(200)">
<view class="heTitle">200</view>
</view>
<view class="box" :class="{'on':300 == inputAmount}" @click="select(300)">
<view class="heTitle">300</view>
</view>
</view>
<view class="bombtn width94 font16">
<view class="width50 flleft payem">应付: {{inputAmount}}</view>
<view class="width50 flright paybtn">立即购买</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
typeId: '',
inputAmount: '',
inputPhone:''
}
},
onLoad(options) {
this.typeId = options.id;
if (this.typeId == 1) {
uni.setNavigationBarTitle({
title: '中国移动'
})
return;
}
if (this.typeId == 2) {
uni.setNavigationBarTitle({
title: '中国联通'
})
return;
}
if (this.typeId == 3) {
uni.setNavigationBarTitle({
title: '中国电信'
})
return;
}
},
methods: {
select(amoutinfos) {
this.inputAmount = amoutinfos;
},
}
}
</script>
<style lang="scss">
.block {
width: 94%;
padding: 60upx 3%;
.my {
width: 80%;
height: 120upx;
display: flex;
align-items: center;
}
.uni-input-placeholder {
color: #FFFFFF;
}
}
.list {
width: 94%;
margin-left: 3%;
display: flow-root;
justify-content: space-between;
padding: 20upx 0;
.box {
width: 30%;
margin-left: 1%;
margin-right: 2%;
margin-top: 20upx;
float: left;
height: 120upx;
line-height: 120upx;
justify-content: center;
align-items: center;
text-align: center;
box-shadow: 0upx 0upx 4upx #666666;
font-size: 36upx;
color: #089bf5;
&.on {
background-color: #089bf5;
color: #ffffff;
}
}
.heTitle {
width: 100%;
font-size: 15px;
}
}
.bombtn{
position: fixed;
height: 45px;
bottom: 20px;
border-radius: 6px;
.payem{
height: 45px;
line-height: 45px;
text-align: center;
background-color: #007AFF;
color: #FFFFFF;
border-radius: 6px 0 0 6px;
}
.paybtn{
height: 45px;
line-height: 45px;
text-align: center;
background-color: #F8A628;
border-radius: 0 6px 6px 0;
color: #FFFFFF;
}
}
</style>

@ -0,0 +1,30 @@
<template>
<view>
<image class="width100" mode="widthFix" src="../../../static/img/unionimg/upay3.jpg"></image>
<image class="width94 mart20" mode="widthFix" src="../../../static/img/unionimg/upay4.jpg" @click="jumprecent(1)"></image>
<image class="width94 mart10" mode="widthFix" src="../../../static/img/unionimg/upay2.jpg" @click="jumprecent(2)"></image>
<image class="width94 mart10" mode="widthFix" src="../../../static/img/unionimg/upay1.jpg" @click="jumprecent(3)"></image>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
//
jumprecent(item){
uni.navigateTo({
url: '../recharge-centre/recharge-centre?id='+ item
})
}
}
}
</script>
<style>
</style>

@ -0,0 +1,55 @@
<template>
<view>
<image class="width90 mart10" mode="widthFix" src="../../../static/img/unionimg/hsg4.jpg"
@click="jumprecharge(1)"></image>
<image class="width90 mart5" mode="widthFix" src="../../../static/img/unionimg/hsg2.jpg"
@click="jumprecharge(2)"></image>
<image class="width90 mart5" mode="widthFix" src="../../../static/img/unionimg/hsg1.jpg"
@click="jumprecharge(3)"></image>
<image class="width90 mart5" mode="widthFix" src="../../../static/img/unionimg/hsg3.jpg"
@click="jumprecharge(4)"></image>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
//
jumprecharge(item) {
if (item == 1) {
uni.navigateTo({
url: '../../goods/goods-list/goods-list?id=1'
})
return;
}
if (item == 2) {
uni.navigateTo({
url: '../../goods/refuel/refuel'
})
return;
}
if (item == 3) {
uni.navigateTo({
url: '../recharge/recharge'
})
return;
}
if (item == 4) {
uni.navigateTo({
url: '../../tabBar/user/user'
})
return;
}
}
}
}
</script>
<style>
</style>

@ -0,0 +1,28 @@
<template>
<view>
<image class="width90" mode="widthFix" src="../../static/img/unionimg/union1.jpg" @click="jumpunionpay"></image>
<image class="width90" mode="widthFix" src="../../static/img/unionimg/union2.jpg"></image>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
//
jumpunionpay(){
uni.navigateTo({
url:'unionPay-entrance/unionPay-entrance'
})
}
}
}
</script>
<style>
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Loading…
Cancel
Save