Commit 60132776ee4698cb619a266857476fcc187e978a
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
20 changed files
with
141 additions
and
34 deletions
components/diy_goodsGroup/diy_goodsGroup.wxml
... | ... | @@ -149,7 +149,7 @@ |
149 | 149 | <image class='zs_t_img_2l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" |
150 | 150 | binderror="bind_bnerr3"></image> |
151 | 151 | <block wx:if="{{object.goodicon==3}}"> |
152 | - <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.position==1}}" | |
152 | + <image class='{{g_filter.get_class(object.column,object.position)}}' | |
153 | 153 | src='{{object.customicon}}'></image> |
154 | 154 | </block> |
155 | 155 | <block wx:if="{{object.goodicon==1}}"> |
... | ... | @@ -285,7 +285,7 @@ |
285 | 285 | <image class='zs_t_img_3l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" |
286 | 286 | binderror="bind_bnerr3"></image> |
287 | 287 | <block wx:if="{{object.goodicon==3}}"> |
288 | - <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{ object.position==1}}" | |
288 | + <image class='{{g_filter.get_class(object.column,object.position)}}' | |
289 | 289 | src='{{object.customicon}}'></image> |
290 | 290 | </block> |
291 | 291 | <block wx:if="{{object.goodicon==1}}"> |
... | ... | @@ -422,7 +422,7 @@ |
422 | 422 | </block> |
423 | 423 | |
424 | 424 | <block wx:if="{{object.goodicon==3}}"> |
425 | - <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.position==2}}" | |
425 | + <image class='{{g_filter.get_class(object.column,object.position)}}' | |
426 | 426 | src='{{object.customicon}}'></image> |
427 | 427 | </block> |
428 | 428 | <block wx:if="{{object.goodicon==1}}"> | ... | ... |
components/diy_goodsGroup/diy_goodsGroup.wxss
... | ... | @@ -145,6 +145,7 @@ |
145 | 145 | height: 318rpx; |
146 | 146 | margin-top: 20rpx; |
147 | 147 | display: flex; |
148 | + position: relative; | |
148 | 149 | } |
149 | 150 | |
150 | 151 | .zs_t_img_x { |
... | ... | @@ -236,7 +237,7 @@ |
236 | 237 | height: 56rpx; |
237 | 238 | position: relative; |
238 | 239 | right: 56rpx; |
239 | - top: 234rpx; | |
240 | + top: 0rpx; | |
240 | 241 | } |
241 | 242 | |
242 | 243 | .zs_t1_x3 { |
... | ... | @@ -473,6 +474,13 @@ |
473 | 474 | left: 0rpx; |
474 | 475 | top: 10rpx; |
475 | 476 | } |
477 | +.zs_t1_x4{ | |
478 | + width: 56rpx; | |
479 | + height: 56rpx; | |
480 | + position: absolute; | |
481 | + right: 0rpx; | |
482 | + bottom: 10rpx; | |
483 | +} | |
476 | 484 | |
477 | 485 | .zs_t2_3l { |
478 | 486 | width: 56rpx; |
... | ... | @@ -562,3 +570,5 @@ |
562 | 570 | overflow: hidden; |
563 | 571 | white-space: nowrap; |
564 | 572 | } |
573 | + | |
574 | + | ... | ... |
components/diy_picMax/diy_picMax.wxss
1 | 1 | .picMax{width: 100%;position: relative;} |
2 | 2 | .pic_item{display: block; top:0;left:0;float:left} |
3 | -.pic_item image{width: 100%; height: 100%} | |
4 | -.width_1{width: 187.5rpx}.width_2{width: 375rpx;}.width_3{width: 562.5rpx}.width_4{width:748rpx;} | |
3 | +.pic_item image{width: 100%; height: 100%; vertical-align: bottom;} | |
4 | +.width_1{width: 187.5rpx}.width_2{width: 375rpx;}.width_3{width: 562.5rpx}.width_4{width:750rpx;} | |
5 | 5 | /* .height_1{height: 187.5rpx;}.height_2{height: 375rpx;}.height_3{height: 562.5rpx}.height_4{height: 748rpx;} */ |
6 | 6 | /* .mar_x1{margin-left:187.5rpx;}.mar_x2{margin-left:375rpx;}.mar_x3{margin-left:562.5rpx}.mar_x4{margin-left: 748rpx;} |
7 | 7 | .mar_y1{margin-top: 187.5rpx;}.mar_y2{margin-top: 375rpx;}.mar_y3{margin-top: 562.5rpx}.mar_y4{margin-top: 748rpx;} */ | ... | ... |
packageA/pages/prom_list/prom_list.js
... | ... | @@ -1569,6 +1569,12 @@ Page({ |
1569 | 1569 | price=price.toFixed(2); |
1570 | 1570 | cut_pirce=cut_pirce.toFixed(2); |
1571 | 1571 | this.setData({dp_price: this.data.dp_price,cut_price:this.data.cut_price}); |
1572 | + }, | |
1573 | + | |
1574 | + go_goods:function (e) { | |
1575 | + var gid=e.currentTarget.dataset.gid; | |
1576 | + var url="/pages/goods/goodsInfo/goodsInfo?goods_id="+gid; | |
1577 | + getApp().goto(url); | |
1572 | 1578 | } |
1573 | 1579 | |
1574 | 1580 | ... | ... |
packageA/pages/prom_list/prom_list.wxml
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | <view class="goods_list" wx:if="{{data && data.goods_name}}"> |
7 | 7 | <view class="item flex ai-center"> |
8 | 8 | <view style="width:80rpx;height: 100%" class="flex ai-center jc-center"><icon type="success" size="18"></icon></view> |
9 | - <view class="r_box flex"> | |
9 | + <view class="r_box flex" bindtap="go_goods" data-gid="{{data.goods_id}}"> | |
10 | 10 | <view><image class="r_box_img" src="{{data.original_img}}"></image></view> |
11 | 11 | <view class="flex jc_sb"> |
12 | 12 | <view class="fs30" style="margin: 18rpx"> |
... | ... | @@ -26,7 +26,7 @@ |
26 | 26 | <icon bindtap="set_sele" wx:else data-ind="{{index}}" data-set="1" type="success" size="18" color="#adadad"></icon> |
27 | 27 | |
28 | 28 | </view> |
29 | - <view class="r_box flex"> | |
29 | + <view class="r_box flex" bindtap="go_goods" data-gid="{{item.goods_id}}"> | |
30 | 30 | <view><image class="r_box_img" src="{{iurl+item.original_img}}" binderror="bind_bnerr3" data-errorimg="collocationList[{{index}}].original_img"></image></view> |
31 | 31 | <view class="flex jc_sb"> |
32 | 32 | <view class="fs30" style="margin: 18rpx"> | ... | ... |
pages/cart/cart/cart.wxss
pages/giftpack/giftpacklist/giftpacklist.js
... | ... | @@ -28,6 +28,7 @@ Page({ |
28 | 28 | code: "", //核销码 |
29 | 29 | c_state: "0", //判断是否已经使用, 0正常 1已使用 2已过期 |
30 | 30 | is_lb: 0, //是否有礼包 |
31 | + default_color:null, | |
31 | 32 | }, |
32 | 33 | onLoad: function(options) { |
33 | 34 | |
... | ... | @@ -177,7 +178,8 @@ Page({ |
177 | 178 | if (res.data.code == 0) { |
178 | 179 | th.setData({ |
179 | 180 | giftImage: th.data.iurl + res.data.data.lbUrl, |
180 | - giftTitle: res.data.data.giftTitle | |
181 | + giftTitle: res.data.data.giftTitle, | |
182 | + default_color:res.data.data.bgcolor | |
181 | 183 | }) |
182 | 184 | if (res.data.data.giftRemark == '') { |
183 | 185 | th.setData({ |
... | ... | @@ -245,7 +247,8 @@ Page({ |
245 | 247 | if (res.data.code == 0) { |
246 | 248 | _this2.setData({ |
247 | 249 | giftImage: th.iurl + res.data.data.lbUrl, |
248 | - giftTitle: res.data.data.giftTitle | |
250 | + giftTitle: res.data.data.giftTitle, | |
251 | + default_color:res.data.data.bgcolor | |
249 | 252 | }) |
250 | 253 | if (res.data.data.giftRemark == '') { |
251 | 254 | _this2.setData({ |
... | ... | @@ -346,5 +349,29 @@ Page({ |
346 | 349 | var nav_b = th.selectComponent("#nav_b"); //组件的id |
347 | 350 | nav_b.close_box(); |
348 | 351 | nav_b.set_name("礼包", "/pages/giftpack/buygiftpack/giftpackbuy"); |
349 | - } | |
352 | + }, | |
353 | + | |
354 | + //--- 分享设置 -- | |
355 | + onShareAppMessage: function (e) { | |
356 | + var curPage=this; | |
357 | + var pagePath = curPage.route; //当前页面url | |
358 | + if (pagePath.indexOf('/') != 0) { | |
359 | + pagePath = '/' + pagePath; | |
360 | + } | |
361 | + | |
362 | + pagePath+="?isBuy="+this.data.isBuy; | |
363 | + if(this.data.isBuy==0){ | |
364 | + pagePath+="&lbId="+this.data.getGiftID; | |
365 | + }else{ | |
366 | + pagePath+="&orderSn="+this.data.orderSn; | |
367 | + } | |
368 | + | |
369 | + return { | |
370 | + title: "礼包详情", | |
371 | + path:pagePath, | |
372 | + } | |
373 | + }, | |
374 | + | |
375 | + | |
376 | + | |
350 | 377 | }); |
351 | 378 | \ No newline at end of file | ... | ... |
pages/giftpack/giftpacklist/giftpacklist.wxml
1 | -<view class="box data-v-3a5b7e36"> | |
1 | +<view class="box data-v-3a5b7e36" style="background-color:{{default_color?default_color:'#e85f93'}}"> | |
2 | 2 | <view class="box_top data-v-3a5b7e36"> |
3 | 3 | <image src="{{giftImage}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr" data-errorimg="giftImage"></image> |
4 | 4 | </view> |
5 | - <view class="box_title data-v-3a5b7e36"> | |
5 | + <view class="box_title data-v-3a5b7e36" > | |
6 | 6 | <view class="top_title data-v-3a5b7e36"> |
7 | 7 | <text class="data-v-3a5b7e36 ellipsis-2">{{giftTitle}}</text> |
8 | 8 | </view> | ... | ... |
pages/giftpack/mygiftpack/mygiftpack.js
... | ... | @@ -116,4 +116,19 @@ Page({ |
116 | 116 | |
117 | 117 | }, |
118 | 118 | |
119 | + | |
120 | +//--- 分享设置 -- | |
121 | +onShareAppMessage: function (e) { | |
122 | + var curPage=this; | |
123 | + var pagePath = curPage.route; //当前页面url | |
124 | + if (pagePath.indexOf('/') != 0) { | |
125 | + pagePath = '/' + pagePath; | |
126 | + } | |
127 | + return { | |
128 | + title: "专享礼包", | |
129 | + path:pagePath, | |
130 | + } | |
131 | +}, | |
132 | + | |
133 | + | |
119 | 134 | }); |
120 | 135 | \ No newline at end of file | ... | ... |
pages/goods/categoryList/categoryList.wxss
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -664,6 +664,7 @@ Page({ |
664 | 664 | if (t.data.data.goods_content == null) t.data.data.goods_content = ""; |
665 | 665 | |
666 | 666 | //-----商品详情--- |
667 | + if(!t.data.data.goods_content) t.data.data.goods_content=" "; | |
667 | 668 | a.wxParse("content", "html", t.data.data.goods_content, ee, 6); |
668 | 669 | e.wxParseAddFullImageUrl(ee, "content"); |
669 | 670 | ... | ... |
pages/index/index/index.wxss
pages/store/index.js
... | ... | @@ -12,6 +12,7 @@ Page({ |
12 | 12 | is_no_more:0, |
13 | 13 | key_word:'', //关键字搜索 |
14 | 14 | cat_id:0, //分类ID |
15 | + islading:0, | |
15 | 16 | }, |
16 | 17 | |
17 | 18 | onShow:function(){ |
... | ... | @@ -65,6 +66,8 @@ Page({ |
65 | 66 | |
66 | 67 | get_list:function(){ |
67 | 68 | if(this.data.is_no_more==1) return false; |
69 | + if(this.data.islading==1) return false; | |
70 | + this.data.islading=1; | |
68 | 71 | var th=this,req = getApp().request; |
69 | 72 | var dd = { |
70 | 73 | store_id: o.stoid, |
... | ... | @@ -84,6 +87,7 @@ Page({ |
84 | 87 | req.promiseGet("/api/weshop/pickup/list", { |
85 | 88 | data: dd, |
86 | 89 | }).then(res => { |
90 | + this.data.islading=0; | |
87 | 91 | wx.hideLoading(); |
88 | 92 | if(res.data.code==0){ |
89 | 93 | if(res.data.data.pageData.length<=0){ |
... | ... | @@ -132,6 +136,7 @@ Page({ |
132 | 136 | cid: item['cat_id'] |
133 | 137 | }) |
134 | 138 | this.data.page=1; |
139 | + this.data.is_no_more=0; | |
135 | 140 | this.setData({ pick_list:null}) |
136 | 141 | this.get_list(); |
137 | 142 | |
... | ... | @@ -139,7 +144,8 @@ Page({ |
139 | 144 | |
140 | 145 | //搜索关键字 |
141 | 146 | sear:function(){ |
142 | - this.data.page=1; | |
147 | + this.data.page=1; | |
148 | + this.data.is_no_more=0; | |
143 | 149 | this.setData({ pick_list:null}) |
144 | 150 | this.get_list(); |
145 | 151 | }, | ... | ... |
pages/store/index.wxml
1 | 1 | <view class="bcolor flex jc_sb"> |
2 | - <view class="sear_inp"> | |
2 | + <view class="sear_inp flex ai-center"> | |
3 | 3 | <view class="sear_btn" bindtap='sear'> |
4 | 4 | <image src="{{url}}/miniapp/images/search.png" style="width: 30rpx; height: 30rpx; margin-left: 10rpx;"></image> |
5 | - </view> | |
5 | + </view> | |
6 | 6 | <input bindinput ="lose_focus" class="fs28" value=""/> |
7 | 7 | </view> |
8 | 8 | <view class="select"> | ... | ... |
pages/store/index.wxss
... | ... | @@ -42,7 +42,7 @@ position: relative; |
42 | 42 | .bcolor{background-color: #f5f5f5; height: 126rpx;} |
43 | 43 | |
44 | 44 | .sear_inp{width: 490rpx; background-color:#eaeaea; height: 80rpx; border-radius:5rpx; margin: 25rpx;} |
45 | -.sear_inp input{ position: relative; top:10rpx;width: 400rpx; display: inline-block;} | |
45 | +.sear_inp input{width: 400rpx;} | |
46 | 46 | .select{height: 80rpx; width: 220rpx;background-color:#eaeaea; margin:25rpx; font-size: 28rpx; line-height: 80rpx;text-align: center } |
47 | -.sear_btn{ width: 50rpx; height: 100%; display: inline-block;} | |
47 | +.sear_btn{ width: 50rpx; height: 100%; display: flex; align-items: center;} | |
48 | 48 | ... | ... |
pages/user/assistance/friend_assistance.js
... | ... | @@ -126,7 +126,8 @@ Page({ |
126 | 126 | id: this.data.tasking, |
127 | 127 | storeId: os.stoid, |
128 | 128 | userId: this.data.userId, |
129 | - zlUserId: t_user_id | |
129 | + zlUserId: t_user_id, | |
130 | + isWeappUser:1, //是不是小程序的入口,不需要判断 | |
130 | 131 | }; |
131 | 132 | console.log(data); |
132 | 133 | getApp().request.json_post("/api/weshop/marketing/help/help/task/involve/insert", | ... | ... |
pages/user/index/index.wxml
... | ... | @@ -92,12 +92,33 @@ |
92 | 92 | |
93 | 93 | </view> |
94 | 94 | <view class="xc-after-sale rel"> |
95 | + <!-- 顶上的一栏 --> | |
96 | + <view class="xc-equity-title flex-level" bindtap="go_order" data-url="/pages/user/order_list/order_list"> | |
97 | + <view class="xc-title-frame flex-space-between"> | |
98 | + <view class="flex-vertical xc-title-content"> | |
99 | + <image class="xc-title-img" src="{{iurl}}/miniapp/images/hdindan.png" style="width: 50rpx; height: 55rpx;margin-right: 5rpx"></image> | |
100 | + <view class="three-level-word">我的订单</view> | |
101 | + </view> | |
102 | + </view> | |
103 | + <view class="three-level-word xc-more-frame flex-vertical"> | |
104 | + <view class="three-level-word xc-more">更多</view> | |
105 | + <view class="bg_right xc-more-click bcolor"></view> | |
106 | + </view> | |
107 | + </view> | |
108 | + <!-- 内容的一栏 --> | |
95 | 109 | <view class="xc-after-sale-left flex-center-around"> |
96 | 110 | <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=1"> |
97 | 111 | <image class="xc-no-money" src="{{iurl}}/miniapp/images/daifuk.png"></image> |
98 | 112 | <view class=" xc-word-color four-level-word">待付款</view> |
99 | 113 | <text class="order-num" hidden='{{toji.wait_pay>0?"":"true"}}'>{{toji.wait_pay}}</text> |
100 | 114 | </view> |
115 | + | |
116 | + <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=2"> | |
117 | + <image class="xc-send" src="{{iurl}}/miniapp/images/dfahuo.png?v=1"></image> | |
118 | + <view class="xc-word-color four-level-word">待发货</view> | |
119 | + <text class="order-num" hidden='{{toji.wait_receive>0?"":"true"}}'>{{toji.wait_send}}</text> | |
120 | + </view> | |
121 | + | |
101 | 122 | <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=3"> |
102 | 123 | <image class="xc-await" src="{{iurl}}/miniapp/images/shouhuo1.png"></image> |
103 | 124 | <view class="xc-word-color four-level-word">待收货</view> |
... | ... | @@ -115,15 +136,8 @@ |
115 | 136 | <!--<text class="order-num" hidden='{{toji.wait_return>0>0?"":"true"}}' style="right: -20rpx">{{toji.wait_return}}</text>--> |
116 | 137 | </view> |
117 | 138 | |
118 | - <view class='xc-hump abs'></view> | |
119 | - <view class="flex-verticalr xc-after-sale-right"> | |
120 | - <view class=" xc-order t-c" bindtap="go_order" data-url="/pages/user/order_list/order_list"> | |
121 | - <image class="xc-no-money xc-my-order" src="{{iurl}}/miniapp/images/dindan.png"></image> | |
122 | - <view class="xc-word-color four-level-word" style='margin-left:20rpx;'>我的订单</view> | |
123 | - </view> | |
124 | - </view> | |
125 | - | |
126 | 139 | </view> |
140 | + <view style="clear: both"></view> | |
127 | 141 | |
128 | 142 | </view> |
129 | 143 | |
... | ... | @@ -133,9 +147,7 @@ |
133 | 147 | <view class="xc-title-frame flex-space-between"> |
134 | 148 | <view class="flex-vertical xc-title-content"> |
135 | 149 | <image class="xc-title-img" src="{{iurl}}/miniapp/images/medal.png"></image> |
136 | - <view class="three-level-word"> | |
137 | - 我的权益 | |
138 | - </view> | |
150 | + <view class="three-level-word">我的权益</view> | |
139 | 151 | </view> |
140 | 152 | </view> |
141 | 153 | <view class="three-level-word xc-more-frame flex-vertical"> |
... | ... | @@ -143,6 +155,7 @@ |
143 | 155 | <view class="bg_right xc-more-click bcolor"></view> |
144 | 156 | </view> |
145 | 157 | </view> |
158 | + | |
146 | 159 | <view class="xc-specific-more-frame flex-vertical"> |
147 | 160 | |
148 | 161 | <view bindtap="click_pre"> |
... | ... | @@ -178,14 +191,14 @@ |
178 | 191 | </block> |
179 | 192 | |
180 | 193 | <!-- 工具与服务 --> |
181 | - <view class="xc-tool-service"> | |
194 | + <view class="xc-tool-service" > | |
182 | 195 | <view class="xc-tool-service-title flex-vertical"> |
183 | 196 | <image class="xc-tool-service-img" src="{{iurl}}/miniapp/images/gj.png"></image> |
184 | 197 | <view class="three-level-word xc-tool-service-word">工具与服务</view> |
185 | 198 | </view> |
186 | 199 | <view class="xc-project-frame"> |
187 | 200 | <!-- 跳转页面 --> |
188 | - <view class="center_v"> | |
201 | + <view class="center_v" style="display: flex;flex-wrap: wrap;align-items: center;"> | |
189 | 202 | <view class="item t-c" data-url="/pages/team/team_ping/team_ping" bindtap="goto"> |
190 | 203 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/pindan.png"></image> |
191 | 204 | <view class="fs26">我的拼单</view> | ... | ... |
pages/user/index/index.wxss
... | ... | @@ -202,13 +202,14 @@ |
202 | 202 | |
203 | 203 | .xc-after-sale { |
204 | 204 | width: 100%; |
205 | - height: 160rpx; | |
206 | 205 | border-bottom: 10px solid #f2f2f2; |
207 | 206 | } |
208 | 207 | |
209 | 208 | .xc-after-sale-left { |
210 | - width: 90%; | |
209 | + width: 96%; | |
211 | 210 | height: 100%; |
211 | + margin-top: 40rpx; | |
212 | + margin-bottom: 25rpx; | |
212 | 213 | } |
213 | 214 | |
214 | 215 | .xc-no-money { |
... | ... | @@ -300,6 +301,11 @@ |
300 | 301 | height: 50rpx; |
301 | 302 | } |
302 | 303 | |
304 | +.xc-send{ | |
305 | + width: 50rpx; | |
306 | + height: 50rpx; | |
307 | +} | |
308 | + | |
303 | 309 | .xc-more-click { |
304 | 310 | width: 15rpx; |
305 | 311 | height: 15rpx; | ... | ... |
pages/user/userinfo/userinfo.js
utils/auth.js
... | ... | @@ -51,6 +51,7 @@ module.exports = { |
51 | 51 | data: { |
52 | 52 | js_code: e, |
53 | 53 | store_id: a.globalData.setting.stoid, |
54 | + nickname:a.globalData.getu.nickName, | |
54 | 55 | }, |
55 | 56 | success: function (e) { |
56 | 57 | console.log("openidandkey"); |
... | ... | @@ -90,6 +91,7 @@ module.exports = { |
90 | 91 | data: { |
91 | 92 | js_code: e, |
92 | 93 | store_id: a.globalData.setting.stoid, |
94 | + nickname:a.globalData.getu.nickName, | |
93 | 95 | }, |
94 | 96 | success: function (e) { |
95 | 97 | console.log("openidandkey"); | ... | ... |