one requirement is to call WeChat Pay in the h5 page of app. How to do that? what is the process?
one requirement is to call WeChat Pay in the h5 page of app. How to do that? what is the process?
my solution is that H5 is bridged with APP. In the H5 payment button binding event, the Android/IOS method is called directly, and WeChat Pay is used to retrieve it with Android/IOS. After the payment result is called back to Android/IOS, APP calls the H5 event to display the result or jump to the page. If you build a bridge, you can check the @ JavascriptInterface annotation on your own, and you can easily call each other between APP and H5.
https://open.weixin.qq.com/cg.
in essence, APP tune WeChat Pay. As for how the embedded H5 communicates with your APP, it depends on how the logic is written.
Previous: What is the principle of the "stop button" of the browser?
Next: There are differences between the two branches of git, why can't they be merged?
...
if it s HTML rendering, I know how to use it, but the project needs to use the elementUI framework, and a lot of things are packaged. filters: { statusFormat: function(value) { if( value == 1){ return ; } ...
the data given by the backend is as follows: data:[ { id:1, name:"", checked:true, children:[ { id:11, name:"", checked:true ...
...
is working on a react project recently, which involves a problem of uploading images. Use formdata, but the API returns a newline character. I ve already passed the rules. Is there any great god to take a look at it? 3. 4. I would like to than...
after each login skip to the home page, part of the js becomes invalid. To solve this problem, I refresh the code once when I enter the home page as follows: home.vue mounted:function(){ location.reload() } but now the page is always refreshing...
A timestamp function is used on many pages HTML {{ scope.row.createTime|formatDate }} js import {formatDate} from @ assets js date.js filters:{ formatDate(time) { var date = new Date(time); return formatDate(date, yyy...
1. For the timestamp method found on the Internet, I put it separately in a js export function formatDate(timestamp) { var date = new Date(timestamp * 1000); 10*1000131000 Y = date.getFullYear() + - ; M = (date.getMon...
at present, the longitude and latitude can only be obtained by selecting the address of the drop-down box if I do not use the drop-down box to select the address that is typed by myself, how can I get the longitude and latitude of this address ...
it was like this at first " " <div v-for="item in list" @mouseover="hover()"> <span>{{item.icon}}< span> <span>{{item.text}}< span> <span v-show="false">< span>...
Page when I click OK, I will send the selected id to the background. HTML: <el-tree :data="data2" show-checkbox node-key="id" :default-expanded-keys="[1,4]" :default-checked-keys="[1,6]" :pr...
only main is introduced in homepage ...
token is set in the global interceptor. token, (request for landing page) ...
problem description now there is a need to generate a permission table something like this. The data sent back from the backend is of a tree structure, with five layers in the deepest layer and one layer in the shallowest layer. now I use the rec...