no message
@@ -1,6 +1,9 @@
|
||||
const path = require('path')
|
||||
const pkg = require('../package.json')
|
||||
|
||||
const [TARO_CMD, TARO_ENV] = process.env.npm_lifecycle_event.split(':')
|
||||
const DIST_PATH = TARO_ENV === 'h5' ? 'h5_dist' : 'dist'
|
||||
|
||||
const config = {
|
||||
projectName: pkg.name,
|
||||
date: '2019-2-18',
|
||||
@@ -11,7 +14,7 @@ const config = {
|
||||
'828': 1.81 / 2
|
||||
},
|
||||
sourceRoot: 'src',
|
||||
outputRoot: process.env.TARO_ENV === 'weapp' ? 'dist' : 'h5_dist',
|
||||
outputRoot: DIST_PATH,
|
||||
plugins: {
|
||||
babel: {
|
||||
sourceMap: true,
|
||||
@@ -39,7 +42,7 @@ const config = {
|
||||
},
|
||||
copy: {
|
||||
patterns: [
|
||||
{ from: 'src/assets', to: 'dist/assets' }
|
||||
{ from: 'src/assets', to: `${DIST_PATH}/assets` }
|
||||
],
|
||||
options: {
|
||||
}
|
||||
|
||||
6
dist/components/back-to-top/index.js
vendored
@@ -69,8 +69,8 @@ var BackToTop = (_temp2 = _class = function (_BaseComponent) {
|
||||
return this.__state;
|
||||
}
|
||||
}, {
|
||||
key: "funPrivateTluTZ",
|
||||
value: function funPrivateTluTZ() {
|
||||
key: "funPrivateyOcvN",
|
||||
value: function funPrivateyOcvN() {
|
||||
this.__triggerPropsFn("onClick", [].concat(Array.prototype.slice.call(arguments)));
|
||||
}
|
||||
}]);
|
||||
@@ -93,7 +93,7 @@ var BackToTop = (_temp2 = _class = function (_BaseComponent) {
|
||||
"type": null,
|
||||
"value": null
|
||||
}
|
||||
}, _class.$$events = ["funPrivateTluTZ"], _class.options = {
|
||||
}, _class.$$events = ["funPrivateyOcvN"], _class.options = {
|
||||
addGlobalClass: true
|
||||
}, _class.defaultProps = {
|
||||
onClick: function onClick() {}
|
||||
|
||||
2
dist/components/back-to-top/index.wxml
vendored
@@ -1,5 +1,5 @@
|
||||
<block>
|
||||
<view class="{{anonymousState__temp}}" style="{{anonymousState__temp2}}" bindtap="funPrivateTluTZ">
|
||||
<view class="{{anonymousState__temp}}" style="{{anonymousState__temp2}}" bindtap="funPrivateyOcvN">
|
||||
<view class="at-icon at-icon-chevron-up"></view><text class="back-to-top__text">置顶</text>
|
||||
</view>
|
||||
</block>
|
||||
6
dist/components/cell/index.js
vendored
@@ -78,8 +78,8 @@ var SpCell = (_temp2 = _class = function (_BaseComponent) {
|
||||
return this.__state;
|
||||
}
|
||||
}, {
|
||||
key: "funPrivatefJzYB",
|
||||
value: function funPrivatefJzYB() {
|
||||
key: "funPrivatewYvTR",
|
||||
value: function funPrivatewYvTR() {
|
||||
this.__triggerPropsFn("onClick", [].concat(Array.prototype.slice.call(arguments)));
|
||||
}
|
||||
}]);
|
||||
@@ -126,7 +126,7 @@ var SpCell = (_temp2 = _class = function (_BaseComponent) {
|
||||
"type": null,
|
||||
"value": null
|
||||
}
|
||||
}, _class.$$events = ["funPrivatefJzYB"], _class.options = {
|
||||
}, _class.$$events = ["funPrivatewYvTR"], _class.options = {
|
||||
addGlobalClass: true
|
||||
}, _class.defaultProps = {
|
||||
isLink: false,
|
||||
|
||||
2
dist/components/cell/index.wxml
vendored
@@ -1,5 +1,5 @@
|
||||
<block>
|
||||
<view class="{{anonymousState__temp}}" bindtap="funPrivatefJzYB">
|
||||
<view class="{{anonymousState__temp}}" bindtap="funPrivatewYvTR">
|
||||
<block wx:if="{{icon}}">
|
||||
<view class="{{'sp-cell__icon ' + (iconPrefix ? iconPrefix + ' ' + iconPrefix + '-' + icon : 'at-icon at-icon-' + icon)}}"></view>
|
||||
</block>
|
||||
|
||||
6
dist/components/goods-item/index.js
vendored
@@ -81,8 +81,8 @@ var GoodsItem = (_temp2 = _class = function (_BaseComponent) {
|
||||
return this.__state;
|
||||
}
|
||||
}, {
|
||||
key: "funPrivatewrbBZ",
|
||||
value: function funPrivatewrbBZ() {
|
||||
key: "funPrivateKTVoo",
|
||||
value: function funPrivateKTVoo() {
|
||||
this.__triggerPropsFn("onClickImg", [].concat(Array.prototype.slice.call(arguments)));
|
||||
}
|
||||
}]);
|
||||
@@ -117,7 +117,7 @@ var GoodsItem = (_temp2 = _class = function (_BaseComponent) {
|
||||
"type": null,
|
||||
"value": null
|
||||
}
|
||||
}, _class.$$events = ["funPrivatewrbBZ"], _class.defaultProps = {
|
||||
}, _class.$$events = ["funPrivateKTVoo"], _class.defaultProps = {
|
||||
onClickImg: function onClickImg() {},
|
||||
showMarketPrice: true,
|
||||
noCurSymbol: false
|
||||
|
||||
2
dist/components/goods-item/index.wxml
vendored
@@ -8,7 +8,7 @@
|
||||
</view>
|
||||
<view class="goods-item__bd">
|
||||
<view class="goods-item__img-wrap">
|
||||
<image class="goods-item__img" bindtap="funPrivatewrbBZ" mode="aspectFill" src="{{img}}"></image>
|
||||
<image class="goods-item__img" bindtap="funPrivateKTVoo" mode="aspectFill" src="{{img}}"></image>
|
||||
</view>
|
||||
<view class="goods-item__cont"><text class="goods-item__title">{{info.title}}</text><text class="goods-item__desc">{{info.desc}}</text>
|
||||
<view class="goods-item__prices">
|
||||
|
||||
6
dist/pages/cart/checkout-items.js
vendored
@@ -70,8 +70,8 @@ var CheckoutItems = (_temp2 = _class = function (_BaseComponent) {
|
||||
return this.__state;
|
||||
}
|
||||
}, {
|
||||
key: "funPrivateiRhVc",
|
||||
value: function funPrivateiRhVc() {
|
||||
key: "funPrivateDPWKF",
|
||||
value: function funPrivateDPWKF() {
|
||||
this.__triggerPropsFn("onClickBack", [].concat(Array.prototype.slice.call(arguments)));
|
||||
}
|
||||
}]);
|
||||
@@ -98,7 +98,7 @@ var CheckoutItems = (_temp2 = _class = function (_BaseComponent) {
|
||||
"type": null,
|
||||
"value": null
|
||||
}
|
||||
}, _class.$$events = ["funPrivateiRhVc"], _class.defaultProps = {
|
||||
}, _class.$$events = ["funPrivateDPWKF"], _class.defaultProps = {
|
||||
isOpened: false,
|
||||
list: [],
|
||||
onClickBack: function onClickBack() {}
|
||||
|
||||
2
dist/pages/cart/checkout-items.wxml
vendored
@@ -1,6 +1,6 @@
|
||||
<block>
|
||||
<view class="{{anonymousState__temp}}">
|
||||
<at-nav-bar leftIconType="chevron-left" __triggerObserer="{{ _triggerObserer }}" title="{{anonymousState__temp2}}" bindonclicklefticon="funPrivateiRhVc" __fn_onClickLeftIcon="{{true}}"></at-nav-bar>
|
||||
<at-nav-bar leftIconType="chevron-left" __triggerObserer="{{ _triggerObserer }}" title="{{anonymousState__temp2}}" bindonclicklefticon="funPrivateDPWKF" __fn_onClickLeftIcon="{{true}}"></at-nav-bar>
|
||||
<scroll-view class="checkout-items__scroll">
|
||||
<view class="checkout-items__list">
|
||||
<goods-item wx:key="item_id" __triggerObserer="{{ _triggerObserer }}" info="{{item}}" wx:for="{{list}}" wx:for-item="item" wx:for-index="_anonIdx"></goods-item>
|
||||
|
||||
2
dist/pages/index/index.js
vendored
@@ -50,7 +50,7 @@ var Index = (_temp2 = _class = function (_BaseComponent) {
|
||||
key: 'componentWillMount',
|
||||
value: function componentWillMount() {
|
||||
_index2.default.redirectTo({
|
||||
url: '/pages/member/index'
|
||||
url: '/pages/home/index'
|
||||
// url: '/pages/item/espier-detail?id=268'
|
||||
});
|
||||
}
|
||||
|
||||
10
dist/pages/item/comps/buy-toolbar.js
vendored
@@ -79,13 +79,13 @@ var GoodsBuyToolbar = (_dec = (0, _index3.connect)(function (_ref) {
|
||||
return this.__state;
|
||||
}
|
||||
}, {
|
||||
key: "funPrivateVSoaH",
|
||||
value: function funPrivateVSoaH() {
|
||||
key: "funPrivateKAkMr",
|
||||
value: function funPrivateKAkMr() {
|
||||
this.__triggerPropsFn("onClickAddCart", [].concat(Array.prototype.slice.call(arguments)));
|
||||
}
|
||||
}, {
|
||||
key: "funPrivateaoVCJ",
|
||||
value: function funPrivateaoVCJ() {
|
||||
key: "funPrivateyaCsn",
|
||||
value: function funPrivateyaCsn() {
|
||||
this.__triggerPropsFn("onClickFastBuy", [].concat(Array.prototype.slice.call(arguments)));
|
||||
}
|
||||
}]);
|
||||
@@ -120,7 +120,7 @@ var GoodsBuyToolbar = (_dec = (0, _index3.connect)(function (_ref) {
|
||||
"type": null,
|
||||
"value": null
|
||||
}
|
||||
}, _class2.$$events = ["navigateTo", "funPrivateVSoaH", "funPrivateaoVCJ"], _class2.options = {
|
||||
}, _class2.$$events = ["navigateTo", "funPrivateKAkMr", "funPrivateyaCsn"], _class2.options = {
|
||||
addGlobalClass: true
|
||||
}, _class2.defaultProps = {
|
||||
type: 'normal',
|
||||
|
||||
4
dist/pages/item/comps/buy-toolbar.wxml
vendored
@@ -15,9 +15,9 @@
|
||||
</view>
|
||||
<view class="goods-buy-toolbar__btns" style="width: 59%;">
|
||||
<block wx:if="{{type === 'normal'}}">
|
||||
<button class="goods-buy-toolbar__btn btn-add-cart" bindtap="funPrivateVSoaH">加入购物车</button>
|
||||
<button class="goods-buy-toolbar__btn btn-add-cart" bindtap="funPrivateKAkMr">加入购物车</button>
|
||||
</block>
|
||||
<button class="goods-buy-toolbar__btn btn-fast-buy" bindtap="funPrivateaoVCJ">{{fastBuyText}}</button>
|
||||
<button class="goods-buy-toolbar__btn btn-fast-buy" bindtap="funPrivateyaCsn">{{fastBuyText}}</button>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
6
dist/pages/trade/comps/item.js
vendored
@@ -74,8 +74,8 @@ var TradeItem = (_temp2 = _class = function (_BaseComponent) {
|
||||
return this.__state;
|
||||
}
|
||||
}, {
|
||||
key: "funPrivatepMMDd",
|
||||
value: function funPrivatepMMDd() {
|
||||
key: "funPrivateFznAo",
|
||||
value: function funPrivateFznAo() {
|
||||
this.__triggerPropsFn("onClick", [].concat(Array.prototype.slice.call(arguments)));
|
||||
}
|
||||
}]);
|
||||
@@ -114,7 +114,7 @@ var TradeItem = (_temp2 = _class = function (_BaseComponent) {
|
||||
"type": null,
|
||||
"value": null
|
||||
}
|
||||
}, _class.$$events = ["funPrivatepMMDd", "handleClickBtn"], _class.options = {
|
||||
}, _class.$$events = ["funPrivateFznAo", "handleClickBtn"], _class.options = {
|
||||
addGlobalClass: true
|
||||
}, _class.defaultProps = {
|
||||
customHeader: false,
|
||||
|
||||
2
dist/pages/trade/comps/item.wxml
vendored
@@ -11,7 +11,7 @@
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<view class="trade-item__bd" bindtap="funPrivatepMMDd">
|
||||
<view class="trade-item__bd" bindtap="funPrivateFznAo">
|
||||
<order-item wx:key="idx" __triggerObserer="{{ _triggerObserer }}" info="{{item}}" wx:for="{{info.order}}" wx:for-item="item" wx:for-index="idx"></order-item>
|
||||
<block>
|
||||
<block wx:if="{{customRender}}">{{customRender}}</block>
|
||||
|
||||
6
dist/pages/trade/comps/order-item.js
vendored
@@ -63,8 +63,8 @@ var OrderItem = (_temp2 = _class = function (_BaseComponent) {
|
||||
return this.__state;
|
||||
}
|
||||
}, {
|
||||
key: "funPrivatefNVFu",
|
||||
value: function funPrivatefNVFu() {
|
||||
key: "funPrivateFvvts",
|
||||
value: function funPrivateFvvts() {
|
||||
this.__triggerPropsFn("onClick", [].concat(Array.prototype.slice.call(arguments)));
|
||||
}
|
||||
}]);
|
||||
@@ -83,7 +83,7 @@ var OrderItem = (_temp2 = _class = function (_BaseComponent) {
|
||||
"type": null,
|
||||
"value": null
|
||||
}
|
||||
}, _class.$$events = ["funPrivatefNVFu"], _class.defaultProps = {
|
||||
}, _class.$$events = ["funPrivateFvvts"], _class.defaultProps = {
|
||||
onClick: function onClick() {}
|
||||
}, _temp2);
|
||||
exports.default = OrderItem;
|
||||
|
||||
2
dist/pages/trade/comps/order-item.wxml
vendored
@@ -1,5 +1,5 @@
|
||||
<block>
|
||||
<view class="order-item" bindtap="funPrivatefNVFu">
|
||||
<view class="order-item" bindtap="funPrivateFvvts">
|
||||
<view class="order-item__hd">
|
||||
<image mode="aspectFill" class="order-item__img" src="{{info.pic_path}}"></image>
|
||||
</view>
|
||||
|
||||
BIN
h5_dist/assets/fonts/iconfont.ttf
Normal file
BIN
h5_dist/assets/fonts/iconfont.woff
Normal file
BIN
h5_dist/assets/imgs/404.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
h5_dist/assets/imgs/500.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
h5_dist/assets/imgs/address_empty.png
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
BIN
h5_dist/assets/imgs/cart_empty.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
h5_dist/assets/imgs/espier/paihang.png
Executable file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
h5_dist/assets/imgs/integral_empty.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
h5_dist/assets/imgs/pay_fail.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
h5_dist/assets/imgs/pay_success.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
h5_dist/assets/imgs/plane.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
h5_dist/assets/imgs/sign_in_bg.png
Normal file
|
After Width: | Height: | Size: 434 KiB |
BIN
h5_dist/assets/imgs/sign_in_modal.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
h5_dist/assets/imgs/trade/ico_wait_buyer_confirm_goods.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
h5_dist/assets/imgs/trade/ico_wait_buyer_pay.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
h5_dist/assets/imgs/trade/ico_wait_rate.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
h5_dist/assets/imgs/trade/ico_wait_seller_send_goods.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
h5_dist/assets/imgs/trades_empty.png
Normal file
|
After Width: | Height: | Size: 21 KiB |