个人小程序能做支付功能吗

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了个人小程序能做支付功能吗相关的知识,希望对你有一定的参考价值。

参考技术A

不能。

微信小程序支付功能页用于帮助插件完成支付,相当于wx.requestPayment的功能。插件使用支付功能,需要进行额外的权限申请,申请位置位于管理后台的设置项中。

另外,无论是否通过申请,主体为个人小程序在使用插件时,都无法正常使用插件里的支付功能。

扩展资料

支付功能页需要插件开发者在插件所有者小程序中提供一个函数来响应插件中的支付调用。

在插件中跳转到支付功能页时,这个函数就会在合适的时机被调用,来帮助完成支付。如果不提供功能页函数,功能页调用将通过fail事件返回失败。

功能页函数不应require其他非functional-pages目录中的文件,其他非functional-pages目录中的文件也不应require这个目录中的文件。这样的require调用在未来将不被支持。

这个目录和文件应当被放置在插件所有者小程序代码中(而非插件代码中),它是插件所有者小程序的一部分(而非插件的一部分)。

 如果需要新增或更改这段代码,需要发布插件所有者小程序,才能在正式版中生效;需要重新预览插件所有者小程序,才能在开发版中生效。

参考资料来源:微信小程序——支付功能页

    官方服务
      官方网站官方网站

支付宝小程序Swiper 滚动图 带圆点和跳转方式

参考技术A ```

<!-- 滚动图 -->

<view class="swiper" style="position:relative">

<swiper autoplay="true" circular="true" onChange="currentHandle">

        <block a:for="swiperList">

          <swiper-item class="swiper-box">

            <view class="swiper-item" style="width:100%;height:300rpx">

                <!-- lazy-load根据需要 onTap可以点击图片跳转 data-url绑定到跳转的链接-->

              <image lazy-load="true" mode="scaleToFill" src="item.image" style="display:flex;width:100%;height:300rpx"

                onTap="swiper" data-url="item.url" data-index='index' />

            </view>

          </swiper-item>

        </block>

      </swiper>

    <!-- 圆点 -->

      <view class="swiper_dot">

        <view class="trans MR10 current === index ?'active': ''" a:for="swiperList" a:key="index"></view>

      </view>

</view>

```

```

data()

    swiperList:[

       

            image:'',//图片的路径

            url:""//要跳转的路径

        ,

               

            image:'',

            url:""

       

    ],

    current: 0,//初始化dot

,

//监听current

currentHandle(e)

console.log(e)

    //改变current的值

    let current = e.detail

    this.setData(

      current

    )

,

```

```

.swiper-box

  padding: 0 30rpx;



.swiper-item

  border-radius: 10rpx;

  overflow: hidden;



.swiper_dot

  display: flex;

  flex: 1;

  justify-content: center;

  position: absolute;

  bottom: 16rpx;

  left: 42%;//通过绝对定位 在滚动图的正下方 具体看自己



.MR10

  margin-right: 10rpx;



.trans

  width: 23rpx;

  height: 8rpx;

  background-color: #ffffff70;

  border-radius: 3.5rpx;

  transition: width 0.5s linear;



.active

  background-color: #ffffffd7;

  width: 67rpx;

  transition: width 0.5s linear;



```

---转自我的自个的

支付宝小程序Swiper 滚动图 带圆点和跳转方式_多甘范科夫斯基的博客-CSDN博客

以上是关于个人小程序能做支付功能吗的主要内容,如果未能解决你的问题,请参考以下文章

免费的微信小程序能用吗?安全吗?

小程序自己可以做吗?

微信小程序能一键开发吗?

微信小程序商城怎么做?

如何开通微信小程序支付功能

微信里的小程序有哪些功能,谁能给一个具体详细的回答