银花优选微信小程序修改后的最新版本代码

This commit is contained in:
ss001
2026-02-07 16:22:31 +08:00
commit c00caf5744
516 changed files with 41796 additions and 0 deletions

102
pages/pay/index.js Normal file
View File

@@ -0,0 +1,102 @@
var app = getApp()
var that=null
var sopenFrame=null
var areas = null;
Page( {
data: {
loadingHidden:false,
ResultId:0
},
onReady: function(e) {
},
onLoad: function(options) {
that = this
if(options.id){
that.setData({
ResultId:options.id
})
}
that.rdata()
},rdata: function() {
wx.login({
success: function (resc) {
if (resc.code) {
var code=resc.code;
wx.request({
url: app.globalData.apiurl + "/xapiajax.ashx",
data: {
action:"getpaydata",
id:that.data.ResultId,
code:code
},
method:"POST",
dataType:"json",
header: {
"content-type": "application/x-www-form-urlencoded" // 默认值
},
success (res) {
that.setData({
loadingHidden:true
})
if(res.data.status==1){
wx.requestPayment({
timeStamp: res.data.timeStamp,
nonceStr: res.data.noncestr,
package: res.data.package,
signType: res.data.signType,
paySign: res.data.paySign,
success (res0) {
wx.showToast({
title: "支付成功",
icon: "none",
duration: 3000
})
},
fail (res0) {
wx.request({
url: app.globalData.apiurl + "/xapiajax.ashx",
data: {
action:"CancelOrderPay",
id:that.data.ResultId
},
method:"POST",
dataType:"json",
header: {
"content-type": "application/x-www-form-urlencoded" // 默认值
},
success (res) {
},
fail (res0) {
}
})
/* wx.showToast({
title: JSON.stringify(res0),
icon: "none",
duration: 3000
})*/
}
})
}else{
wx.showToast({
title: res.data.msg,
icon: "none",
duration: 3000
})
}
}
})
}
}
})
},launchAppError: function() {
}
})

3
pages/pay/index.json Normal file
View File

@@ -0,0 +1,3 @@
{
"navigationBarTitleText": "支付"
}

11
pages/pay/index.wxml Normal file
View File

@@ -0,0 +1,11 @@
<view class="container" wx:if="{{loadingHidden}}">
<button class="mybtn" app-parameter="WeChat" open-type="launchApp" binderror="launchAppError" >返回APP</button>
</view>
<loading hidden="{{loadingHidden}}">
加载中...
</loading>

75
pages/pay/index.wxss Normal file
View File

@@ -0,0 +1,75 @@
page{
background: #ccc;
}
.container {
position: relative;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-flex-flow: column;
width: 100%;
height: 100%;
font-size: 14px;
color: #000;
padding: 0.8em;
}
.mybtn{
width:100%;height:2.5em; line-height: 2.5em; background:linear-gradient(to right,#00B050,#00B050); color:#fff;border-radius:0.8em;
}
.footer{
position: fixed;
z-index: 10000;
bottom:0;
left:0;
width: 100%;
text-align: center;
padding: 0;
}
.footer button{width:100%;height:2.5em; line-height: 2.5em; background:linear-gradient(to right,#00B050,#00B050); color:#fff;border-radius:0;}
.myaddress-box{display: flex;flex-direction: column;flex-grow: 1; align-items: center;justify-content: center;width:100%; padding:0; box-sizing: border-box;}
.myaddress-item{width:100%; padding:0.8em; box-sizing: border-box;border:1px solid #f1f1f1; background-color:#fff;border-radius:0.5em;}
.myaddress-contact{width:100%;}
.myaddress-bottom{width:100%;margin-top:0.5em; display: flex;flex-direction: row; align-items: center;justify-content: center;}
.myaddress-bottom .myaddress-btn{width:100%;}
.myaddress-bottom .myaddress-btn image{width:1.2em;height:1.2em; vertical-align: middle;}
.fromtitle{width:100%; background-color:#fff; padding:1em; box-sizing: border-box;}
.fromtitle text{float:left;}
.fromtitle image{float:left;width:1.2em; height:1.2em;}
.fromtitle image.arrowdown{float:right; }
.myaddress-box .frombody{padding:0.5em 1em;width:100%; display: flex;flex-direction: column; align-items: center; background-color:#fff;box-sizing: border-box;}
.myaddress-box .frombody view{position: relative;float:left; width:100%;display: flex;flex-direction:row;border-bottom:1px solid #f1f1f1;padding:0.5em 0; box-sizing: border-box;}
.myaddress-box .frombody view text{padding:0;height:2.5em; line-height: 2.5em;}
.myaddress-box .frombody view input{width:14em;height:2.5em; line-height: 2.5em;}
.myaddress-box .frombody view.area input{width:12.8em;}
.myaddress-box .frombody view.area image{position: absolute; top:1.1em; right:0; width:1.2em;height:1.2em;}
.myaddress-box .frombody view.upimage_box text{width: 12.8em;}
.myaddress-box .frombody view.upimage_box .image{border: 0;}
.myaddress-box .frombody view.upimage_box .image image{width:4em;height:4em;border:1px solid #f1f1f1;}
.myaddress-box .frombody view.upimage0_box{flex-direction: column;}
.myaddress-box .frombody view.upimage0_box view{border: 0;}
.myaddress-box .frombody view.upimage0_box .upimage0_box_to{flex-direction:row}
.myaddress-box .frombody view.upimage0_box .upimage0_box_to .image{flex-direction:column}
.myaddress-box .frombody view.upimage0_box .upimage0_box_to .image text{font-size: 0.85em;}
.myaddress-box .frombody view.upimage0_box .upimage0_box_to .image image{width:4em;height:4em;border:1px solid #f1f1f1;}
.Hidden_box{ position: fixed;display: flex;align-items: center; justify-content: center; top:0; left:0; width:100%;height:100vh; background:rgba(0, 0, 0, 0.5);z-index: 2;}
.section{position: relative; bottom:0; width:90%; height:20em; padding: 0 1em; background-color: #fff; box-sizing: border-box; border-radius:0.5em;}
.section .close{position: absolute; right:0.5em; top:0.5em; width:1.5em; height:1.5em; padding:0.15em; background-color:#fff;border:1px solid #f1f1f1;border-radius:50%;box-sizing:border-box;}
.section .close image{width:100%;height:100%;}
.section-title{width:100%;height:2.5em; line-height: 2.5em; text-align: center; font-weight: 600;border-bottom:1px solid #f1f1f1;}
.section-body{width:100%;}
.section-body view{width:100%;display: flex;flex-direction: row; align-items: center;border-bottom:1px solid #f1f1f1;padding:0.5em 0; box-sizing: border-box; line-height:1.5em;}
.section-body view text{color:#000;}
.section-body view .picker_hx{color:#939393;line-height:2.5em;}
.section-body view .picker_hx view{ float:left; position: relative; display: block; border:0;min-width:10em; padding-left:1em; box-sizing: border-box;border:1px solid #dfdfdf;border-radius:0.3em;line-height:2em;}
.section-body view .picker_hx image{position: absolute; top:1em;right:0.6em; width:1.2em;height:1.2em;}
.myaddress-box .frombody view.area .picker_hx{display: flex;flex-direction:row;}
.myaddress-box .frombody view.area .picker_hx input{position: absolute; top:0.6em;right:1.6em;}
.center{
width: 4em;
height: 4em;
}
.nodata{padding-top:1em; text-align: center; line-height: 1.5em; color:#939393;}
.nodata image {
width: 80px;
height: 80px;
}