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,7 +149,7 @@ | ||
| 149 | <image class='zs_t_img_2l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" | 149 | <image class='zs_t_img_2l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" |
| 150 | binderror="bind_bnerr3"></image> | 150 | binderror="bind_bnerr3"></image> |
| 151 | <block wx:if="{{object.goodicon==3}}"> | 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 | src='{{object.customicon}}'></image> | 153 | src='{{object.customicon}}'></image> |
| 154 | </block> | 154 | </block> |
| 155 | <block wx:if="{{object.goodicon==1}}"> | 155 | <block wx:if="{{object.goodicon==1}}"> |
| @@ -285,7 +285,7 @@ | @@ -285,7 +285,7 @@ | ||
| 285 | <image class='zs_t_img_3l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" | 285 | <image class='zs_t_img_3l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" |
| 286 | binderror="bind_bnerr3"></image> | 286 | binderror="bind_bnerr3"></image> |
| 287 | <block wx:if="{{object.goodicon==3}}"> | 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 | src='{{object.customicon}}'></image> | 289 | src='{{object.customicon}}'></image> |
| 290 | </block> | 290 | </block> |
| 291 | <block wx:if="{{object.goodicon==1}}"> | 291 | <block wx:if="{{object.goodicon==1}}"> |
| @@ -422,7 +422,7 @@ | @@ -422,7 +422,7 @@ | ||
| 422 | </block> | 422 | </block> |
| 423 | 423 | ||
| 424 | <block wx:if="{{object.goodicon==3}}"> | 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 | src='{{object.customicon}}'></image> | 426 | src='{{object.customicon}}'></image> |
| 427 | </block> | 427 | </block> |
| 428 | <block wx:if="{{object.goodicon==1}}"> | 428 | <block wx:if="{{object.goodicon==1}}"> |
components/diy_goodsGroup/diy_goodsGroup.wxss
| @@ -145,6 +145,7 @@ | @@ -145,6 +145,7 @@ | ||
| 145 | height: 318rpx; | 145 | height: 318rpx; |
| 146 | margin-top: 20rpx; | 146 | margin-top: 20rpx; |
| 147 | display: flex; | 147 | display: flex; |
| 148 | + position: relative; | ||
| 148 | } | 149 | } |
| 149 | 150 | ||
| 150 | .zs_t_img_x { | 151 | .zs_t_img_x { |
| @@ -236,7 +237,7 @@ | @@ -236,7 +237,7 @@ | ||
| 236 | height: 56rpx; | 237 | height: 56rpx; |
| 237 | position: relative; | 238 | position: relative; |
| 238 | right: 56rpx; | 239 | right: 56rpx; |
| 239 | - top: 234rpx; | 240 | + top: 0rpx; |
| 240 | } | 241 | } |
| 241 | 242 | ||
| 242 | .zs_t1_x3 { | 243 | .zs_t1_x3 { |
| @@ -473,6 +474,13 @@ | @@ -473,6 +474,13 @@ | ||
| 473 | left: 0rpx; | 474 | left: 0rpx; |
| 474 | top: 10rpx; | 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 | .zs_t2_3l { | 485 | .zs_t2_3l { |
| 478 | width: 56rpx; | 486 | width: 56rpx; |
| @@ -562,3 +570,5 @@ | @@ -562,3 +570,5 @@ | ||
| 562 | overflow: hidden; | 570 | overflow: hidden; |
| 563 | white-space: nowrap; | 571 | white-space: nowrap; |
| 564 | } | 572 | } |
| 573 | + | ||
| 574 | + |
components/diy_picMax/diy_picMax.wxss
| 1 | .picMax{width: 100%;position: relative;} | 1 | .picMax{width: 100%;position: relative;} |
| 2 | .pic_item{display: block; top:0;left:0;float:left} | 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 | /* .height_1{height: 187.5rpx;}.height_2{height: 375rpx;}.height_3{height: 562.5rpx}.height_4{height: 748rpx;} */ | 5 | /* .height_1{height: 187.5rpx;}.height_2{height: 375rpx;}.height_3{height: 562.5rpx}.height_4{height: 748rpx;} */ |
| 6 | /* .mar_x1{margin-left:187.5rpx;}.mar_x2{margin-left:375rpx;}.mar_x3{margin-left:562.5rpx}.mar_x4{margin-left: 748rpx;} | 6 | /* .mar_x1{margin-left:187.5rpx;}.mar_x2{margin-left:375rpx;}.mar_x3{margin-left:562.5rpx}.mar_x4{margin-left: 748rpx;} |
| 7 | .mar_y1{margin-top: 187.5rpx;}.mar_y2{margin-top: 375rpx;}.mar_y3{margin-top: 562.5rpx}.mar_y4{margin-top: 748rpx;} */ | 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,6 +1569,12 @@ Page({ | ||
| 1569 | price=price.toFixed(2); | 1569 | price=price.toFixed(2); |
| 1570 | cut_pirce=cut_pirce.toFixed(2); | 1570 | cut_pirce=cut_pirce.toFixed(2); |
| 1571 | this.setData({dp_price: this.data.dp_price,cut_price:this.data.cut_price}); | 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,7 +6,7 @@ | ||
| 6 | <view class="goods_list" wx:if="{{data && data.goods_name}}"> | 6 | <view class="goods_list" wx:if="{{data && data.goods_name}}"> |
| 7 | <view class="item flex ai-center"> | 7 | <view class="item flex ai-center"> |
| 8 | <view style="width:80rpx;height: 100%" class="flex ai-center jc-center"><icon type="success" size="18"></icon></view> | 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 | <view><image class="r_box_img" src="{{data.original_img}}"></image></view> | 10 | <view><image class="r_box_img" src="{{data.original_img}}"></image></view> |
| 11 | <view class="flex jc_sb"> | 11 | <view class="flex jc_sb"> |
| 12 | <view class="fs30" style="margin: 18rpx"> | 12 | <view class="fs30" style="margin: 18rpx"> |
| @@ -26,7 +26,7 @@ | @@ -26,7 +26,7 @@ | ||
| 26 | <icon bindtap="set_sele" wx:else data-ind="{{index}}" data-set="1" type="success" size="18" color="#adadad"></icon> | 26 | <icon bindtap="set_sele" wx:else data-ind="{{index}}" data-set="1" type="success" size="18" color="#adadad"></icon> |
| 27 | 27 | ||
| 28 | </view> | 28 | </view> |
| 29 | - <view class="r_box flex"> | 29 | + <view class="r_box flex" bindtap="go_goods" data-gid="{{item.goods_id}}"> |
| 30 | <view><image class="r_box_img" src="{{iurl+item.original_img}}" binderror="bind_bnerr3" data-errorimg="collocationList[{{index}}].original_img"></image></view> | 30 | <view><image class="r_box_img" src="{{iurl+item.original_img}}" binderror="bind_bnerr3" data-errorimg="collocationList[{{index}}].original_img"></image></view> |
| 31 | <view class="flex jc_sb"> | 31 | <view class="flex jc_sb"> |
| 32 | <view class="fs30" style="margin: 18rpx"> | 32 | <view class="fs30" style="margin: 18rpx"> |
pages/cart/cart/cart.wxss
pages/giftpack/giftpacklist/giftpacklist.js
| @@ -28,6 +28,7 @@ Page({ | @@ -28,6 +28,7 @@ Page({ | ||
| 28 | code: "", //核销码 | 28 | code: "", //核销码 |
| 29 | c_state: "0", //判断是否已经使用, 0正常 1已使用 2已过期 | 29 | c_state: "0", //判断是否已经使用, 0正常 1已使用 2已过期 |
| 30 | is_lb: 0, //是否有礼包 | 30 | is_lb: 0, //是否有礼包 |
| 31 | + default_color:null, | ||
| 31 | }, | 32 | }, |
| 32 | onLoad: function(options) { | 33 | onLoad: function(options) { |
| 33 | 34 | ||
| @@ -177,7 +178,8 @@ Page({ | @@ -177,7 +178,8 @@ Page({ | ||
| 177 | if (res.data.code == 0) { | 178 | if (res.data.code == 0) { |
| 178 | th.setData({ | 179 | th.setData({ |
| 179 | giftImage: th.data.iurl + res.data.data.lbUrl, | 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 | if (res.data.data.giftRemark == '') { | 184 | if (res.data.data.giftRemark == '') { |
| 183 | th.setData({ | 185 | th.setData({ |
| @@ -245,7 +247,8 @@ Page({ | @@ -245,7 +247,8 @@ Page({ | ||
| 245 | if (res.data.code == 0) { | 247 | if (res.data.code == 0) { |
| 246 | _this2.setData({ | 248 | _this2.setData({ |
| 247 | giftImage: th.iurl + res.data.data.lbUrl, | 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 | if (res.data.data.giftRemark == '') { | 253 | if (res.data.data.giftRemark == '') { |
| 251 | _this2.setData({ | 254 | _this2.setData({ |
| @@ -346,5 +349,29 @@ Page({ | @@ -346,5 +349,29 @@ Page({ | ||
| 346 | var nav_b = th.selectComponent("#nav_b"); //组件的id | 349 | var nav_b = th.selectComponent("#nav_b"); //组件的id |
| 347 | nav_b.close_box(); | 350 | nav_b.close_box(); |
| 348 | nav_b.set_name("礼包", "/pages/giftpack/buygiftpack/giftpackbuy"); | 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 | \ No newline at end of file | 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 | <view class="box_top data-v-3a5b7e36"> | 2 | <view class="box_top data-v-3a5b7e36"> |
| 3 | <image src="{{giftImage}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr" data-errorimg="giftImage"></image> | 3 | <image src="{{giftImage}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr" data-errorimg="giftImage"></image> |
| 4 | </view> | 4 | </view> |
| 5 | - <view class="box_title data-v-3a5b7e36"> | 5 | + <view class="box_title data-v-3a5b7e36" > |
| 6 | <view class="top_title data-v-3a5b7e36"> | 6 | <view class="top_title data-v-3a5b7e36"> |
| 7 | <text class="data-v-3a5b7e36 ellipsis-2">{{giftTitle}}</text> | 7 | <text class="data-v-3a5b7e36 ellipsis-2">{{giftTitle}}</text> |
| 8 | </view> | 8 | </view> |
pages/giftpack/mygiftpack/mygiftpack.js
| @@ -116,4 +116,19 @@ Page({ | @@ -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 | \ No newline at end of file | 135 | \ No newline at end of file |
pages/goods/categoryList/categoryList.wxss
| @@ -518,5 +518,10 @@ margin: auto; | @@ -518,5 +518,10 @@ margin: auto; | ||
| 518 | 518 | ||
| 519 | } | 519 | } |
| 520 | 520 | ||
| 521 | + page { | ||
| 522 | + overflow-x: hidden; | ||
| 523 | + padding-bottom: 40rpx; | ||
| 524 | + } | ||
| 525 | + | ||
| 521 | /* 风格三商品列表样式引入 */ | 526 | /* 风格三商品列表样式引入 */ |
| 522 | @import "../goodsList/goodsList.wxss"; | 527 | @import "../goodsList/goodsList.wxss"; |
| 523 | \ No newline at end of file | 528 | \ No newline at end of file |
pages/goods/goodsInfo/goodsInfo.js
| @@ -664,6 +664,7 @@ Page({ | @@ -664,6 +664,7 @@ Page({ | ||
| 664 | if (t.data.data.goods_content == null) t.data.data.goods_content = ""; | 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 | a.wxParse("content", "html", t.data.data.goods_content, ee, 6); | 668 | a.wxParse("content", "html", t.data.data.goods_content, ee, 6); |
| 668 | e.wxParseAddFullImageUrl(ee, "content"); | 669 | e.wxParseAddFullImageUrl(ee, "content"); |
| 669 | 670 |
pages/index/index/index.wxss
| @@ -908,4 +908,9 @@ | @@ -908,4 +908,9 @@ | ||
| 908 | .swiper{ | 908 | .swiper{ |
| 909 | height: 250rpx; | 909 | height: 250rpx; |
| 910 | padding-bottom:30rpx; | 910 | padding-bottom:30rpx; |
| 911 | +} | ||
| 912 | + | ||
| 913 | +page { | ||
| 914 | + overflow-x: hidden; | ||
| 915 | + padding-bottom: 120rpx; | ||
| 911 | } | 916 | } |
| 912 | \ No newline at end of file | 917 | \ No newline at end of file |
pages/store/index.js
| @@ -12,6 +12,7 @@ Page({ | @@ -12,6 +12,7 @@ Page({ | ||
| 12 | is_no_more:0, | 12 | is_no_more:0, |
| 13 | key_word:'', //关键字搜索 | 13 | key_word:'', //关键字搜索 |
| 14 | cat_id:0, //分类ID | 14 | cat_id:0, //分类ID |
| 15 | + islading:0, | ||
| 15 | }, | 16 | }, |
| 16 | 17 | ||
| 17 | onShow:function(){ | 18 | onShow:function(){ |
| @@ -65,6 +66,8 @@ Page({ | @@ -65,6 +66,8 @@ Page({ | ||
| 65 | 66 | ||
| 66 | get_list:function(){ | 67 | get_list:function(){ |
| 67 | if(this.data.is_no_more==1) return false; | 68 | if(this.data.is_no_more==1) return false; |
| 69 | + if(this.data.islading==1) return false; | ||
| 70 | + this.data.islading=1; | ||
| 68 | var th=this,req = getApp().request; | 71 | var th=this,req = getApp().request; |
| 69 | var dd = { | 72 | var dd = { |
| 70 | store_id: o.stoid, | 73 | store_id: o.stoid, |
| @@ -84,6 +87,7 @@ Page({ | @@ -84,6 +87,7 @@ Page({ | ||
| 84 | req.promiseGet("/api/weshop/pickup/list", { | 87 | req.promiseGet("/api/weshop/pickup/list", { |
| 85 | data: dd, | 88 | data: dd, |
| 86 | }).then(res => { | 89 | }).then(res => { |
| 90 | + this.data.islading=0; | ||
| 87 | wx.hideLoading(); | 91 | wx.hideLoading(); |
| 88 | if(res.data.code==0){ | 92 | if(res.data.code==0){ |
| 89 | if(res.data.data.pageData.length<=0){ | 93 | if(res.data.data.pageData.length<=0){ |
| @@ -132,6 +136,7 @@ Page({ | @@ -132,6 +136,7 @@ Page({ | ||
| 132 | cid: item['cat_id'] | 136 | cid: item['cat_id'] |
| 133 | }) | 137 | }) |
| 134 | this.data.page=1; | 138 | this.data.page=1; |
| 139 | + this.data.is_no_more=0; | ||
| 135 | this.setData({ pick_list:null}) | 140 | this.setData({ pick_list:null}) |
| 136 | this.get_list(); | 141 | this.get_list(); |
| 137 | 142 | ||
| @@ -139,7 +144,8 @@ Page({ | @@ -139,7 +144,8 @@ Page({ | ||
| 139 | 144 | ||
| 140 | //搜索关键字 | 145 | //搜索关键字 |
| 141 | sear:function(){ | 146 | sear:function(){ |
| 142 | - this.data.page=1; | 147 | + this.data.page=1; |
| 148 | + this.data.is_no_more=0; | ||
| 143 | this.setData({ pick_list:null}) | 149 | this.setData({ pick_list:null}) |
| 144 | this.get_list(); | 150 | this.get_list(); |
| 145 | }, | 151 | }, |
pages/store/index.wxml
| 1 | <view class="bcolor flex jc_sb"> | 1 | <view class="bcolor flex jc_sb"> |
| 2 | - <view class="sear_inp"> | 2 | + <view class="sear_inp flex ai-center"> |
| 3 | <view class="sear_btn" bindtap='sear'> | 3 | <view class="sear_btn" bindtap='sear'> |
| 4 | <image src="{{url}}/miniapp/images/search.png" style="width: 30rpx; height: 30rpx; margin-left: 10rpx;"></image> | 4 | <image src="{{url}}/miniapp/images/search.png" style="width: 30rpx; height: 30rpx; margin-left: 10rpx;"></image> |
| 5 | - </view> | 5 | + </view> |
| 6 | <input bindinput ="lose_focus" class="fs28" value=""/> | 6 | <input bindinput ="lose_focus" class="fs28" value=""/> |
| 7 | </view> | 7 | </view> |
| 8 | <view class="select"> | 8 | <view class="select"> |
pages/store/index.wxss
| @@ -42,7 +42,7 @@ position: relative; | @@ -42,7 +42,7 @@ position: relative; | ||
| 42 | .bcolor{background-color: #f5f5f5; height: 126rpx;} | 42 | .bcolor{background-color: #f5f5f5; height: 126rpx;} |
| 43 | 43 | ||
| 44 | .sear_inp{width: 490rpx; background-color:#eaeaea; height: 80rpx; border-radius:5rpx; margin: 25rpx;} | 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 | .select{height: 80rpx; width: 220rpx;background-color:#eaeaea; margin:25rpx; font-size: 28rpx; line-height: 80rpx;text-align: center } | 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,7 +126,8 @@ Page({ | ||
| 126 | id: this.data.tasking, | 126 | id: this.data.tasking, |
| 127 | storeId: os.stoid, | 127 | storeId: os.stoid, |
| 128 | userId: this.data.userId, | 128 | userId: this.data.userId, |
| 129 | - zlUserId: t_user_id | 129 | + zlUserId: t_user_id, |
| 130 | + isWeappUser:1, //是不是小程序的入口,不需要判断 | ||
| 130 | }; | 131 | }; |
| 131 | console.log(data); | 132 | console.log(data); |
| 132 | getApp().request.json_post("/api/weshop/marketing/help/help/task/involve/insert", | 133 | getApp().request.json_post("/api/weshop/marketing/help/help/task/involve/insert", |
pages/user/index/index.wxml
| @@ -92,12 +92,33 @@ | @@ -92,12 +92,33 @@ | ||
| 92 | 92 | ||
| 93 | </view> | 93 | </view> |
| 94 | <view class="xc-after-sale rel"> | 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 | <view class="xc-after-sale-left flex-center-around"> | 109 | <view class="xc-after-sale-left flex-center-around"> |
| 96 | <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=1"> | 110 | <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=1"> |
| 97 | <image class="xc-no-money" src="{{iurl}}/miniapp/images/daifuk.png"></image> | 111 | <image class="xc-no-money" src="{{iurl}}/miniapp/images/daifuk.png"></image> |
| 98 | <view class=" xc-word-color four-level-word">待付款</view> | 112 | <view class=" xc-word-color four-level-word">待付款</view> |
| 99 | <text class="order-num" hidden='{{toji.wait_pay>0?"":"true"}}'>{{toji.wait_pay}}</text> | 113 | <text class="order-num" hidden='{{toji.wait_pay>0?"":"true"}}'>{{toji.wait_pay}}</text> |
| 100 | </view> | 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 | <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=3"> | 122 | <view class="t-c margin-auto rel" bindtap="go_order" data-url="/pages/user/order_list/order_list?type=3"> |
| 102 | <image class="xc-await" src="{{iurl}}/miniapp/images/shouhuo1.png"></image> | 123 | <image class="xc-await" src="{{iurl}}/miniapp/images/shouhuo1.png"></image> |
| 103 | <view class="xc-word-color four-level-word">待收货</view> | 124 | <view class="xc-word-color four-level-word">待收货</view> |
| @@ -115,15 +136,8 @@ | @@ -115,15 +136,8 @@ | ||
| 115 | <!--<text class="order-num" hidden='{{toji.wait_return>0>0?"":"true"}}' style="right: -20rpx">{{toji.wait_return}}</text>--> | 136 | <!--<text class="order-num" hidden='{{toji.wait_return>0>0?"":"true"}}' style="right: -20rpx">{{toji.wait_return}}</text>--> |
| 116 | </view> | 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 | </view> | 139 | </view> |
| 140 | + <view style="clear: both"></view> | ||
| 127 | 141 | ||
| 128 | </view> | 142 | </view> |
| 129 | 143 | ||
| @@ -133,9 +147,7 @@ | @@ -133,9 +147,7 @@ | ||
| 133 | <view class="xc-title-frame flex-space-between"> | 147 | <view class="xc-title-frame flex-space-between"> |
| 134 | <view class="flex-vertical xc-title-content"> | 148 | <view class="flex-vertical xc-title-content"> |
| 135 | <image class="xc-title-img" src="{{iurl}}/miniapp/images/medal.png"></image> | 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 | </view> | 151 | </view> |
| 140 | </view> | 152 | </view> |
| 141 | <view class="three-level-word xc-more-frame flex-vertical"> | 153 | <view class="three-level-word xc-more-frame flex-vertical"> |
| @@ -143,6 +155,7 @@ | @@ -143,6 +155,7 @@ | ||
| 143 | <view class="bg_right xc-more-click bcolor"></view> | 155 | <view class="bg_right xc-more-click bcolor"></view> |
| 144 | </view> | 156 | </view> |
| 145 | </view> | 157 | </view> |
| 158 | + | ||
| 146 | <view class="xc-specific-more-frame flex-vertical"> | 159 | <view class="xc-specific-more-frame flex-vertical"> |
| 147 | 160 | ||
| 148 | <view bindtap="click_pre"> | 161 | <view bindtap="click_pre"> |
| @@ -178,14 +191,14 @@ | @@ -178,14 +191,14 @@ | ||
| 178 | </block> | 191 | </block> |
| 179 | 192 | ||
| 180 | <!-- 工具与服务 --> | 193 | <!-- 工具与服务 --> |
| 181 | - <view class="xc-tool-service"> | 194 | + <view class="xc-tool-service" > |
| 182 | <view class="xc-tool-service-title flex-vertical"> | 195 | <view class="xc-tool-service-title flex-vertical"> |
| 183 | <image class="xc-tool-service-img" src="{{iurl}}/miniapp/images/gj.png"></image> | 196 | <image class="xc-tool-service-img" src="{{iurl}}/miniapp/images/gj.png"></image> |
| 184 | <view class="three-level-word xc-tool-service-word">工具与服务</view> | 197 | <view class="three-level-word xc-tool-service-word">工具与服务</view> |
| 185 | </view> | 198 | </view> |
| 186 | <view class="xc-project-frame"> | 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 | <view class="item t-c" data-url="/pages/team/team_ping/team_ping" bindtap="goto"> | 202 | <view class="item t-c" data-url="/pages/team/team_ping/team_ping" bindtap="goto"> |
| 190 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/pindan.png"></image> | 203 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/pindan.png"></image> |
| 191 | <view class="fs26">我的拼单</view> | 204 | <view class="fs26">我的拼单</view> |
pages/user/index/index.wxss
| @@ -202,13 +202,14 @@ | @@ -202,13 +202,14 @@ | ||
| 202 | 202 | ||
| 203 | .xc-after-sale { | 203 | .xc-after-sale { |
| 204 | width: 100%; | 204 | width: 100%; |
| 205 | - height: 160rpx; | ||
| 206 | border-bottom: 10px solid #f2f2f2; | 205 | border-bottom: 10px solid #f2f2f2; |
| 207 | } | 206 | } |
| 208 | 207 | ||
| 209 | .xc-after-sale-left { | 208 | .xc-after-sale-left { |
| 210 | - width: 90%; | 209 | + width: 96%; |
| 211 | height: 100%; | 210 | height: 100%; |
| 211 | + margin-top: 40rpx; | ||
| 212 | + margin-bottom: 25rpx; | ||
| 212 | } | 213 | } |
| 213 | 214 | ||
| 214 | .xc-no-money { | 215 | .xc-no-money { |
| @@ -300,6 +301,11 @@ | @@ -300,6 +301,11 @@ | ||
| 300 | height: 50rpx; | 301 | height: 50rpx; |
| 301 | } | 302 | } |
| 302 | 303 | ||
| 304 | +.xc-send{ | ||
| 305 | + width: 50rpx; | ||
| 306 | + height: 50rpx; | ||
| 307 | +} | ||
| 308 | + | ||
| 303 | .xc-more-click { | 309 | .xc-more-click { |
| 304 | width: 15rpx; | 310 | width: 15rpx; |
| 305 | height: 15rpx; | 311 | height: 15rpx; |
pages/user/userinfo/userinfo.js
| @@ -639,6 +639,11 @@ Page({ | @@ -639,6 +639,11 @@ Page({ | ||
| 639 | 639 | ||
| 640 | a.reg_time = time; | 640 | a.reg_time = time; |
| 641 | a.birthday = birthday | 641 | a.birthday = birthday |
| 642 | + | ||
| 643 | + if(a.address=='null' || !a.address){ | ||
| 644 | + a.address=""; | ||
| 645 | + } | ||
| 646 | + | ||
| 642 | e.setData({ | 647 | e.setData({ |
| 643 | phone: a.mobile, | 648 | phone: a.mobile, |
| 644 | user: a, | 649 | user: a, |
utils/auth.js
| @@ -51,6 +51,7 @@ module.exports = { | @@ -51,6 +51,7 @@ module.exports = { | ||
| 51 | data: { | 51 | data: { |
| 52 | js_code: e, | 52 | js_code: e, |
| 53 | store_id: a.globalData.setting.stoid, | 53 | store_id: a.globalData.setting.stoid, |
| 54 | + nickname:a.globalData.getu.nickName, | ||
| 54 | }, | 55 | }, |
| 55 | success: function (e) { | 56 | success: function (e) { |
| 56 | console.log("openidandkey"); | 57 | console.log("openidandkey"); |
| @@ -90,6 +91,7 @@ module.exports = { | @@ -90,6 +91,7 @@ module.exports = { | ||
| 90 | data: { | 91 | data: { |
| 91 | js_code: e, | 92 | js_code: e, |
| 92 | store_id: a.globalData.setting.stoid, | 93 | store_id: a.globalData.setting.stoid, |
| 94 | + nickname:a.globalData.getu.nickName, | ||
| 93 | }, | 95 | }, |
| 94 | success: function (e) { | 96 | success: function (e) { |
| 95 | console.log("openidandkey"); | 97 | console.log("openidandkey"); |