Browse Source

个人中心UI修改

master
杜叶春 2 years ago
parent
commit
d7b4e63c91
  1. 25
      app.js
  2. BIN
      images/grbj.png
  3. BIN
      images/group/fen.png
  4. BIN
      images/group/tuan.png
  5. BIN
      images/grsz.png
  6. BIN
      images/heads.png
  7. BIN
      images/icons/1.png
  8. BIN
      images/icons/2.png
  9. BIN
      images/icons/3.png
  10. BIN
      images/icons/4.png
  11. BIN
      images/icons/5.png
  12. BIN
      images/icons/grdfh.png
  13. BIN
      images/icons/grdfk.png
  14. BIN
      images/icons/grdsh.png
  15. BIN
      images/icons/my_dpj.png
  16. BIN
      images/icons/tksh.png
  17. BIN
      images/logos.png
  18. BIN
      images/weixin.png
  19. BIN
      images/wx.png
  20. 0
      images/xstg_bg.png
  21. 7
      pages/cart/cart.js
  22. 8
      pages/cart/cart.wxml
  23. 65
      pages/cart/cart.wxss
  24. 4
      pages/collection/collection.wxml
  25. 4
      pages/distribution/detail.wxml
  26. 20
      pages/distribution/detail.wxss
  27. 2
      pages/group_buy/cantuan.wxml
  28. 4
      pages/group_buy/detail.wxml
  29. 19
      pages/group_buy/detail.wxss
  30. 4
      pages/index/index.js
  31. 4
      pages/index/index.wxml
  32. 3
      pages/listdetail/listdetail.js
  33. 1
      pages/listdetail/listdetail.wxml
  34. 197
      pages/listdetail/listdetail.wxss
  35. 96
      pages/login/login.js
  36. 21
      pages/login/login.wxml
  37. 41
      pages/login/login.wxss
  38. 2
      pages/new/new.wxml
  39. 52
      pages/notice/index.js
  40. 51
      pages/notice/notice.js
  41. 8
      pages/notice/notice.wxml
  42. 27
      pages/notice/notice.wxss
  43. 2
      pages/order/pay.js
  44. 6
      pages/product/detail.js
  45. 26
      pages/product/detail.wxml
  46. 60
      pages/product/detail.wxss
  47. 37
      pages/return_goods/index.js
  48. 10
      pages/set/set.js
  49. 5
      pages/set/set.wxml
  50. 10
      pages/set/set.wxss
  51. 4
      pages/shop/shop.js
  52. 256
      pages/store/store.js
  53. 51
      pages/store/store.wxml
  54. 193
      pages/store/store.wxss
  55. 35
      pages/user/user.js
  56. 3
      pages/user/user.json
  57. 285
      pages/user/user.wxml
  58. 73
      pages/user/user.wxss
  59. 18
      utils/server.js

25
app.js

@ -20,6 +20,31 @@ App({
var logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs);
// wx.login({
// success: function (res) {
// console.log(res.code)
// }
// });
//计算导航栏高度
const { statusBarHeight, platform } = wx.getSystemInfoSync()
const { top, height } = wx.getMenuButtonBoundingClientRect()
// 状态栏高度
wx.setStorageSync('statusBarHeight', statusBarHeight)
// 胶囊按钮高度 一般是32 如果获取不到就使用32
wx.setStorageSync('menuBtnHeight', height ? height : 32)
// 判断胶囊按钮信息是否成功获取
if (top && top !== 0 && height && height !== 0) {
//获取成功进行计算
const navBarHeight = (top - statusBarHeight) * 2 + height
// 导航栏高度
wx.setStorageSync('navBarHeight', navBarHeight)
} else {
//获取失败使用默认的高度
wx.setStorageSync(
'navBarHeight', platform === 'android' ? 48 : 40
)
}
},
//控制授权登入
// isLogin: function (page) {

BIN
images/grbj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
images/group/fen.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

BIN
images/group/tuan.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

BIN
images/grsz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
images/heads.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
images/icons/1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

BIN
images/icons/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

BIN
images/icons/3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

BIN
images/icons/4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
images/icons/5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

BIN
images/icons/grdfh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
images/icons/grdfk.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
images/icons/grdsh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
images/icons/my_dpj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
images/icons/tksh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
images/logos.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

BIN
images/weixin.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
images/wx.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

0
images/group/xstg_bg.png → images/xstg_bg.png

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

7
pages/cart/cart.js

