微信小程序源码分享

现在的微信小程序非常火爆,网上也有很多学习资源,但是源码资源还是很少的,目前推出一款,关于社交、爬虫、资源、游戏等结合与一身的源码,供学习使用。

一、源码展示

<template>
  <view class="boy">
<!--    <scroll-view class="scrool-more" style="height: 100%" scroll-y="true" scroll-with-animation="true">-->


<!--    </scroll-view>-->

    <view v-if="openstatus==='0'" class="fadeInToptBig animated">
      <scroll-view class="scrool-more" style="height: 70%" scroll-y="true" scroll-with-animation="true" bindscrolltolower="onReachBottom">
        <view  :style="{'height':scrollHeight+'px'}" style="overflow: hidden;">
        <movable-refresh ref="movableRefresh" :scrollHeight="scrollHeight" :noMore="noMore"  :showGoTop="true" :isRefresh="false"
                         @refresh="refresh" @loadMore="loadMore" @="">
          <uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :current="current"
                          field="content">
            <swiper class="swiper-box" @change="change" :autoplay='true' previous-margin="20rpx" next-margin="250rpx">
              <swiper-item v-for="(item, index) in 1" :key="index">
                <view>
                  <image src="https://img.zcool.cn/community/017fff578fa1890000012e7e9ec112.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100" @click="enlargeImage(item.networkPath,index)" mode="aspectFill"
                         style="height: 500rpx;width: 700rpx; border-radius:70rpx"/>
                </view>
              </swiper-item>
            </swiper>
          </uni-swiper-dot>
          <uni-notice-bar show-icon scrollable :text="mage"/>

          <view class="fk-flex">
            <!-- 左侧功能(每日签到、个人排位、排行榜、公告、背包) -->
            <view class="fk-grid fk-margin-r10">
              <view class="fk-bg fk-grid-item fk-shadow animated fadeInLeftBig fk-friends-bg" @click="onActivaJourney">
                <text class="fk-grid-item-title">好友对战</text>
              </view>
              <view class="fk-bg fk-grid-item fk-shadow animated fadeInLeftBig fk-personal-bg" @click="onMymessage">
                <text class="fk-grid-item-title">消息通知</text>
              </view>
              <view class="fk-bg fk-grid-item fk-shadow animated fadeInLeftBig fk-rank-bg" @click="showRankingList">
                <text class="fk-grid-item-title">亦静播放</text>
              </view>
            </view>

            <!-- 右侧功能(今日答题、好友PK、团队PK、设置) -->
            <view class="fk-grid">
              <view class="fk-bg fk-grid-item fk-shadow animated fadeInRightBig fk-daily-bg" @click="feedback">
                <text class="fk-grid-item-title">用户反馈</text>
              </view>
              <view class="fk-bg fk-grid-item fk-shadow animated fadeInRightBig fk-setting-bg" @click="reportUsers">
                <text class="fk-grid-item-title">举报用户</text>
              </view>
            </view>
          </view>

          <view v-for="(item,index) in particularsList" :key="index">
            <guangchang-index :data="item" :index:="index"/>
          </view>
        </movable-refresh>
      </view>
      </scroll-view>
      <view class="btnsubref">
        <!--      <button class="btn-sub2" :disabled="disabled===true?'disabled':''" type="warn" @click="onSubmit">发布动态</button>-->
        <image src="/static/image/bianji.png" style="width: 80rpx; height: 80rpx;border-radius: 40rpx" mode="aspectFill" @click.stop="onOpenFabu"></image>
      </view>
    </view>
    <view v-if="openstatus==='1'">
      <view class="myinv">
        <view class="myinvbody" @click="onReviewpage">
          <image src="/static/image/shouye/jubaojieguo.png" style="width: 100rpx; height: 100rpx;" mode="aspectFill"></image>
          <h2 class="myziy">使用说明</h2>
        </view>
        <view class="myinvbody" @click="onActiva" v-if="openstatus==='0'">
          <image src="/static/image/shouye/yuelaolaile.png" style="width: 100rpx; height: 100rpx;" mode="aspectFill"></image>
          <h2 class="myziy">信息填写①</h2>
        </view>
        <view class="myinvbody" @click="onActivaJourney">
          <image src="/static/image/shouye/wencaiboyi.png" style="width: 100rpx; height: 100rpx;" mode="aspectFill"></image>
          <h2 class="myziy">最强大脑②</h2>
        </view>
        <view class="myinvbody" @click="onMatchreslu">
          <!--              <image src="/static/image/shouye/peiduijieguo.png" style="width: 100rpx; height: 100rpx;" mode="aspectFill"></image>-->
          <!--              <h2 class="myziy">匹配结果③</h2>-->
          <view style="display: flex">
            <view>
              <image src="/static/image/shouye/peiduijieguo.png" style="width: 95rpx; height: 100rpx;" mode="aspectFill"></image>
              <h2 class="myziy">猜盲盒</h2>
            </view>
            <view v-if="messa" style="background-color: crimson;margin-left: -30rpx;margin-top:15rpx; width: 10px;height: 10px;border-radius: 50%;"></view>
          </view>
        </view>
        <view class="myinvbody" @click="onMymessage">
          <view>
            <image src="/static/image/shouye/wodexiaoxi.png" style="width: 95rpx; height: 100rpx;" mode="aspectFill"></image>
            <h2 class="myziy">我的消息</h2>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

