基于安卓小程序的网上团购商城APP|计算机毕业设计|小程序开发|商城小程序

69 阅读3分钟

一、个人简介

  • 💖💖作者计算机编程果茶熊
  • 💙💙个人简介:曾长期从事计算机专业培训教学,担任过编程老师,同时本人也热爱上课教学,擅长Java、微信小程序、Python、Golang、安卓Android等多个IT方向。会做一些项目定制化开发、代码讲解、答辩教学、文档编写、也懂一些降重方面的技巧。平常喜欢分享一些自己开发中遇到的问题的解决办法,也喜欢交流技术,大家有技术代码这一块的问题可以问我!
  • 💛💛想说的话:感谢大家的关注与支持!
  • 💕💕计算机编程果茶熊

二、前言

  • 在移动互联网全面普及的今天,居民的消费方式正经历从“到店”到“到手”的跃迁,从“单买”到“拼团”的裂变。基于安卓小程序的网上团购商城APP正是在这一背景下诞生的创新零售解决方案。它以轻量化的小程序形态嵌入国民级应用微信、支付宝,无需安装即可“随用随走”,突破了传统APP下载、注册、更新的高门槛,把团购这一原本需要重度运营的电商形态,下沉到三四线甚至县域市场。
  • 从宏观背景看,2023年我国实物商品网上零售额已突破14万亿元,占社会消费品零售总额的27.6%,但增速放缓至8.4%,流量红利见顶。与此同时,下沉市场用户规模超过6亿,却长期被“价高、品少、物流慢”所困扰。团购通过“集中订单+规模议价”天然契合价格敏感型需求;小程序则通过“社交裂变+即用即走”解决了获客与留存难题。两者结合,既能在存量竞争中挖掘增量,又能以低成本实现供给侧与需求侧的高效匹配。
  • 开发语言:Java+Python 数据库:MySQL 系统架构:B/S 后端框架:SpringBoot(Spring+SpringMVC+Mybatis)+Django 前端:Vue+HTML+CSS+JavaScript+jQuery

三、基于安卓小程序的网上团购商城APP-视频解说

基于安卓小程序的网上团购商城APP-视频解说

四、基于安卓小程序的网上团购商城APP-功能介绍

denglu.png

充值模块.png

点评模块.png

订单确认模块.png

个人信息模块.png

商品详情模块.png

首页模块.png

物流模块.png

新增地址模块.png

支付模块.png

五、基于安卓小程序的网上团购商城APP-代码展示

plugins { id 'com.android.application' }
android {
    compileSdk 34
    defaultConfig {
        applicationId "com.example.groupbuy"
        minSdk 24
        targetSdk 34
        versionCode 1
        versionName "1.0"
    }
    buildTypes { release { minifyEnabled false } }
    namespace "com.example.groupbuy"
}
dependencies {
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'androidx.recyclerview:recyclerview:1.3.2'
    implementation 'com.google.android.material:material:1.11.0'
}


<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <application
        android:allowBackup="true"
        android:label="团购小程序"
        android:supportsRtl="true"
        android:theme="@style/Theme.Material3.DayNight.NoActionBar">
        <activity android:name=".SplashActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name=".LoginActivity"/>
        <activity android:name=".MainActivity"/>
        <activity android:name=".DetailActivity"/>
        <activity android:name=".CartActivity"/>
        <activity android:name=".OrderListActivity"/>
    </application>
</manifest>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:padding="24dp"
    android:layout_width="match_parent" android:layout_height="match_parent">
    <EditText android:id="@+id/et_account" android:hint="账号"
        android:layout_width="match_parent" android:layout_height="wrap_content"/>
    <com.google.android.material.button.MaterialButton
        android:id="@+id/btn_login" android:text="登录"
        android:layout_width="match_parent" android:layout_height="wrap_content"/>
</LinearLayout>


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:padding="12dp"
    android:layout_width="match_parent" android:layout_height="wrap_content">
    <TextView android:id="@+id/tv_title" android:textSize="16sp"/>
    <TextView android:id="@+id/tv_price" android:textColor="#F44336"/>
</LinearLayout>

package com.example.groupbuy
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.groupbuy.data.DataM
import com.example.groupbuy.databinding.ActivityDetailBinding
class DetailActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val b = ActivityDetailBinding.inflate(layoutInflater)
        setContentView(b.root)
        val pid = intent.getStringExtra("id")!!
        val p = DataM.products.first { it.id == pid }
        b.tvTitle.text = p.title
        b.tvPrice.text = "拼团价 ¥${p.groupPrice}"
        b.btnAddCart.setOnClickListener {
            DataM.cart.add(p)
        }
        b.btnBuy.setOnClickListener {
            DataM.cart.add(p)
            startActivity(Intent(this, CartActivity::class.java))
        }
    }
}

package com.example.groupbuy
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.groupbuy.data.DataM
import com.example.groupbuy.databinding.ActivityCartBinding
class CartActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val b = ActivityCartBinding.inflate(layoutInflater)
        setContentView(b.root)
        val total = DataM.cart.sumOf { it.groupPrice }
        b.tvTotal.text = "¥$total"
        b.btnPay.setOnClickListener {
            DataM.orders.addAll(DataM.cart)
            DataM.cart.clear()
            startActivity(Intent(this, OrderListActivity::class.java))
            finish()
        }
    }
}

六、基于安卓小程序的网上团购商城APP-文档展示

论文.png

七、END

谢谢.png

💕💕计算机编程果茶熊