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

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.hqwc.cn/news/131120.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

电容笔什么牌子好?比较好用的ipad手写笔推荐

哪一种电容笔适合学生党&#xff1f;作为一名数字爱好者&#xff0c;我对电容笔还是有所了解的。其实苹果的电容笔&#xff0c;与一般的电容笔最大的不同之处&#xff0c;就是在于压感方面上。因为苹果的电容笔具有独一无二的“重力压感”&#xff0c;所以我们可以在绘图时使用…

Nacos(替代Eureka)注册中心

Nacos初步学习 Nacos 是一个开源的服务注册和配置中心&#xff0c;它允许您注册、注销和发现服务实例&#xff0c;并提供了配置管理的功能。下面是Nacos的最基础用法&#xff1a; 1. 服务注册和发现&#xff1a; 首先&#xff0c;您需要将您的应用程序或服务注册到Nacos中。…

termius mac版无需登录注册直接永久使用

1. 下载地址&#xff1a;termius下载 2. 解压安装 3. 当出现 “termius”已损坏,无法打开 则输入以下命令即可&#xff1a;sudo xattr -r -d com.apple.quarantine /Applications/Termius.app 最后去 系统设置-> 隐私与安全性-> 仍要打开 4. 删除app-update.yml文件&…

Ant Design Form.List基础用法

使用 Form.List 使用 项目中需要在新增可以多个如图 代码如下 // An highlighted block <Card title"产品信息" bordered{false}><Form.List name"productList" >{(fields, {add, remove}) > (<>{fields.map((field) > (<Ro…

佳音通讯400电话中心:在线自选,惠及企业

在当今竞争激烈的商业环境中&#xff0c;企业需要提供卓越的客户服务来脱颖而出。而一个高效的400电话中心则成为了越来越多企业的选择。佳音通讯400电话中心官方网站是企业选择400电话服务的首选平台&#xff0c;提供了在线自选功能&#xff0c;让企业能够根据自身需求灵活选择…

集群分发脚本xysnc

一、scp&#xff08;secure copy&#xff09; 安全拷贝 1.定义 scp&#xff08;Secure Copy&#xff09;是一个用于在不同计算机之间安全地复制文件和目录的命令行工具。它使用 SSH 协议进行连接和文件传输&#xff0c;提供了加密和身份验证机制&#xff0c;确保数据传输的安…

Excel 规范录入数据

文章目录 录入日期录入百分比 快捷键&#xff1a; tab&#xff1a;向右切换单元格 enter&#xff1a;向下切换行 shift tab&#xff1a;向左切换单元格 shiftenter&#xff1a;向上切换行 录入日期 输入今天的日期的快捷键&#xff1a;Ctrl ; 输入当时的时间的快捷键&a…

【QT5-程序控制电源-[GPIB-USB-HS]-SCPI协议-上位机-基础样例【2】】

【QT5-程序控制电源-[GPIB-USB-HS]-SCPI协议-上位机-基础样例【2】】 1、前言2、实验环境3、自我总结1、基础了解仪器控制-熟悉仪器2、连接SCPI协议3、了解GPIB-USB-HS4、软件调试-代码编写 4、熟悉协议-SCPI协议5、实验过程-熟悉软件&#xff08;1&#xff09;去官网NI&#x…

【踩坑】hive脚本笛卡尔积严重降低查询效率问题

前一阵子查看我们公司的大数据平台的离线脚本运行情况, 结果发现有一个任务居然跑了一天多, 要知道这还只是几千万量级的表, 且这个任务是每天需要执行的 于是我把hive脚本捞出来看了下, 发现无非多join了几个复杂的子查询, 应该不至于这么久, 包括我又检查了是不是没有加上每…

使用 KubeSkoop exporter 监测和定位容器网络抖动问题

作者&#xff1a;遐宇、溪恒 本文是 8 月 17 日直播的文字稿整理&#xff0c;文末可观看直播回放。除去文章内容外&#xff0c;还包括针对实际网络问题的实战环节。 容器网络抖动问题发生频率低&#xff0c;时间短&#xff0c;是网络问题中最难定位和解决的问题之一。 不仅如…