二、信息发布代码

<template>
  <view>
    <view>
        <uni-list-item style="height: 50rpx">
          <template v-slot:header>
            <view style="display: flex;height: 250rpx">
              <view >
                <image :src="fileLists[0].networkPath" mode="aspectFill"
                       style="height: 250rpx ;width:250rpx;border-radius:50rpx"/>
              </view>
              <view>
                <view class="pagetext">
                  <h1 class="pageH1" style="width:200rpx ;padding-left: 20rpx;color: #090808;font-size: 35rpx;font-weight: bold">
                    {{ form[0].name }}</h1>
                </view>
                <view class="pagetext1">
                  <h1 class="pageH1" style="padding-left: 20rpx;padding-top:5rpx;color: #a9a8a8;font-size: 30rpx;">{{
                      form[0].viageName
                    }}</h1>
                </view>
                <view class="pagetext1">

                  <view style="display: flex;width: 100%">
                    <text user-select="true" style="padding-left: 20rpx;padding-top:5rpx;color: #a9a8a8;font-size: 30rpx;margin-right:30rpx" >{{form[0].number}}</text>
                    <button class="mini-btn" type="primary" size="mini" @tap="call_phone('' + form[0].number)">拨打</button>
                  </view>
                </view>
                <view v-if="form[0].priceText!==''&&form[0].priceText!==null" class="pagetext2">
                  <h5 style="color: #e43d33;font-size: 50rpx;padding-top: 25rpx">¥{{ form[0].priceText }}</h5>
                </view>
                <view v-if="form[0].price!==''&&form[0].price!==null&&form[0].priceText===''" class="pagetext2">
                  <h5 style="color: #e43d33;font-size: 50rpx;padding-top: 25rpx">¥{{ form[0].price===0.0?'可议':form[0].price+'/天' }}</h5>
                </view>

                <view v-if="form[0].priceMonth!==''&&form[0].priceMonth!==null&&form[0].price===null" class="pagetext2">
                  <h5 style="color: #e43d33;font-size: 50rpx;padding-top: 25rpx">¥{{ form[0].priceMonth }}</h5>
                </view>
                <view v-if="form[0].priceYear!==''&&form[0].priceYear!==null&&form[0].price===null&&form[0].priceMonth===null" class="pagetext2">
                  <h5 style="color: #e43d33;font-size: 50rpx;padding-top: 25rpx">¥{{ form[0].priceYear }}</h5>
                </view>
              </view>
            </view>
          </template>
        </uni-list-item>
      </view>

      <view v-for="(item_,index) in form" :key="index">
        <uni-list-item style="height: 50rpx">
          <template v-slot:header>
            <scroll-view class="uni-swiper-tab" scroll-x style="height: 150rpx">
              <view style="display: flex;height: 250rpx;white-space: nowrap;" @click="onClick(item_)">

                <view style="margin-left: 20rpx">
                  <h5 style="padding-left: 30rpx;padding-bottom: 40rpx;color: #d7d7d7" >发布小区</h5>
                  <view style="display: flex">
                    <div style="width: 15rpx;height: 40rpx;margin-right: 10rpx"></div>
                    <h5 style="color: #8e8e92;font-size: 35rpx">{{ item_.viageName }}</h5>
                  </view>
                </view>

                <view style="margin-left: 20rpx" v-if="item_.priceText!==''&&item_.priceText!==null">
                  <h5 style="padding-left: 30rpx;padding-bottom: 40rpx;color: #d7d7d7;width: 130rpx">区间价格</h5>
                  <view style="display: flex">
                    <h5 style="color: #8e8e92;font-size: 35rpx">¥{{ item_.priceText }}</h5>
                  </view>
                </view>

                <view style="margin-left: 20rpx" v-if="item_.price!==''&&item_.price!==null&&item_.priceText===''">
                  <h5 style="padding-left: 30rpx;padding-bottom: 40rpx;color: #d7d7d7">日价格</h5>
                  <view style="display: flex">
                    <div style="width: 15rpx;height: 40rpx;border-right: #d7d7d7 solid 1px;margin-right: 10rpx"></div>
                    <h5 style="color: #8e8e92;font-size: 35rpx">¥{{ item_.price }}</h5>
                  </view>
                </view>


                <view style="margin-left: 20rpx" v-if="item_.priceMonth!==''&&item_.priceMonth!==null">
                  <h5 style="padding-left: 30rpx;padding-bottom: 40rpx;color: #d7d7d7">月价格</h5>
                  <view style="display: flex">
                    <div style="width: 15rpx;height: 40rpx;border-right: #d7d7d7 solid 1px;margin-right: 10rpx"></div>
                    <h5 style="color: #8e8e92;font-size: 35rpx">¥{{ item_.priceMonth }}</h5>
                  </view>
                </view>

                <view style="margin-left: 20rpx" v-if="item_.priceYear!==''&&item_.priceYear!==null">
                  <h5 style="padding-left: 30rpx;padding-bottom: 40rpx;color: #d7d7d7" >年价格</h5>
                  <view style="display: flex">
                    <div style="width: 15rpx;height: 40rpx;border-right: #d7d7d7 solid 1px;margin-right: 10rpx"></div>
                    <h5 style="color: #8e8e92;font-size: 35rpx">¥{{ item_.priceYear }}</h5>
                  </view>
                </view>
                <view style="margin-left: 20rpx">
                  <h5 style="padding-left: 30rpx;padding-bottom: 40rpx;color: #d7d7d7" >资源类型</h5>
                  <view style="display: flex">
                    <div style="width: 15rpx;height: 40rpx;border-right: #d7d7d7 solid 1px;margin-right: 10rpx"></div>
                    <h5 style="color: #8e8e92;font-size: 35rpx">{{ item_.sharr }}</h5>
                  </view>
                </view>
              </view>
            </scroll-view>
          </template>
        </uni-list-item>
      </view>
      <view class="content" style="background-color: #ffffff">