@ -12,6 +12,7 @@ Page({
remind: '加载中',
productData: '',
shop: '',
shop_logo: '',
},
//页面加载完成函数 remind: '加载中',
onReady: function () {
@ -393,12 +394,16 @@ Page({
}).then(res => {
if (res.code == 200) {
var data = res.data;
// if (data.data == 0) {
// return
// }
that.setData({
carts: data.data,
selectedAllStatus: false,
total: '¥0.00',
remind: '',
shop: data.mch_list[0]
shop: data.mch_list[0],
shop_logo: data.mch_list.length>0?'https://cz-hl-shop.oss-cn-shanghai.aliyuncs.com/239/1/20230227/'+data.mch_list[0].logo:''
});
} else {
wx.showToast({

8
pages/cart/cart.wxml

@ -49,13 +49,13 @@
<!--样式-->
<view class="container carts-list" wx:if="{{carts==''}}">
<view class="pp">
<image class="kong" src="../../images/cart.png" mode="aspectFill" />
<image class="kong" src="/images/cart.png" mode="aspectFill" />
<view class="cla">购物车空空如也</view>
<view class="cla" style='padding:5px;background:{{bgcolor}};border-radius:5px;margin:6px;color:#fff;' bindtap='go_index'>去逛逛</view>
</view>
</view>
<view class="shopView">
<image src="https://cz-hl-shop.oss-cn-shanghai.aliyuncs.com/239/1/20230227/{{shop.logo}}" mode="aspectFill"></image>
<image src="{{shop_logo}}" mode="aspectFill"></image>
<text class="left">{{shop.name}}</text>
<image class="jiantou-img" src="/images/x_right.png" mode="aspectFill"></image>
</view>
@ -102,9 +102,9 @@
<text wx:if="{{!upstatus}}" class="reds">{{total}}</text>
</view>
<view wx:if="{{upstatus}}" class="bottom_1">
<view class="button_1_2" style='background:#f60;border:1px solid #f60;' bindtap='delarr'>删除</view>
<view class="button_1_2" style='background:#FB5657;border:1px solid #f60;' bindtap='delarr'>删除</view>
</view>
<view wx:else class="button" style='background:#f60;' bindtap='bindCheckout'>立即结算</view>
<view wx:else class="button" style='background:#FB5657;' bindtap='bindCheckout'>立即结算</view>
</view>
</view>

65
pages/cart/cart.wxss

@ -3,7 +3,7 @@
background: #fff;
display: inline-block;
margin:3% 3% 2% 3%;
color: #FF8247;
color: #FB5657;
font-size: 14px;
width: 94%;
}
@ -84,7 +84,7 @@ page{
padding-left: 2%;
}
.jk_bottom .js_button{
background: #FF8247;
background: #FB5657;
float: right;
color: #fff;
font-size: 16px;
@ -191,14 +191,14 @@ page{
/*底部按钮*/
.carts-footer {
width: 100%;
height: 80rpx;
height: 90rpx;
display: flex;
flex-direction: row;
justify-content: space-between;
position: fixed;
bottom: 0;
background: #ffffff;
z-index:999;
position: fixed;
bottom: 0;
background: #ffffff;
z-index:999;
}
/*复选框*/
.carts-footer icon {
@ -216,11 +216,11 @@ page{
/*立即结算按钮*/
.carts-footer .button {
line-height: 80rpx;
line-height: 90rpx;
text-align: center;
width:220rpx;
height: 80rpx;
background-color: #FF8247;
width:200rpx;
height: 90rpx;
background-color: #FB5657;
color: white;
font-size: 36rpx;
border-radius: 0;
@ -231,28 +231,43 @@ page{
flex-direction: row;
justify-content: space-between;
align-items: center;
width:48%;
width: 200rpx;
float:right;
background-color: #F8F8F8;
border-top: 1px solid #DDD;
border-bottom: 1px solid #DDD;
/* border-radius: 10rpx; */
}
/* .stepper {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 200rpx;
overflow: hidden;
margin-left: 250rpx;
background-color: #F8F8F8;
border-top: 1px solid #DDD;
border-bottom: 1px solid #DDD;
border-radius: 8rpx;
} */
.stepper text {
background-color: #f2f2f2;
margin: 0;
width: 23px;
height: 23px;
line-height: 23px;
border-left: 1px solid #DDD;
border-right: 1px solid #DDD;
width: 25px;
height: 25px;
line-height: 25px;
text-align: center;
font-weight: 900;
color: #939393;
border-radius:6rpx;
border: 0
}
.stepper input {
width: 43px;
/* height: 25px; */
width: 30px;
height: 25px;
text-align: center;
border-radius:6rpx;
border-top: 1px solid #f2f2f2;
border-bottom: 1px solid #f2f2f2
}
.normal {
/* background-color: #f5f5f5; */
color: #000;
}
.cart_number{

4
pages/collection/collection.wxml

@ -45,9 +45,9 @@
</view>
</view>
</view>
<view style="height:50px;"></view>
<!-- <view style="height:50px;"></view>
<view class="dibu" wx:if="{{list.length}}">
<button bindtap="alldel" class="cz" hover-class="czz" style="background-color:{{bgcolor}};height: 45px;line-height: 45px;">全部取消收藏</button>
</view>
</view> -->
</view>
</block>

4
pages/distribution/detail.wxml

@ -149,7 +149,7 @@
<view class="dian">
<view class="stepper" catchtouchmove="preventTouchMove">
<!-- 减号 -->
<text class="{{minusStatuses[index]}}" data-alpha-beta="0" bindtap="changeNum">-</text>
<text class="normal" data-alpha-beta="0" bindtap="changeNum">-</text>
<!-- 数值 -->
<view class="nownum">{{buynum}}</view>
<!-- 加号 -->
@ -297,7 +297,7 @@
<view wx:if="{{share.friends}}" class='fx_img_box'>
<button open-type="share" hover-class="button-hover" style='line-height:normal;border:0;border-radius:0px;padding:0;font-size:12px;'>
<view>
<image class='fx_img' src='/images/wx.png'></image>
<image class='fx_img' src='/images/weixin.png'></image>
</view>
<view>微信好友</view>
</button>

20
pages/distribution/detail.wxss

@ -401,27 +401,25 @@ border-radius:10rpx;
width: 200rpx;
overflow: hidden;
margin-left: 250rpx;
background: #FCFCFC
background-color: #F8F8F8;
border-top: 1px solid #DDD;
border-bottom: 1px solid #DDD;
border-radius: 8rpx;
}
.stepper text {
background-color: #f2f2f2;
border: 1px solid #eee;
width: 26px;
height: 26px;
line-height: 26px;
border-left: 1px solid #DDD;
border-right: 1px solid #DDD;
width: 25px;
height: 25px;
line-height: 25px;
text-align: center;
font-weight: 900;
color: #939393;
}
.stepper input {
width: 30px;
height: 25px;
text-align: center;
/*background-color: #f2f2f2;*/
/*border-top: 1px solid #666;
border-bottom: 1px solid #666;*/
}
/*全部属性的主盒子*/
.commodity_attr_list {
background: #fff;

2
pages/group_buy/cantuan.wxml

@ -150,7 +150,7 @@
<!-- <view class="dian"> -->
<!-- <view class="stepper" catchtouchmove="preventTouchMove"> -->
<!-- 减号 -->
<!-- <text class="{{minusStatuses[index]}}" data-alpha-beta="0" bindtap="minus">-</text> -->
<!-- <text class="normal" data-alpha-beta="0" bindtap="minus">-</text> -->
<!-- 数值 -->
<!-- <view class="nownum">{{num}}</view> -->
<!-- 加号 -->

4
pages/group_buy/detail.wxml

@ -262,7 +262,7 @@
<view class="dian">
<view class="stepper" catchtouchmove="preventTouchMove">
<!-- 减号 -->
<text class="{{minusStatuses[index]}}" data-alpha-beta="0" bindtap="minus">-</text>
<text class="normal" data-alpha-beta="0" bindtap="minus">-</text>
<!-- 数值 -->
<view class="nownum">{{num}}</view>
<!-- 加号 -->
@ -300,7 +300,7 @@
<view wx:if="{{share.friends}}" class='fx_img_box'>
<button open-type="share" hover-class="button-hover" style='line-height:normal;border:0;border-radius:0px;padding:0;font-size:12px;display:inline;'>
<view>
<image class='fx_img' src='/images/wx.png'></image>
<image class='fx_img' src='/images/weixin.png'></image>
</view>
<view>微信好友</view>
</button>

19
pages/group_buy/detail.wxss

@ -319,25 +319,24 @@ border-radius:10rpx;
width: 200rpx;
overflow: hidden;
margin-left: 250rpx;
background: #FCFCFC
background-color: #F8F8F8;
border-top: 1px solid #DDD;
border-bottom: 1px solid #DDD;
border-radius: 8rpx;
}
.stepper text {
background-color: #f2f2f2;
border: 1px solid #eee;
width: 26px;
height: 26px;
line-height: 26px;
border-left: 1px solid #DDD;
border-right: 1px solid #DDD;
width: 25px;
height: 25px;
line-height: 25px;
text-align: center;
font-weight: 900;
color: #939393;
}
.stepper input {
width: 30px;
height: 25px;
text-align: center;
/*background-color: #f2f2f2;*/
/*border-top: 1px solid #666;
border-bottom: 1px solid #666;*/
}
.footc{
display:block;

4
pages/index/index.js

@ -32,8 +32,8 @@ Page({
zjList_box: false,
cart: 0, //购物车数量
region: '',
latitude: 28.23529,
longitude: 112.93134,
latitude: 31.772752,
longitude: 119.946973,
},
//下拉事件
onPullDownRefresh: function () {

4
pages/index/index.wxml

@ -214,7 +214,7 @@
</view>
</scroll-view>
<block wx:for="{{titleList[current].list}}" wx:for-item="list" wx:key="id">
<navigator class="productView" url="../product/detail?productId={{list.id}}" hover-class="changestyle">
<navigator class="productView" url="/pages/product/detail?productId={{list.id}}" hover-class="changestyle">
<image class="photo" src="{{list.imgurl}}"></image>
<view class="title">{{list.product_title}}</view>
<view class="gstatus">{{list.s_type_list[0].name}}</view>
@ -227,7 +227,7 @@
<image class="goods_shop" src="{{list.logo}}"></image>
<text>{{list.mch_name}}</text>
</view>
<view class="discover" data-id="{{list.id}}" bindtap="discoverSimilarProducts">找相似</view>
<!-- <view class="discover" data-id="{{list.id}}" bindtap="discoverSimilarProducts">找相似</view> -->
</view>
</navigator>
</block>

3
pages/listdetail/listdetail.js

@ -25,7 +25,8 @@ Page({
select: 0,//选中
sort: 0,// 1 asc 升序 0 desc 降序
types: '刷新', // 点击更多、下拉上啦刷新
bg: ''
bg: '',
attrList: [],
},
onPullDownRefresh: function () {
console.log(111)

1
pages/listdetail/listdetail.wxml

@ -42,7 +42,6 @@
<view class='iconfont {{xianshi}}' bindtap="tabchage"> </view>
</view>
</view>
<view class="list" wx:if="{{shopList.length > 0}}">
<view class="cont" style='padding-top:10px;'>
<view class="xs">

197
pages/listdetail/listdetail.wxss

@ -403,6 +403,201 @@ margin-top:5px !important;
bottom: 50rpx;
background: rgba(0,0,0,.7);
right: 30rpx;
/* */
z-index: 9999;
}
/*全部属性的主盒子*/
.commodity_attr_list {
background: #fff;
padding: 0 20rpx;
font-size: 26rpx;
overflow: hidden;
width: 100%;
}
/*弹窗*/
.drawer_screen {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: #000;
opacity: 0.2;
overflow: hidden;
z-index: 1000;
color: #fff;
}
.drawer_attr_box {
width: 100%;
height: 80%;
border-radius:10px 10px 0 0;
position: fixed;
bottom: 0;
left: 0;
z-index: 2000;
background: #fff;
}
.close_icon {
width: 60rpx;
height: 60rpx;
line-height: 60rpx;
font-size: 60rpx;
position: absolute;
right: 5rpx;
top:5rpx;
padding: 10rpx;
color: #ccc;
/*border: 1rpx solid #ccc;*/
border-radius: 50%;
text-align: center;
background: #fff;
z-index: 999;
}
.drawer_attr_content {
padding: 20rpx;
height:85%;
/* overflow-y: scroll; */
}
.text_center{
width: 97%;
position: absolute;
top: -40px;
}
.mingcheng{
width: 65%;
font-size:35rpx;
line-height: 50rpx;
float: right;
margin-bottom:20px;
}
.drawer_image {
width: 28%;
height: 200rpx;
border:1px solid #ddd;
border-radius:10rpx;
}
.drawer_desc{
font-size:28rpx;
margin:20rpx;
height: 150rpx;
width: 100%;
}
/*每组属性的主盒子*/
.attr_box {
width: 100%;
overflow: hidden;
border-bottom: 1rpx solid #ececec;
}
/*属性名*/
.attr_name {
width: 20%;
float: left;
padding: 15rpx 0;
font-size: 30rpx;
margin-top:20rpx;
}
.outStyle {
display: flex;
flex-direction: column;
}
.outStyleText {
display: flex;
flex-direction: column;
color: #999;
}
.typeStyle {
display: flex;
flex-direction: row;
margin: 10px;
}
.textStyle {
font-size:14px;
}
.buttonPaddingStyle {
padding-left:10px;
padding-right:10px;
padding-top:5px;
padding-bottom:5px;
margin-bottom:5px;
}
/*数量*/
.dian{
position: absolute;
right: 30rpx;
}
.shu{
display: flex;
flex-direction: row;
width: 100%;
margin-top: 30rpx;
height: 100rpx;
}
.stepper {
text-align: right;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 200rpx;
overflow: hidden;
margin-left: 250rpx;
background: #FCFCFC
}
.stepper text {
background-color: #f2f2f2;
border: 1px solid #eee;
width: 26px;
height: 26px;
line-height: 26px;
text-align: center;
font-weight: 900;
color: #939393;
}
.stepper input {
width: 30px;
height: 25px;
text-align: center;
/*background-color: #f2f2f2;*/
/*border-top: 1px solid #666;
border-bottom: 1px solid #666;*/
}
.cun{
/* margin: 5px; */
font-size:30rpx;
/* padding-left: 20rpx; */
width: 20%
}
.select {
border-radius: 10px;
margin-right: 10px;
color: #FB5657;
}
.normal {
border-radius: 10px;
background-color: #f5f5f5;
margin-right: 10px;
color: #000;
}
.footc{
display:block;
position:fixed;
bottom:0;
left:0;
background:#FB5657;
z-index:100;
width:100%;
font-size:14px;
border-top:1px solid #eee;
line-height:40px;
font-weight:700;
color:snow;
text-align: center;
background:#FB5657;
padding-bottom: env(safe-area-inset-bottom);
}

96
pages/login/login.js

@ -67,47 +67,69 @@ Page({
})
}
},
//获取用户信息新接口
agreeGetUser: function (e) {
let that = this;
wx.showLoading({
title: '正在登入',
success: 2000
});
console.log(e.detail.userInfo)
if (e.detail.errMsg == 'getUserInfo:ok') {
//获取成功设置状态
app.globalData.isLogin = true;
wx.setStorageSync('isLogin', true);
//设置用户信息本地存储
try {
wx.setStorageSync('userInfo', e.detail.userInfo);
} catch (e) {
wx.showToast({
title: '系统提示:网络错误!',
icon: 'warn',
duration: 1500,
wxlogin(){
wx.login({
success: function (res) {
WXAPI.wxLogin({
code: res.code,
storeId: 239,
}).then(res => {
if (res.code == 200) {
var data = res.data
app.globalData.accessId = data.access_id;
wx.setStorageSync('accessId', data.access_id)
wx.setStorageSync('isLogin', true);
wx.setStorageSync('userInfo', data.user);
wx.navigateBack()
}
})
}
that.setData({
isLogin: false
})
that.getOP(e.detail.userInfo)
});
},
//授权微信手机号
bindPhoneNumber: function(e) {
var that = this;
if (e.detail.errMsg == "getPhoneNumber:ok") {
//用户按了确认按钮
that.tapWeixinLogin(e);
} else {
wx.showToast({
title: '没有授权,不能执行该操作!',
icon: 'none',
duration: 2000
//用户按了拒绝按钮
wx.showModal({
title:'警告',
content:'您点击了拒绝授权,将无法进入小程序,请授权之后再进入!!!',
showCancel:false,
confirmText:'返回授权',
success:function(res){
if (res.confirm) {
console.log('用户点击了“返回授权”')
}
}
})
//没有授权需要弹框
that.setData({
isLogin: true
});
}
}
},
//微信一键登录
tapWeixinLogin : function(e) {
var code = e.detail.code
console.log(code)
wx.showModal({
title:'警告',
content:code,
showCancel:false,
confirmText:'返回授权',
})
WXAPI.wxLogin({
code: code,
storeId: 239,
}).then(res => {
if (res.code == 200) {
var data = res.data
app.globalData.accessId = data.access_id;
wx.setStorageSync('accessId', data.access_id)
wx.setStorageSync('isLogin', true);
wx.setStorageSync('userInfo', data.data);
wx.navigateBack()
}
})
},
accountInput: function(e) {
this.setData({

21
pages/login/login.wxml

@ -8,10 +8,10 @@
</view> -->
<!--密码登录-->
<view class='login'>
<view class='login'>
<!-- 用户名 -->
<view class="userCs">
<image src="/images/user.png" class="user"></image>
<image src="/images/user.png" class="user"></image>
<input placeholder="请输入账号/手机号" type="text" bindinput="accountInput" />
</view>
<!-- 密码 -->
@ -25,12 +25,15 @@
<view class="registerView" bindtap="registerAct">注册</view>
</view>
<view class="other-content">
<text class="text3">其他登陆方式</text>
<view class="weixinBtn" bindtap="wxlogin">
<image src="/images/weixin.png" mode="aspectFill"></image>
</view>
<!-- <button class="weixinBtn" open-type="getPhoneNumber" bindgetphonenumber="bindPhoneNumber">
<image src="/images/weixin.png" mode="aspectFill"></image>
</button> -->
<text class="text4">微信登录</text>
</view>
<!--验证码登录-->
<!-- <view class="ather_login">
<view>—— 其他登录方式 ——</view>
<view>
<image :src="wx"></image>
</view>
</view> -->
</view>

41
pages/login/login.wxss

@ -149,3 +149,44 @@ page{
align-items: center;
justify-content: center;
}
.other-content {
height: 400rpx;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
.text3 {
font-size: 24rpx;
color: rgb(153, 153, 153);
margin: 0;
}
.text4 {
text-align: center;
color: #333333;
font-family: PingFang SC;
font-size: 28rpx;
}
.weixinBtn {
margin-top: 20rpx;
margin-bottom: 20rpx;
width: 80rpx;
height: 80rpx;
padding: 0;
background-color:transparent;
}
/* button的边框设置,要放在::after里面设置 */
.weixinBtn::after {
border: none; /* 移除边框 */
}
.weixinBtn image {
width: 80rpx;
height: 80rpx;
}

2
pages/new/new.wxml

@ -58,7 +58,7 @@
<image class="goods_shop" src="{{logoUrl}}{{item.logo}}"></image>
<text>{{item.mch_name}}</text>
</view>
<view class="discover" data-id="{{item.id}}" bindtap="discoverSimilarProducts">找相似</view>
<!-- <view class="discover" data-id="{{item.id}}" bindtap="discoverSimilarProducts">找相似</view> -->
</view>
</navigator>
</view>

52
pages/notice/index.js

@ -25,19 +25,12 @@ Page({
title: '公告详情', //修改页面标题
});
var that = this;
wx.request({
url: app.d.ceshiUrl + '&action=notice&m=index',
data: {
id: options.Id
},
method: 'POST', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
header: {// 设置请求的 header
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
// success
var notice = res.data.notice;
var detail = res.data.notice[0].detail;
WXAPI.messageList({
}).then(res => {
if (res.code == 200) {
var data = res.data
var notice = data.message;
var detail = data.message[0].detail;
WxParse.wxParse('detail', 'html', detail, that, 5);//处理规则的富文本框
if (notice == '') {
var notice = []
@ -45,12 +38,6 @@ Page({
that.setData({
notice: notice
})
},
fail: function () {
wx.showToast({
title: '网络异常!',
duration: 2000
});
}
})
},
@ -58,34 +45,19 @@ Page({
// 数据加载
DataonLoad: function () {
var that = this;
// 页面初始化 options为页面跳转所带来的参数
wx.request({
url: app.d.ceshiUrl + '&action=notice&m=index',
data: {
id: options.Id
},
method: 'POST', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
header: {// 设置请求的 header
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
// success
var notice = res.data.notice;
var detail = res.data.notice[0].detail;
WXAPI.messageList({
}).then(res => {
if (res.code == 200) {
var data = res.data
var notice = data.message;
var detail = data.message[0].detail;
WxParse.wxParse('detail', 'html', detail, that, 5);//处理规则的富文本框
if (notice == '') {
var notice = []
}
that.setData({
notice: notice
})
},
fail: function () {
wx.showToast({
title: '网络异常!',
duration: 2000
});
}
})
},

51
pages/notice/notice.js

@ -26,17 +26,14 @@ Page({
title: '公告', //修改页面标题
});
var that = this;
wx.request({
url: app.d.ceshiUrl + '&action=notice&m=index',
data: {
openid: app.globalData.userInfo.openid
},
method: 'POST', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
header: {// 设置请求的 header
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
var notice = res.data.notice;
WXAPI.messageList({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
}).then(res => {
if (res.code == 200) {
var data = res.data
var notice = data.message;
if (notice == '') {
var notice = []
}
@ -44,12 +41,6 @@ Page({
notice: notice
})
},
fail: function () {
wx.showToast({
title: '网络异常!',
duration: 2000
});
}
})
},
@ -57,18 +48,14 @@ Page({
// 数据加载
DataonLoad: function () {
var that = this;
// 页面初始化 options为页面跳转所带来的参数
wx.request({
url: app.d.ceshiUrl + '&action=notice&m=index',
data: {
openid: app.globalData.userInfo.openid,
},
method: 'POST', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
header: {// 设置请求的 header
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
var notice = res.data.notice;
WXAPI.messageList({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
}).then(res => {
if (res.code == 200) {
var data = res.data
var notice = data.message;
if (notice == '') {
var notice = []
}
@ -76,12 +63,6 @@ Page({
notice: notice
})
},
fail: function () {
wx.showToast({
title: '网络异常!',
duration: 2000
});
}
})
},

8
pages/notice/notice.wxml

@ -2,15 +2,15 @@
<view class="function" style='background:#fff'>
<view class='tab_tab' wx:for="{{notice}}" wx:key="key">
<navigator url="../notice/index?Id={{item.id}}">
<button open-type="getUserInfo" class="function_list" lang="zh_CN">
<view class="function_list" lang="zh_CN">
<view class='function_left'>
<view class='function_text'>{{item.name}} </view>
<!-- <view class='function_text'>{{item.time}} </view> -->
<view class='function_text'>{{item.content}} </view>
<view class='function_text'>{{item.time}} </view>
</view>
<view class='function_right'>
<image class="jiantou" src="../../images/x_right.png"></image>
</view>
</button>
</view>
</navigator>
</view>

27
pages/notice/notice.wxss

@ -1,4 +1,9 @@
/* pages/notice.wxss */
page{
width: 100%;
height: 100%;
background:#eee !important;
}
.function{
width:95%;
margin: 10px auto;
@ -12,30 +17,28 @@
display:flex;
justify-content:space-between;
background:#fff;
margin:0;
margin:0rpx;
padding:0;
color:#666;
border:0;
border-bottom:20rpx solid #eee;
height: 150rpx;
}
.function_left{
display: flex;
/* display: flex; */
font-size:16px;
margin-left:5px;
margin-left:10px;
padding-top: 3px;
}
.function .iconfont {
line-height:27px;
}
.function_text{
margin-top:10px;
margin-left:5px;
}
.jiantou{
width: 10px;
height: 10px;
padding-right:10px;
margin-top:40rpx;
width: 20rpx;
height: 20rpx;
padding-right:20rpx;
}
page{
width: 100%;
height: 100%;
background:#eee !important;
}

2
pages/order/pay.js

@ -184,7 +184,7 @@ Page({
pays.push({'name':'公对公支付','icon':'/images/公对公.png'})
}
// if (data.payment.wallet_pay == 1) {
// pays.push({'name':'余额支付','icon':'/images/wx.png'})
// pays.push({'name':'余额支付','icon':'/images/weixin.png'})
// }
that.setData({
productAry: options.product,

6
pages/product/detail.js

@ -182,11 +182,9 @@ Page({
attrList: data.attrList,
skuBeanList: data.skuBeanList,
zhekou: data.zhekou != '' ? data.zhekou : false,
});
// util.getUesrBgplus(that, app, true)
that.setData({
remind: false
});
// util.getUesrBgplus(that, app, true)
//默认选中
that.one();
} else if (res.code == 3) {
@ -265,7 +263,6 @@ Page({
}
}.bind(this), 200)
},
// 加减
changeNum: function (e) {
var that = this;
@ -744,7 +741,6 @@ Page({
delay: 0
});
//定义点击的类型
var type = e.currentTarget.dataset.type ? e.currentTarget.dataset.type : false;
//控制两种不同显示方式
if (type) {

26
pages/product/detail.wxml

@ -61,11 +61,9 @@
</view>
<view class='dd_details_text'>
<view class='ovh1' style='-webkit-line-clamp:2;float:left;font-size:32rpx;color:#333;font-weight:700;width:85%;'>
<text class='de_text' wx:if="{{itemData.xp == 1 || itemData.rexiao == 1 || itemData.tuijian == 1}}">[</text>
<text class='de_text' wx:if="{{itemData.xp == 1}}">新品</text>
<text class='de_text' wx:if="{{itemData.rexiao == 1}}">热销</text>
<text class='de_text' wx:if="{{itemData.tuijian == 1}}">推荐</text>
<text class='de_text' wx:if="{{itemData.xp == 1 || itemData.rexiao == 1 || itemData.tuijian == 1}}">]</text> {{itemData.name}}
<text class='de_text' wx:if="{{list.s_type_list.length > 0}}">[</text>
{{list.s_type_list[0].name}}
<text class='de_text' wx:if="{{list.s_type_list.length > 0}}">]</text> {{itemData.name}}
</view>
<!-- <view style='margin-top:px;'>
</view> -->
@ -108,8 +106,8 @@
<image class="drawer_image" src="{{itemData.photo_x}}"></image>
</view>
<view class="mingcheng">
<view wx:if="{{paytype == 'canjiapintuan'}}" style="font-size:38rpx;color:red">¥{{itemData.price11}}</view>
<view wx:else style="font-size:38rpx;color:red">¥ {{itemData.price_yh}}</view>
<view wx:if="{{paytype == 'canjiapintuan'}}" style="font-size:38rpx;color:#FB5657">¥{{itemData.price11}}</view>
<view wx:else style="font-size:38rpx;color:#FB5657">¥ {{itemData.price_yh}}</view>
<view style="font-size:26rpx;color:#999">库存:{{itemData.num}}</view>
</view>
<view style='clear:both;'></view>
@ -121,20 +119,20 @@
<view class='outStyleText textStyle buttonPaddingStyle' style="padding-left:0">{{item.attrName}}</view>
<view class='typeStyle textStyle' style="margin-left:0;flex-wrap: wrap;">
<view wx:for="{{item.attr}}" data-item='{{item.attr[index]}}' data-index='{{index}}' data-idx='{{idx}}' wx:key="userInfoListId" bindtap="onChangeShowState" wx:for-item="items">
<view class="{{items.enable == true ?(items.select==true?'orange':'back') : 'bai'}} textStyle buttonPaddingStyle">
<view class="{{items.enable == true ?(items.select==true?'select':'normal') : 'bai'}} textStyle buttonPaddingStyle">
{{items.attributeValue}}
</view>
</view>
</view>
</view>
<!-- 属性选择 -->
<!-- 属性选择结束 -->
<view class="shu" wx:if="{{type1 != 1}}">
<view class="shu">
<text class="cun">购买数量</text>
<view class="dian">
<view class="stepper" catchtouchmove="preventTouchMove">
<!-- 减号 -->
<text class="{{minusStatuses[index]}}" data-alpha-beta="0" bindtap="changeNum">-</text>
<text class="normal" data-alpha-beta="0" bindtap="changeNum">-</text>
<!-- 数值 -->
<view class="nownum">{{buynum}}</view>
<!-- 加号 -->
@ -297,7 +295,7 @@
</view>
</view>
<!--获取formid -->
<view class=" w40 fl_l" style='background:#f7c747;' bindtap="setModalStatus" data-status="1" data-type="buynow">单独买 ¥ {{itemData.price_yh}}</view>
<view class=" w40 fl_l" style='background:#FB5657;' bindtap="setModalStatus" data-status="1" data-type="buynow">单独买 ¥ {{itemData.price_yh}}</view>
<!-- <form bindsubmit="getUserformid" data-status="1" data-type="canjiapintuan" style='width:40%;'>
<button type="primary" formType="submit" style='width:40.6%;height:50px;background: #ec612a;color:#fff !important;display:flex;flex-direction:column;justify-content:center;border-radius:0;margin:0;float:left;'>
@ -363,7 +361,7 @@
<view wx:if="{{share.friends}}" class='fx_img_box'>
<button open-type="share" hover-class="button-hover" style='line-height:normal;border:0;border-radius:0px;padding:0;font-size:12px;'>
<view>
<image class='fx_img' src='/images/wx.png'></image>
<image class='fx_img' src='/images/weixin.png'></image>
</view>
<view>微信好友</view>
</button>
@ -385,7 +383,7 @@
<view class='close_share' bindtap='close_share'>x</view>
</view>
<image src="{{imagePath}}" data-src="{{imagePath}}" catchtap="previewImage" class='shengcheng'></image>
<button class='baocun' style='background:#FF6347;' bindtap='baocun'>保存相册</button>
<button class='baocun' style='background:#FB5657;' bindtap='baocun'>保存相册</button>
<view class='share_bottom'>保存图片到手机后,您可到朋友圈分享该商品图片</view>
</view>
</view>

60
pages/product/detail.wxss

@ -5,7 +5,7 @@ page{
}
.de_text{
padding:0px 4px 0 0;
color: #d9002f;
color: #FB5657;
font-size: 32rpx
}
.service {
@ -15,7 +15,7 @@ page{
width:15px;
height:15px;
border-radius:50%;
background:red;
background:#FB5657;
display: flex;
justify-content: center;
align-items: center;
@ -90,7 +90,7 @@ page{
}
.ad .button_icon{
border-radius: 20px;
background: #fd9d21;
background: #FB5657;
width: 20%;
text-align: center;
font-size: 14px;
@ -239,7 +239,7 @@ page{
position:fixed;
bottom:0;
left:0;
background:red;
background:#FB5657;
z-index:100;
width:100%;
font-size:14px;
@ -248,7 +248,7 @@ page{
font-weight:700;
color:snow;
text-align: center;
background:#FF6347;
background:#FB5657;
padding-bottom: env(safe-area-inset-bottom);
}
.xgfootc1{
@ -378,20 +378,21 @@ page{
.open_btn {
margin: 40rpx 10%;
border-radius: 10rpx;
background: #20bb21;
background: #FB5657;
color: #fff;
}
/*数量*/
.dian{
width: 70%;
display: inline-block;
position: absolute;
right: 30rpx;
}
.shu{
display: flex;
flex-direction: row;
width: 100%;
margin-top: 35rpx;
/* margin-bottom: 160rpx; */
margin-top: 30rpx;
height: 100rpx;
}
.stepper {
text-align: right;
@ -402,27 +403,25 @@ page{
width: 200rpx;
overflow: hidden;
margin-left: 250rpx;
background: #FCFCFC
background-color: #F8F8F8;
border-top: 1px solid #DDD;
border-bottom: 1px solid #DDD;
border-radius: 8rpx;
}
.stepper text {
background-color: #f2f2f2;
border: 1px solid #eee;
width: 26px;
height: 26px;
line-height: 26px;
border-left: 1px solid #DDD;
border-right: 1px solid #DDD;
width: 25px;
height: 25px;
line-height: 25px;
text-align: center;
font-weight: 900;
color: #939393;
}
.stepper input {
width: 30px;
height: 25px;
text-align: center;
/*background-color: #f2f2f2;*/
/*border-top: 1px solid #666;
border-bottom: 1px solid #666;*/
}
/*全部属性的主盒子*/
.commodity_attr_list {
background: #fff;
@ -452,7 +451,7 @@ page{
.btn {
margin-top: 15px;
background-color:#FFCC00;
background-color:#FB5657;
color: #fff;
}
.btn:first-child {
@ -623,7 +622,7 @@ border: none;
.btn {
margin-top: 15px;
background-color:#FFCC00;
background-color:#FB5657;
color: #fff;
}
.btn:first-child {
@ -683,7 +682,7 @@ border: none;
width:90%;
margin:auto;
font-size:24rpx;
color:red;
color:#FB5657;
}
.dd_details_box{
@ -888,20 +887,13 @@ button[class="baocun"]::after{
/**index.wxss**/
.orange {
.select {
border-radius: 10px;
background-color: #f19e39;
background-color: #FB5657;
margin-right: 10px;
color: #fff;
}
.back {
border-radius: 10px;
background-color: #f5f5f5;
margin-right: 10px;
color: #000;
}
.bai {
border-radius: 10px;
background-color: #fff;

37
pages/return_goods/index.js

@ -131,43 +131,28 @@ Page({
},
loadList: function(){
var that = this;
wx.request({
url: app.d.ceshiUrl + '&action=order&m=ReturnDataList',
method: 'post',
data: {
openid: app.globalData.userInfo.openid,
order_type: that.data.isStatus,
},
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
success: function (res) {
var status = res.data.status;
var list = res.data.list;
// var h = res.data.h;
// that.setData({
// h: h,
// });
WXAPI.returnDataList({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
limit: 0
}).then(res => {
if (res.code == 200) {
var data = res.data
switch (that.data.currentTab) {
case 0:
that.setData({
orderList0: list,
orderList0: data.list,
});
break;
case 1:
that.setData({
orderList1: list,
orderList1: data.list,
});
break;
}
},
fail: function () {
wx.showToast({
title: '网络异常!',
duration: 2000
});
}
});
})
},
bindChange: function (e) {
var that = this;

10
pages/set/set.js

@ -61,6 +61,16 @@ Page({
})
}
},
logout: function() {
wx.clearStorage({
success: (res) => {
wx.clearStorageSync('isLogin');
wx.reLaunch({
url: '/pages/login/login',
})
},
})
},
onShow: function () {

5
pages/set/set.wxml

@ -1,9 +1,9 @@
<!--pages/set/set.wxml-->
<view class="function" style='background:#fff'>
<button open-type="getUserInfo" class="function_list" bindgetuserinfo="agreeGetUser" lang="zh_CN">
<button class="function_list" bindtap="changePwd">
<view class='function_left'>
<view class='function_text'>更新个人资料 </view>
<view class='function_text'>修改密码 </view>
</view>
<view class='function_right'>
<image class="jiantou" src="../../images/x_right.png"></image>
@ -20,3 +20,4 @@
</button>
</view>
<view class="logoutView" bindtap="logout">退出登录</view>

10
pages/set/set.wxss

@ -38,4 +38,14 @@ page{
width: 100%;
height: 100%;
background:#eee !important;
}
.logoutView{
margin:70rpx;
height: 80rpx;
text-align: center;
line-height: 80rpx;
font-size: 32rpx;
color: white;
border-radius: 20rpx;
background-color:#fa5151;
}

4
pages/shop/shop.js

@ -12,8 +12,8 @@ Page({
mch_arr:[], //店铺分类列表
mch_data:[], //店铺分类总数据
i_showFl:0,//选择的分类
latitude: 28.23529,
longitude: 112.93134,
latitude: 31.772752,
longitude: 119.946973,
index: 0,
cid: ''
},

256
pages/store/store.js

@ -25,6 +25,11 @@ Page({
shop_info: {},
type: 1,
shopId: '',
showModalStatus: false,
animationData: '',
buynum: 1,
attrList: [],
sizeid: '',
},
switchTab: function(e) {
var dataset = e.currentTarget.dataset
@ -45,8 +50,8 @@ Page({
shop_id: shopId,
shop_list_id: '',
type: that.data.type,
latitude: 28.23529,
longitude: 112.93134,
latitude: 31.772752,
longitude: 119.946973,
}).then(res => {
if (res.code == 200) {
var data = res.data;
@ -65,19 +70,256 @@ Page({
wx.navigateTo({
url: '/pages/store/myStore?shopId='+info.id,
})
},
shopping_j: function(e) {
},
navToList: function (e) {
console.log(e)
// console.log(e)
var that = this
var info = e.currentTarget.dataset.info;
wx.navigateTo({
url: '/pages/listdetail/listdetail?id='+info.cid+'&title='+info.pname,
})
},
navToDetail: function(e) {
var info = e.currentTarget.dataset.info;
wx.navigateTo({
url: '/pages/product/detail?productId='+info.id,
})
},
showAttribute: function(e) {
var productId = e.currentTarget.dataset.id;
var that = this;
that.loadProductDetail(productId);
var animation = wx.createAnimation({
duration: 200,
timingFunction: "linear",
delay: 0
});
this.animation = animation
animation.translateY(300).step();
this.setData({
// paytype: type,
animationData: animation.export()
})
if (e.currentTarget.dataset.status == 1) {
this.setData({
showModalStatus: true
});
}
setTimeout(function () {
animation.translateY(0).step()
this.setData({
animationData: animation
})
if (e.currentTarget.dataset.status == 0) {
this.setData({
showModalStatus: false
});
}
}.bind(this), 200);
},
// 商品详情数据获取
loadProductDetail: function (productId) {
var that = this;
WXAPI.productIndex({
accessId: app.globalData.accessId,
storeId: 239,
pro_id: productId,
vipSource: 0
}).then(res => {
if (res.code == 200) {
var data = res.data;
var pro = data.pro;
that.setData({
itemData: pro,
attrList: data.attrList,
sizeid: data.attrList[0].attr[0].attrId,
});
}
});
},
// 弹窗
setModalStatus: function (e) {
var animation = wx.createAnimation({
duration: 200,
timingFunction: "linear",
delay: 0
});
//定义点击的类型
var type = e.target.dataset.type ? e.target.dataset.type : false;
//控制两种不同显示方式
if (type) {
this.setData({
xefl: false,
})
} else {
this.setData({
xefl: true,
})
type = this.data.paytype;
}
this.animation = animation
animation.translateY(300).step();
this.setData({
paytype: type,
animationData: animation.export()
})
if (e.currentTarget.dataset.status == 1) {
this.setData({
showModalStatus: true
});
}
setTimeout(function () {
animation.translateY(0).step()
this.setData({
animationData: animation
})
if (e.currentTarget.dataset.status == 0) {
this.setData({
showModalStatus: false
});
}
}.bind(this), 200)
},
// 加减
changeNum: function (e) {
var that = this;
var num = that.data.itemData.num;
if (e.target.dataset.alphaBeta == 0) {
if (this.data.buynum <= 1) {
wx.showToast({
title: '不能再少了',
icon: 'none',
duration: 1000
})
} else {
this.setData({
buynum: this.data.buynum - 1
})
};
} else {
if (that.data.buynum < num) {
this.setData({
buynum: this.data.buynum + 1
})
} else {
wx.showToast({
title: '不能再多了',
icon: 'none',
duration: 1000
})
}
};
},
/**
* 规格属性点击事件
*/
onChangeShowState: function (event) {
var that = this;
var listItem = this.data.attrList;
var items = listItem[event.currentTarget.dataset.idx];
var item = items.attr[event.currentTarget.dataset.index];
if (!item.enable) {
return;
}
var select = !item.select;
for (var i = 0; i < items.attr.length; i++) {
items.attr[i].select = false;
}
item.select = select;
// 获取点击属性列表
var canGetInfo = [];
for (var skuIndex = 0; skuIndex < listItem.length; skuIndex++) {
for (var skuIndexIn = 0; skuIndexIn < listItem[skuIndex].attr.length; skuIndexIn++) {
if (listItem[skuIndex].attr[skuIndexIn].enable && listItem[skuIndex].attr[skuIndexIn].select) {
canGetInfo.push(listItem[skuIndex].attr[skuIndexIn]);
}
}
}
var canGetInfoLog = "";
var skuBeanList = this.data.skuBeanList;
var haveSkuBean = [];
// 对应库存清单扫描
for (var skuBeanIndex = 0; skuBeanIndex < skuBeanList.length; skuBeanIndex++) {
var iListCount = 0;
for (var skuBeanIndexIn = 0; skuBeanIndexIn < skuBeanList[skuBeanIndex].attributes.length; skuBeanIndexIn++) {
if (canGetInfo.length == skuBeanList[skuBeanIndex].attributes.length) {
if (skuBeanList[skuBeanIndex].attributes[skuBeanIndexIn].attributeValId == canGetInfo[skuBeanIndexIn].id) {
iListCount++;
}
} else {
canGetInfoLog = "库存清单不存在此属性" + " ";
}
}
if (iListCount == skuBeanList[skuBeanIndex].attributes.length) {
haveSkuBean.push(skuBeanList[skuBeanIndex]);
}
}
for (var iox = 0; iox < canGetInfo.length; iox++) {
canGetInfoLog += canGetInfo[iox].attributeValue + " ";
}
if (haveSkuBean.length != 0) {
//选中设置
var itemData = that.data.itemData;
itemData.photo_x = haveSkuBean[0].imgurl;
itemData.price_yh = haveSkuBean[0].price;
itemData.num = haveSkuBean[0].count;
var choujiangid = that.data.choujiangid;
var sizeid = haveSkuBean[0].cid;
that.setData({
itemData: itemData,
sizeid: sizeid,
choujiangid: choujiangid,
value: canGetInfoLog
});
} else {
that.setData({
sizeid: '',
value: ''
});
}
// 重新赋值
this.setData({
attrList: listItem,
infoText: canGetInfoLog,
})
// 重新sku运算
this.onData();
},
//加入购物车
addShopCart: function (e) {
// console.log(e.currentTarget.dataset)
var info = e.currentTarget.dataset.info;
//添加到购物车
var that = this;
WXAPI.productAddCart({
accessId: app.globalData.accessId,
storeId: 239,
storeType: 1,
pro_id: info.pro_id,
attribute_id: that.data.sizeid,
num: that.data.buynum,
type: 'addcart',
}).then(res => {
if (res.code == 200) {
//设置购物车刷新
app.d.purchase = 1;
wx.showToast({
title: '已添加到购物车',
icon: 'success',
duration: 2000
});
that.setData({
showModalStatus: false
});
} else {
wx.showToast({
icon: 'loading',
title: res.message,
duration: 2000
});
}
});
},
/**
* 生命周期函数--监听页面加载
*/

51
pages/store/store.wxml

@ -39,7 +39,7 @@
</view>
<scroll-view class="list-table" scroll-y="true">
<block wx:if="{{type!=3}}">
<view class="list-cell" wx:for="{{goods_list}}" wx:key="index" data-info="{{item}}">
<view class="list-cell" wx:for="{{goods_list}}" wx:key="index" data-info="{{item}}" bindtap="navToDetail">
<view class="goods_view">
<image class="goods_img" lazy-load src="{{item.imgurl}}" />
<view wx:if="{{item.status == 3}}" class="dowmPro">已失效</view>
@ -50,7 +50,7 @@
<view class="goods_price">
<view class='price'>¥{{item.vip_yprice}}</view>
</view>
<image wx:if="{{item.is_open == 1}}" bindtap="shopping_j" src="/images/goods_shopImg.png" />
<image wx:if="{{item.is_open == 1}}" src="/images/goods_shopImg.png" catchtap="showAttribute" hover-stop-propagation='true' data-id="{{item.id}}" data-status="1"/>
<image wx:else src="" />
</view>
</view>
@ -62,4 +62,51 @@
</view>
</block>
</scroll-view>
<!--弹窗-->
<view class="drawer_screen" catchtouchmove="preventTouchMove" bindtap="setModalStatus" data-status="0" wx:if="{{showModalStatus}}"></view>
<view animation="{{animationData}}" class="drawer_attr_box" catchtouchmove="preventTouchMove" wx:if="{{showModalStatus}}">
<view class="close_icon" bindtap="setModalStatus" data-status="0">×</view>
<view class="drawer_attr_content">
<view class="text_center">
<image class="drawer_image" src="{{itemData.photo_x}}"></image>
</view>
<view class="mingcheng">
<view style="font-size:38rpx;color:#FB5657">¥ {{itemData.price_yh}}</view>
<view style="font-size:26rpx;color:#999">库存:{{itemData.num}}</view>
</view>
<view style='clear:both;'></view>
<view class="commodity_attr_list" catchtouchmove="preventTouchMove">
<!--每组属性-->
<scroll-view scroll-y="true" style="height:100%;">
<!-- 属性选择 -->
<view wx:for="{{attrList}}" wx:for-index="idx" wx:key="userInfoListId" class="outStyle">
<view class='outStyleText textStyle buttonPaddingStyle' style="padding-left:0">{{item.attrName}}</view>
<view class='typeStyle textStyle' style="margin-left:0;flex-wrap: wrap;">
<view wx:for="{{item.attr}}" data-item='{{item.attr[index]}}' data-index='{{index}}' data-idx='{{idx}}' wx:key="userInfoListId" bindtap="onChangeShowState" wx:for-item="items">
<view class="{{items.enable == true ?(items.select==true?'select':'normal') : 'bai'}} textStyle buttonPaddingStyle">
{{items.attributeValue}}
</view>
</view>
</view>
</view>
<!-- 属性选择结束 -->
<view class="shu">
<text class="cun">购买数量</text>
<view class="dian">
<view class="stepper" catchtouchmove="preventTouchMove">
<!-- 减号 -->
<text class="normal" data-alpha-beta="0" bindtap="changeNum">-</text>
<!-- 数值 -->
<view class="nownum">{{buynum}}</view>
<!-- 加号 -->
<text class="normal" data-alpha-beta="1" bindtap="changeNum">+</text>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="footc" data-info="{{itemData}}" id="{{itemData}}" type="primary" bindtap="addShopCart"> 确定 </view>
</view>
</view>
<!--弹框结尾 -->
</view>

193
pages/store/store.wxss

@ -267,4 +267,197 @@
right: 40rpx;
width: 25rpx;
height: 25rpx;
}
/*全部属性的主盒子*/
.commodity_attr_list {
background: #fff;
padding: 0 20rpx;
font-size: 26rpx;
overflow: hidden;
width: 100%;
}
/*弹窗*/
.drawer_screen {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: #000;
opacity: 0.2;
overflow: hidden;
z-index: 1000;
color: #fff;
}
.drawer_attr_box {
width: 100%;
height: 80%;
border-radius:10px 10px 0 0;
position: fixed;
bottom: 0;
left: 0;
z-index: 2000;
background: #fff;
}
.close_icon {
width: 60rpx;
height: 60rpx;
line-height: 60rpx;
font-size: 60rpx;
position: absolute;
right: 5rpx;
top:5rpx;
padding: 10rpx;
color: #ccc;
/*border: 1rpx solid #ccc;*/
border-radius: 50%;
text-align: center;
background: #fff;
z-index: 999;
}
.drawer_attr_content {
padding: 20rpx;
height:85%;
/* overflow-y: scroll; */
}
.text_center{
width: 97%;
position: absolute;
top: -40px;
}
.mingcheng{
width: 65%;
font-size:35rpx;
line-height: 50rpx;
float: right;
margin-bottom:20px;
}
.drawer_image {
width: 28%;
height: 200rpx;
border:1px solid #ddd;
border-radius:10rpx;
}
.drawer_desc{
font-size:28rpx;
margin:20rpx;
height: 150rpx;
width: 100%;
}
/*每组属性的主盒子*/
.attr_box {
width: 100%;
overflow: hidden;
border-bottom: 1rpx solid #ececec;
}
/*属性名*/
.attr_name {
width: 20%;
float: left;
padding: 15rpx 0;
font-size: 30rpx;
margin-top:20rpx;
}
.outStyle {
display: flex;
flex-direction: column;
}
.outStyleText {
display: flex;
flex-direction: column;
color: #999;
}
.typeStyle {
display: flex;
flex-direction: row;
margin: 10px;
}
.textStyle {
font-size:14px;
}
.buttonPaddingStyle {
padding-left:10px;
padding-right:10px;
padding-top:5px;
padding-bottom:5px;
margin-bottom:5px;
}
/*数量*/
.dian{
position: absolute;
right: 30rpx;
}
.shu{
display: flex;
flex-direction: row;
width: 100%;
margin-top: 30rpx;
height: 100rpx;
}
.stepper {
text-align: right;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 200rpx;
overflow: hidden;
margin-left: 250rpx;
background-color: #F8F8F8;
border-top: 1px solid #DDD;
border-bottom: 1px solid #DDD;
border-radius: 8rpx;
}
.stepper text {
border-left: 1px solid #DDD;
border-right: 1px solid #DDD;
width: 25px;
height: 25px;
line-height: 25px;
text-align: center;
font-weight: 900;
}
.stepper input {
width: 30px;
height: 25px;
text-align: center;
}
.normal {
/* background-color: #f5f5f5; */
color: #000;
}
.cun{
/* margin: 5px; */
font-size:30rpx;
/* padding-left: 20rpx; */
width: 20%
}
.select {
border-radius: 10px;
background-color: #FB5657;
margin-right: 10px;
color: #fff;
}
.footc{
display:block;
position:fixed;
bottom:0;
left:0;
background:#FB5657;
z-index:100;
width:100%;
font-size:14px;
border-top:1px solid #eee;
line-height:40px;
font-weight:700;
color:snow;
text-align: center;
background:#FB5657;
padding-bottom: env(safe-area-inset-bottom);
}

35
pages/user/user.js

@ -3,6 +3,12 @@ var app = getApp()
var WXAPI = require('../../utils/server.js');
Page({
data: {
// 状态栏高度
statusBarHeight: wx.getStorageSync('statusBarHeight') + 'px',
// 胶囊按钮高度
menuBtnHeight: wx.getStorageSync('menuBtnHeight') + 'px',
// 导航栏和状态栏高度
navBarHeight: wx.getStorageSync('statusBarHeight') + wx.getStorageSync('navBarHeight') + 'px',
pop: null,
list: [
// {
@ -26,11 +32,6 @@ Page({
url: 'address/index'
},
// {
// icon: 'gg.png',
// text: '公告管理',
// url: 'notice/notice'
// },
// {
// icon: 'sz.png',
// text: '设置',
// url: 'set/set'
@ -159,5 +160,27 @@ Page({
wx.navigateTo({
url: url
})
}
},
navToNotice() {
var isLogin = wx.getStorageSync('isLogin')
if (!isLogin) {
wx.navigateTo({
url: '/pages/login/login'
})
}
wx.navigateTo({
url: '/pages/notice/notice'
})
},
navToSetup() {
var isLogin = wx.getStorageSync('isLogin')
if (!isLogin) {
wx.navigateTo({
url: '/pages/login/login'
})
}
wx.navigateTo({
url: '/pages/set/set'
})
}
})

3
pages/user/user.json

@ -1,5 +1,6 @@
{
"usingComponents": {},
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#eeeeee"
"navigationBarBackgroundColor": "#F4F5F6",
"navigationStyle": "custom"
}

285
pages/user/user.wxml

@ -1,163 +1,180 @@
<view class="body" wx:if="{{remind}}">
<view class='zong'>
<view class="spinner" >
<view class="spinner-container container1">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container2">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container3">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="body" wx:if="{{remind}}">
<view class='zong'>
<view class="spinner">
<view class="spinner-container container1">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container2">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
<view class="spinner-container container3">
<view class="circle1"></view>
<view class="circle2"></view>
<view class="circle3"></view>
<view class="circle4"></view>
</view>
</view>
</view>
<!-- 加载页面结束 -->
<block wx:else>
<view style='width:100%;height:100%'>
<!-- 用户基本信息 -->
<view class='user_top' style="background-color:{{bgcolor}}">
<view class='user_top_two'>
<image style='display:block;' class='user_top_image' src="{{user.headimgurl ? user.headimgurl:'/images/heads.png'}}" />
<block wx:if="{{user.mobile}}">
<view class='user_mc' bindtap="copyText" data-text="{{user.user_id}}" style='display:block;'>
<view class='user_name'>{{user.user_name}}</view>
<text class='userid_font'>用户ID:{{user.user_id}}</text>
<text class='userid_font' wx:if="{{tjr}}" style="margin-left: 16px;">{{tjr}}</text>
</view>
</block>
<block wx:else>
<view class='login' bindtap="login">点击登录/注册</view>
</block>
</view>
<!-- 加载页面结束 -->
<block wx:else>
<!-- 导航栏 -->
<view class="navigation-container" style="height:{{navBarHeight}}">
<view class="navigation-bar" style="padding-top:{{statusBarHeight}};height:{{navBarHeight-statusBarHeight}}">
<view class="navigation-buttons" style="height:{{menuBtnHeight}}">
<image class="btnimg" src="/images/grsz.png" bindtap="navToSetup" />
</view>
<view class="navigation-title" style="line-height:{{navBarHeight-statusBarHeight}}">{{title}}</view>
</view>
</view>
<!--导航栏占位空间-->
<!-- <image src="/images/grsz.png" class="btnimg" lazy-load="true" bindtap="_navigateTo1('/pagesB/setUp/setUp')"></image> -->
<view style='width:100%;height:100%'>
<!-- 用户基本信息 -->
<view class='user_top' style="background-color:{{bgcolor}}">
<view class='user_top_two'>
<image style='display:block;' class='user_top_image' src="{{user.headimgurl ? user.headimgurl:'/images/heads.png'}}" />
<block wx:if="{{user}}">
<view class='user_mc' bindtap="copyText" data-text="{{user.user_id}}" style='display:block;'>
<view class='user_name'>{{user.user_name}}</view>
<text class='userid_font'>用户积分:{{user.score}}</text>
<text class='userid_font' wx:if="{{tjr}}" style="margin-left: 16px;">{{tjr}}</text>
</view>
</block>
<block wx:else>
<view class='login' bindtap="login">点击登录/注册</view>
</block>
<view class="top-message">
<image src="/images/grxx.png" class="btnimgl" lazy-load="true" bindtap="navToNotice">
</image>
<view class="xxnum" v-if="access_id1&&user.xxnum>0">{{ user.xxnum > 99 ? '99+' : user.xxnum }}
</view>
</view>
</view>
<!-- 我的订单 -->
<view class='user_dd' >
<view class='dd_stu'>
<!-- 我的订单 -->
<view class='user_dd'>
<view class='dd_stu'>
<view class="order" data-id="../order/order?index=0&status=" catchtap="jumpgo">
<view>
<text>我的订单</text>
</view>
<view class='order_right'>
<view class='order_my'>查看全部订单</view>
<view class="iconfont icon-iconset0424"></view>
</view>
</view>
<!-- </navigator> -->
<!-- <navigator class="order" url="../order/order?currentTab=0&otype=pay"> -->
<view class="order" data-id="../order/order?index=0&status=" catchtap="jumpgo">
<view>
<text>我的订单</text>
</view>
<view class='order_right'>
<view class='order_my'>查看全部订单</view>
<view class="iconfont icon-iconset0424"></view>
<view class='order_list'>
<!-- <navigator class='list' url="../order/order?currentTab=1&order_type1=payment&otype=pay"> -->
<view class="list" data-id="../order/order?index=1&status=payment" catchtap="jumpgo">
<text class='tishi' wx:if="{{dfk_num > 0}}">{{dfk_num}}</text>
<view class='dd_img'>
<image src='../../images/icons/grdfk.png'></image>
</view>
<view style='margin-top:5px'>待付款</view>
</view>
<!-- </navigator> -->
<view class='order_list'>
<!-- <navigator class='list' url="../order/order?currentTab=1&order_type1=payment&otype=pay"> -->
<view class="list" data-id="../order/order?index=1&status=payment" catchtap="jumpgo">
<text class='tishi' wx:if="{{dfk_num > 0}}">{{dfk_num}}</text>
<view class='dd_img'>
<image src='../../images/icons/5.png'></image>
</view>
<view style='margin-top:5px'>待付款</view>
<!-- <navigator class='list' url="../order/order?currentTab=2&order_type1=send&otype=pay"> -->
<view class="list" data-id="../order/order?index=2&status=send" catchtap="jumpgo">
<text class='tishi' wx:if="{{dfh_num > 0}}">{{dfh_num}}</text>
<view class='dd_img'>
<image src='../../images/icons/grdfh.png'></image>
</view>
<!-- </navigator> -->
<view style='margin-top:5px'>待发货</view>
</view>
<!-- </navigator> -->
<!-- <navigator class='list' url="../order/order?currentTab=2&order_type1=send&otype=pay"> -->
<view class="list" data-id="../order/order?index=2&status=send" catchtap="jumpgo">
<text class='tishi' wx:if="{{dfh_num > 0}}">{{dfh_num}}</text>
<view class='dd_img'>
<image src='../../images/icons/1.png'></image>
</view>
<view style='margin-top:5px'>待发货</view>
<!-- <navigator class='list' url="../order/order?currentTab=3&order_type1=receipt&otype=pay"> -->
<view class="list" data-id="../order/order?index=3&status=receipt" catchtap="jumpgo">
<text class='tishi' wx:if="{{dsh_num > 0}}">{{dsh_num}}</text>
<view class='dd_img'>
<image src='../../images/icons/grdsh.png'></image>
</view>
<!-- </navigator> -->
<view style='margin-top:5px'>待收货</view>
</view>
<!-- </navigator> -->
<!-- <navigator class='list' url="../order/order?currentTab=3&order_type1=receipt&otype=pay"> -->
<view class="list" data-id="../order/order?index=3&status=receipt" catchtap="jumpgo">
<text class='tishi' wx:if="{{dsh_num > 0}}">{{dsh_num}}</text>
<view class='dd_img'>
<image src='../../images/icons/3.png'></image>
</view>
<view style='margin-top:5px'>待收货</view>
<!-- <navigator class='list' url="../order/order?currentTab=4&order_type1=evaluate&otype=pay"> -->
<view class="list" data-id="../order/order?index=4&status=evaluete" catchtap="jumpgo">
<text class='tishi' wx:if="{{dpj_num > 0}}">{{dpj_num}}</text>
<view class='dd_img'>
<image src='../../images/icons/my_dpj.png'></image>
</view>
<!-- </navigator> -->
<view style='margin-top:5px'>待评价</view>
</view>
<!-- </navigator> -->
<!-- <navigator class='list' url="../order/order?currentTab=4&order_type1=evaluate&otype=pay"> -->
<view class="list" data-id="../order/order?index=4&status=evaluete" catchtap="jumpgo">
<text class='tishi' wx:if="{{dpj_num > 0}}">{{dpj_num}}</text>
<view class='dd_img'>
<image src='../../images/icons/4.png'></image>
</view>
<view style='margin-top:5px'>待评价</view>
<!-- <navigator class='list' url="../return_goods/index?currentTab=0&otype=whole"> -->
<view class="list" data-id="../return_goods/index?currentTab=0&otype=whole" catchtap="jumpgo">
<text class='tishi' wx:if="{{th > 0}}">{{th}}</text>
<view class='dd_img'>
<image src='../../images/icons/tksh.png'></image>
</view>
<!-- </navigator> -->
<view style='margin-top:5px'>退货/售后</view>
</view>
<!-- </navigator> -->
<!-- <navigator class='list' url="../return_goods/index?currentTab=0&otype=whole"> -->
<view class="list" data-id="../return_goods/index?currentTab=0&otype=whole" catchtap="jumpgo">
<text class='tishi' wx:if="{{th > 0}}">{{th}}</text>
<view class='dd_img'>
<image src='../../images/icons/2.png'></image>
</view>
<view style='margin-top:5px'>退货</view>
</view>
</view>
<!-- 功能列表 -->
<view class="function" style='background:#fff'>
<block wx:for="{{plug_ins}}" wx:key="id">
<view class="function_list" catchtap='jumpgo' data-id="{{item.subtitle_url}}">
<view class='function_left'>
<image style="width: 25px;height: 25px;margin: auto;" src='{{item.subtitle_image}}'></image>
<view class='function_text'>{{item.subtitle_name}} </view>
</view>
<!-- </navigator> -->
</view>
</view>
<!-- 功能列表 -->
<view class="function" style='background:#fff'>
<block wx:for="{{plug_ins}}" wx:key="id">
<view class="function_list" catchtap='jumpgo' data-id="{{item.subtitle_url}}">
<view class='function_left'>
<image style="width: 25px;height: 25px;margin: auto;" src='{{item.subtitle_image}}'></image>
<view class='function_text'>{{item.subtitle_name}} </view>
</view>
<view class='function_right jiantou'>
<image src="../../images/x_right.png"></image>
</view>
<view class='function_right jiantou'>
<image src="../../images/x_right.png"></image>
</view>
</block>
</view>
<view class="function" style='background:#fff'>
<block wx:for="{{list}}" wx:key="id">
</view>
</block>
</view>
<view class="function" style='background:#fff'>
<block wx:for="{{list}}" wx:key="id">
<view class="function_list" catchtap='jumpgo' data-id="../{{item.url}}">
<view class='function_left'>
<image style="width: 25px;height: 25px;margin: auto;" src='../../images/icons/{{item.icon}}'></image>
<view class='function_text'>{{item.text}} </view>
</view>
<view class='function_right jiantou'>
<image src="../../images/x_right.png"></image>
</view>
<view class="function_list" catchtap='jumpgo' data-id="../{{item.url}}">
<view class='function_left'>
<image style="width: 25px;height: 25px;margin: auto;" src='../../images/icons/{{item.icon}}'></image>
<view class='function_text'>{{item.text}} </view>
</view>
<view class='function_right jiantou'>
<image src="../../images/x_right.png"></image>
</view>
</view>
</block>
</view>
<view class="hh" >
<navigator url="../article/article?id={{item.Article_id}}" wx:for="{{article}}" wx:key="Article_id">
<view class="qbdd mt10 jiantou">
<view class="font_14 c3">{{item.Article_title}}</view>
<view class="fl_r c9 font_12 l_h20 text-length" hover-class="none" style="margin-right: 5px;height: 100%;">
{{item.Article_prompt}}
</view>
<image src="../../images/x_right.png" style="border: 0;border-radius: 0;margin: auto;margin-right: 5px;"></image>
</block>
</view>
<view class="hh">
<navigator url="../article/article?id={{item.Article_id}}" wx:for="{{article}}" wx:key="Article_id">
<view class="qbdd mt10 jiantou">
<view class="font_14 c3">{{item.Article_title}}</view>
<view class="fl_r c9 font_12 l_h20 text-length" hover-class="none" style="margin-right: 5px;height: 100%;">
{{item.Article_prompt}}
</view>
</navigator>
</view>
<view class='bottom'>
<view class='bottom_1'><image src="{{logo}}"></image></view>
{{support}}
<image src="../../images/x_right.png" style="border: 0;border-radius: 0;margin: auto;margin-right: 5px;"></image>
</view>
</navigator>
</view>
<view class='bottom'>
<view class='bottom_1'>
<image src="{{logo}}"></image>
</view>
{{support}}
</view>
</view>
</view>
</block>
<pop id="pop"></pop>
</view>
</block>
<pop id="pop"></pop>

73
pages/user/user.wxss

@ -1,9 +1,37 @@
page{
background: #eee !important;
background: #F4F5F6!important;
width: 100%;
height: 100%;
}
.top-message {
/* position: relative; */
position: absolute;
right: 40rpx;
margin-top: -100rpx;
}
.xxnum {
position: absolute;
left: 20rpx;
bottom: 32rpx;
transform: translate(50%, -50%);
padding: 4rpx 6rpx;
background-color: #f43530;
border-radius: 12rpx;
font-size: 22rpx;
line-height: 16rpx;
color: #FFFFFF;
font-weight: 300;
}
.btnimg{
width: 56rpx;
height: 56rpx;
margin: 16rpx 548rpx 0 30rpx;
}
.btnimgl{
width: 56rpx;
height: 56rpx;
/* margin: 16rpx 40rpx 0 auto; */
}
.fgx{
height: 5px;
width: 100%;
@ -21,9 +49,11 @@ text{
color: #333333;
}
.user_name{
font-size:28px;
font-size:25px;
line-height: 40px;
}
.user_top{
margin-top: 10rpx;
height:420rpx;
}
.user_top_two{
@ -38,17 +68,17 @@ text{
}
.user_sz{
display:flex;
justify-content:space-between;
padding-top:8px;
padding-bottom:8px;
justify-content:space-between;
padding-top:8px;
padding-bottom:8px;
}
.user_dd{
position:absolute;
width:90%;
background:#eee !important;
margin-left:19px;
border-radius:5px;
position:absolute;
width:90%;
background:#F4F5F6 !important;
margin-top:10rpx;
margin-left:19px;
border-radius:5px;
}
.dd_stu{
background:#fff;
@ -56,14 +86,12 @@ margin-bottom:10px;
border-radius:5px;
}
.user_top_image{
width: 75px;
height: 75px;
width: 125rpx;
height: 125rpx;
border-radius:50%;
border:1px solid #fff;
}
.user_top_name{
color: #ffffff;
@ -85,7 +113,7 @@ border-radius:5px;
justify-content:space-between;
padding: 10px;
font-size: 16px;
border-bottom:1px solid #eee;
border-bottom:1px solid #F4F5F6;
}
.order_right{
@ -123,7 +151,7 @@ border-radius:5px;
justify-content:space-between;
height:48px;
line-height:48px;
border-bottom: 1px solid #EEEEEE;
border-bottom: 1px solid #F4F5F6;
}
.tishi{
position:absolute;
@ -163,7 +191,7 @@ border-radius:5px;
font-size: 12px;
color: #666;
padding:4% 0;
border-bottom: 1px solid #eee;
border-bottom: 1px solid #F4F5F6;
}
.c3{
color: black;
@ -346,7 +374,7 @@ border-radius:5px;
}
.modelTitle{
line-height:40px;
border-bottom:1px solid #eee;
border-bottom:1px solid #F4F5F6;
}
.modelBody{
@ -358,9 +386,10 @@ border-radius:5px;
justify-content: center;
align-items: center;
padding-left: 40rpx;
font-size:30rpx;
font-size:32rpx;
font-weight:bold;
color:rgba(255,255,255,1);
columns: #333333;
height: 60rpx;
}
.text-length {

18
utils/server.js

@ -55,8 +55,12 @@ Promise.prototype.finally = function(callback) {
module.exports = {
requestServer,
appIndex: (data) => { //获取用户会话密钥
return requestServer('&action=app&app=index', 'post', data)
/* 登录 */
login: (data) => { //登录
return requestServer('&action=login&app=login', 'post', data)
},
wxLogin: (data) => { //微信一键登录
return requestServer('&action=login&app=user', 'post', data)
},
/* 首页 */
homeIndex: (data) => { //首页
@ -104,10 +108,6 @@ module.exports = {
userIndex: (data) => { //个人中心
return requestServer('&action=user&app=index', 'post', data)
},
/* 登录 */
login: (data) => { //登录
return requestServer('&action=login&app=login', 'post', data)
},
mchClass: (data) => { //店铺分类
return requestServer('&action=index&app=mchClass', 'post', data)
},
@ -159,6 +159,9 @@ module.exports = {
deleteOrder: (data) => { //删除订单
return requestServer('&action=order&app=del_order', 'post', data)
},
returnDataList: (data) => { //售后
return requestServer('&action=order&app=ReturnDataList', 'post', data)
},
footprint: (data) => { //历史足迹
return requestServer('&action=footprint&app=index', 'post', data)
},
@ -180,6 +183,9 @@ module.exports = {
seemystore: (data) => { //查看店铺信息
return requestServer('&action=mch&app=see_my_store', 'post', data)
},
messageList: (data) => { //查看店铺信息
return requestServer('&action=message&app=index', 'post', data)
},
/* -------------------- */

Loading…
Cancel
Save