# uniappvue2 **Repository Path**: zhongyingtong_1/uniappvue2 ## Basic Information - **Project Name**: uniappvue2 - **Description**: niapp +vue2 网约车小程序 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-08-28 - **Last Updated**: 2022-12-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1.[](https://github.com/vant-ui/vant-weapp/releases) "usingComponents": { "van-button": "/wxcomponents/vant-weapp/button/index" } 2.条件编译 [](https://blog.csdn.net/m0_64409387/article/details/126014313) // #ifdef MP-WEIXIN 在微信小程序平台下会编译的代码 // #endif // #ifndef MP-WEIXIN 除了在微信小程序以外平台 都会编译的代码 // #endif // #ifdef MP-WEIXIN || H5 在微信小程序 或 H5平台 下会编译的代码 // #endif // #ifdef MP-WEIXIN && H5 微信小程序平台 且 H5平台 注意没有这种说法!!! // #endif 3.在uni中使用vuex [](https://blog.csdn.net/qq_51741194/article/details/124559734) 4.uni_modules [](https://uniapp.dcloud.net.cn/component/uniui/quickstart.html) 5.cli 支付宝小程序 # npm npm run build:mp-alipay npm run dev:mp-alipay # yarn yarn build:mp-alipay yarn dev:mp-alipay # 监听文件变化且启用压缩 yarn build:mp-alipay -watch # vue3项目 yarn build:mp-alipay -w 6.支付宝授权 [](https://blog.csdn.net/weixin_38657051/article/details/119909575) [](https://opendocs.alipay.com/mini/api/getphonenumber) 7.支付 [](https://uniapp.dcloud.net.cn/api/plugins/payment.html#requestpayment) 8.请求 [](https://uniapp.dcloud.net.cn/api/request/request.html#request) 9.自带组件 [](https://uniapp.dcloud.net.cn/component/uniui/uni-card.html) 10. 应用配置 [](https://uniapp.dcloud.net.cn/collocation/manifest.html#devserver)