修改支付方式

master
yaya 2022-08-02 21:50:23 +08:00
parent 470e0948bb
commit 06efd184e7
4 changed files with 24 additions and 23 deletions

View File

@ -3,5 +3,5 @@
<view class="title">微信授权页面</view> <view class="title">微信授权页面</view>
<view class="describe">此页面是微信授权页面,点击下方按钮弹出授权或跳转页面</view> <view class="describe">此页面是微信授权页面,点击下方按钮弹出授权或跳转页面</view>
<button class="btn" open-type='getUserInfo' wx:if="{{canIUse}}" bindtap="getUserProfile">点击微信授权</button> <button class="btn" open-type='getUserInfo' wx:if="{{canIUse}}" bindtap="getUserProfile">点击微信授权</button>
<navigator wx:if="{{!canIUse}}" class="btn" url="/pages/auth/auth" open-type="reLaunch" hover-class="other-navigator-hover">已经授权点击调转</navigator> <navigator wx:if="{{!canIUse}}" class="btn" url="/pages/index/index" open-type="reLaunch" hover-class="other-navigator-hover">已经授权点击调转</navigator>
</view> </view>

View File

@ -71,7 +71,7 @@ Page({
} }
this.setData({ this.setData({
curCaseIndex: event.detail.value, curCaseIndex: event.detail.value,
isShif: false, isShif: this.data.threeList[event.detail.value].type=='forest_management'?true:false,
senIndex: 0, senIndex: 0,
addressIndex:0, addressIndex:0,
priceList: {}, priceList: {},
@ -285,7 +285,7 @@ Page({
}, },
success(res) { success(res) {
if (res.data.result == 'success') { if (res.data.result == 'success') {
var threeList = JSON.parse(res.data.data).cases; var threeList = JSON.parse(res.data.data).cases;
if(threeList[0].type=='forest_management'){ if(threeList[0].type=='forest_management'){
that.setData({ that.setData({
isXiangm:true isXiangm:true
@ -360,14 +360,14 @@ Page({
var that = this var that = this
var tree_items = [] var tree_items = []
var management_items = [] var management_items = []
if (this.data.newDo_type == 'afforestation') { if (this.data.newDo_type == 'afforestation') {
for (var p in this.data.priceList) { for (var p in this.data.priceList) {
tree_items.push({ tree_items.push({
coding: p, coding: p,
amount: this.data.priceList[p].num amount: this.data.priceList[p].num
}) })
} }
} else { } else {
for (var p in this.data.priceList) { for (var p in this.data.priceList) {
management_items.push({ management_items.push({
id: this.data.priceList[p].id, id: this.data.priceList[p].id,

View File

@ -1,7 +1,8 @@
{ {
"description": "项目配置文件", "description": "项目配置文件详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"packOptions": { "packOptions": {
"ignore": [] "ignore": [],
"include": []
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
@ -36,16 +37,16 @@
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [], "packNpmRelationList": [],
"minifyWXSS": true, "minifyWXSS": true,
"showES6CompileOption": false "showES6CompileOption": false,
"useStaticServer": true,
"disableUseStrict": false,
"useCompilerPlugins": false,
"minifyWXML": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.19.2", "libVersion": "2.19.2",
"appid": "wxf0ac33e1fb0d8358", "appid": "wxf0ac33e1fb0d8358",
"projectname": "tanzhongheY", "projectname": "tanzhongheY",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"condition": { "condition": {
@ -62,5 +63,9 @@
"miniprogram": { "miniprogram": {
"list": [] "list": []
} }
},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
} }
} }

View File

@ -1,15 +1,8 @@
{ {
"setting": {}, "setting": {
"compileHotReLoad": true
},
"condition": { "condition": {
"plugin": {
"list": []
},
"game": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": { "miniprogram": {
"list": [ "list": [
{ {
@ -39,9 +32,12 @@
{ {
"name": "pages/user/user", "name": "pages/user/user",
"pathName": "pages/user/user", "pathName": "pages/user/user",
"query": "",
"scene": null "scene": null
} }
] ]
} }
} },
"projectname": "%E7%A2%B3%E4%B8%AD%E5%92%8C3",
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
} }