Authored by TaoHuang

Merge remote-tracking branch 'origin/develop' into develop

1 <template> 1 <template>
2 <LayoutApp :show-back="true" title="绑定支付宝"> 2 <LayoutApp :show-back="true" title="绑定支付宝">
3 <div class="body" ref="body"> 3 <div class="body" ref="body">
4 - <Scroll class="scroll-content">  
5 <div class="account-form"> 4 <div class="account-form">
6 <p class="form-title">账号</p> 5 <p class="form-title">账号</p>
7 <div class="form-input-block"> 6 <div class="form-input-block">
@@ -15,7 +14,6 @@ @@ -15,7 +14,6 @@
15 <div class="account-footer"> 14 <div class="account-footer">
16 <CubeButton class="submit-btn" :disabled="canSubmit" @click="submitBind">提交</CubeButton> 15 <CubeButton class="submit-btn" :disabled="canSubmit" @click="submitBind">提交</CubeButton>
17 </div> 16 </div>
18 - </Scroll>  
19 </div> 17 </div>
20 <myDialog :isShow="dialogShow" :data="{name,account}" @cancel-click="cancel" @confirm-click="confirm"></myDialog> 18 <myDialog :isShow="dialogShow" :data="{name,account}" @cancel-click="cancel" @confirm-click="confirm"></myDialog>
21 </LayoutApp> 19 </LayoutApp>
@@ -24,7 +22,7 @@ @@ -24,7 +22,7 @@
24 <script> 22 <script>
25 23
26 import { createNamespacedHelpers } from 'vuex'; 24 import { createNamespacedHelpers } from 'vuex';
27 -import {Input, Button, Scroll, Style} from 'cube-ui'; 25 +import {Input, Button, Style} from 'cube-ui';
28 import myDialog from './components/bindModel'; 26 import myDialog from './components/bindModel';
29 const {mapState, mapActions} = createNamespacedHelpers('home/bindAccount'); 27 const {mapState, mapActions} = createNamespacedHelpers('home/bindAccount');
30 export default { 28 export default {
@@ -72,7 +70,6 @@ export default { @@ -72,7 +70,6 @@ export default {
72 }, 70 },
73 components: { 71 components: {
74 Style, 72 Style,
75 - Scroll,  
76 CubeInput: Input, 73 CubeInput: Input,
77 CubeButton: Button, 74 CubeButton: Button,
78 myDialog 75 myDialog
@@ -88,9 +85,6 @@ export default { @@ -88,9 +85,6 @@ export default {
88 background-color: white; 85 background-color: white;
89 padding: 0 40px; 86 padding: 0 40px;
90 } 87 }
91 -/deep/ .cube-scroll-content {  
92 - height: 100%;  
93 -}  
94 .account-form { 88 .account-form {
95 margin-top: 40px; 89 margin-top: 40px;
96 } 90 }
@@ -168,8 +168,8 @@ export default { @@ -168,8 +168,8 @@ export default {
168 eleHeight = this.$refs[index][0].$el.offsetHeight; 168 eleHeight = this.$refs[index][0].$el.offsetHeight;
169 eleTop = this.$refs[index][0].$el.offsetTop; 169 eleTop = this.$refs[index][0].$el.offsetTop;
170 } else { 170 } else {
171 - eleHeight = this.$refs.scrollNav.offsetHeight;  
172 - eleTop = this.$refs.scrollNav.offsetTop; 171 + eleHeight = this.navHeight;
  172 + eleTop = this.navTop;
173 } 173 }
174 if(scrollY) { // 滚动时 174 if(scrollY) { // 滚动时
175 if(scrollHeight + scrollY > eleTop && item.template_name === 'guessLike') { 175 if(scrollHeight + scrollY > eleTop && item.template_name === 'guessLike') {
@@ -105,7 +105,7 @@ export default { @@ -105,7 +105,7 @@ export default {
105 } 105 }
106 .grey { 106 .grey {
107 background-color: #F2F2F2; 107 background-color: #F2F2F2;
108 - // margin: 0 -40px; 108 + margin: 0 -40px;
109 padding: 0 40px; 109 padding: 0 40px;
110 } 110 }
111 111
1 <template> 1 <template>
2 <LayoutApp :show-back="true" title="我的" :hideHeader="hideHeader"> 2 <LayoutApp :show-back="true" title="我的" :hideHeader="hideHeader">
3 <div class="body" ref="body"> 3 <div class="body" ref="body">
4 - <Scroll>  
5 <div v-for="(value, key) in getMineList" :key="key"> 4 <div v-for="(value, key) in getMineList" :key="key">
6 <tab-item v-if="key === 'board'" :data="value" noLine icon="cubeic-notification" small grey> 5 <tab-item v-if="key === 'board'" :data="value" noLine icon="cubeic-notification" small grey>
7 <noticeScroll></noticeScroll> 6 <noticeScroll></noticeScroll>
8 </tab-item> 7 </tab-item>
9 <template v-else-if="key === 'resource1' || key === 'resource2'"> 8 <template v-else-if="key === 'resource1' || key === 'resource2'">
10 - <div v-if="value.data.template_name ==='single_image'" class="marg"> 9 + <div v-if="value.data.template_name ==='single_image'">
11 <singleImage :data="value.data.data[0]"></singleImage> 10 <singleImage :data="value.data.data[0]"></singleImage>
12 </div> 11 </div>
13 </template> 12 </template>
14 - <div v-else-if="key === 'order'" class="bg-bottom marg"> 13 + <div v-else-if="key === 'order'" class="bg-bottom">
15 <order></order> 14 <order></order>
16 </div> 15 </div>
17 - <div v-else-if="key === 'sale'" class="bg-top marg"> 16 + <div v-else-if="key === 'sale'" class="bg-top">
18 <tab-item :data="value" noLine titleBold titleSmall></tab-item> 17 <tab-item :data="value" noLine titleBold titleSmall></tab-item>
19 </div> 18 </div>
20 - <bind class="marg" v-else-if="key === 'bindAccount'" :data="value"></bind>  
21 - <tab-item class="marg" v-else :data="value"></tab-item> 19 + <bind v-else-if="key === 'bindAccount'" :data="value"></bind>
  20 + <tab-item v-else :data="value"></tab-item>
22 </div> 21 </div>
23 - </Scroll>  
24 </div> 22 </div>
25 </LayoutApp> 23 </LayoutApp>
26 </template> 24 </template>
@@ -31,7 +29,6 @@ import order from './components/order'; @@ -31,7 +29,6 @@ import order from './components/order';
31 import scroll from './components/scroll'; 29 import scroll from './components/scroll';
32 import singleImage from './components/singleImage'; 30 import singleImage from './components/singleImage';
33 import bind from './components/bind'; 31 import bind from './components/bind';
34 -import {Style, Scroll} from 'cube-ui';  
35 import { createNamespacedHelpers } from 'vuex'; 32 import { createNamespacedHelpers } from 'vuex';
36 33
37 const { mapGetters, mapActions } = createNamespacedHelpers('home/mine'); 34 const { mapGetters, mapActions } = createNamespacedHelpers('home/mine');
@@ -73,9 +70,6 @@ export default { @@ -73,9 +70,6 @@ export default {
73 noticeScroll: scroll, 70 noticeScroll: scroll,
74 singleImage, 71 singleImage,
75 bind, 72 bind,
76 - Style,  
77 - Scroll  
78 -  
79 } 73 }
80 }; 74 };
81 </script> 75 </script>
@@ -83,12 +77,9 @@ export default { @@ -83,12 +77,9 @@ export default {
83 <style lang="scss" scoped> 77 <style lang="scss" scoped>
84 .body { 78 .body {
85 height: 100%; 79 height: 100%;
86 - // overflow-y: auto; 80 + overflow-y: auto;
87 background-color: white; 81 background-color: white;
88 - // padding: 0 40px;  
89 -}  
90 -.marg {  
91 - margin: 0 40px; 82 + padding: 0 40px;
92 } 83 }
93 84
94 .bg-top, 85 .bg-top,
1 <!--买家求购确认页--> 1 <!--买家求购确认页-->
2 <template> 2 <template>
3 <LayoutApp :show-back="true" title="出价求购"> 3 <LayoutApp :show-back="true" title="出价求购">
4 - <cube-scroll :options="options">  
5 <div class="body" ref="body"> 4 <div class="body" ref="body">
6 5
7 <div class="topContainer"> 6 <div class="topContainer">
@@ -77,7 +76,6 @@ @@ -77,7 +76,6 @@
77 </div> 76 </div>
78 77
79 </div> 78 </div>
80 - </cube-scroll>  
81 <div class="bottomContainer"> 79 <div class="bottomContainer">
82 <OrderAgree :value="isAgreeTerms" @input="isAgreeTerms = !isAgreeTerms" class="agree-wrapper" :desc="agreeDesc" :url="url"></OrderAgree> 80 <OrderAgree :value="isAgreeTerms" @input="isAgreeTerms = !isAgreeTerms" class="agree-wrapper" :desc="agreeDesc" :url="url"></OrderAgree>
83 <div class="btn-wrapper"> 81 <div class="btn-wrapper">
1 <!--卖家求购变现--> 1 <!--卖家求购变现-->
2 <template> 2 <template>
3 <LayoutApp :show-back="true" title="变现"> 3 <LayoutApp :show-back="true" title="变现">
4 - <cube-scroll :options="options">  
5 <div class="body"> 4 <div class="body">
6 <!--<TitleComp txt="变现"></TitleComp>--> 5 <!--<TitleComp txt="变现"></TitleComp>-->
7 6
@@ -17,7 +16,6 @@ @@ -17,7 +16,6 @@
17 <AddressInfo :data="addressInfo" class="order-item"></AddressInfo> 16 <AddressInfo :data="addressInfo" class="order-item"></AddressInfo>
18 17
19 </div> 18 </div>
20 - </cube-scroll>  
21 <div class="footer"> 19 <div class="footer">
22 <OrderAgree :value="isAgreeTerms" @input="isAgreeTerms = !isAgreeTerms" class="agree-wrapper" :desc="agreeDesc" :url="url"></OrderAgree> 20 <OrderAgree :value="isAgreeTerms" @input="isAgreeTerms = !isAgreeTerms" class="agree-wrapper" :desc="agreeDesc" :url="url"></OrderAgree>
23 <div class="btn-wrapper"> 21 <div class="btn-wrapper">
@@ -71,6 +71,7 @@ export default { @@ -71,6 +71,7 @@ export default {
71 size_id: info.size_id, 71 size_id: info.size_id,
72 name: name[0], 72 name: name[0],
73 subName: name[1], 73 subName: name[1],
  74 + size_name: info.size_name,
74 price, 75 price,
75 storage_id: info.storage_id, 76 storage_id: info.storage_id,
76 available: info.storage_num > 0 && price !== '-', 77 available: info.storage_num > 0 && price !== '-',
@@ -124,7 +125,7 @@ export default { @@ -124,7 +125,7 @@ export default {
124 this.$store.commit('order/buyerAskOrder/BUYER_ASK_SET_PRODUCTINFO', { 125 this.$store.commit('order/buyerAskOrder/BUYER_ASK_SET_PRODUCTINFO', {
125 bid_moster_price: get(product, 'bid_moster_price', ''), 126 bid_moster_price: get(product, 'bid_moster_price', ''),
126 least_price: get(product, 'least_price', ''), 127 least_price: get(product, 'least_price', ''),
127 - sizeName: product.name, 128 + sizeName: product.size_name,
128 sizeId: get(data, 'sizeId', ''), 129 sizeId: get(data, 'sizeId', ''),
129 colorName: get(this.productDetail, 'goods_list[0].color_name', ''), 130 colorName: get(this.productDetail, 'goods_list[0].color_name', ''),
130 product_name: this.goodsName, 131 product_name: this.goodsName,
@@ -90,7 +90,7 @@ export default function() { @@ -90,7 +90,7 @@ export default function() {
90 }, 90 },
91 getMineList(state) { 91 getMineList(state) {
92 let tabList = { 92 let tabList = {
93 - board: { title: '', page: 'noticeList' }, 93 + // board: { title: '', page: 'noticeList' },
94 sale: { 94 sale: {
95 title: '出售中', 95 title: '出售中',
96 num: state.sellerNum, 96 num: state.sellerNum,