需要加入的文件
加入到目录php\addons\ewei_shopv2\payment\h5pay,这个需要新建
文件我会另外上传
下载地址(16条消息) 人人商城H5打包app需要的文件-PHP文档类资源-CSDN文库
需要修改的文件
php\addons\ewei_shopv2\static\js\dist\Ydb\YdbOnline.js
下面主要修改的是YDBOBJ.prototype.SetWxpayInfo方法,里面调用的pluses.payment
至于微信支付的显示,后台配置好就行
function YDBOBJ() {
this.YundabaoUA = navigator.userAgent.toLowerCase();
this.isIos = this.YundabaoUA.match(/(iphone|ipod|ipad);?/i);
this.isAndroid = this.YundabaoUA.match(/android/i);
this.isWindows = this.YundabaoUA.match(/windows/i);
this.siteUrl = core.options.siteUrl;
};
YDBOBJ.prototype.ExitApp = function () {
var Share = 'ExitApp()';
api.execScript({
script: Share
});
/*api.closeWidget({
silent : true
});*/
};
YDBOBJ.prototype.isWXAppInstalled = function (installstate) {
};
YDBOBJ.prototype.SetStatusBarStyle = function (colorvalue) {
};
YDBOBJ.prototype.Share = function (title, content, img, linkUrl) {
var config = {'apiKey': '', 'apiSecret': ''};
var shaer_confing = {
rect: {
h: 180
},
texts: {
cancel: '取消'
},
items: [{
text: '微信好友',
icon: 'widget://image/weifriend.png'
}, {
text: '微信朋友圈 ',
icon: 'widget://image/share_to_icon_wxq.png'
}
],
styles: {
bg: '#FFF',
column: 4,
itemText: {
color: '#000',
size: 15,
marginT: 4
},
itemIcon: {
size: 54
},