<!--        <view class="divider"/>-->
          <uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :current="current"
                        field="content">
            <swiper class="swiper-box" @change="change" :autoplay='true' :current="swiperDotIndex" previous-margin="20rpx" next-margin="250rpx">
              <swiper-item v-for="(item, index) in fileLists" :key="index">
  <!--                <image @click="enlargeImage(item.networkPath)" mode="aspectFill" style="width: 85%;height: 600rpx;"-->
  <!--                       :src="item.networkPath"></image>-->
                  <view>
                    <image :src="item.networkPath" @click="enlargeImage(item.networkPath,index)" mode="aspectFill"
                           style="height: 750rpx;width: 450rpx; border-radius:70rpx"/>
                  </view>
              </swiper-item>
            </swiper>
          </uni-swiper-dot>

        <view  v-for="(item_,index) in form" :key="index">
          <h5 class="daileH" >详情描述</h5>
          <h5 class="daileH1">{{ item_.description }}</h5>
        </view>
      </view>
    </view>
</template>

三、效果图

请添加图片描述

请添加图片描述
请添加图片描述

请添加图片描述

请添加图片描述
请添加图片描述
百度云链接:https://pan.baidu.com/s/1ZoM5BxhrvIXNCcY6BoY64g
提取码:pn4b
在这里插入图片描述

  • 37
    点赞
  • 43
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
vs 2017 git成功 miyao 亲测可行 1.注册 ssh key 本地方生成 复制到远端 2. 远端建立仓库 3.在 网站上点击sourcetree 会自动打开本地sourcetree 。 本地先安装 好sourcetree ,并注册一下 4.sourcetree拉取远端文件 5.在vs中打开 自动可以操作了 在线购物商城微信小程序前端和后台源码 源码描述: 一、源码特点 在线购物商城微信小程序前端和后台数据管理系统源码,使用.net开发,测试无Bug,感兴趣的欢迎下载 二、微信小程序功能 1、 会员自动授权登录注册 2、 产品分类、产品检索、产品筛选、产品详情、 3、 广告展示、 4、 购物车 6、 收货地址 7、 订单提交微信支付 8、 订单检索等功能 三、后台功能 1、 后台会员系统:会员列表、会员基本信息,积分明细、余额明细、购物记录、收货地址(在系统设置的频道管理可以开启此功能) 2、 后台系统设置:导航栏目、分类管理、 OAuth设置 、支付设置、扩展字段 、频道管理、模型管理、站点基本信息等功能设置 3、 订单管理:在线购物订单查看、发货、确认 4、 产品管理:分类管理 、产品管理 、 积分产品管理 四、注意事项 1、开发环境为Visual Studio 2010,数据库为SQLServer2008,使用.net 4.0开发。 2、管理员登陆名:admin 密码:admin888 3、默认数据库连接字符串在webconfig配置文件中修改 4、DB文件夹中是数据库脚本文件,使用sqlerver工具运行即可 5、cmsWeb文件夹里面是api接口后台 xcx文件夹是微信小程序 DataBase文件夹是数据库文件
vs 2017 git成功 miyao 亲测可行 1.注册 ssh key 本地方生成 复制到远端 2. 远端建立仓库 3.在 网站上点击sourcetree 会自动打开本地sourcetree 。 本地先安装 好sourcetree ,并注册一下 4.sourcetree拉取远端文件 5.在vs中打开 自动可以操作了 在线购物商城微信小程序前端和后台源码 源码描述: 一、源码特点 在线购物商城微信小程序前端和后台数据管理系统源码,使用.net开发,测试无Bug,感兴趣的欢迎下载 二、微信小程序功能 1、 会员自动授权登录注册 2、 产品分类、产品检索、产品筛选、产品详情、 3、 广告展示、 4、 购物车 6、 收货地址 7、 订单提交微信支付 8、 订单检索等功能 三、后台功能 1、 后台会员系统:会员列表、会员基本信息,积分明细、余额明细、购物记录、收货地址(在系统设置的频道管理可以开启此功能) 2、 后台系统设置:导航栏目、分类管理、 OAuth设置 、支付设置、扩展字段 、频道管理、模型管理、站点基本信息等功能设置 3、 订单管理:在线购物订单查看、发货、确认 4、 产品管理:分类管理 、产品管理 、 积分产品管理 四、注意事项 1、开发环境为Visual Studio 2010,数据库为SQLServer2008,使用.net 4.0开发。 2、管理员登陆名:admin 密码:admin888 3、默认数据库连接字符串在webconfig配置文件中修改 4、DB文件夹中是数据库脚本文件,使用sqlerver工具运行即可 5、cmsWeb文件夹里面是api接口后台 xcx文件夹是微信小程序 DataBase文件夹是数据库文件

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值