Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhqg-mini
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhqg
zhqg-mini
Commits
995d0cee
Commit
995d0cee
authored
Dec 23, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
5ec36300
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
101 additions
and
27 deletions
+101
-27
workspace.xml
.idea/workspace.xml
+7
-6
basket.js
pages/basket/basket.js
+1
-1
index.wxml
pages/index/index.wxml
+11
-1
index.wxss
pages/index/index.wxss
+47
-0
login.js
pages/login/login.js
+3
-3
login.wxss
pages/login/login.wxss
+2
-1
index.js
pages/newDetail/index.js
+6
-0
index.wxml
pages/newDetail/index.wxml
+6
-4
index.wxss
pages/newDetail/index.wxss
+8
-0
orderList.wxml
pages/orderList/orderList.wxml
+2
-3
orderWithdrawal.wxml
pages/orderWithdrawal/orderWithdrawal.wxml
+1
-1
prod.js
pages/prod/prod.js
+3
-3
user.js
pages/user/user.js
+1
-1
config.js
utils/config.js
+1
-1
http.js
utils/http.js
+2
-2
No files found.
.idea/workspace.xml
View file @
995d0cee
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<option
name=
"LAST_RESOLUTION"
value=
"IGNORE"
/>
<option
name=
"LAST_RESOLUTION"
value=
"IGNORE"
/>
</component>
</component>
<component
name=
"FileEditorManager"
>
<component
name=
"FileEditorManager"
>
<leaf>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"true"
>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/utils/config.js"
>
<entry
file=
"file://$PROJECT_DIR$/utils/config.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
<foldersAlwaysOnTop
value=
"true"
/>
<foldersAlwaysOnTop
value=
"true"
/>
</navigator>
</navigator>
<panes>
<panes>
<pane
id=
"Scope"
/>
<pane
id=
"ProjectPane"
>
<pane
id=
"ProjectPane"
>
<subPane>
<subPane>
<expand>
<expand>
...
@@ -50,12 +49,13 @@
...
@@ -50,12 +49,13 @@
<select
/>
<select
/>
</subPane>
</subPane>
</pane>
</pane>
<pane
id=
"Scope"
/>
</panes>
</panes>
</component>
</component>
<component
name=
"PropertiesComponent"
>
<component
name=
"PropertiesComponent"
>
<property
name=
"SHARE_PROJECT_CONFIGURATION_FILES"
value=
"true"
/>
<property
name=
"SHARE_PROJECT_CONFIGURATION_FILES"
value=
"true"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$
/../../yizu/easy_rent_admin
"
/>
<property
name=
"nodejs_interpreter_path.stuck_in_default_project"
value=
"undefined stuck path"
/>
<property
name=
"nodejs_interpreter_path.stuck_in_default_project"
value=
"undefined stuck path"
/>
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
</component>
</component>
...
@@ -84,11 +84,12 @@
...
@@ -84,11 +84,12 @@
<workItem
from=
"1603358884856"
duration=
"655000"
/>
<workItem
from=
"1603358884856"
duration=
"655000"
/>
<workItem
from=
"1604054385788"
duration=
"4000"
/>
<workItem
from=
"1604054385788"
duration=
"4000"
/>
<workItem
from=
"1604972001520"
duration=
"6000"
/>
<workItem
from=
"1604972001520"
duration=
"6000"
/>
<workItem
from=
"1605514647825"
duration=
"86000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"
665
000"
/>
<option
name=
"totallyTimeSpent"
value=
"
751
000"
/>
</component>
</component>
<component
name=
"ToolWindowManager"
>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-7"
y=
"-7"
width=
"1550"
height=
"838"
extended-state=
"6"
/>
<frame
x=
"-7"
y=
"-7"
width=
"1550"
height=
"838"
extended-state=
"6"
/>
...
@@ -104,8 +105,8 @@
...
@@ -104,8 +105,8 @@
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Version Control"
order=
"8"
visible=
"true"
weight=
"0.393767
7"
/>
<window_info
a
nchor=
"bottom"
id=
"Version Control"
order=
"8"
weight=
"0.2662889
7"
/>
<window_info
a
nchor=
"bottom"
id=
"Terminal"
order=
"
9"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"9"
visible=
"true"
weight=
"0.328611
9"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"10"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"10"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"11"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"11"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
...
...
pages/basket/basket.js
View file @
995d0cee
...
@@ -72,7 +72,7 @@ Page({
...
@@ -72,7 +72,7 @@ Page({
http
.
request
(
params
);
http
.
request
(
params
);
http
.
getCartCount
();
//重新计算购物车总数量
http
.
getCartCount
();
//重新计算购物车总数量
}
else
{
}
else
{
app
.
tipG
oLogin
()
app
.
g
oLogin
()
}
}
},
},
...
...
pages/index/index.wxml
View file @
995d0cee
...
@@ -33,6 +33,16 @@
...
@@ -33,6 +33,16 @@
auto-pause-if-navigate="true"></video>
auto-pause-if-navigate="true"></video>
</view>
</view>
<!-- end swiper -->
<!-- end swiper -->
<!-- 消息播放 -->
<view class='message-play' bindtap='onNewsPage' wx:if="{{news && news.length}}">
<image src='../../images/icon/horn.png' class='hornpng'></image>
<swiper vertical='true' autoplay='true' duration='1000' class='swiper-cont'>
<block wx:for='{{news}}' wx:key=''>
<swiper-item class="items">{{item.title}}</swiper-item>
</block>
</swiper>
<text class='arrow'></text>
</view>
</view>
</view>
<!-- 首发新品 -->
<!-- 首发新品 -->
<view class='more-prod'>
<view class='more-prod'>
...
@@ -102,7 +112,7 @@
...
@@ -102,7 +112,7 @@
</view>
</view>
</view>
</view>
<!-- 预热专区 -->
<!-- 预热专区 -->
<view class='up-to-date' style="margin-top: 20rpx;"
>
<view class='up-to-date' style="margin-top: 20rpx;">
<view class='title'>
<view class='title'>
<view style="display:flex;align-items: center;">
<view style="display:flex;align-items: center;">
<image src="/images/icon/hot@2x.png" class="title-icon" mode="widthFix"></image>
<image src="/images/icon/hot@2x.png" class="title-icon" mode="widthFix"></image>
...
...
pages/index/index.wxss
View file @
995d0cee
...
@@ -529,4 +529,50 @@ line-height:44rpx;
...
@@ -529,4 +529,50 @@ line-height:44rpx;
color:#333;
color:#333;
display: flex;
display: flex;
align-items: center;
align-items: center;
}
/* 消息播放 */
.message-play {
position: relative;
height: 90rpx;
background: #fff;
margin: auto;
padding: 0 60rpx 0 100rpx;
box-sizing: border-box;
box-shadow: 0 16rpx 32rpx 0 rgba(7, 17, 27, 0.05);
border: 2rpx solid #fafafa;
}
.message-play .hornpng {
width: 77rpx;
height: 36rpx;
position: absolute;
left: 20rpx;
top: 27rpx;
margin-right: 8rpx;
}
.message-play .swiper-cont {
height: 90rpx;
line-height: 90rpx;
}
.message-play .swiper-cont .items {
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
text-align: left;
}
.arrow {
width: 15rpx;
height: 15rpx;
border-top: 3rpx solid #686868;
border-right: 3rpx solid #686868;
transform: rotate(45deg);
position: absolute;
right: 30rpx;
top: 34rpx;
}
}
\ No newline at end of file
pages/login/login.js
View file @
995d0cee
...
@@ -60,9 +60,9 @@ Page({
...
@@ -60,9 +60,9 @@ Page({
})
})
},
},
goBack
(){
goBack
(){
wx
.
navigateBack
({
wx
.
switchTab
({
delta
:
0
,
url
:
'/pages/index/index'
,
})
})
},
},
// 用户信息
// 用户信息
getUserInfo
()
{
getUserInfo
()
{
...
...
pages/login/login.wxss
View file @
995d0cee
...
@@ -47,7 +47,7 @@ button {
...
@@ -47,7 +47,7 @@ button {
width: 100%;
width: 100%;
margin: 0 auto;
margin: 0 auto;
text-align: center;
text-align: center;
font-size: 2
8
rpx;
font-size: 2
4
rpx;
color: #999;
color: #999;
margin-top: 10rpx;
margin-top: 10rpx;
}
}
\ No newline at end of file
pages/newDetail/index.js
View file @
995d0cee
...
@@ -120,6 +120,12 @@ Page({
...
@@ -120,6 +120,12 @@ Page({
},
},
toComment
()
{
toComment
()
{
var
that
=
this
,
user
=
app
.
globalData
.
userInfo
var
that
=
this
,
user
=
app
.
globalData
.
userInfo
if
(
!
that
.
data
.
content
){
wx
.
showToast
({
title
:
'请填写内容'
,
})
return
}
if
(
user
&&
user
.
userId
)
{
if
(
user
&&
user
.
userId
)
{
var
params
=
{
var
params
=
{
url
:
'/consultComment/insertCommentConsult'
,
url
:
'/consultComment/insertCommentConsult'
,
...
...
pages/newDetail/index.wxml
View file @
995d0cee
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<!-- <block wx:for='{{news}}' wx:key=''> -->
<!-- <block wx:for='{{news}}' wx:key=''> -->
<view class='news-detail'>
<view class='news-detail'>
<view class='news-detail-title'>{{news.title}}</view>
<view class='news-detail-title'>{{news.title}}</view>
<view class="time">{{news.createTime}}</view>
<view class="time">{{news.createTime}}</view>
<!-- <view class='news-detail-text'>{{news.content}}</view> -->
<!-- <view class='news-detail-text'>{{news.content}}</view> -->
<image wx:if="{{news.pic}}" class="img" src="{{news.pic}}" mode="widthFix"></image>
<image wx:if="{{news.pic}}" class="img" src="{{news.pic}}" mode="widthFix"></image>
<rich-text nodes="{{news.content}}"></rich-text>
<rich-text nodes="{{news.content}}"></rich-text>
...
@@ -25,8 +25,9 @@
...
@@ -25,8 +25,9 @@
</view>
</view>
<view class="bottom">
<view class="bottom">
<input class="input" placeholder='请发表你的评论' maxlength='100' value="{{content}}"
<input class="input" placeholder='请发表你的评论' maxlength='100' value="{{content}}" bindinput="inputContent"
bindinput="inputContent" bindconfirm="toComment" bindfocus="focusConent"></input>
bindfocus="focusConent" bindconfirm="toComment"></input>
<view class="send-btn" bindtap="toComment">发送</view>
<image class="like-img" wx:if="{{!flag}}" src="/images/icon/Fabulous@2x.png" bindtap="toLike" mode="widthFix"></image>
<image class="like-img" wx:if="{{!flag}}" src="/images/icon/Fabulous@2x.png" bindtap="toLike" mode="widthFix"></image>
<image class="like-img" wx:else src="/images/icon/Fabul@2x.png" mode="widthFix" bindtap="cancleLike"></image>
<image class="like-img" wx:else src="/images/icon/Fabul@2x.png" mode="widthFix" bindtap="cancleLike"></image>
</view>
</view>
\ No newline at end of file
pages/newDetail/index.wxss
View file @
995d0cee
...
@@ -92,4 +92,11 @@
...
@@ -92,4 +92,11 @@
width: 50rpx;
width: 50rpx;
height: 50rpx;
height: 50rpx;
margin-left: 20rpx;
margin-left: 20rpx;
}
.send-btn {
color: #39b54a;
font-size: 24rpx;
margin-left: 10rpx;
align-self: center;
}
}
\ No newline at end of file
pages/orderList/orderList.wxml
View file @
995d0cee
...
@@ -139,9 +139,8 @@
...
@@ -139,9 +139,8 @@
<view class="modal-dialog" wx:if="{{showModal}}">
<view class="modal-dialog" wx:if="{{showModal}}">
<view class="modal-title">您是否要挂单?</view>
<view class="modal-title">您是否要挂单?</view>
<view class="modal-next" style="margin-bottom: 20rpx;">
<view class="modal-next" style="margin-bottom: 20rpx;">
<text class="modal-content">
<text class="modal-content">
1、退单金额将退还到您的可提现余额中。 \n 2、订单没有满以下期限会扣相应的手续费 \n 01、2020年12月12号之前退款的将扣除本金的35%。 \n 02、2020年12月12号起订单周期 {{'<'}} 30天,扣本金 15% \n 03、2020年12月12号起订单周期 30天 {{'<'}} X {{'<'}} 60天,扣本金 12% \n 04、2020年12月12号起订单周期 60天 {{'<'}} X {{'<'}} 90天,扣本金 9% \n 05、2020年12月12号起订单周期 90 天 {{'<'}} X {{'<'}} 120天,扣本金 6%
退单规则:\n 1、订单周期小于30天退单扣本金15%,\n 2、订单周期大于30天小于60天扣12%,\n 3、订单周期大于60天小于90天扣9%,\n 4、订单周期大于90天小于120天扣6%,大于120天不扣本金。</text>
</text>
</view>
</view>
<view class="modal-footer">
<view class="modal-footer">
<view class="btn-cancel" bindtap="onCancel" data-status="cancel">取消</view>
<view class="btn-cancel" bindtap="onCancel" data-status="cancel">取消</view>
...
...
pages/orderWithdrawal/orderWithdrawal.wxml
View file @
995d0cee
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<view class="notice-container">
<view class="notice-container">
<text class='txt-notice-title'>【温馨提醒】</text>
<text class='txt-notice-title'>【温馨提醒】</text>
<text class="txt-notice"
wx:if="{{type ==2}}">1、退单金额将退还到您的可提现余额中。 \n 2、订单没有满以下期限会扣相应的手续费 \n 01、2020年12月12号之前退款的将扣除本金的35%。 \n 02、2020年12月12号起订单周期 {{'<'}} 30天,扣本金 15% \n 03、2020年12月12号起订单周期 30天 {{'<'}} X {{'<'}} 60天,扣本金 12% \n 04、2020年12月12号起订单周期 60天 {{'<'}} X {{'<'}} 90天,扣本金 9% \n 05、2020年12月12号起订单周期 90 天 {{'<'}} X {{'<'}} 120天,扣本金 6%
</text>
<text class="txt-notice"
wx:if="{{type ==2}}">退单规则:\n 1、订单周期小于30天退单扣本金15%,\n 2、订单周期大于30天小于60天扣12%,\n 3、订单周期大于60天小于90天扣9%,\n 4、订单周期大于90天小于120天扣6%,大于120天不扣本金。
</text>
<text class="txt-notice" wx:else>1、订单收益的提现将提现到您的可提现余额中
<text class="txt-notice" wx:else>1、订单收益的提现将提现到您的可提现余额中
</text>
</text>
</view>
</view>
...
...
pages/prod/prod.js
View file @
995d0cee
...
@@ -72,7 +72,7 @@ Page({
...
@@ -72,7 +72,7 @@ Page({
// 查看用户是否关注
// 查看用户是否关注
this
.
getCollection
();
this
.
getCollection
();
}
else
{
}
else
{
app
.
tipG
oLogin
()
app
.
g
oLogin
()
}
}
},
},
...
@@ -438,7 +438,7 @@ Page({
...
@@ -438,7 +438,7 @@ Page({
addToCart
:
function
(
event
)
{
addToCart
:
function
(
event
)
{
let
token
=
wx
.
getStorageSync
(
'token'
)
?
true
:
false
let
token
=
wx
.
getStorageSync
(
'token'
)
?
true
:
false
if
(
!
token
)
{
if
(
!
token
)
{
app
.
tipG
oLogin
()
app
.
g
oLogin
()
return
return
}
}
if
(
!
this
.
data
.
findSku
)
{
if
(
!
this
.
data
.
findSku
)
{
...
@@ -476,7 +476,7 @@ Page({
...
@@ -476,7 +476,7 @@ Page({
buyNow
:
function
()
{
buyNow
:
function
()
{
let
token
=
wx
.
getStorageSync
(
'token'
)
?
true
:
false
let
token
=
wx
.
getStorageSync
(
'token'
)
?
true
:
false
if
(
!
token
)
{
if
(
!
token
)
{
app
.
tipG
oLogin
()
app
.
g
oLogin
()
return
return
}
}
if
(
!
this
.
data
.
findSku
)
{
if
(
!
this
.
data
.
findSku
)
{
...
...
pages/user/user.js
View file @
995d0cee
...
@@ -82,7 +82,7 @@ Page({
...
@@ -82,7 +82,7 @@ Page({
this
.
getUserAccount
()
this
.
getUserAccount
()
this
.
getPageInfo
()
this
.
getPageInfo
()
}
else
{
}
else
{
app
.
tipG
oLogin
()
app
.
g
oLogin
()
}
}
},
},
...
...
utils/config.js
View file @
995d0cee
var
domain
=
"https://zhqg.jsonpro.cn/capi"
;
//统一接口域名,测试环境
var
domain
=
"https://zhqg.jsonpro.cn/capi"
;
//统一接口域名,测试环境
// var domain = "http://192.168.31.1
46:8086
/capi"; //统一接口域名,测试环境
// var domain = "http://192.168.31.1
22:8085
/capi"; //统一接口域名,测试环境
exports
.
domain
=
domain
;
exports
.
domain
=
domain
;
utils/http.js
View file @
995d0cee
...
@@ -53,8 +53,8 @@ function request(params, isGetTonken) {
...
@@ -53,8 +53,8 @@ function request(params, isGetTonken) {
// if (!globalData.isLanding) {
// if (!globalData.isLanding) {
globalData
.
isLanding
=
true
globalData
.
isLanding
=
true
//重新获取token,再次请求接口
//重新获取token,再次请求接口
getApp
().
tipGoLogin
()
//
getApp().tipGoLogin()
//
getApp().goLogin()
getApp
().
goLogin
()
// }
// }
}
else
if
(
res
.
statusCode
==
400
)
{
}
else
if
(
res
.
statusCode
==
400
)
{
wx
.
showToast
({
wx
.
showToast
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment