【实训项目】“优品果园”-线上水果商城小程序

2023-10-15 12:45

本文主要是介绍【实训项目】“优品果园”-线上水果商城小程序,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

1.项目背景

随着现代人对消费水平的追求以及对食物安全的需要,无污染、产地直销的有机水果受到越来越多市民的喜欢。交易过程的简洁化是现代消费者的追求,产地直销也是近期流行的一种新型的交易模式。产地直销的交易模式使得交易过程更加简便快捷,也使消费也更透明化,有助于增加消费者对商家的信任和认可。有机食物又被誉为“朝阳产业”,具有良好的市场,同时,我们对安全食物的需要日益剧烈,对透明化消费的追求日益迫切,因此我们认为国内市场远景非常豁达。

2.项目目标

主要针对上班族以及中老年等人群,可以满足他们对于有机水果的需求,同时也满足其对于透明化消费的需求,以求达到双赢。

3.项目总体描述

3.1发展成果

我们的项目名称是“优品果源”,采用的是C2C模式。我们的程序包括了水果模板、新鲜到家、购物车和会员中心四个主要界面。

我们所设计的小程序主要是为消费者提供有机水果产地直销。在这个小程序里,我们会提供一定的经营产地,并为消费者提供产地全部信息,同时用户可以在线上对自己选择的产地进行实时观测,了解水果的长势,收货等全部过程,还也可以模拟体验农耕各项流程线上体验,(播种、施肥、浇水、除草、采摘)。

3.2功能描述

(1)用户注册

用户在使用“优品果源”时需要必须进行实名注册,包括姓名、年龄、性别、手机号、身份证号

(2)用户订单 包括

用户选择直销产地、购买水果等。

(3)交易中心

用户之间可以将多余的水果信息上传进行交易,也可以与农场之间进行交易。

(4)我的产地

提供一定的经营产地,并为消费提供产地全部信息,同时用户可以在线上对自己选择的产地进行实时观测,了解水果的长势,收货等全部过程。

(5)通知信息

后台会根据用户水果产地的生长情况,定时向客户发送提示信息; 资讯类信息,会根据季节实时发送一些水果种植信息,丰富地主的农耕经验,切实体验种植生活。

(6)客服中心

用户有任何问题可以咨询客服或者投诉商家。

4.项目成果

5.核心代码展示

<view class="goods marUpTop"><text class="total">共{{totalNum}}条</text><view class="good" wx:for="{{goods}}" wx:key="id" wx:for-item="good"><image class="image" src="{{good.icon}}"></image><text class="name" style='width:{{windowWidth - 80}}px;'>{{good.name}}</text></view><text class="bottomLoad" bindtap='bottomLoad' hidden='{{initLoadDataNum < pageSize}}'>{{bottomLoadMsg}}</text>
</view>
<view class="swiper-tab">  <view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">未开始({{notStartTotalNums}})</view>  <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">进行中({{progressTotalNums}})</view>  <view class="swiper-tab-list {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">已结束({{doneTotalNums}})</view>  
</view> <swiper current="{{currentTab}}" class="swiper-box" duration="300" style="height:{{winHeight - 40}}px;" bindchange="bindChange">  <swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{notStartDatas}}" wx:for-item="notStart" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{notStart.id}}" ><image bindtap="toTaskDetail" src="/images/notStart.png" class="icon" data-taskId="{{notStart.id}}"></image><text bindtap="toTaskDetail" style="width:{{winWidth - 140}}px;" class="name" data-taskId="{{notStart.id}}">{{notStart.name}}</text><button open-type="share" data-taskId="{{notStart.id}}" data-hookName="{{notStart.userName}}" type='primary' style="background-color: #265a88;" class='btn invite'>邀请</button><form bindsubmit='del' report-submit data-taskId="{{notStart.id}}"><button form-type='submit' type='primary' style="background-color: red;" class='btn delete'>删除</button></form></view> </view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{notStartCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{notStartCurPage}}/{{notStartTotalPage}}</text><image class="page" bindtap='downPage' src="{{notStartCurPage == notStartTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item><swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{progressDatas}}" wx:for-item="progress" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{progress.id}}" bindtap="toTaskDetail"><image src="/images/doing.png" class="icon" data-taskId="{{progress.id}}"></image><text class="name" style="width:{{winWidth - 140}}px;" data-taskId="{{progress.id}}">{{progress.name}}</text><progress class="progress" data-taskId="{{progress.id}}" activeColor="{{progress.activeColor}}" percent="{{progress.progress}}" show-info="true" active/></view></view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{progressCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{progressCurPage}}/{{progressTotalPage}}</text><image class="page" bindtap='downPage' src="{{progressCurPage == progressTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  <swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{doneDatas}}" wx:for-item="done" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{done.id}}"><image src="/images/done.png" class="icon" data-taskId="{{done.id}}" bindtap="toTaskDetail"></image><text style="width:{{winWidth - 95}}px;" class="name" data-taskId="{{done.id}}" bindtap="toTaskDetail">{{done.name}}</text><form bindsubmit='del' report-submit data-taskId="{{done.id}}"><button form-type='submit' type='primary' style="background-color: red;" class='btn delete'>删除</button></form></view> </view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{doneCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{doneCurPage}}/{{doneTotalPage}}</text><image class="page" bindtap='downPage' src="{{doneCurPage == doneTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  
</swiper>
<template name="normal"><view class="content-msg">{{msg}}</view>
</template>
<template name="apv"><view class="content-msg apv"><view class="apv-title">审批提醒</view><view class="apv-content">{{msg}}</view><view class="apv-do" data-id="{{id}}" data-attValue="{{attValue}}" bindtap="detail"><text>审批</text><image class="right-image" src="/images/right.png"/></view></view>
</template>
<template name="end"><view class="msg-end" style='width:{{windowWidth - 70}}px;'><image class="end-image" src="/images/{{attValue.suc ? 'success.png' : 'failure.png'}}"></image><view style="width:{{windowWidth - 145}}px;" class="end-msg">{{msg}}<text style="color:#5D718D;" data-id="{{attValue.id}}" bindtap='endDetail'> [详情]</text></view></view>
</template><view wx:if="{{isRefresh}}" class="fresh"><image src="/images/timer.gif" class="timer"></image>
</view>
<scroll-view  style="height: {{windowHeight}}px;" scroll-y  bindscroll="scroll" scroll-into-view="msgId_{{scrollInitId}}" bindtouchstart="start" bindtouchend="end" bindscrolltolower="hiddenDownBtn"><view class="msg-item" wx:for="{{msgs}}" wx:for-item="msg" wx:key="id" id="msgId_{{msg.id}}"><view><image src="{{msg.icon}}" class="msg-icon"></image></view><view class="msg-content"><text class="name-time" decode="true">{{msg.sendName}} {{msg.createTime}}</text><block wx:if="{{msg.type == 1}}"><template is="apv" data="{{...msg}}"/></block><block wx:elif="{{msg.type == 2}}"><template is="end" data="{{...msg, windowWidth}}"/></block><block wx:else><template is="normal" data="{{...msg}}"/></block></view></view><form bindsubmit='jumpToUpUnRead' report-submit><button class="toUpUnRead" form-type='submit' hidden='{{upBtnHidden}}'>☝ <text>{{unReadNum}}</text>条未读</button></form><form bindsubmit='jumpToDownUnRead' report-submit><button class="toDownUnRead" form-type='submit' hidden='{{downBtnHidden}}'>︾ <text>{{downUnReadNum}}</text>条未读</button></form>
</scroll-view>
<view class="swiper-tab"><view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">进行中({{progressTotalNums}})</view>  <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">已结束({{doneTotalNums}})</view>  
</view> <swiper current="{{currentTab}}" class="swiper-box" duration="300" style="height:{{winHeight - 40}}px" bindchange="bindChange">  <swiper-item><scroll-view  style="height: {{winHeight - 80}}px;" scroll-y>  <view wx:for="{{progressDatas}}" wx:for-item="progress" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{progress.id}}" bindtap="toTaskDetail"><image src="/images/doing.png" class="icon" data-taskId="{{progress.id}}"></image><text class="name" style="width:{{winWidth - 140}}px;" data-taskId="{{progress.id}}">{{progress.name}}</text><progress class="progress" data-taskId="{{progress.id}}" activeColor="{{progress.activeColor}}" percent="{{progress.progress}}" show-info="true" active/></view></view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{progressCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{progressCurPage}}/{{progressTotalPage}}</text><image class="page" bindtap='downPage' src="{{progressCurPage == progressTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  <swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{doneDatas}}" wx:for-item="done" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{done.id}}" bindtap="toTaskDetail"><image src="/images/done.png" class="icon" data-taskId="{{done.id}}"></image><text class="name" style="width:{{winWidth - 55}}px;" data-taskId="{{done.id}}">{{done.name}}</text></view> </view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{doneCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{doneCurPage}}/{{doneTotalPage}}</text><image class="page" bindtap='downPage' src="{{doneCurPage == doneTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  
</swiper>
<view class="layout-column marUpTop" style="padding: 5px 15px;">拉钩创建成功,邀请Ta和你拉钩吧。<button open-type="share" type='primary' style="background-color: #265a88;width:100%;" size='default' class='marUpTop'>邀请</button>
</view>
<form bindsubmit="formSubmit" report-submit><view class="layout-column marUpTop"><textarea class="desc border" placeholder="请描述反馈意见" name="content" maxlength="1000"/><view class="marTop border"><button type="primary" size="default" style="background-color: #265a88;" formType="submit" disabled='{{disableBtn}}'>提交</button></view><modal hidden="{{formMsgHidden}}" title="提示" confirm-text="去完善" no-cancel="true" bindcancel="cancel" bindconfirm="hiddenFromMsg">意见不能为空</modal></view>
</form>
<view class="goods marUpTop"><text class="total">共{{totalNum}}条</text><view class="good" wx:for="{{goods}}" wx:key="id" wx:for-item="good"><image class="image" src="{{good.icon}}"></image><text class="name" style='width:{{windowWidth - 80}}px;'>{{good.name}}</text></view><text class="bottomLoad" bindtap='bottomLoad' hidden='{{initLoadDataNum < pageSize}}'>{{bottomLoadMsg}}</text>
</view>
<view class="swiper-tab">  <view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">未开始({{notStartTotalNums}})</view>  <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">进行中({{progressTotalNums}})</view>  <view class="swiper-tab-list {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">已结束({{doneTotalNums}})</view>  
</view> <swiper current="{{currentTab}}" class="swiper-box" duration="300" style="height:{{winHeight - 40}}px;" bindchange="bindChange">  <swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{notStartDatas}}" wx:for-item="notStart" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{notStart.id}}" ><image bindtap="toTaskDetail" src="/images/notStart.png" class="icon" data-taskId="{{notStart.id}}"></image><text bindtap="toTaskDetail" style="width:{{winWidth - 140}}px;" class="name" data-taskId="{{notStart.id}}">{{notStart.name}}</text><button open-type="share" data-taskId="{{notStart.id}}" data-hookName="{{notStart.userName}}" type='primary' style="background-color: #265a88;" class='btn invite'>邀请</button><form bindsubmit='del' report-submit data-taskId="{{notStart.id}}"><button form-type='submit' type='primary' style="background-color: red;" class='btn delete'>删除</button></form></view> </view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{notStartCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{notStartCurPage}}/{{notStartTotalPage}}</text><image class="page" bindtap='downPage' src="{{notStartCurPage == notStartTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item><swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{progressDatas}}" wx:for-item="progress" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{progress.id}}" bindtap="toTaskDetail"><image src="/images/doing.png" class="icon" data-taskId="{{progress.id}}"></image><text class="name" style="width:{{winWidth - 140}}px;" data-taskId="{{progress.id}}">{{progress.name}}</text><progress class="progress" data-taskId="{{progress.id}}" activeColor="{{progress.activeColor}}" percent="{{progress.progress}}" show-info="true" active/></view></view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{progressCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{progressCurPage}}/{{progressTotalPage}}</text><image class="page" bindtap='downPage' src="{{progressCurPage == progressTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  <swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{doneDatas}}" wx:for-item="done" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{done.id}}"><image src="/images/done.png" class="icon" data-taskId="{{done.id}}" bindtap="toTaskDetail"></image><text style="width:{{winWidth - 95}}px;" class="name" data-taskId="{{done.id}}" bindtap="toTaskDetail">{{done.name}}</text><form bindsubmit='del' report-submit data-taskId="{{done.id}}"><button form-type='submit' type='primary' style="background-color: red;" class='btn delete'>删除</button></form></view> </view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{doneCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{doneCurPage}}/{{doneTotalPage}}</text><image class="page" bindtap='downPage' src="{{doneCurPage == doneTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  
</swiper>
<template name="normal"><view class="content-msg">{{msg}}</view>
</template>
<template name="apv"><view class="content-msg apv"><view class="apv-title">审批提醒</view><view class="apv-content">{{msg}}</view><view class="apv-do" data-id="{{id}}" data-attValue="{{attValue}}" bindtap="detail"><text>审批</text><image class="right-image" src="/images/right.png"/></view></view>
</template>
<template name="end"><view class="msg-end" style='width:{{windowWidth - 70}}px;'><image class="end-image" src="/images/{{attValue.suc ? 'success.png' : 'failure.png'}}"></image><view style="width:{{windowWidth - 145}}px;" class="end-msg">{{msg}}<text style="color:#5D718D;" data-id="{{attValue.id}}" bindtap='endDetail'> [详情]</text></view></view>
</template><view wx:if="{{isRefresh}}" class="fresh"><image src="/images/timer.gif" class="timer"></image>
</view>
<scroll-view  style="height: {{windowHeight}}px;" scroll-y  bindscroll="scroll" scroll-into-view="msgId_{{scrollInitId}}" bindtouchstart="start" bindtouchend="end" bindscrolltolower="hiddenDownBtn"><view class="msg-item" wx:for="{{msgs}}" wx:for-item="msg" wx:key="id" id="msgId_{{msg.id}}"><view><image src="{{msg.icon}}" class="msg-icon"></image></view><view class="msg-content"><text class="name-time" decode="true">{{msg.sendName}} {{msg.createTime}}</text><block wx:if="{{msg.type == 1}}"><template is="apv" data="{{...msg}}"/></block><block wx:elif="{{msg.type == 2}}"><template is="end" data="{{...msg, windowWidth}}"/></block><block wx:else><template is="normal" data="{{...msg}}"/></block></view></view><form bindsubmit='jumpToUpUnRead' report-submit><button class="toUpUnRead" form-type='submit' hidden='{{upBtnHidden}}'>☝ <text>{{unReadNum}}</text>条未读</button></form><form bindsubmit='jumpToDownUnRead' report-submit><button class="toDownUnRead" form-type='submit' hidden='{{downBtnHidden}}'>︾ <text>{{downUnReadNum}}</text>条未读</button></form>
</scroll-view>
<view class="swiper-tab"><view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">进行中({{progressTotalNums}})</view>  <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">已结束({{doneTotalNums}})</view>  
</view> <swiper current="{{currentTab}}" class="swiper-box" duration="300" style="height:{{winHeight - 40}}px" bindchange="bindChange">  <swiper-item><scroll-view  style="height: {{winHeight - 80}}px;" scroll-y>  <view wx:for="{{progressDatas}}" wx:for-item="progress" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{progress.id}}" bindtap="toTaskDetail"><image src="/images/doing.png" class="icon" data-taskId="{{progress.id}}"></image><text class="name" style="width:{{winWidth - 140}}px;" data-taskId="{{progress.id}}">{{progress.name}}</text><progress class="progress" data-taskId="{{progress.id}}" activeColor="{{progress.activeColor}}" percent="{{progress.progress}}" show-info="true" active/></view></view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{progressCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{progressCurPage}}/{{progressTotalPage}}</text><image class="page" bindtap='downPage' src="{{progressCurPage == progressTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  <swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{doneDatas}}" wx:for-item="done" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{done.id}}" bindtap="toTaskDetail"><image src="/images/done.png" class="icon" data-taskId="{{done.id}}"></image><text class="name" style="width:{{winWidth - 55}}px;" data-taskId="{{done.id}}">{{done.name}}</text></view> </view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{doneCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{doneCurPage}}/{{doneTotalPage}}</text><image class="page" bindtap='downPage' src="{{doneCurPage == doneTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  
</swiper>
<view class="layout-column marUpTop" style="padding: 5px 15px;">拉钩创建成功,邀请Ta和你拉钩吧。<button open-type="share" type='primary' style="background-color: #265a88;width:100%;" size='default' class='marUpTop'>邀请</button>
</view>
<form bindsubmit="formSubmit" report-submit><view class="layout-column marUpTop"><textarea class="desc border" placeholder="请描述反馈意见" name="content" maxlength="1000"/><view class="marTop border"><button type="primary" size="default" style="background-color: #265a88;" formType="submit" disabled='{{disableBtn}}'>提交</button></view><modal hidden="{{formMsgHidden}}" title="提示" confirm-text="去完善" no-cancel="true" bindcancel="cancel" bindconfirm="hiddenFromMsg">意见不能为空</modal></view>
</form>
<view class="goods marUpTop"><text class="total">共{{totalNum}}条</text><view class="good" wx:for="{{goods}}" wx:key="id" wx:for-item="good"><image class="image" src="{{good.icon}}"></image><text class="name" style='width:{{windowWidth - 80}}px;'>{{good.name}}</text></view><text class="bottomLoad" bindtap='bottomLoad' hidden='{{initLoadDataNum < pageSize}}'>{{bottomLoadMsg}}</text>
</view>
<view class="swiper-tab">  <view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">未开始({{notStartTotalNums}})</view>  <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">进行中({{progressTotalNums}})</view>  <view class="swiper-tab-list {{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">已结束({{doneTotalNums}})</view>  
</view> <swiper current="{{currentTab}}" class="swiper-box" duration="300" style="height:{{winHeight - 40}}px;" bindchange="bindChange">  <swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{notStartDatas}}" wx:for-item="notStart" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{notStart.id}}" ><image bindtap="toTaskDetail" src="/images/notStart.png" class="icon" data-taskId="{{notStart.id}}"></image><text bindtap="toTaskDetail" style="width:{{winWidth - 140}}px;" class="name" data-taskId="{{notStart.id}}">{{notStart.name}}</text><button open-type="share" data-taskId="{{notStart.id}}" data-hookName="{{notStart.userName}}" type='primary' style="background-color: #265a88;" class='btn invite'>邀请</button><form bindsubmit='del' report-submit data-taskId="{{notStart.id}}"><button form-type='submit' type='primary' style="background-color: red;" class='btn delete'>删除</button></form></view> </view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{notStartCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{notStartCurPage}}/{{notStartTotalPage}}</text><image class="page" bindtap='downPage' src="{{notStartCurPage == notStartTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item><swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{progressDatas}}" wx:for-item="progress" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{progress.id}}" bindtap="toTaskDetail"><image src="/images/doing.png" class="icon" data-taskId="{{progress.id}}"></image><text class="name" style="width:{{winWidth - 140}}px;" data-taskId="{{progress.id}}">{{progress.name}}</text><progress class="progress" data-taskId="{{progress.id}}" activeColor="{{progress.activeColor}}" percent="{{progress.progress}}" show-info="true" active/></view></view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{progressCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{progressCurPage}}/{{progressTotalPage}}</text><image class="page" bindtap='downPage' src="{{progressCurPage == progressTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  <swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{doneDatas}}" wx:for-item="done" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{done.id}}"><image src="/images/done.png" class="icon" data-taskId="{{done.id}}" bindtap="toTaskDetail"></image><text style="width:{{winWidth - 95}}px;" class="name" data-taskId="{{done.id}}" bindtap="toTaskDetail">{{done.name}}</text><form bindsubmit='del' report-submit data-taskId="{{done.id}}"><button form-type='submit' type='primary' style="background-color: red;" class='btn delete'>删除</button></form></view> </view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{doneCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{doneCurPage}}/{{doneTotalPage}}</text><image class="page" bindtap='downPage' src="{{doneCurPage == doneTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  
</swiper>
<template name="normal"><view class="content-msg">{{msg}}</view>
</template>
<template name="apv"><view class="content-msg apv"><view class="apv-title">审批提醒</view><view class="apv-content">{{msg}}</view><view class="apv-do" data-id="{{id}}" data-attValue="{{attValue}}" bindtap="detail"><text>审批</text><image class="right-image" src="/images/right.png"/></view></view>
</template>
<template name="end"><view class="msg-end" style='width:{{windowWidth - 70}}px;'><image class="end-image" src="/images/{{attValue.suc ? 'success.png' : 'failure.png'}}"></image><view style="width:{{windowWidth - 145}}px;" class="end-msg">{{msg}}<text style="color:#5D718D;" data-id="{{attValue.id}}" bindtap='endDetail'> [详情]</text></view></view>
</template><view wx:if="{{isRefresh}}" class="fresh"><image src="/images/timer.gif" class="timer"></image>
</view>
<scroll-view  style="height: {{windowHeight}}px;" scroll-y  bindscroll="scroll" scroll-into-view="msgId_{{scrollInitId}}" bindtouchstart="start" bindtouchend="end" bindscrolltolower="hiddenDownBtn"><view class="msg-item" wx:for="{{msgs}}" wx:for-item="msg" wx:key="id" id="msgId_{{msg.id}}"><view><image src="{{msg.icon}}" class="msg-icon"></image></view><view class="msg-content"><text class="name-time" decode="true">{{msg.sendName}} {{msg.createTime}}</text><block wx:if="{{msg.type == 1}}"><template is="apv" data="{{...msg}}"/></block><block wx:elif="{{msg.type == 2}}"><template is="end" data="{{...msg, windowWidth}}"/></block><block wx:else><template is="normal" data="{{...msg}}"/></block></view></view><form bindsubmit='jumpToUpUnRead' report-submit><button class="toUpUnRead" form-type='submit' hidden='{{upBtnHidden}}'>☝ <text>{{unReadNum}}</text>条未读</button></form><form bindsubmit='jumpToDownUnRead' report-submit><button class="toDownUnRead" form-type='submit' hidden='{{downBtnHidden}}'>︾ <text>{{downUnReadNum}}</text>条未读</button></form>
</scroll-view>
<view class="swiper-tab"><view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">进行中({{progressTotalNums}})</view>  <view class="swiper-tab-list {{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">已结束({{doneTotalNums}})</view>  
</view> <swiper current="{{currentTab}}" class="swiper-box" duration="300" style="height:{{winHeight - 40}}px" bindchange="bindChange">  <swiper-item><scroll-view  style="height: {{winHeight - 80}}px;" scroll-y>  <view wx:for="{{progressDatas}}" wx:for-item="progress" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{progress.id}}" bindtap="toTaskDetail"><image src="/images/doing.png" class="icon" data-taskId="{{progress.id}}"></image><text class="name" style="width:{{winWidth - 140}}px;" data-taskId="{{progress.id}}">{{progress.name}}</text><progress class="progress" data-taskId="{{progress.id}}" activeColor="{{progress.activeColor}}" percent="{{progress.progress}}" show-info="true" active/></view></view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{progressCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{progressCurPage}}/{{progressTotalPage}}</text><image class="page" bindtap='downPage' src="{{progressCurPage == progressTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  <swiper-item>  <scroll-view  style="height: {{winHeight - 80}}px;" scroll-y><view wx:for="{{doneDatas}}" wx:for-item="done" wx:key="id" wx:for-index="index"><view class="list" style="background-color:{{index % 2 == 0 ? '#F6F6F6' : '#ffffff'}}" data-taskId="{{done.id}}" bindtap="toTaskDetail"><image src="/images/done.png" class="icon" data-taskId="{{done.id}}"></image><text class="name" style="width:{{winWidth - 55}}px;" data-taskId="{{done.id}}">{{done.name}}</text></view> </view></scroll-view><view class="pageCmp"><image class="page" bindtap='upPage' src="{{doneCurPage == 1 ? '/images/up-grey.png' : '/images/up.png'}}"/><text class="page-no">{{doneCurPage}}/{{doneTotalPage}}</text><image class="page" bindtap='downPage' src="{{doneCurPage == doneTotalPage ? '/images/down-grey.png' : '/images/down.png'}}"/></view></swiper-item>  
</swiper>
<view class="layout-column marUpTop" style="padding: 5px 15px;">拉钩创建成功,邀请Ta和你拉钩吧。<button open-type="share" type='primary' style="background-color: #265a88;width:100%;" size='default' class='marUpTop'>邀请</button>
</view>
<form bindsubmit="formSubmit" report-submit><view class="layout-column marUpTop"><textarea class="desc border" placeholder="请描述反馈意见" name="content" maxlength="1000"/><view class="marTop border"><button type="primary" size="default" style="background-color: #265a88;" formType="submit" disabled='{{disableBtn}}'>提交</button></view><modal hidden="{{formMsgHidden}}" title="提示" confirm-text="去完善" no-cancel="true" bindcancel="cancel" bindconfirm="hiddenFromMsg">意见不能为空</modal></view>
</form>

6.PPT展示

这篇关于【实训项目】“优品果园”-线上水果商城小程序的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/217801

相关文章

精选20个好玩又实用的的Python实战项目(有图文代码)

《精选20个好玩又实用的的Python实战项目(有图文代码)》文章介绍了20个实用Python项目,涵盖游戏开发、工具应用、图像处理、机器学习等,使用Tkinter、PIL、OpenCV、Kivy等库... 目录① 猜字游戏② 闹钟③ 骰子模拟器④ 二维码⑤ 语言检测⑥ 加密和解密⑦ URL缩短⑧ 音乐播放

Springboot项目启动失败提示找不到dao类的解决

《Springboot项目启动失败提示找不到dao类的解决》SpringBoot启动失败,因ProductServiceImpl未正确注入ProductDao,原因:Dao未注册为Bean,解决:在启... 目录错误描述原因解决方法总结***************************APPLICA编

在IntelliJ IDEA中高效运行与调试Spring Boot项目的实战步骤

《在IntelliJIDEA中高效运行与调试SpringBoot项目的实战步骤》本章详解SpringBoot项目导入IntelliJIDEA的流程,教授运行与调试技巧,包括断点设置与变量查看,奠定... 目录引言:为良驹配上好鞍一、为何选择IntelliJ IDEA?二、实战:导入并运行你的第一个项目步骤1

IntelliJ IDEA2025创建SpringBoot项目的实现步骤

《IntelliJIDEA2025创建SpringBoot项目的实现步骤》本文主要介绍了IntelliJIDEA2025创建SpringBoot项目的实现步骤,文中通过示例代码介绍的非常详细,对大家... 目录一、创建 Spring Boot 项目1. 新建项目2. 基础配置3. 选择依赖4. 生成项目5.

golang程序打包成脚本部署到Linux系统方式

《golang程序打包成脚本部署到Linux系统方式》Golang程序通过本地编译(设置GOOS为linux生成无后缀二进制文件),上传至Linux服务器后赋权执行,使用nohup命令实现后台运行,完... 目录本地编译golang程序上传Golang二进制文件到linux服务器总结本地编译Golang程序

使用Docker构建Python Flask程序的详细教程

《使用Docker构建PythonFlask程序的详细教程》在当今的软件开发领域,容器化技术正变得越来越流行,而Docker无疑是其中的佼佼者,本文我们就来聊聊如何使用Docker构建一个简单的Py... 目录引言一、准备工作二、创建 Flask 应用程序三、创建 dockerfile四、构建 Docker

深度解析Java项目中包和包之间的联系

《深度解析Java项目中包和包之间的联系》文章浏览阅读850次,点赞13次,收藏8次。本文详细介绍了Java分层架构中的几个关键包:DTO、Controller、Service和Mapper。_jav... 目录前言一、各大包1.DTO1.1、DTO的核心用途1.2. DTO与实体类(Entity)的区别1

如何在Spring Boot项目中集成MQTT协议

《如何在SpringBoot项目中集成MQTT协议》本文介绍在SpringBoot中集成MQTT的步骤,包括安装Broker、添加EclipsePaho依赖、配置连接参数、实现消息发布订阅、测试接口... 目录1. 准备工作2. 引入依赖3. 配置MQTT连接4. 创建MQTT配置类5. 实现消息发布与订阅

springboot项目打jar制作成镜像并指定配置文件位置方式

《springboot项目打jar制作成镜像并指定配置文件位置方式》:本文主要介绍springboot项目打jar制作成镜像并指定配置文件位置方式,具有很好的参考价值,希望对大家有所帮助,如有错误... 目录一、上传jar到服务器二、编写dockerfile三、新建对应配置文件所存放的数据卷目录四、将配置文

怎么用idea创建一个SpringBoot项目

《怎么用idea创建一个SpringBoot项目》本文介绍了在IDEA中创建SpringBoot项目的步骤,包括环境准备(JDK1.8+、Maven3.2.5+)、使用SpringInitializr... 目录如何在idea中创建一个SpringBoot项目环境准备1.1打开IDEA,点击New新建一个项