1、删除一些无效css代码
2、解决wx:key的warinng 3、删除无用的函数 4、取消订单时停止定时器 5、针对订单操作后,返回订单列表没有刷新的问题,添加一个标志(不过不是最好的办法,暂时这样吧) 6、修复再来一单,提交一次后,再返回再提交时出现订单不存在的bug
This commit is contained in:
parent
63c771e1c2
commit
32f71cd1cc
@ -24,7 +24,7 @@
|
||||
|
||||
<template name="WxEmojiView">
|
||||
<view class="WxEmojiView wxParse-inline" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.textArray}}" wx:key="">
|
||||
<block wx:for="{{item.textArray}}" wx:key="id">
|
||||
<block class="{{item.text == '\\n' ? 'wxParse-hide':''}}" wx:if="{{item.node == 'text'}}">{{item.text}}</block>
|
||||
<block wx:elif="{{item.node == 'element'}}">
|
||||
<image class="wxEmoji" src="{{item.baseSrc}}{{item.text}}" />
|
||||
@ -36,7 +36,7 @@
|
||||
<!--入口模版-->
|
||||
|
||||
<template name="wxParse">
|
||||
<block wx:for="{{wxParseData}}" wx:key="">
|
||||
<block wx:for="{{wxParseData}}" wx:key="id">
|
||||
<template is="wxParse0" data="{{item}}"/>
|
||||
</block>
|
||||
</template>
|
||||
@ -49,7 +49,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse1" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -62,7 +62,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse1" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -83,14 +83,14 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-c="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse1" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:elif="{{item.tag == 'table'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse1" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -99,7 +99,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse1" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -107,7 +107,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse1" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -131,7 +131,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse2" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -144,7 +144,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse2" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -165,7 +165,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse2" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -174,7 +174,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse2" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -182,7 +182,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse2" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -205,7 +205,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse3" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -218,7 +218,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse3" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -239,7 +239,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse3" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -248,7 +248,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse3" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -256,7 +256,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse3" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -278,7 +278,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse4" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -291,7 +291,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse4" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -312,7 +312,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse4" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -321,7 +321,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse4" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -329,7 +329,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse4" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -351,7 +351,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse5" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -364,7 +364,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse5" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -385,7 +385,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse5" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -394,7 +394,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse5" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -402,7 +402,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse5" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -424,7 +424,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse6" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -437,7 +437,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse6" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -458,7 +458,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse6" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -467,7 +467,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse6" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -475,7 +475,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse6" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -497,7 +497,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse7" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -510,7 +510,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse7" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -531,7 +531,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse7" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -540,7 +540,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse7" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -548,7 +548,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse7" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -569,7 +569,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse8" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -582,7 +582,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse8" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -603,7 +603,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse8" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -612,7 +612,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse8" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -620,7 +620,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse8" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -642,7 +642,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse9" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -655,7 +655,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse9" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -676,7 +676,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse9" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -685,7 +685,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse9" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -693,7 +693,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse9" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -715,7 +715,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse10" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -728,7 +728,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse10" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -749,7 +749,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse10" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -758,7 +758,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse10" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -766,7 +766,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse10" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -788,7 +788,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse11" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -801,7 +801,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse11" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -822,7 +822,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse11" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -831,7 +831,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse11" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -839,7 +839,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse11" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -861,7 +861,7 @@
|
||||
<block wx:if="{{item.node == 'element'}}">
|
||||
<block wx:if="{{item.tag == 'button'}}">
|
||||
<button type="default" size="mini" >
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse12" data="{{item}}"/>
|
||||
</block>
|
||||
</button>
|
||||
@ -874,7 +874,7 @@
|
||||
<view class="{{item.classStr}} wxParse-li-circle"></view>
|
||||
</view>
|
||||
<view class="{{item.classStr}} wxParse-li-text">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse12" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -895,7 +895,7 @@
|
||||
<!--a类型-->
|
||||
<block wx:elif="{{item.tag == 'a'}}">
|
||||
<view bindtap="wxParseTagATap" class="wxParse-inline {{item.classStr}} wxParse-{{item.tag}}" data-src="{{item.attr.href}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse12" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -904,7 +904,7 @@
|
||||
<!--其他块级标签-->
|
||||
<block wx:elif="{{item.tagType == 'block'}}">
|
||||
<view class="{{item.classStr}} wxParse-{{item.tag}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse12" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
@ -912,7 +912,7 @@
|
||||
|
||||
<!--内联标签-->
|
||||
<view wx:else class="{{item.classStr}} wxParse-{{item.tag}} wxParse-{{item.tagType}}" style="{{item.styleStr}}">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="">
|
||||
<block wx:for="{{item.nodes}}" wx:for-item="item" wx:key="id">
|
||||
<template is="wxParse12" data="{{item}}"/>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<view class='container'>
|
||||
<view class="goodsList" wx:if="{{cartGoods.length > 0}}">
|
||||
<view class="a-goods {{item.isTouchMove ? 'touch-move-active' : ''}}" wx:for="{{cartGoods}}" wx:key="{{item.id}}" bindtouchstart="touchstart" bindtouchmove="touchmove" data-index="{{index}}">
|
||||
<view class="a-goods {{item.isTouchMove ? 'touch-move-active' : ''}}" wx:for="{{cartGoods}}" wx:key="id" bindtouchstart="touchstart" bindtouchmove="touchmove" data-index="{{index}}">
|
||||
<view class='content'>
|
||||
<view wx:if="{{item.number >0 && item.is_on_sale == 1}}" class="checkbox {{item.checked ? 'checked' : ''}}" bindtap="checkedItem" data-item-index="{{index}}"></view>
|
||||
<view wx:else class="checkbox"></view>
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
<view class="catalog">
|
||||
<scroll-view class="nav" scroll-y="true">
|
||||
<view class="item {{ nowId == 0 ?'active' : ''}}" bindtap="switchCate" data-id="0">全部</view>
|
||||
<view class="item {{ nowId == item.id?'active' : ''}}" wx:for="{{navList}}" wx:key="{{item.id}}" data-id="{{item.id}}" bindtap="switchCate">{{item.name}}</view>
|
||||
<view class="item {{ nowId == item.id?'active' : ''}}" wx:for="{{navList}}" wx:key="id" data-id="{{item.id}}" bindtap="switchCate">{{item.name}}</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="cate" scroll-y="true" bindscrolltolower="onBottom">
|
||||
<block wx:if="{{loading == 0}}">
|
||||
@ -19,7 +19,7 @@
|
||||
<view class="text" style="height:{{currentCategory.p_height}}rpx;line-height:{{currentCategory.p_height}}rpx;">{{currentCategory.name}}</view>
|
||||
</view>
|
||||
<view class='list-wrap clearfix'>
|
||||
<view class="goods-box {{(index+1)%2 == 0?'no-margin':''}}" wx:for="{{list}}" wx:for-index="index" wx:for-item="item" wx:key="{{item.id}}">
|
||||
<view class="goods-box {{(index+1)%2 == 0?'no-margin':''}}" wx:for="{{list}}" wx:for-index="index" wx:for-item="item" wx:key="id">
|
||||
<navigator hover-class='none' class='navi-url' url="/pages/goods/goods?id={{item.id}}">
|
||||
<view class="box">
|
||||
<image src="{{item.list_pic_url}}" class="image">
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
</view>
|
||||
<block wx:if="{{gallery.length > 0}}">
|
||||
<swiper bindchange="bindchange" class="banner banner-style1" indicator-dots="{{false}}" autoplay="{{false}}" current="{{current}}" circular="{{true}}" interval="4000" duration="1000" display-multiple-items="1">
|
||||
<swiper-item class="item" wx:for="{{gallery}}" wx:key="{{item.id}}">
|
||||
<swiper-item class="item" wx:for="{{gallery}}" wx:key="id">
|
||||
<image bindtap="previewImage" data-src="{{item.img_url}}" src="{{item.img_url}}" class="slide-image" mode="aspectFill" />
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
@ -92,7 +92,7 @@
|
||||
<view class='spec-item'>
|
||||
<view class='name'>{{specificationList.name}}</view>
|
||||
<view class="values">
|
||||
<view class="value {{item.checked ? 'selected' : ''}} {{item.goods_number <=0?'out-stock':''}}" bindtap="clickSkuValue" wx:for="{{specificationList.valueList}}" wx:key="{{item.id}}" data-value-id="{{item.id}}" data-index="{{index}}" data-name-id="{{item.specification_id}}">{{item.value}}</view>
|
||||
<view class="value {{item.checked ? 'selected' : ''}} {{item.goods_number <=0?'out-stock':''}}" bindtap="clickSkuValue" wx:for="{{specificationList.valueList}}" wx:key="id" data-value-id="{{item.id}}" data-index="{{index}}" data-name-id="{{item.specification_id}}">{{item.value}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="number-item">
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
</view>
|
||||
<view class='banner-wrap' wx:if="{{show_banner && banner.length > 0}}">
|
||||
<swiper class="banner" indicator-dots="true" autoplay="{{false}}" interval="3000" duration="1000" >
|
||||
<swiper-item wx:for="{{banner}}" wx:key="{{item.id}}">
|
||||
<swiper-item wx:for="{{banner}}" wx:key="id">
|
||||
<navigator wx:if="{{item.link_type == 0}}" url="/pages/goods/goods?id={{item.goods_id}}">
|
||||
<image src="{{item.image_url}}" background-size="cover"></image>
|
||||
</navigator>
|
||||
@ -23,7 +23,7 @@
|
||||
</view>
|
||||
<view class='marquee_box' wx:if="{{notice.length>0 && show_notice == 1}}">
|
||||
<swiper vertical="{{true}}" class="notice-swiper" indicator-dots="{{false}}" autoplay="{{true}}" interval="2000" duration="1000">
|
||||
<swiper-item wx:for="{{notice}}" wx:key="{{item.id}}" class='notice-wrap'>
|
||||
<swiper-item wx:for="{{notice}}" wx:key="id" class='notice-wrap'>
|
||||
|
||||
<view class="icon">
|
||||
<image src="http://lucky-icon.meiweiyuxian.com/hio/notice-icon.png" class='img'>
|
||||
@ -36,13 +36,13 @@
|
||||
</view>
|
||||
<swiper class="catalog-wrap" indicator-dots="{{false}}" indicator-color="#dedede" indicator-active-color="#e00000" wx:if="{{show_channel}}">
|
||||
<swiper-item class="first">
|
||||
<view wx:for="{{channel}}" wx:if="{{item.sort_order < 7}}" wx:key="{{item.id}}" class='icon-navi' data-cateid="{{item.id}}" bindtap="goCategory">
|
||||
<view wx:for="{{channel}}" wx:if="{{item.sort_order < 7}}" wx:key="id" class='icon-navi' data-cateid="{{item.id}}" bindtap="goCategory">
|
||||
<image class='icon-img' src="{{item.icon_url}}"></image>
|
||||
<view class='icon-text'>{{item.name}}</view>
|
||||
</view>
|
||||
</swiper-item>
|
||||
<swiper-item class="first" wx:if="{{channel.length > 6}}">
|
||||
<navigator wx:for="{{channel}}" wx:key="{{item.id}}" hover-class="none" class='icon-navi' url="/pages/category/index?id={{item.id}}" wx:if="{{item.sort_order > 6 && item.sort_order < 12}}">
|
||||
<navigator wx:for="{{channel}}" wx:key="id" hover-class="none" class='icon-navi' url="/pages/category/index?id={{item.id}}" wx:if="{{item.sort_order > 6 && item.sort_order < 12}}">
|
||||
<image class='icon-img' src="{{item.icon_url}}"></image>
|
||||
<view class='icon-text'>{{item.name}}</view>
|
||||
</navigator>
|
||||
@ -55,7 +55,7 @@
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="goods-container">
|
||||
<view class='topic-container' wx:for="{{floorGoods}}" wx:key="{{item.id}}">
|
||||
<view class='topic-container' wx:for="{{floorGoods}}" wx:key="id">
|
||||
<view class='banner-container' bindtap="goCategory" data-cateid="{{item.id}}" wx:if="{{index_banner_img == 1}}">
|
||||
<image mode='aspectFill' style="width:100%;height:{{item.height}}rpx" src='{{item.banner}}'>
|
||||
</image>
|
||||
@ -69,7 +69,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class='list-wrap clearfix'>
|
||||
<view class="new-box {{(iindex+1)%3 == 0?'no-margin':''}}" wx:for="{{item.goodsList}}" wx:for-index="iindex" wx:for-item="iitem" wx:key="{{iitem.id}}">
|
||||
<view class="new-box {{(iindex+1)%3 == 0?'no-margin':''}}" wx:for="{{item.goodsList}}" wx:for-index="iindex" wx:for-item="iitem" wx:key="id">
|
||||
<navigator hover-class='none' class='navi-url' url="/pages/goods/goods?id={{iitem.id}}">
|
||||
<view class="box">
|
||||
<image src="{{iitem.list_pic_url}}" class="image">
|
||||
|
||||
@ -218,97 +218,6 @@
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
|
||||
.m-menu {
|
||||
display: flex;
|
||||
height: 150rpx;
|
||||
width: 750rpx;
|
||||
flex-flow: row nowrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.m-menu .item {
|
||||
flex: 1;
|
||||
display: block;
|
||||
padding: 20rpx 0;
|
||||
}
|
||||
|
||||
.m-menu image {
|
||||
display: block;
|
||||
width: 58rpx;
|
||||
height: 58rpx;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
.m-menu text {
|
||||
display: block;
|
||||
font-size: 24rpx;
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
line-height: 1;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.hot-goods-wrap {
|
||||
width: 100%;
|
||||
padding: 0 24rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
margin: 30rpx 0 0 0;
|
||||
}
|
||||
|
||||
.hot-goods-wrap .best {
|
||||
width: 702rpx;
|
||||
height: 208rpx;
|
||||
margin-bottom: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.hot-goods-wrap .best image {
|
||||
width: 702rpx;
|
||||
height: 208rpx;
|
||||
}
|
||||
|
||||
.hot-goods-wrap .good-wrap {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hot-goods-wrap .good-wrap image {
|
||||
width: 340rpx;
|
||||
height: 250rpx;
|
||||
}
|
||||
|
||||
/* banner end */
|
||||
|
||||
.fast-box .navi-url {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.fast-box .box {
|
||||
height: 100%;
|
||||
width: 220rpx;
|
||||
float: left;
|
||||
margin-right: 24rpx;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fast-box .box .image {
|
||||
width: 220rpx;
|
||||
height: 220rpx;
|
||||
background: #fafafa;
|
||||
position: relative;
|
||||
border-radius: 4rpx;
|
||||
border: 1rpx solid #eee;
|
||||
}
|
||||
|
||||
.no-goods-mask {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
@ -319,162 +228,8 @@
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.fast-box .see-more {
|
||||
height: 90rpx;
|
||||
text-align: center;
|
||||
line-height: 90rpx;
|
||||
color: #666;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.fast-box .info-container {
|
||||
width: 460rpx;
|
||||
height: auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fast-box .fast-out-status {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.info-container .goods-title {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
/* font-weight: bold; */
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
|
||||
.info-container .tag {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
|
||||
.info-container .tag .l {
|
||||
height: 34rpx;
|
||||
min-width: 100rpx;
|
||||
padding: 0 14rpx;
|
||||
background: #f3ebea;
|
||||
color: #d14848;
|
||||
font-size: 20rpx;
|
||||
line-height: 34rpx;
|
||||
text-align: center;
|
||||
border: 1rpx solid #f3ebea;
|
||||
}
|
||||
|
||||
.info-container .tag .m {
|
||||
height: 34rpx;
|
||||
min-width: 100rpx;
|
||||
padding: 0 20rpx;
|
||||
border: 1rpx solid #f3ebea;
|
||||
color: #d14848;
|
||||
font-size: 20rpx;
|
||||
line-height: 34rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* .info-container .fast-price{
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: baseline;
|
||||
margin-bottom: 14rpx;
|
||||
} */
|
||||
|
||||
.info-container .fast-price {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
|
||||
.fast-price .no-level {
|
||||
font-size: 26rpx;
|
||||
color: #e00000;
|
||||
}
|
||||
|
||||
.fast-price .l {
|
||||
font-size: 24rpx;
|
||||
color: #cc2b1d;
|
||||
}
|
||||
|
||||
.fast-price .r {
|
||||
font-size: 32rpx;
|
||||
color: #cc2b1d;
|
||||
}
|
||||
|
||||
.fast-price .h {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.fast-price .b {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.fast-price .b .price-t {
|
||||
font-size: 30rpx;
|
||||
color: #e00000;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.fast-price .b .price-tag {
|
||||
border: 1rpx solid #e00000;
|
||||
color: #e00000;
|
||||
background: #ffeaea;
|
||||
border-radius: 100rpx;
|
||||
padding: 0 6rpx;
|
||||
font-size: 14rpx;
|
||||
text-align: center;
|
||||
line-height: 22rpx;
|
||||
height: 22rpx;
|
||||
}
|
||||
|
||||
.info-container .tips {
|
||||
font-size: 20rpx;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.info-container .fast-go {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
border: 1rpx solid #ca2a1d;
|
||||
color: #ca2a1d;
|
||||
font-size: 20rpx;
|
||||
border-radius: 100rpx;
|
||||
height: 44rpx;
|
||||
width: 110rpx;
|
||||
line-height: 44rpx;
|
||||
text-align: center;
|
||||
padding: 0 10rpx;
|
||||
}
|
||||
|
||||
.info-container .fast-go-out {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
border: 1rpx solid #ccc;
|
||||
background: #ccc;
|
||||
color: #555;
|
||||
font-size: 20rpx;
|
||||
border-radius: 100rpx;
|
||||
height: 44rpx;
|
||||
width: 110rpx;
|
||||
line-height: 44rpx;
|
||||
text-align: center;
|
||||
padding: 0 10rpx;
|
||||
}
|
||||
|
||||
/* 信息容器 */
|
||||
|
||||
.new-buy .list-wrap, .goods-container .list-wrap {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 26rpx 30rpx 10rpx 30rpx;
|
||||
height: auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.more-category {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
@ -507,6 +262,15 @@
|
||||
width: 120rpx;
|
||||
}
|
||||
|
||||
.new-buy .list-wrap,
|
||||
.goods-container .list-wrap {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 26rpx 30rpx 10rpx 30rpx;
|
||||
height: auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.list-wrap .no-margin {
|
||||
margin-right: 0;
|
||||
}
|
||||
@ -530,7 +294,8 @@
|
||||
position: relative;
|
||||
margin-bottom: 10rpx;
|
||||
border-radius: 4rpx;
|
||||
/* border: 1rpx solid #eee; *//* box-sizing: border-box; */
|
||||
/* border: 1rpx solid #eee; */
|
||||
/* box-sizing: border-box; */
|
||||
}
|
||||
|
||||
.new-box .navi-url .box .new-tag {
|
||||
@ -547,10 +312,6 @@
|
||||
border-radius: 0 40rpx 40rpx 0;
|
||||
}
|
||||
|
||||
.new-box .navi-url .goods-info {
|
||||
/* width: 220rpx; */
|
||||
}
|
||||
|
||||
.new-box .navi-url .goods-info .goods-title {
|
||||
font-size: 24rpx;
|
||||
color: #222;
|
||||
@ -610,36 +371,6 @@
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.new-box .navi-url .goods-info .price-container .l .no-level {
|
||||
font-size: 26rpx;
|
||||
color: #e00000;
|
||||
}
|
||||
|
||||
.new-box .navi-url .goods-info .price-container .l .b .price-w {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.new-box .navi-url .goods-info .price-container .l .b .price-t {
|
||||
font-size: 26rpx;
|
||||
color: #e00000;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
|
||||
.new-box .navi-url .goods-info .price-container .l .b .price-tag {
|
||||
border: 1rpx solid #e00000;
|
||||
color: #e00000;
|
||||
background: #ffeaea;
|
||||
border-radius: 100rpx;
|
||||
padding: 0 6rpx;
|
||||
font-size: 14rpx;
|
||||
text-align: center;
|
||||
line-height: 22rpx;
|
||||
height: 22rpx;
|
||||
}
|
||||
|
||||
.new-box .navi-url .goods-info .price-container .retail-price {
|
||||
font-size: 18rpx;
|
||||
color: #000;
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<view class="list-title">商品信息</view>
|
||||
<view class="a-goods">
|
||||
<view class="img-box">
|
||||
<view class='image-wrap' wx:for="{{checkedGoodsList}}" wx:if="{{index<5}}" wx:key="{{item.id}}">
|
||||
<view class='image-wrap' wx:for="{{checkedGoodsList}}" wx:if="{{index<5}}" wx:key="id">
|
||||
<image src="{{item.list_pic_url}}" class="goods-image"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
<image class="icon" bindtap="clearHistory"></image>
|
||||
</view>
|
||||
<view class="b">
|
||||
<view class="item" bindtap="onKeywordTap" data-keyword="{{item}}" wx:for="{{historyKeyword}}" hover-class="navigator-hover" wx:key="{{item.id}}">{{item}}</view>
|
||||
<view class="item" bindtap="onKeywordTap" data-keyword="{{item}}" wx:for="{{historyKeyword}}" hover-class="navigator-hover" wx:key="id">{{item}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="serach-keywords search-hot" wx:if="{{!keyword}}">
|
||||
@ -22,11 +22,11 @@
|
||||
<text class="title">热门搜索</text>
|
||||
</view>
|
||||
<view class="b">
|
||||
<view class="item {{item.is_hot === 1 ? 'active' : ''}}" hover-class="navigator-hover" bindtap="onKeywordTap" data-keyword="{{item.keyword}}" wx:for="{{hotKeyword}}" wx:key="{{item.id}}">{{item.keyword}}</view>
|
||||
<view class="item {{item.is_hot === 1 ? 'active' : ''}}" hover-class="navigator-hover" bindtap="onKeywordTap" data-keyword="{{item.keyword}}" wx:for="{{hotKeyword}}" wx:key="id">{{item.keyword}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="shelper-list" wx:if="{{keyword}}">
|
||||
<view class="item" hover-class="navigator-hover" wx:for="{{helpKeyword}}" bindtap="onKeywordTap" data-keyword="{{item}}" wx:key="{{item.id}}">{{item}}</view>
|
||||
<view class="item" hover-class="navigator-hover" wx:for="{{helpKeyword}}" bindtap="onKeywordTap" data-keyword="{{item}}" wx:key="id">{{item}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
<view class="cate-item">
|
||||
<view class="b">
|
||||
<view class='list-wrap clearfix'>
|
||||
<view class="goods-box {{(iindex+1)%2 == 0?'no-margin':''}}" wx:for="{{goodsList}}" wx:for-index="iindex" wx:for-item="iitem" wx:key="{{iitem.id}}">
|
||||
<view class="goods-box {{(iindex+1)%2 == 0?'no-margin':''}}" wx:for="{{goodsList}}" wx:for-index="iindex" wx:for-item="iitem" wx:key="id">
|
||||
<navigator hover-class='none' class='navi-url' url="/pages/goods/goods?id={{iitem.id}}">
|
||||
<view class="box">
|
||||
<image src="{{iitem.list_pic_url}}" class="image">
|
||||
|
||||
@ -50,13 +50,13 @@
|
||||
<view class="region-select" wx:if="{{openSelectRegion}}">
|
||||
<view class="hd">
|
||||
<view class="region-selected">
|
||||
<view class="item {{item.id == 0 ? 'disabled' : ''}} {{(regionType -1) === index ? 'selected' : ''}}" bindtap="selectRegionType" data-region-type-index="{{index}}" wx:for="{{selectRegionList}}" wx:key="{{item.id}}">{{item.name}}</view>
|
||||
<view class="item {{item.id == 0 ? 'disabled' : ''}} {{(regionType -1) === index ? 'selected' : ''}}" bindtap="selectRegionType" data-region-type-index="{{index}}" wx:for="{{selectRegionList}}" wx:key="id">{{item.name}}</view>
|
||||
</view>
|
||||
<view class="done {{selectRegionDone ? '' : 'disabled'}}" bindtap="doneSelectRegion">确定</view>
|
||||
</view>
|
||||
<view class="bd">
|
||||
<scroll-view scroll-y class="region-list">
|
||||
<view class="item {{item.selected ? 'selected' : ''}}" bindtap="selectRegion" data-region-index="{{index}}" wx:for="{{regionList}}" wx:key="{{item.id}}">{{item.name}}</view>
|
||||
<view class="item {{item.selected ? 'selected' : ''}}" bindtap="selectRegion" data-region-index="{{index}}" wx:for="{{regionList}}" wx:key="id">{{item.name}}</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<view class="container">
|
||||
<view class='has-info' wx:if="{{addresses.length > 0}}">
|
||||
<view bindtap="{{type == 0?'goAddressDetail':'selectAddress'}}" class='info-item' data-addressid="{{item.id}}" wx:for="{{addresses}}" wx:key="{{item.id}}">
|
||||
<view bindtap="{{type == 0?'goAddressDetail':'selectAddress'}}" class='info-item' data-addressid="{{item.id}}" wx:for="{{addresses}}" wx:key="id">
|
||||
<view class="selected" wx:if="{{type == 1}}">
|
||||
<image wx:if="{{item.id == nowAddress}}" class="img" src="http://lucky-icon.meiweiyuxian.com/hio/gou-red.png"></image>
|
||||
<image wx:else class="img" src="http://lucky-icon.meiweiyuxian.com/hio/gou-gray.png"></image>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<view class="container">
|
||||
<view class='goods-list-container'>
|
||||
<view class='goods-list-wrap' hover-class='none' wx:for="{{goodsList}}" wx:key="item.id" wx:for-item="item">
|
||||
<view class='goods-list-wrap' hover-class='none' wx:for="{{goodsList}}" wx:key="id" wx:for-item="item">
|
||||
<navigator hover-class='none' class='goods-nav' url='/pages/goods/goods?id={{item.goods_id}}'>
|
||||
<view class='image-wrap'>
|
||||
<image class='goods-image' src='{{item.list_pic_url}}'></image>
|
||||
|
||||
@ -25,7 +25,7 @@ Page({
|
||||
},
|
||||
reOrderAgain: function () {
|
||||
let orderId = this.data.orderId
|
||||
wx.navigateTo({
|
||||
wx.redirectTo({
|
||||
url: '/pages/order-check/index?addtype=2&orderFrom=' + orderId
|
||||
})
|
||||
},
|
||||
@ -97,6 +97,13 @@ Page({
|
||||
clearInterval(orderTimerID);
|
||||
}
|
||||
},
|
||||
onHide: function () {
|
||||
let oCancel = this.data.handleOption.cancel;
|
||||
if (oCancel == true) {
|
||||
let orderTimerID = this.data.wxTimerList.orderTimer.wxIntId;
|
||||
clearInterval(orderTimerID);
|
||||
}
|
||||
},
|
||||
orderTimer: function (endTime) {
|
||||
let that = this;
|
||||
var orderTimerID = '';
|
||||
@ -116,35 +123,14 @@ Page({
|
||||
postscript: postscript
|
||||
});
|
||||
},
|
||||
cancelRefund: function() {
|
||||
let that = this;
|
||||
wx.showModal({
|
||||
title: '',
|
||||
content: '确定要取消退款?',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
util.request(api.CancelRefund, {
|
||||
orderId: that.data.orderId
|
||||
}, 'POST').then(function(res) {
|
||||
if (res.errno === 0) {
|
||||
wx.showToast({
|
||||
title: '取消退款成功!'
|
||||
});
|
||||
that.getOrderDetail();
|
||||
} else {
|
||||
util.showErrorToast(res.errmsg);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
getExpressInfo: function () {
|
||||
this.setData({
|
||||
onPosting: 0
|
||||
})
|
||||
let that = this;
|
||||
util.request(api.OrderExpressInfo, { orderId: that.data.orderId }).then(function (res) {
|
||||
util.request(api.OrderExpressInfo, {
|
||||
orderId: that.data.orderId
|
||||
}).then(function (res) {
|
||||
if (res.errno === 0) {
|
||||
let express = res.data;
|
||||
express.traces = JSON.parse(res.data.traces);
|
||||
@ -168,11 +154,6 @@ Page({
|
||||
textCode: res.data.textCode,
|
||||
goodsCount: res.data.goodsCount
|
||||
});
|
||||
let orderType = res.data.orderInfo.order_type;
|
||||
if (orderType == 2) {
|
||||
that.getImageUrl();
|
||||
}
|
||||
}
|
||||
let receive = res.data.textCode.receive;
|
||||
if (receive == true) {
|
||||
let confirm_remainTime = res.data.orderInfo.confirm_remainTime;
|
||||
@ -184,6 +165,7 @@ Page({
|
||||
payTime = res.data.orderInfo.final_pay_time
|
||||
that.orderTimer(payTime);
|
||||
}
|
||||
}
|
||||
});
|
||||
wx.hideLoading();
|
||||
},
|
||||
@ -215,6 +197,7 @@ Page({
|
||||
title: '删除订单成功'
|
||||
});
|
||||
wx.removeStorageSync('orderId');
|
||||
wx.setStorageSync('doRefresh', 1);
|
||||
wx.navigateBack();
|
||||
} else {
|
||||
util.showErrorToast(res.errmsg);
|
||||
@ -224,7 +207,6 @@ Page({
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// “确认收货”点击效果
|
||||
confirmOrder: function () {
|
||||
let that = this;
|
||||
@ -240,6 +222,7 @@ Page({
|
||||
wx.showToast({
|
||||
title: '确认收货成功!'
|
||||
});
|
||||
wx.setStorageSync('doRefresh', 1);
|
||||
that.getOrderDetail();
|
||||
} else {
|
||||
util.showErrorToast(res.errmsg);
|
||||
@ -261,8 +244,6 @@ Page({
|
||||
orderId: that.data.orderId
|
||||
}, 'POST').then(function (res) {
|
||||
if (res.errno === 0) {
|
||||
let orderTimerID = that.data.wxTimerList.orderTimer.wxIntId;
|
||||
clearInterval(orderTimerID);
|
||||
wx.showToast({
|
||||
title: '取消订单成功'
|
||||
});
|
||||
@ -273,6 +254,9 @@ Page({
|
||||
allCount: 0,
|
||||
size: 8
|
||||
});
|
||||
wx.setStorageSync('doRefresh', 1);
|
||||
let orderTimerID = that.data.wxTimerList.orderTimer.wxIntId;
|
||||
clearInterval(orderTimerID);
|
||||
that.getOrderDetail();
|
||||
} else {
|
||||
util.showErrorToast(res.errmsg);
|
||||
|
||||
@ -69,7 +69,7 @@
|
||||
</view>
|
||||
<view class="a-goods">
|
||||
<view class="img-box">
|
||||
<view class='image-wrap' wx:for="{{orderGoods}}" wx:key="{{item.id}}" wx:if="{{index<4}}">
|
||||
<view class='image-wrap' wx:for="{{orderGoods}}" wx:key="id" wx:if="{{index<4}}">
|
||||
<image src="{{item.list_pic_url}}" class="goods-image" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -86,7 +86,8 @@ Page({
|
||||
onShow: function() {
|
||||
let showType = wx.getStorageSync('showType');
|
||||
let nowShowType = this.data.showType;
|
||||
if (nowShowType != showType) {
|
||||
let doRefresh = wx.getStorageSync('doRefresh');
|
||||
if (nowShowType != showType || doRefresh == 1) {
|
||||
this.setData({
|
||||
showType: showType,
|
||||
orderList: [],
|
||||
@ -96,6 +97,7 @@ Page({
|
||||
size: 8
|
||||
});
|
||||
this.getOrderList();
|
||||
wx.removeStorageSync('doRefresh');
|
||||
}
|
||||
this.getOrderInfo();
|
||||
},
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
<view class="goods-list">
|
||||
<view class="a-goods">
|
||||
<view class="img-box">
|
||||
<view class='image-wrap' wx:for="{{item.goodsList}}" wx:key="{{id}}" wx:for-item="gitem" wx:if="{{index<4}}">
|
||||
<view class='image-wrap' wx:for="{{item.goodsList}}" wx:key="id" wx:for-item="gitem" wx:if="{{index<4}}">
|
||||
<image src="{{gitem.list_pic_url}}" class="goods-image" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -4,10 +4,13 @@
|
||||
"urlCheck": false,
|
||||
"es6": true,
|
||||
"postcss": true,
|
||||
"preloadBackgroundData": false,
|
||||
"minified": true,
|
||||
"newFeature": true,
|
||||
"coverView": true,
|
||||
"autoAudits": false,
|
||||
"showShadowRootInWxmlPanel": true,
|
||||
"scopeDataCheck": false,
|
||||
"checkInvalidKey": true,
|
||||
"checkSiteMap": false,
|
||||
"uploadWithSourceMap": true,
|
||||
@ -20,7 +23,7 @@
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "2.9.4",
|
||||
"appid": "wxf3d768d1818218f1",
|
||||
"projectname": "%E6%B5%B7%E9%B8%A5%E5%95%86%E5%9F%8E",
|
||||
"projectname": "%e6%b5%b7%e9%a3%8e%e5%b0%8f%e5%ba%97",
|
||||
"isGameTourist": false,
|
||||
"scripts": {
|
||||
"beforeCompile": "",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user