WePY changed dozens of lines of code to be compatible with Alipay applet

As early as the end of the 16th, there was an outflow of Alipay doing small programs, see "How do you think Alipay launched the" mini program "? " , On August 18 this year, the Alipay version of the small program was finally open for beta testing. It is not easy to get pregnant in October.

Then someone mentioned ISSUE to me:
image description

At this point my heart refused, but I still took a look at the document when I took a toilet and was shocked. It is exactly the same as the WeChat applet. The pregnant baby in October was pregnant with the twin brother of a WeChat applet.

There have been many places where the WeChat Mini Program has been vomited. If Alipay borrows the experience of the WeChat Mini Program to independently develop it, it will definitely be better, but it does not. It chose a memo-level copy. I believe all this is for the sake of developers, so developers do not have to develop two small programs, saving time and effort, directly in the global micro-letter search applet will wxreplace myalmost can run in Alipay small program. What a great spirit.

In order to express my admiration, I am coding, and after modifying dozens of lines of code in the WePY project, I can finally run several WePY WeChat applets DEMO on the Alipay applet.

image description

The experience steps are as follows:

# 安装预览版
$ npm i [email protected]

# 验证版本
$ wepy -v

# 生成 DEMO
$ wepy new demo

$ cd demo

# 生成微信小程序
$ wepy build

# 生成支付宝小程序
$ wepy build --output ant

# 测试其它DEMO
$ git clone [email protected]:wepyjs/wepy-weui-demo.git
$ git clone [email protected]:wepyjs/wepy-wechat-demo.git
$ cd xxxxx
$ wepy build --output ant

Finally, in the end, I can only put my admiration for the difficult Alipay applet in my code.

image description

Guess you like

Origin www.cnblogs.com/10manongit/p/12728754.html