项目文件上传到行云codeup teambition

接手公司好几年的老项目&#xff0c;在行云上已经有1.9G的大小所以被限制上传了 只有花钱扩容或者重新建库。 1.重新建库&#xff1a;登录你的行云账户在代码库中新建代码库&#xff08;网上有详细的&#xff09; 创建成功后的库中只有readme文件。 2.复制代码库的下载地址 …

【计算机网络-自顶向下方法】应用层(SMTP、POP3、DNS)

目录 1. Electronic Mail电子邮件应用画像1.1 电子邮件系统1.2 邮件报文格式1.3 邮件访问 2. DNS&#xff08;Domain Name System&#xff09;2.1 DNS提供的服务2.2 DNS工作机理2.3 DNS资源记录2.4 DNS协议&#xff0c;报文2.5 小结 1. Electronic Mail 电子邮件应用画像 应用…

jmeter 请求发送加密参数

最近在做http加密接口&#xff0c;请求头的uid参数及body的请求json参数都经过加密再发送请求&#xff0c;加密方式为&#xff1a;ase256。所以&#xff0c;jmeter发送请求前也需要对uid及json参数进行加密。我这里是让开发写了个加密、解密的jar&#xff0c;jmeter直接调用这个…

React的类式组件和函数式组件之间有什么区别?

React 中的类组件和函数组件是两种不同的组件编写方式&#xff0c;它们之间有一些区别。 语法和写法&#xff1a;类组件是使用类的语法进行定义的&#xff0c;它继承自 React.Component 类&#xff0c;并且需要实现 render() 方法来返回组件的 JSX。函数组件是使用函数的语法进…

Godot 添加Nuget 引用

前言 我的Godot 专栏 我在之前的文章中&#xff0c;解决了Visual Studio 如何去调试正在运行的Godot 程序。Godot 对于C# 的支持只剩下一个&#xff0c;那就是Nuget 添加。 Godot VisualStudio外部编辑器设置 添加Nuget Nuget 添加还是非常的容易的。我们直接添加一个最常用的…

怎么通过Fiddler对APP进行抓包?以及高级应用场景分析

前言 我们经常需要用到Fiddler做代理服务器对Web、APP应用进行抓包&#xff0c;以便我们对接口功能进行测试调试&#xff0c;定位问题等。这篇将讲述怎么通过Fiddler对APP进行抓包&#xff0c;以及简单介绍一些高级应用场景。 首先&#xff0c;附上Fiddler使用的环境配置清单…

实验1机器学习之线性回归实验

一、实验目的&#xff1a; &#xff08;1&#xff09;理解一元线性回归和多元线性回归的数学原理&#xff0c;能够利用sklearn中相关库解决现实世界中的各类回归问题&#xff1b; &#xff08;2&#xff09;掌握利用matplotlib对一元线性回归模型进行可视化的方法&#xff0c…

Vuex的简介以及入门案例

&#x1f3c5;我是默&#xff0c;一个在CSDN分享笔记的博主。&#x1f4da;&#x1f4da; &#x1f31f;在这里&#xff0c;我要推荐给大家我的专栏《Vue》。&#x1f3af;&#x1f3af; &#x1f680;无论你是编程小白&#xff0c;还是有一定基础的程序员&#xff0c;这个专栏…

有root权限的共享服务器,返现福利

以下是目前各类型服务器配置与价格目录&#xff1a; 可咨询文末微信号领取返现福利&#xff0c;注册链接&#xff1a; 西柚云超算https://www.xiyoucloud.net/aff/YADJJHWA 微信号&#xff1a;生信小博士

实现一个自己的脚手架教程

前言 脚手架并不实现&#xff0c;难的是最佳实践的整理和沉淀。本文不会涉及到最佳实践方面的内容&#xff0c;只是教会你如何实现一个最基础的脚手架&#xff0c;以此作为展示最佳实践的载体。 如何搭建一个脚手架的工程 如何开发和调试一个脚手架 脚手架中如何接收和处理命…