parent
feaa0a26aa
commit
68da3cee39
@ -0,0 +1,47 @@ |
||||
let app = getApp(); |
||||
|
||||
function requestbrest(method, url, data) { |
||||
return new Promise((resolve) => { |
||||
uni.request({ |
||||
method: method, |
||||
url: url, |
||||
data: data, |
||||
header: { |
||||
'Accept': "*/*", |
||||
'content-type': 'application/json;charset=utf-8', |
||||
'Authorization': app.globalData.brestToken, //有的时候这里不一定是 token 还可能是 Authorization
|
||||
}, |
||||
success(res) { |
||||
resolve(res) |
||||
if (res.statusCode == 401 || res.statusCode == 102068) { |
||||
uni.showToast({ |
||||
title: '登录信息过期,请重新授权', |
||||
icon: 'none', |
||||
duration: 2000 |
||||
}) |
||||
app.globalData.brestUserInfo = ''; |
||||
app.globalData.brestToken = ''; |
||||
uni.reLaunch({ |
||||
url: '/pages/tabBar/home/home' |
||||
}) |
||||
} |
||||
}, |
||||
fail(err) { |
||||
uni.showToast({ |
||||
title: '请求失败', |
||||
icon: 'none', |
||||
duration: 1500, |
||||
}) |
||||
// uni.hideLoading()
|
||||
} |
||||
}) |
||||
}) |
||||
} |
||||
|
||||
function POSTBREST(method, url, data) { |
||||
return requestbrest(method, url, data) |
||||
} |
||||
|
||||
module.exports = { |
||||
POSTBREST |
||||
} |
@ -1,227 +1,249 @@ |
||||
<template> |
||||
<view class="serach"> |
||||
<template> |
||||
<view class="serach"> |
||||
<view class="content" :style="{'border-radius':radius+'px'}"> |
||||
<!-- HM修改 增加进入输入状态的点击范围 --> |
||||
<view class="content-box" :class="{'center':mode === 2}" > |
||||
<text class="icon icon-serach"></text> |
||||
<!-- HM修改 增加placeholder input confirm-type confirm--> |
||||
<input :placeholder="placeholder" @input="inputChange" confirm-type="search" @confirm="triggerConfirm" class="input" :class="{'center':!active && mode === 2}" :focus="isFocus" v-model="inputVal" @focus="focus" @blur="blur"/> |
||||
<view class="content-box" :class="{'center':mode === 2}"> |
||||
<text class="icon search"></text> |
||||
<!-- HM修改 增加placeholder input confirm-type confirm--> |
||||
<input :placeholder="placeholder" @input="inputChange" confirm-type="search" @confirm="triggerConfirm" |
||||
class="input" :class="{'center':!active && mode === 2}" :focus="isFocus" v-model="inputVal" |
||||
@focus="focus" @blur="blur" /> |
||||
<!-- <view v-if="!active && mode === 2" class="input sub" @click="getFocus">请输入搜索内容</view> --> |
||||
<!-- HM修改 @click换成@click.stop阻止冒泡 --> |
||||
<text v-if="isDelShow" class="icon icon-del" @click.stop="clear"></text> |
||||
<!-- HM修改 @click换成@click.stop阻止冒泡 --> |
||||
<text v-if="isDelShow" class="icon shanchu" @click.stop="clear"></text> |
||||
</view> |
||||
<view v-show="(active&&show&&button === 'inside')||(isDelShow && button === 'inside')" class="serachBtn" @click="search"> |
||||
搜索 |
||||
</view> |
||||
</view> |
||||
<view v-if="button === 'outside'" class="button" :class="{'active':show||active}" @click="search"> |
||||
<view class="button-item">{{!show?searchName:'搜索'}}</view> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
props: { |
||||
mode: { |
||||
value: Number, |
||||
default: 1 |
||||
}, |
||||
//HM修改 定义默认搜索关键词(水印文字) |
||||
placeholder:{ |
||||
value: String, |
||||
default: '请输入搜索内容' |
||||
<view v-show="(active&&show&&button === 'inside')||(isDelShow && button === 'inside')" class="serachBtn" |
||||
@click="search"> |
||||
搜索 |
||||
</view> |
||||
</view> |
||||
<view v-if="button === 'outside'" class="button" :class="{'active':show||active}" @click="search"> |
||||
<view class="button-item">{{!show?searchName:'搜索'}}</view> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
props: { |
||||
mode: { |
||||
value: Number, |
||||
default: 1 |
||||
}, |
||||
//HM修改 定义默认搜索关键词(水印文字) |
||||
placeholder: { |
||||
value: String, |
||||
default: '请输入搜索内容' |
||||
}, |
||||
value: { |
||||
type: String, |
||||
default: false |
||||
}, |
||||
button: { |
||||
value: String, |
||||
default: 'outside' |
||||
}, |
||||
show: { |
||||
value: Boolean, |
||||
default: true |
||||
}, |
||||
radius: { |
||||
value: String, |
||||
default: 60 |
||||
} |
||||
}, |
||||
value: { |
||||
type: String, |
||||
default:false |
||||
}, |
||||
button: { |
||||
value: String, |
||||
default: 'outside' |
||||
}, |
||||
show: { |
||||
value: Boolean, |
||||
default: true |
||||
}, |
||||
radius: { |
||||
value: String, |
||||
default: 60 |
||||
} |
||||
}, |
||||
data() { |
||||
return { |
||||
active: false, |
||||
inputVal: '', |
||||
searchName: '取消', |
||||
isDelShow: false, |
||||
isFocus: true |
||||
}; |
||||
}, |
||||
methods: { |
||||
//HM修改 触发组件confirm事件 |
||||
triggerConfirm(){ |
||||
this.$emit('confirm', false); |
||||
data() { |
||||
return { |
||||
active: false, |
||||
inputVal: '', |
||||
searchName: '取消', |
||||
isDelShow: false, |
||||
isFocus: true |
||||
}; |
||||
}, |
||||
//HM修改 触发组件input事件 |
||||
inputChange(event){ |
||||
var keyword = event.detail.value; |
||||
this.$emit('input', keyword); |
||||
if (this.inputVal) { |
||||
this.isDelShow = true; |
||||
} |
||||
}, |
||||
focus() { |
||||
this.active = true; |
||||
//HM修改 增加获取焦点判断 |
||||
if (this.inputVal) { |
||||
this.isDelShow = true; |
||||
} |
||||
}, |
||||
blur() { |
||||
console.log('blur'); |
||||
this.isFocus = false; |
||||
if (!this.inputVal) { |
||||
this.active = false; |
||||
} |
||||
}, |
||||
clear() { |
||||
//HM修改 收起键盘 |
||||
uni.hideKeyboard(); |
||||
this.isFocus = false; |
||||
this.inputVal = ''; |
||||
this.active = false; |
||||
//HM修改 清空内容时候触发组件input |
||||
this.$emit('input', ''); |
||||
//this.$emit('search', '');//HM修改 清空内容时候不进行搜索 |
||||
|
||||
}, |
||||
getFocus() { |
||||
if(!this.isFocus){ |
||||
this.isFocus = true; |
||||
} |
||||
|
||||
}, |
||||
search() { |
||||
//HM修改 增加点击取消时候退出输入状态,内容为空时,输入默认关键字 |
||||
if (!this.inputVal) { |
||||
if(!this.show&&this.searchName == '取消'){ |
||||
uni.hideKeyboard(); |
||||
this.isFocus = false; |
||||
methods: { |
||||
//HM修改 触发组件confirm事件 |
||||
triggerConfirm() { |
||||
this.$emit('confirm', false); |
||||
}, |
||||
//HM修改 触发组件input事件 |
||||
inputChange(event) { |
||||
var keyword = event.detail.value; |
||||
this.$emit('input', keyword); |
||||
if (this.inputVal) { |
||||
this.isDelShow = true; |
||||
} |
||||
}, |
||||
focus() { |
||||
this.active = true; |
||||
//HM修改 增加获取焦点判断 |
||||
if (this.inputVal) { |
||||
this.isDelShow = true; |
||||
} |
||||
}, |
||||
blur() { |
||||
console.log('blur'); |
||||
this.isFocus = false; |
||||
if (!this.inputVal) { |
||||
this.active = false; |
||||
return; |
||||
} |
||||
} |
||||
console.log(this.inputVal); |
||||
this.$emit('search', this.inputVal?this.inputVal:this.placeholder); |
||||
} |
||||
}, |
||||
watch: { |
||||
inputVal(newVal) { |
||||
if (newVal) { |
||||
this.searchName = '搜索'; |
||||
//this.isDelShow = true; //HM修改 直接点击页面预设关键字样式异常,注销 |
||||
} else { |
||||
this.searchName = '取消'; |
||||
this.isDelShow = false; |
||||
} |
||||
}, |
||||
clear() { |
||||
//HM修改 收起键盘 |
||||
uni.hideKeyboard(); |
||||
this.isFocus = false; |
||||
this.inputVal = ''; |
||||
this.active = false; |
||||
//HM修改 清空内容时候触发组件input |
||||
this.$emit('input', ''); |
||||
//this.$emit('search', '');//HM修改 清空内容时候不进行搜索 |
||||
|
||||
}, |
||||
getFocus() { |
||||
if (!this.isFocus) { |
||||
this.isFocus = true; |
||||
} |
||||
|
||||
}, |
||||
search() { |
||||
//HM修改 增加点击取消时候退出输入状态,内容为空时,输入默认关键字 |
||||
if (!this.inputVal) { |
||||
if (!this.show && this.searchName == '取消') { |
||||
uni.hideKeyboard(); |
||||
this.isFocus = false; |
||||
this.active = false; |
||||
return; |
||||
} |
||||
} |
||||
console.log(this.inputVal); |
||||
this.$emit('search', this.inputVal ? this.inputVal : this.placeholder); |
||||
} |
||||
}, |
||||
//HM修改 双向绑定 |
||||
value(val) { |
||||
this.inputVal = val; |
||||
}, |
||||
} |
||||
}; |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
.serach { |
||||
display: flex; |
||||
width: 100%; |
||||
//border-bottom: 1px #f5f5f5 solid; //HM修改 去掉边框 |
||||
box-sizing: border-box; |
||||
font-size: $uni-font-size-base; |
||||
.content { |
||||
display: flex; |
||||
align-items: center; |
||||
width: 100%; |
||||
height: 60upx; |
||||
//border: 1px #ccc solid; //HM修改 去掉边框 |
||||
background: #fff; |
||||
overflow: hidden; |
||||
transition: all 0.2s linear; |
||||
border-radius: 30px; |
||||
|
||||
.content-box { |
||||
width: 100%; |
||||
display: flex; |
||||
align-items: center; |
||||
&.center { |
||||
justify-content: center; |
||||
} |
||||
.icon { |
||||
padding: 0 15upx; |
||||
&.icon-del { |
||||
font-size: 38upx; |
||||
&:before {content:"\e644";} |
||||
watch: { |
||||
inputVal(newVal) { |
||||
if (newVal) { |
||||
this.searchName = '搜索'; |
||||
//this.isDelShow = true; //HM修改 直接点击页面预设关键字样式异常,注销 |
||||
} else { |
||||
this.searchName = '取消'; |
||||
this.isDelShow = false; |
||||
} |
||||
}, |
||||
//HM修改 双向绑定 |
||||
value(val) { |
||||
this.inputVal = val; |
||||
}, |
||||
} |
||||
}; |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
.serach { |
||||
display: flex; |
||||
width: 100%; |
||||
//border-bottom: 1px #f5f5f5 solid; //HM修改 去掉边框 |
||||
box-sizing: border-box; |
||||
font-size: $uni-font-size-base; |
||||
|
||||
.content { |
||||
display: flex; |
||||
align-items: center; |
||||
width: 100%; |
||||
height: 60upx; |
||||
//border: 1px #ccc solid; //HM修改 去掉边框 |
||||
background: #fff; |
||||
overflow: hidden; |
||||
transition: all 0.2s linear; |
||||
border-radius: 30px; |
||||
|
||||
.content-box { |
||||
width: 100%; |
||||
display: flex; |
||||
align-items: center; |
||||
|
||||
&.center { |
||||
justify-content: center; |
||||
} |
||||
|
||||
.icon { |
||||
padding: 0 15upx; |
||||
|
||||
&.icon-shanchu1 { |
||||
font-size: 38upx; |
||||
|
||||
&:before { |
||||
content: "\e63c"; |
||||
} |
||||
} |
||||
|
||||
&.icon-shanchu11:before { |
||||
content: "\e67d"; |
||||
} |
||||
} |
||||
&.icon-serach:before {content:"\e61c";} |
||||
} |
||||
.input { |
||||
width: 100%; |
||||
max-width: 100%; |
||||
line-height: 60upx; |
||||
height: 60upx; |
||||
transition: all 0.2s linear; |
||||
&.center { |
||||
width: 200upx; |
||||
} |
||||
&.sub { |
||||
// position: absolute; |
||||
width: auto; |
||||
color: grey; |
||||
} |
||||
} |
||||
} |
||||
.serachBtn { |
||||
height: 100%; |
||||
flex-shrink: 0; |
||||
padding: 0 30upx; |
||||
//HM修改 按钮背景色 |
||||
background:linear-gradient(to right,#ff9801,#ff570a); |
||||
//background: $uni-color-success; |
||||
line-height: 60upx; |
||||
color: #fff; |
||||
//border-left: 1px #ccc solid; //HM修改 去掉边框 |
||||
transition: all 0.3s; |
||||
} |
||||
} |
||||
|
||||
.button { |
||||
display: flex; |
||||
align-items: center; |
||||
justify-content: center; |
||||
position: relative; |
||||
flex-shrink: 0; |
||||
width: 0; |
||||
transition: all 0.2s linear; |
||||
white-space: nowrap; |
||||
overflow: hidden; |
||||
&.active { |
||||
padding-left: 15upx; |
||||
width: 100upx; |
||||
} |
||||
} |
||||
} |
||||
//HM修改 把字体改成本地加载 |
||||
@font-face {font-family:"iconfont";src:url('data:application/x-font-woff;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8fEg3AAABfAAAAFZjbWFws6gbWQAAAeQAAAGcZ2x5ZqgAaogAAAOMAAABMGhlYWQTyEk0AAAA4AAAADZoaGVhB90DhQAAALwAAAAkaG10eBAA//8AAAHUAAAAEGxvY2EA0gBOAAADgAAAAAptYXhwARIANgAAARgAAAAgbmFtZT5U/n0AAAS8AAACbXBvc3SanfjSAAAHLAAAAEUAAQAAA4D/gABcBAD//wAABAAAAQAAAAAAAAAAAAAAAAAAAAQAAQAAAAEAAL8Cm/NfDzz1AAsEAAAAAADYVQKbAAAAANhVApv///+ABAADgQAAAAgAAgAAAAAAAAABAAAABAAqAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5gbmRAOA/4AAXAOBAIAAAAABAAAAAAAABAAAAAQA//8EAAAABAAAAAAAAAUAAAADAAAALAAAAAQAAAFoAAEAAAAAAGIAAwABAAAALAADAAoAAAFoAAQANgAAAAgACAACAADmBuYc5kT//wAA5gbmHOZE//8AAAAAAAAAAQAIAAgACAAAAAIAAQADAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAA0AAAAAAAAAAMAAOYGAADmBgAAAAIAAOYcAADmHAAAAAEAAOZEAADmRAAAAAMAAAAAADoATgCYAAAAAv///4AEAAOAABMAHwAABQYiLwEGJCcmAjc2JBcWEgcXFhQBJiAHBhQXFiA3NjQD7RQyFMaG/sl9hw2BiQFqjXgTZccT/sBo/spoPz9oATZoPm0TE8dhDG6FAW2OhwaGfv6+h8YUMgLThoZV0FWGhlnMAAABAAD/gAMAA4EABQAACQE1CQE1AQACAP6IAXgBgP4AiAF4AXiIAAAABAAA//4DlAMnABAAIQAlACkAAAUuAzQ+AjIWFxYQBw4BAyIOAhQeAjI2NzYQJy4BFwEnAQU3AQcCAFKScz09c5Kkkjp2djqSUkiBZjU1ZoGQgTNoaDOBfP6YIAFo/qQgAVwgAgE9cpOjknM9PTl8/r18OT0C9zVmgZCBZTU1Mm4BHW0zNb/+mCABZysf/qQgAAAAAAAAEgDeAAEAAAAAAAAAFQAAAAEAAAAAAAEACAAVAAEAAAAAAAIABwAdAAEAAAAAAAMACAAkAAEAAAAAAAQACAAsAAEAAAAAAAUACwA0AAEAAAAAAAYACAA/AAEAAAAAAAoAKwBHAAEAAAAAAAsAEwByAAMAAQQJAAAAKgCFAAMAAQQJAAEAEACvAAMAAQQJAAIADgC/AAMAAQQJAAMAEADNAAMAAQQJAAQAEADdAAMAAQQJAAUAFgDtAAMAAQQJAAYAEAEDAAMAAQQJAAoAVgETAAMAAQQJAAsAJgFpCkNyZWF0ZWQgYnkgaWNvbmZvbnQKaWNvbmZvbnRSZWd1bGFyaWNvbmZvbnRpY29uZm9udFZlcnNpb24gMS4waWNvbmZvbnRHZW5lcmF0ZWQgYnkgc3ZnMnR0ZiBmcm9tIEZvbnRlbGxvIHByb2plY3QuaHR0cDovL2ZvbnRlbGxvLmNvbQAKAEMAcgBlAGEAdABlAGQAIABiAHkAIABpAGMAbwBuAGYAbwBuAHQACgBpAGMAbwBuAGYAbwBuAHQAUgBlAGcAdQBsAGEAcgBpAGMAbwBuAGYAbwBuAHQAaQBjAG8AbgBmAG8AbgB0AFYAZQByAHMAaQBvAG4AIAAxAC4AMABpAGMAbwBuAGYAbwBuAHQARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAECAQMBBAEFAAZzb3VzdW8IamlhbnRvdTQHc2hhbmNodQAAAAAA');} |
||||
|
||||
|
||||
.icon { |
||||
font-family: iconfont; |
||||
font-size: 32upx; |
||||
font-style: normal; |
||||
color: #999; |
||||
|
||||
} |
||||
|
||||
.input { |
||||
width: 100%; |
||||
max-width: 100%; |
||||
line-height: 60upx; |
||||
height: 60upx; |
||||
transition: all 0.2s linear; |
||||
|
||||
&.center { |
||||
width: 200upx; |
||||
} |
||||
|
||||
&.sub { |
||||
// position: absolute; |
||||
width: auto; |
||||
color: grey; |
||||
} |
||||
} |
||||
} |
||||
|
||||
.serachBtn { |
||||
height: 100%; |
||||
flex-shrink: 0; |
||||
padding: 0 30upx; |
||||
//HM修改 按钮背景色 |
||||
background: linear-gradient(to right, #ff9801, #ff570a); |
||||
//background: $uni-color-success; |
||||
line-height: 60upx; |
||||
color: #fff; |
||||
//border-left: 1px #ccc solid; //HM修改 去掉边框 |
||||
transition: all 0.3s; |
||||
} |
||||
} |
||||
|
||||
.button { |
||||
display: flex; |
||||
align-items: center; |
||||
justify-content: center; |
||||
position: relative; |
||||
flex-shrink: 0; |
||||
width: 0; |
||||
transition: all 0.2s linear; |
||||
white-space: nowrap; |
||||
overflow: hidden; |
||||
|
||||
&.active { |
||||
padding-left: 15upx; |
||||
width: 100upx; |
||||
} |
||||
} |
||||
} |
||||
|
||||
//HM修改 把字体改成本地加载 |
||||
@font-face { |
||||
font-family: "iconfont"; |
||||
src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAOsAAsAAAAACEQAAANgAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDBgqEJIM/ATYCJAMMCwgABCAFhG0HPhsNB1GU7UmJ7GuoApfOQUpYrKcJIgBWAcDFERMCvGHHmPjox3uPwQ0A4uG//Wj3zcyfVUu7STWKk9WaSikkiKRA59AJkWwS2t//tZ1iIZL2Oh5Jpkn7yf6J74ZYpGVSIkRIVHqCZwgQbMARBJjzGCg+NLcQ92SS9RpLbB21jtfXzdu7d759qqI5cg2+3jI2f0EJhGhi9RqdUM0+VTGbhBCZ/Z/DpU2Q5fNblssck6NeFMeBbB5jWLQ10AI5IL9leK1L4aBPE+g2pUY+ObPaSiUFmRSIxw8cQyplNEpDfugUasXKIt5pdKY36TPJ2+D38UsnOkmajMw8e3dsS72vO1/Lt7vpIXCnM0FeR8YySSFuV1quUqPIMlW3KdGa06sipKn8bUvAsWR1o/94iahIbi+YB3G6KC6nE3yNDVLXb6MOiH3A7ieMHU2urCoReeSE6SFd75ksp092tix8ZZUJcsqxZEoJe++le1+ujWSjLS/1Ut7hB32bZz2bL90cq6u228vIpfvGhY5DsSRFZHNXcnllV7DSkifvx23wlkbKyOy+AsCw+CkmfEDs3xNHN5qELq/Peg7SgwmA6XegqDLBDIsX+Bm86IL/x5SGIHRbp5sxG02DiKv0cQsoUSi4Cl4u2EegQhHLh5Ws/CGAFXuiy4MKmpjM69rzEEdHTnCsA9HfRSNCQUVMMHe2mKT/BVf+/UpBuWuBC0g9sbAHsGoXECeiRFWFQWoewqyyCyS0W0V+HcR2cpvpx/6Nx7uP350B39lTwJctVIHfXafztq3Bb+R2LCsWn2hzMTic43izG35VOKHbMmjBMew7XDbWOZfQaSyBpMMkZJ2mkQW7DI0e21B12oduS6bre4wgqihdWPREEAa9IOn3EbJBb2TBfqAx7g/VYGTodjnYscdsPOjuJRqMNpgX8KwkFkzPlTB/jc4hNCjND0h7pNzzQ3t1PR+fYow0xZz86HSYBQhKIpig8zAME0gp8dHihsucdptrd6tu1LCSSKo4RpCBIRswXQCPJRETXm1WKXx/DTkOQgZqKGky7iGS85oHbQ2tDsipJO5UcivX5I4cHYwJQCCJCJggEwppJAHS6mE+ZGEN7oBQqquJK4muksbysuj91kE3ckGOFDmKzlf3jdhyD+1yaG6TAA=='); |
||||
} |
||||
|
||||
|
||||
.icon { |
||||
font-family: iconfont; |
||||
font-size: 32upx; |
||||
font-style: normal; |
||||
color: #999; |
||||
|
||||
} |
||||
</style> |
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,603 @@ |
||||
<template> |
||||
<view> |
||||
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 1">待支付</view> |
||||
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 2">已支付</view> |
||||
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 3">已完成</view> |
||||
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 4">已退款</view> |
||||
<view class="width100 font18 fcorfff fotct height40 backcorf06" v-if="recinfo.orderStatus == 5">已取消</view> |
||||
<!-- 购买商品列表 --> |
||||
<view class="buy-list" v-for="rec in recinfo.highChildOrderList" :key="rec.id" @click="toGoods(rec.goodsId)"> |
||||
<!-- v-for="(row,index) in buylist" :key="index" --> |
||||
<view class="row"> |
||||
<view class="goods-info"> |
||||
<view class="img"> |
||||
<image :src="imageUrl+rec.goodsImg"></image> |
||||
</view> |
||||
<view class="info"> |
||||
<view class="title">{{rec.goodsName}}</view> |
||||
<view class="spec">{{rec.goodsSpecName}}</view> |
||||
<view class="zspec" v-if="rec.giveawayType">赠品</view> |
||||
<view class="price-number"> |
||||
<view class="price">¥{{rec.goodsPrice}}</view> |
||||
<view class="number"> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<!-- 提示-备注 --> |
||||
<view class="order"> |
||||
<view class="row" v-if="recinfo.orderNo"> |
||||
<view class="left"> |
||||
订单流水号 : |
||||
</view> |
||||
<view class="right"> |
||||
{{recinfo.orderNo}} |
||||
</view> |
||||
</view> |
||||
<view class="row" v-if="recinfo.paySerialNo"> |
||||
<view class="left"> |
||||
支付流水号 : |
||||
</view> |
||||
<view class="right"> |
||||
{{recinfo.paySerialNo}} |
||||
</view> |
||||
</view> |
||||
<view class="row" v-if="recinfo.payModel"> |
||||
<view class="left"> |
||||
支付模式 : |
||||
</view> |
||||
<view class="right" v-if="recinfo.payModel == 1"> |
||||
金币 |
||||
</view> |
||||
<view class="right" v-if="recinfo.payModel == 2"> |
||||
第三方平台 |
||||
</view> |
||||
<view class="right" v-if="recinfo.payModel == 3"> |
||||
混合 |
||||
</view> |
||||
</view> |
||||
|
||||
<view class="row" v-if="recinfo.payType"> |
||||
<view class="left"> |
||||
支付方式 : |
||||
</view> |
||||
<view class="right" v-if="recinfo.payType == 1"> |
||||
支付宝 |
||||
</view> |
||||
<view class="right" v-if="recinfo.payType == 2"> |
||||
微信 |
||||
</view> |
||||
<view class="right" v-if="recinfo.payType == 3"> |
||||
金币 |
||||
</view> |
||||
</view> |
||||
<view class="row" v-if="recinfo.payPrice"> |
||||
<view class="left"> |
||||
支付金额 : |
||||
</view> |
||||
<view class="right"> |
||||
{{recinfo.payPrice}} |
||||
</view> |
||||
</view> |
||||
<view class="row"> |
||||
<view class="left"> |
||||
下单时间 : |
||||
</view> |
||||
<view class="right"> |
||||
{{recinfo.createTime | formatDate('-')}} |
||||
</view> |
||||
</view> |
||||
<view class="row" v-if="recinfo.payTime"> |
||||
<view class="left"> |
||||
支付时间 : |
||||
</view> |
||||
<view class="right"> |
||||
{{recinfo.payTime | formatDate('-')}} |
||||
</view> |
||||
</view> |
||||
<view class="row" v-if="recinfo.cancelTime"> |
||||
<view class="left"> |
||||
取消时间 : |
||||
</view> |
||||
<view class="right"> |
||||
{{recinfo.cancelTime | formatDate('-')}} |
||||
</view> |
||||
</view> |
||||
<view class="row" v-if="recinfo.finishTime"> |
||||
<view class="left"> |
||||
完成时间 : |
||||
</view> |
||||
<view class="right"> |
||||
{{recinfo.finishTime | formatDate('-')}} |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<!-- 明细 --> |
||||
<!-- <view class="detail"> |
||||
<view class="row"> |
||||
<view class="nominal"> |
||||
商品金额 |
||||
</view> |
||||
<view class="content"> |
||||
¥200 && 200个金币 |
||||
</view> |
||||
</view> |
||||
<view class="row"> |
||||
<view class="nominal"> |
||||
运费 |
||||
</view> |
||||
<view class="content"> |
||||
¥+{{freight|toFixed}} |
||||
</view> |
||||
</view> |
||||
<view class="row"> |
||||
<view class="nominal"> |
||||
积分抵扣 |
||||
</view> |
||||
<view class="content"> |
||||
¥-{{deduction|toFixed}} |
||||
</view> |
||||
</view> |
||||
</view> --> |
||||
<view class="width100 height60"></view> |
||||
<view class="footer" v-if="recinfo.orderStatus == 1"> |
||||
<view class="settlement"> |
||||
<view class="sum">合计:<view class="money">¥{{recinfo.payPrice}}</view> |
||||
</view> |
||||
<view class="btn" @tap="cancelOrder">取消订单</view> |
||||
<view class="btn" @tap="toPay">提交订单</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getOrderById, |
||||
cancelOrder |
||||
} from '../../../Utils/Api.js'; |
||||
let app = getApp() |
||||
export default { |
||||
data() { |
||||
return { |
||||
buylist: [], //订单列表 |
||||
goodsPrice: 0.0, //商品合计价格 |
||||
sumPrice: 0.0, //用户付款价格 |
||||
freight: 12.00, //运费 |
||||
note: '', //备注 |
||||
int: 1200, //抵扣积分 |
||||
deduction: 0, //抵扣价格 |
||||
recinfo: [], |
||||
orderId: '', |
||||
imageUrl: app.globalData.imgUrl |
||||
|
||||
}; |
||||
}, |
||||
onShow() { |
||||
//页面显示时,加载订单信息 |
||||
// uni.getStorage({ |
||||
// key: 'buylist', |
||||
// success: (ret) => { |
||||
// this.buylist = ret.data; |
||||
// this.goodsPrice = 0; |
||||
// //合计 |
||||
// let len = this.buylist.length; |
||||
// for (let i = 0; i < len; i++) { |
||||
// this.goodsPrice = this.goodsPrice + (this.buylist[i].number * this.buylist[i].price); |
||||
// } |
||||
// this.deduction = this.int / 100; |
||||
// this.sumPrice = this.goodsPrice - this.deduction + this.freight; |
||||
// } |
||||
// }); |
||||
// uni.getStorage({ |
||||
// key: 'selectAddress', |
||||
// success: (e) => { |
||||
// this.recinfo = e.data; |
||||
// uni.removeStorage({ |
||||
// key: 'selectAddress' |
||||
// }) |
||||
// } |
||||
// }) |
||||
this.getOrderById(); |
||||
}, |
||||
onHide() { |
||||
|
||||
}, |
||||
onLoad(option) { |
||||
this.orderId = option.id |
||||
}, |
||||
onBackPress() { |
||||
//页面后退时候,清除订单信息 |
||||
this.clearOrder(); |
||||
}, |
||||
filters: { |
||||
toFixed: function(x) { |
||||
return parseFloat(x).toFixed(2); |
||||
}, |
||||
//过滤器 用于格式化时间 |
||||
formatDate: function(value, spe = '/') { |
||||
let data = new Date(value); |
||||
let year = data.getFullYear(); |
||||
let month = data.getMonth() + 1; |
||||
let day = data.getDate(); |
||||
let h = data.getHours(); |
||||
let mm = data.getMinutes(); |
||||
let s = data.getSeconds(); |
||||
month = month > 10 ? month : "0" + month; |
||||
day = day > 10 ? day : "0" + day; |
||||
h = h > 10 ? h : "0" + h; |
||||
mm = mm > 10 ? mm : "0" + mm; |
||||
s = s > 10 ? s : "0" + s; |
||||
return `${year}${spe}${month}${spe}${day} ${h}:${mm}:${s}`; |
||||
} |
||||
}, |
||||
methods: { |
||||
toGoods(e) { |
||||
uni.navigateTo({ |
||||
url:'../../goods/goods?id='+e |
||||
}); |
||||
}, |
||||
getOrderById() { |
||||
uni.showLoading({ |
||||
title: '加载中...' |
||||
}) |
||||
let params = { |
||||
orderId: this.orderId, |
||||
} |
||||
getOrderById(params).then(res => { |
||||
if (res.return_code == '000000') { |
||||
uni.hideLoading(); |
||||
this.recinfo = res.return_data; |
||||
} else { |
||||
uni.hideLoading() |
||||
} |
||||
}) |
||||
}, |
||||
cancelOrder() { |
||||
let that = this; |
||||
uni.showModal({ |
||||
title: '取消订单', |
||||
content: '确定取消此订单?', |
||||
success: (res) => { |
||||
if (res.confirm) { |
||||
uni.showLoading({ |
||||
title: '加载中...' |
||||
}) |
||||
let params = { |
||||
orderId: this.recinfo.id |
||||
} |
||||
cancelOrder(params).then(res => { |
||||
if (res.return_code == '000000') { |
||||
uni.hideLoading(); |
||||
uni.showToast({ |
||||
title: res.return_data, |
||||
icon: 'none', |
||||
duration: 2000 |
||||
}) |
||||
setTimeout(() => { |
||||
uni.navigateBack(); |
||||
}, 2000) |
||||
|
||||
} else { |
||||
uni.showToast({ |
||||
title: res.return_msg, |
||||
icon: 'none', |
||||
duration: 2000 |
||||
}) |
||||
uni.hideLoading() |
||||
} |
||||
}) |
||||
} else if (res.cancel) { |
||||
console.log('用户点击取消'); |
||||
} |
||||
} |
||||
}); |
||||
}, |
||||
clearOrder() { |
||||
uni.removeStorage({ |
||||
key: 'buylist', |
||||
success: (res) => { |
||||
this.buylist = []; |
||||
console.log('remove buylist success'); |
||||
} |
||||
}); |
||||
}, |
||||
toPay() { |
||||
let payTypes; |
||||
if (this.recinfo.payType == 1) { |
||||
payTypes = 3; |
||||
} else if (this.recinfo.payType == 2) { |
||||
payTypes = 1; |
||||
} else { |
||||
payTypes = 2; |
||||
} |
||||
uni.redirectTo({ |
||||
url: "/pages/pay/payment/payment?amount=" + this.recinfo.payPrice + |
||||
'&paytype=' + payTypes + '&orderId=' + this.recinfo.id |
||||
}) |
||||
|
||||
//商品列表 |
||||
// let paymentOrder = []; |
||||
// let goodsid = []; |
||||
// let len = this.buylist.length; |
||||
// for (let i = 0; i < len; i++) { |
||||
// paymentOrder.push(this.buylist[i]); |
||||
// goodsid.push(this.buylist[i].id); |
||||
// } |
||||
// if (paymentOrder.length == 0) { |
||||
// uni.showToast({ |
||||
// title: '订单信息有误,请重新购买', |
||||
// icon: 'none' |
||||
// }); |
||||
// return; |
||||
// } |
||||
// //本地模拟订单提交UI效果 |
||||
// uni.showLoading({ |
||||
// title: '正在提交订单...' |
||||
// }) |
||||
// setTimeout(() => { |
||||
// uni.setStorage({ |
||||
// key: 'paymentOrder', |
||||
// data: paymentOrder, |
||||
// success: () => { |
||||
// uni.hideLoading(); |
||||
// uni.redirectTo({ |
||||
// url: "../pay/payment/payment?amount=" + this.sumPrice |
||||
// }) |
||||
// } |
||||
// }) |
||||
// }, 1000) |
||||
|
||||
}, |
||||
//选择收货地址 |
||||
selectAddress() { |
||||
uni.navigateTo({ |
||||
url: '../user/address/address?type=select' |
||||
}) |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
.addr { |
||||
width: 86%; |
||||
padding: 20upx 3%; |
||||
margin: 30upx auto 20upx auto; |
||||
box-shadow: 0upx 5upx 20upx rgba(0, 0, 0, 0.1); |
||||
border-radius: 20upx; |
||||
display: flex; |
||||
|
||||
.icon { |
||||
width: 80upx; |
||||
height: 80upx; |
||||
display: flex; |
||||
align-items: center; |
||||
|
||||
image { |
||||
width: 60upx; |
||||
height: 60upx; |
||||
} |
||||
} |
||||
|
||||
.tel-name { |
||||
width: 100%; |
||||
display: flex; |
||||
font-size: 32upx; |
||||
|
||||
.tel { |
||||
margin-left: 40upx; |
||||
} |
||||
} |
||||
|
||||
.addres { |
||||
width: 100%; |
||||
font-size: 26upx; |
||||
color: #999; |
||||
} |
||||
} |
||||
|
||||
.buy-list { |
||||
width: 86%; |
||||
padding: 10upx 3%; |
||||
margin: 30upx auto 20upx auto; |
||||
box-shadow: 0upx 5upx 20upx rgba(0, 0, 0, 0.1); |
||||
border-radius: 20upx; |
||||
|
||||
.row { |
||||
margin: 20rpx 0; |
||||
|
||||
.goods-info { |
||||
width: 100%; |
||||
display: flex; |
||||
|
||||
.img { |
||||
width: 22vw; |
||||
height: 22vw; |
||||
border-radius: 10upx; |
||||
overflow: hidden; |
||||
flex-shrink: 0; |
||||
margin-right: 10upx; |
||||
|
||||
image { |
||||
width: 22vw; |
||||
height: 22vw; |
||||
} |
||||
} |
||||
|
||||
.info { |
||||
width: 100%; |
||||
height: 22vw; |
||||
overflow: hidden; |
||||
display: flex; |
||||
flex-wrap: wrap; |
||||
position: relative; |
||||
|
||||
.title { |
||||
width: 100%; |
||||
font-size: 32upx; |
||||
display: -webkit-box; |
||||
-webkit-box-orient: vertical; |
||||
-webkit-line-clamp: 2; |
||||
// text-align: justify; |
||||
overflow: hidden; |
||||
} |
||||
|
||||
.spec { |
||||
font-size: 22upx; |
||||
background-color: #f3f3f3; |
||||
color: #a7a7a7; |
||||
height: 40upx; |
||||
display: flex; |
||||
align-items: center; |
||||
padding: 0 15upx; |
||||
border-radius: 20upx; |
||||
margin-bottom: 10px; |
||||
} |
||||
|
||||
.zspec { |
||||
font-size: 22upx; |
||||
background-color: red; |
||||
color: #FFFFFF; |
||||
height: 40upx; |
||||
display: flex; |
||||
align-items: center; |
||||
padding: 0 15upx; |
||||
border-radius: 20upx; |
||||
margin-bottom: 10px; |
||||
margin-left: 10px; |
||||
} |
||||
|
||||
.price-number { |
||||
position: absolute; |
||||
width: 100%; |
||||
bottom: 0upx; |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: flex-end; |
||||
font-size: 28upx; |
||||
height: 40upx; |
||||
|
||||
.price { |
||||
color: #f06c7a; |
||||
} |
||||
|
||||
.number { |
||||
display: flex; |
||||
justify-content: center; |
||||
align-items: center; |
||||
|
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
.order { |
||||
width: 86%; |
||||
padding: 10upx 3%; |
||||
margin: 30upx auto 20upx auto; |
||||
box-shadow: 0upx 5upx 20upx rgba(0, 0, 0, 0.1); |
||||
border-radius: 20upx; |
||||
|
||||
.row { |
||||
margin: 20upx 0; |
||||
height: 40upx; |
||||
display: flex; |
||||
|
||||
.left { |
||||
font-size: 28upx; |
||||
} |
||||
|
||||
.right { |
||||
margin-left: 40upx; |
||||
font-size: 26upx; |
||||
color: #999; |
||||
|
||||
input { |
||||
font-size: 26upx; |
||||
color: #999; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
.blck { |
||||
width: 100%; |
||||
height: 100upx; |
||||
} |
||||
|
||||
.footer { |
||||
width: 92%; |
||||
padding: 0 4%; |
||||
background-color: #fbfbfb; |
||||
height: 100upx; |
||||
display: flex; |
||||
justify-content: flex-end; |
||||
align-items: center; |
||||
font-size: 28upx; |
||||
position: fixed; |
||||
bottom: 0upx; |
||||
z-index: 5; |
||||
|
||||
.settlement { |
||||
width: 80%; |
||||
display: flex; |
||||
justify-content: flex-end; |
||||
align-items: center; |
||||
|
||||
.sum { |
||||
width: 50%; |
||||
font-size: 28upx; |
||||
margin-right: 10upx; |
||||
display: flex; |
||||
justify-content: flex-end; |
||||
|
||||
.money { |
||||
font-weight: 600; |
||||
} |
||||
} |
||||
|
||||
.btn { |
||||
padding: 0 20upx; |
||||
height: 60upx; |
||||
width: 100px; |
||||
margin-left: 10px; |
||||
background-color: #f06c7a; |
||||
color: #fff; |
||||
display: flex; |
||||
justify-content: center; |
||||
align-items: center; |
||||
font-size: 30upx; |
||||
border-radius: 40upx; |
||||
} |
||||
} |
||||
} |
||||
|
||||
.detail { |
||||
width: 86%; |
||||
padding: 10upx 3%; |
||||
margin: 30upx auto 20upx auto; |
||||
box-shadow: 0upx 5upx 20upx rgba(0, 0, 0, 0.1); |
||||
border-radius: 20upx; |
||||
|
||||
.row { |
||||
height: 60upx; |
||||
display: flex; |
||||
justify-content: space-between; |
||||
align-items: center; |
||||
|
||||
.nominal { |
||||
font-size: 28upx; |
||||
} |
||||
|
||||
.content { |
||||
font-size: 26upx; |
||||
color: #f06c7a; |
||||
} |
||||
} |
||||
} |
||||
</style> |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 154 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 6.9 KiB |
@ -0,0 +1,4 @@ |
||||
|
||||
require('./common/runtime.js') |
||||
require('./common/vendor.js') |
||||
require('./common/main.js') |
@ -0,0 +1,75 @@ |
||||
{ |
||||
"pages": [ |
||||
"pages/tabBar/home/home", |
||||
"pages/goods/store-list/store-list", |
||||
"pages/tabBar/category/category", |
||||
"pages/tabBar/cart/cart", |
||||
"pages/tabBar/user/user", |
||||
"pages/goods/goods-list/goods-list", |
||||
"pages/goods/HM-search/HM-search", |
||||
"pages/goods/goods", |
||||
"pages/login/login", |
||||
"pages/login/register", |
||||
"pages/login/resetpasswd", |
||||
"pages/order/confirmation", |
||||
"pages/user/order_list/order_list", |
||||
"pages/user/setting/setting", |
||||
"pages/user/myQR/myQR", |
||||
"pages/msg/msg", |
||||
"pages/user/coupon/coupon", |
||||
"pages/user/keep/keep", |
||||
"pages/user/address/address", |
||||
"pages/user/address/edit/edit", |
||||
"pages/user/deposit/deposit", |
||||
"pages/pay/payment/payment", |
||||
"pages/pay/success/success", |
||||
"pages/goods/ratings/ratings", |
||||
"pages/goods/store-list/store-details", |
||||
"pages/goods/coupon-details/coupon-details", |
||||
"pages/user/business/business", |
||||
"pages/user/order_details/order_details", |
||||
"pages/goods/recording/recording", |
||||
"pages/user/mineCoupons/mineCoupons" |
||||
], |
||||
"subPackages": [], |
||||
"window": { |
||||
"navigationBarTextStyle": "black", |
||||
"navigationBarTitleText": "", |
||||
"navigationBarBackgroundColor": "#ffffff", |
||||
"backgroundColor": "#ffffff", |
||||
"backgroundColorTop": "#ffffff", |
||||
"backgroundColorBottom": "#ffffff" |
||||
}, |
||||
"tabBar": { |
||||
"color": "#333333", |
||||
"selectedColor": "#f06c7a", |
||||
"borderStyle": "black", |
||||
"backgroundColor": "#ffffff", |
||||
"list": [ |
||||
{ |
||||
"pagePath": "pages/tabBar/home/home", |
||||
"iconPath": "static/img/tabBar/home.png", |
||||
"selectedIconPath": "static/img/tabBar/home-on.png", |
||||
"text": "首页" |
||||
}, |
||||
{ |
||||
"pagePath": "pages/tabBar/category/category", |
||||
"iconPath": "static/img/tabBar/category.png", |
||||
"selectedIconPath": "static/img/tabBar/category-on.png", |
||||
"text": "分类" |
||||
}, |
||||
{ |
||||
"pagePath": "pages/tabBar/user/user", |
||||
"iconPath": "static/img/tabBar/user.png", |
||||
"selectedIconPath": "static/img/tabBar/user-on.png", |
||||
"text": "我的" |
||||
} |
||||
] |
||||
}, |
||||
"permission": { |
||||
"scope.userLocation": { |
||||
"desc": "你的位置信息将用于小程序定位" |
||||
} |
||||
}, |
||||
"usingComponents": {} |
||||
} |
@ -0,0 +1,3 @@ |
||||
@import './common/main.wxss'; |
||||
|
||||
[data-custom-hidden="true"],[bind-data-custom-hidden="true"]{display: none !important;} |
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{a093:function(e,t,n){"use strict";n.r(t);var r=n("ed97");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("d555");var c,u,a,i,f=n("f0c5"),l=Object(f["a"])(r["default"],c,u,!1,null,null,null,!1,a,i);t["default"]=l.exports},bf06:function(e,t,n){},cd30:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={globalData:{url:"https://hsgcs.dctpay.com/crest",brestUrl:"https://hsgcs.dctpay.com/brest",imgUrl:"https://hsgcs.dctpay.com/filesystem/",userInfo:"",brestUserInfo:"",openId:"",code:"",token:"",brestToken:"",cityId:"500100"},onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};t.default=r},d555:function(e,t,n){"use strict";var r=n("bf06"),o=n.n(r);o.a},dd65:function(e,t,n){"use strict";(function(e){n("185d");var t=o(n("66fd")),r=o(n("a093"));function o(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default.config.productionTip=!1,r.default.mpType="app";var i=new t.default(u({},r.default));e(i).$mount()}).call(this,n("543d")["createApp"])},ed97:function(e,t,n){"use strict";n.r(t);var r=n("cd30"),o=n.n(r);for(var c in r)"default"!==c&&function(e){n.d(t,e,(function(){return r[e]}))}(c);t["default"]=o.a}},[["dd65","common/runtime","common/vendor"]]]); |
File diff suppressed because one or more lines are too long
@ -0,0 +1,4 @@ |
||||
|
||||
!function(){try{var a=Function("return this")();a&&!a.Math&&(Object.assign(a,{isFinite:isFinite,Array:Array,Date:Date,Error:Error,Function:Function,Math:Math,Object:Object,RegExp:RegExp,String:String,TypeError:TypeError,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval}),"undefined"!=typeof Reflect&&(a.Reflect=Reflect))}catch(a){}}(); |
||||
(function(e){function t(t){for(var n,o,u=t[0],c=t[1],s=t[2],l=0,p=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&p.push(i[o][0]),i[o]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);m&&m(t);while(p.length)p.shift()();return a.push.apply(a,s||[]),r()}function r(){for(var e,t=0;t<a.length;t++){for(var r=a[t],n=!0,o=1;o<r.length;o++){var u=r[o];0!==i[u]&&(n=!1)}n&&(a.splice(t--,1),e=c(c.s=r[0]))}return e}var n={},o={"common/runtime":0},i={"common/runtime":0},a=[];function u(e){return c.p+""+e+".js"}function c(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.e=function(e){var t=[],r={"components/Authorize":1,"components/mehaotian-search-revision/mehaotian-search-revision":1,"components/mpvue-citypicker/mpvueCityPicker":1};o[e]?t.push(o[e]):0!==o[e]&&r[e]&&t.push(o[e]=new Promise((function(t,r){for(var n=({"components/Authorize":"components/Authorize","components/mehaotian-search-revision/mehaotian-search-revision":"components/mehaotian-search-revision/mehaotian-search-revision","components/mpvue-citypicker/mpvueCityPicker":"components/mpvue-citypicker/mpvueCityPicker"}[e]||e)+".wxss",i=c.p+n,a=document.getElementsByTagName("link"),u=0;u<a.length;u++){var s=a[u],l=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===n||l===i))return t()}var p=document.getElementsByTagName("style");for(u=0;u<p.length;u++){s=p[u],l=s.getAttribute("data-href");if(l===n||l===i)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=t,m.onerror=function(t){var n=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=n,delete o[e],m.parentNode.removeChild(m),r(a)},m.href=i;var f=document.getElementsByTagName("head")[0];f.appendChild(m)})).then((function(){o[e]=0})));var n=i[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=i[e]=[t,r]}));t.push(n[2]=a);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,c.nc&&l.setAttribute("nonce",c.nc),l.src=u(e);var p=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(m);var r=i[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;p.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",p.name="ChunkLoadError",p.type=n,p.request=o,r[1](p)}i[e]=void 0}};var m=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},c.m=e,c.c=n,c.d=function(e,t,r){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(c.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)c.d(r,n,function(t){return e[t]}.bind(null,n));return r},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var s=global["webpackJsonp"]=global["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var p=0;p<s.length;p++)t(s[p]);var m=l;r()})([]); |
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/Authorize"],{"0a4b":function(t,e,n){"use strict";n.r(e);var o=n("72ff"),a=n("59bb");for(var u in a)"default"!==u&&function(t){n.d(e,t,(function(){return a[t]}))}(u);n("81e1");var r,i=n("f0c5"),c=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"3fc093ae",null,!1,o["a"],r);e["default"]=c.exports},"59bb":function(t,e,n){"use strict";n.r(e);var o=n("f094"),a=n.n(o);for(var u in o)"default"!==u&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=a.a},"72ff":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return o}));var a=function(){var t=this,e=t.$createElement;t._self._c},u=[]},"81e1":function(t,e,n){"use strict";var o=n("e652"),a=n.n(o);a.a},e652:function(t,e,n){},f094:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("524d"),a=getApp(),u={name:"Authorize",data:function(){return{isShowAuth:!1}},watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)}},created:function(){this.iscode()},methods:{iscode:function(){a.globalData.userInfo||(this.isShowAuth=!0)},getuserinfo:function(){t.showLoading({title:"正在登录中"});var e=this;wx.login({success:function(n){if(n.code){n.code;wx.getUserInfo({success:function(n){var u={openId:a.globalData.openId,iv:n.iv,encryptedData:n.encryptedData};(0,o.getUserInfo)(u).then((function(n){"000000"==n.return_code?(t.hideLoading(),a.globalData.userInfo=n.return_data.object.highUser,a.globalData.token=n.return_data.uniqueCode,e.isShowAuth=!1,t.setStorage({key:"user",data:n.return_data.object.highUser}),t.setStorage({key:"token",data:n.return_data.uniqueCode}),t.reLaunch({url:"/pages/tabBar/user/user"})):t.showToast({title:n.return_msg})}))},fail:function(e){t.showToast({title:"微信登录授权失败",icon:"none"})}})}}}),e.isShowAuth=!1},close:function(){t.reLaunch({url:"/pages/tabBar/home/home"})}}};e.default=u}).call(this,n("543d")["default"])}}]); |
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ |
||||
'components/Authorize-create-component', |
||||
{ |
||||
'components/Authorize-create-component':(function(module, exports, __webpack_require__){ |
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("0a4b")) |
||||
}) |
||||
}, |
||||
[['components/Authorize-create-component']] |
||||
]); |
@ -0,0 +1,4 @@ |
||||
{ |
||||
"usingComponents": {}, |
||||
"component": true |
||||
} |
@ -0,0 +1 @@ |
||||
<view class="data-v-3fc093ae"><block wx:if="{{isShowAuth}}"><view class="Popup data-v-3fc093ae"><view class="logo-auth data-v-3fc093ae"><image src="../static/img/logo.png" mode="aspectFit" class="data-v-3fc093ae"></image></view><view class="title data-v-3fc093ae">授权提醒</view><view class="tip data-v-3fc093ae">请授权头像等信息,以便为您提供更好的服务</view><view class="bottom flex data-v-3fc093ae"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="item data-v-3fc093ae" bindtap="__e">随便逛逛</view><button class="item grant data-v-3fc093ae" type="primary" open-type="getUserInfo" lang="zh_CN" withCredentials="true" data-event-opts="{{[['getuserinfo',[['getuserinfo',['$event']]]]]}}" bindgetuserinfo="__e">去授权</button></view></view></block><block wx:if="{{isShowAuth}}"><view data-event-opts="{{[['tap',[['close',['$event']]]]]}}" class="mask data-v-3fc093ae" bindtap="__e"></view></block></view> |
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/mehaotian-search-revision/mehaotian-search-revision"],{"2c1c":function(t,i,e){"use strict";e.r(i);var n=e("5385"),u=e("7b0b");for(var a in u)"default"!==a&&function(t){e.d(i,t,(function(){return u[t]}))}(a);e("df73");var s,c=e("f0c5"),o=Object(c["a"])(u["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);i["default"]=o.exports},"4f08":function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={props:{mode:{value:Number,default:1},placeholder:{value:String,default:"请输入搜索内容"},value:{type:String,default:!1},button:{value:String,default:"outside"},show:{value:Boolean,default:!0},radius:{value:String,default:60}},data:function(){return{active:!1,inputVal:"",searchName:"取消",isDelShow:!1,isFocus:!0}},methods:{triggerConfirm:function(){this.$emit("confirm",!1)},inputChange:function(t){var i=t.detail.value;this.$emit("input",i),this.inputVal&&(this.isDelShow=!0)},focus:function(){this.active=!0,this.inputVal&&(this.isDelShow=!0)},blur:function(){console.log("blur"),this.isFocus=!1,this.inputVal||(this.active=!1)},clear:function(){t.hideKeyboard(),this.isFocus=!1,this.inputVal="",this.active=!1,this.$emit("input","")},getFocus:function(){this.isFocus||(this.isFocus=!0)},search:function(){if(!this.inputVal&&!this.show&&"取消"==this.searchName)return t.hideKeyboard(),this.isFocus=!1,void(this.active=!1);console.log(this.inputVal),this.$emit("search",this.inputVal?this.inputVal:this.placeholder)}},watch:{inputVal:function(t){t?this.searchName="搜索":(this.searchName="取消",this.isDelShow=!1)},value:function(t){this.inputVal=t}}};i.default=e}).call(this,e("543d")["default"])},5385:function(t,i,e){"use strict";var n;e.d(i,"b",(function(){return u})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var u=function(){var t=this,i=t.$createElement;t._self._c},a=[]},"7b0b":function(t,i,e){"use strict";e.r(i);var n=e("4f08"),u=e.n(n);for(var a in n)"default"!==a&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=u.a},c0c2:function(t,i,e){},df73:function(t,i,e){"use strict";var n=e("c0c2"),u=e.n(n);u.a}}]); |
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ |
||||
'components/mehaotian-search-revision/mehaotian-search-revision-create-component', |
||||
{ |
||||
'components/mehaotian-search-revision/mehaotian-search-revision-create-component':(function(module, exports, __webpack_require__){ |
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("2c1c")) |
||||
}) |
||||
}, |
||||
[['components/mehaotian-search-revision/mehaotian-search-revision-create-component']] |
||||
]); |
@ -0,0 +1,4 @@ |
||||
{ |
||||
"usingComponents": {}, |
||||
"component": true |
||||
} |
@ -0,0 +1 @@ |
||||
<view class="serach"><view class="content" style="{{'border-radius:'+(radius+'px')+';'}}"><view class="{{['content-box',(mode===2)?'center':'']}}"><text class="icon search"></text><input class="{{['input',(!active&&mode===2)?'center':'']}}" placeholder="{{placeholder}}" confirm-type="search" focus="{{isFocus}}" data-event-opts="{{[['input',[['__set_model',['','inputVal','$event',[]]],['inputChange',['$event']]]],['confirm',[['triggerConfirm',['$event']]]],['focus',[['focus',['$event']]]],['blur',[['blur',['$event']]]]]}}" value="{{inputVal}}" bindinput="__e" bindconfirm="__e" bindfocus="__e" bindblur="__e"/><block wx:if="{{isDelShow}}"><text data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="icon shanchu" catchtap="__e"></text></block></view><view data-event-opts="{{[['tap',[['search',['$event']]]]]}}" hidden="{{!(active&&show&&button==='inside'||isDelShow&&button==='inside')}}" class="serachBtn" bindtap="__e">搜索</view></view><block wx:if="{{button==='outside'}}"><view data-event-opts="{{[['tap',[['search',['$event']]]]]}}" class="{{['button',(show||active)?'active':'']}}" bindtap="__e"><view class="button-item">{{!show?searchName:'搜索'}}</view></view></block></view> |
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/mpvue-citypicker/mpvueCityPicker"],{"094f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("a3ed")),u=n(i("63ef")),l=n(i("7d47"));function n(t){return t&&t.__esModule?t:{default:t}}var c={data:function(){return{pickerValue:[0,0,0],provinceDataList:[],cityDataList:[],areaDataList:[],showPicker:!1}},created:function(){this.init()},props:{pickerValueDefault:{type:Array,default:function(){return[0,0,0]}},themeColor:String},watch:{pickerValueDefault:function(){this.init()}},methods:{init:function(){this.handPickValueDefault(),this.provinceDataList=a.default,this.cityDataList=u.default[this.pickerValueDefault[0]],this.areaDataList=l.default[this.pickerValueDefault[0]][this.pickerValueDefault[1]],this.pickerValue=this.pickerValueDefault},show:function(){var t=this;setTimeout((function(){t.showPicker=!0}),0)},maskClick:function(){this.pickerCancel()},pickerCancel:function(){this.showPicker=!1,this._$emit("onCancel")},pickerConfirm:function(t){this.showPicker=!1,this._$emit("onConfirm")},showPickerView:function(){this.showPicker=!0},handPickValueDefault:function(){this.pickerValueDefault!==[0,0,0]&&(this.pickerValueDefault[0]>a.default.length-1&&(this.pickerValueDefault[0]=a.default.length-1),this.pickerValueDefault[1]>u.default[this.pickerValueDefault[0]].length-1&&(this.pickerValueDefault[1]=u.default[this.pickerValueDefault[0]].length-1),this.pickerValueDefault[2]>l.default[this.pickerValueDefault[0]][this.pickerValueDefault[1]].length-1&&(this.pickerValueDefault[2]=l.default[this.pickerValueDefault[0]][this.pickerValueDefault[1]].length-1))},pickerChange:function(t){var e=t.mp.detail.value;this.pickerValue[0]!==e[0]?(this.cityDataList=u.default[e[0]],this.areaDataList=l.default[e[0]][0],e[1]=0,e[2]=0):this.pickerValue[1]!==e[1]&&(this.areaDataList=l.default[e[0]][e[1]],e[2]=0),this.pickerValue=e,this._$emit("onChange")},_$emit:function(t){var e={label:this._getLabel(),value:this.pickerValue,cityCode:this._getCityCode()};this.$emit(t,e)},_getLabel:function(){var t=this.provinceDataList[this.pickerValue[0]].label+"-"+this.cityDataList[this.pickerValue[1]].label+"-"+this.areaDataList[this.pickerValue[2]].label;return t},_getCityCode:function(){return this.areaDataList[this.pickerValue[2]].value}}};e.default=c},"3c95":function(t,e,i){"use strict";i.r(e);var a=i("094f"),u=i.n(a);for(var l in a)"default"!==l&&function(t){i.d(e,t,(function(){return a[t]}))}(l);e["default"]=u.a},6900:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return u})),i.d(e,"c",(function(){return l})),i.d(e,"a",(function(){return a}));var u=function(){var t=this,e=t.$createElement;t._self._c},l=[]},8459:function(t,e,i){},ba0b:function(t,e,i){"use strict";var a=i("8459"),u=i.n(a);u.a},fe29:function(t,e,i){"use strict";i.r(e);var a=i("6900"),u=i("3c95");for(var l in u)"default"!==l&&function(t){i.d(e,t,(function(){return u[t]}))}(l);i("ba0b");var n,c=i("f0c5"),r=Object(c["a"])(u["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],n);e["default"]=r.exports}}]); |
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ |
||||
'components/mpvue-citypicker/mpvueCityPicker-create-component', |
||||
{ |
||||
'components/mpvue-citypicker/mpvueCityPicker-create-component':(function(module, exports, __webpack_require__){ |
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("fe29")) |
||||
}) |
||||
}, |
||||
[['components/mpvue-citypicker/mpvueCityPicker-create-component']] |
||||
]); |
@ -0,0 +1,4 @@ |
||||
{ |
||||
"usingComponents": {}, |
||||
"component": true |
||||
} |
@ -0,0 +1 @@ |
||||
<view class="mpvue-picker _div"><view class="{{['_div',(showPicker)?'pickerMask':'']}}" catchtouchmove="true" data-event-opts="{{[['tap',[['maskClick',['$event']]]]]}}" bindtap="__e"></view><view class="{{['mpvue-picker-content _div',(showPicker)?'mpvue-picker-view-show':'']}}"><view class="mpvue-picker__hd _div" catchtouchmove="true"><view data-event-opts="{{[['tap',[['pickerCancel',['$event']]]]]}}" class="mpvue-picker__action _div" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['pickerConfirm',['$event']]]]]}}" class="mpvue-picker__action _div" style="{{'color:'+(themeColor)+';'}}" bindtap="__e">确定</view></view><picker-view class="mpvue-picker-view" indicator-style="height: 40px;" value="{{pickerValue}}" data-event-opts="{{[['change',[['pickerChange',['$event']]]]]}}" bindchange="__e"><block><picker-view-column><block wx:for="{{provinceDataList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="picker-item _div">{{item.label}}</view></block></picker-view-column><picker-view-column><block wx:for="{{cityDataList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="picker-item _div">{{item.label}}</view></block></picker-view-column><picker-view-column><block wx:for="{{areaDataList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="picker-item _div">{{item.label}}</view></block></picker-view-column></block></picker-view></view></view> |
@ -0,0 +1 @@ |
||||
.pickerMask{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}.mpvue-picker-content{position:fixed;bottom:0;left:0;width:100%;-webkit-transition:all .3s ease;transition:all .3s ease;-webkit-transform:translateY(100%);transform:translateY(100%);z-index:3000}.mpvue-picker-view-show{-webkit-transform:translateY(0);transform:translateY(0)}.mpvue-picker__hd{display:-webkit-box;display:-webkit-flex;display:flex;padding:9px 15px;background-color:#fff;position:relative;text-align:center;font-size:17px}.mpvue-picker__hd:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1px solid #e5e5e5;color:#e5e5e5;-webkit-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.mpvue-picker__action{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#1aad19}.mpvue-picker__action:first-child{text-align:left;color:#888}.mpvue-picker__action:last-child{text-align:right}.picker-item{text-align:center;line-height:40px;text-overflow:ellipsis;white-space:nowrap;font-size:16px}.mpvue-picker-view{position:relative;bottom:0;left:0;width:100%;height:238px;background-color:#fff} |
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/HM-search/HM-search"],{"16a2":function(t,e,o){"use strict";var n=o("faca"),i=o.n(n);i.a},"50d0":function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("524d"),i=getApp(),r=function(){o.e("components/mehaotian-search-revision/mehaotian-search-revision").then(function(){return resolve(o("2c1c"))}.bind(null,o)).catch(o.oe)},a={data:function(){return{defaultKeyword:"",keyword:"",oldKeywordList:[],hotKeywordList:[],keywordList:[],forbid:"",isShowKeywordList:!1,imageUrl:i.globalData.imgUrl,productList:[],pageNum:1,pageSize:10}},onLoad:function(){this.init()},components:{mSearch:r},methods:{getCouponList:function(){var e=this;t.showLoading({});var o={regionId:i.globalData.cityId,pageNum:this.pageNum,couponName:this.keyword,pageSize:this.pageSize};(0,n.getCouponList)(o).then((function(o){"000000"==o.return_code?(t.hideLoading(),e.productList=o.return_data.list):(e.productList=[],t.hideLoading())}))},init:function(){this.loadDefaultKeyword()},blur:function(){t.hideKeyboard()},loadDefaultKeyword:function(){this.defaultKeyword="默认关键字"},loadOldKeyword:function(){var e=this;t.getStorage({key:"OldKeys",success:function(t){var o=JSON.parse(t.data);e.oldKeywordList=o}})},inputChange:function(t){var e=t.detail?t.detail.value:t;if(!e)return this.keywordList=[],void(this.isShowKeywordList=!1);this.isShowKeywordList=!0,this.getCouponList()},drawCorrelativeKeyword:function(t,e){for(var o=t.length,n=[],i=0;i<o;i++){var r=t[i],a=r[0].replace(e,"<span style='color: #9f9f9f;'>"+e+"</span>");a="<div>"+a+"</div>";var s={keyword:r[0],htmlStr:a};n.push(s)}return n},setKeyword:function(t){this.keyword=this.keywordList[t].keyword},oldDelete:function(){var e=this;t.showModal({content:"确定清除历史搜索记录?",success:function(o){o.confirm?(console.log("用户点击确定"),e.oldKeywordList=[],t.removeStorage({key:"OldKeys"})):o.cancel&&console.log("用户点击取消")}})},hotToggle:function(){this.forbid=this.forbid?"":"_forbid"},doSearch:function(t){t=!1===t?this.keyword:t,this.keyword=t,this.getCouponList()},saveKeyword:function(e){var o=this;t.getStorage({key:"OldKeys",success:function(n){var i=JSON.parse(n.data),r=i.indexOf(e);-1==r||i.splice(r,1),i.unshift(e),i.length>10&&i.pop(),t.setStorage({key:"OldKeys",data:JSON.stringify(i)}),o.oldKeywordList=i},fail:function(n){var i=[e];t.setStorage({key:"OldKeys",data:JSON.stringify(i)}),o.oldKeywordList=i}})}}};e.default=a}).call(this,o("543d")["default"])},"921b":function(t,e,o){"use strict";o.r(e);var n=o("ab02"),i=o("c92d");for(var r in i)"default"!==r&&function(t){o.d(e,t,(function(){return i[t]}))}(r);o("16a2");var a,s=o("f0c5"),d=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],a);e["default"]=d.exports},ab02:function(t,e,o){"use strict";var n;o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c},r=[]},c92d:function(t,e,o){"use strict";o.r(e);var n=o("50d0"),i=o.n(n);for(var r in n)"default"!==r&&function(t){o.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},f6b1:function(t,e,o){"use strict";(function(t){o("185d");n(o("66fd"));var e=n(o("921b"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,o("543d")["createPage"])},faca:function(t,e,o){}},[["f6b1","common/runtime","common/vendor"]]]); |
@ -0,0 +1,6 @@ |
||||
{ |
||||
"navigationBarTitleText": "搜索", |
||||
"usingComponents": { |
||||
"m-search": "/components/mehaotian-search-revision/mehaotian-search-revision" |
||||
} |
||||
} |
@ -0,0 +1 @@ |
||||
<view class="content"><view class="search-box"><m-search class="mSearch-input-box" vue-id="8dc12c92-1" mode="{{2}}" button="inside" placeholder="{{defaultKeyword}}" value="{{keyword}}" data-event-opts="{{[['^search',[['doSearch',[false]]]],['^confirm',[['doSearch',[false]]]],['^input',[['__set_model',['','keyword','$event',[]]]]]]}}" bind:search="__e" bind:confirm="__e" bind:input="__e" bind:__l="__l"></m-search></view><view class="search-keyword"><scroll-view hidden="{{!(isShowKeywordList)}}" class="keyword-list-box" scroll-y="{{true}}"><block wx:for="{{keywordList}}" wx:for-item="row" wx:for-index="index" wx:key="index"><block><view class="keyword-entry" hover-class="keyword-entry-tap"><view data-event-opts="{{[['tap',[['doSearch',['$0'],['keywordList.'+index+'.keyword']]]]]}}" class="keyword-text" catchtap="__e"><rich-text nodes="{{row.htmlStr}}"></rich-text></view><view data-event-opts="{{[['tap',[['setKeyword',['$0'],['keywordList.'+index+'.keyword']]]]]}}" class="keyword-img" catchtap="__e"><image src="/static/HM-search/back.png"></image></view></view></block></block></scroll-view><scroll-view hidden="{{!(!isShowKeywordList)}}" class="keyword-box" scroll-y="{{true}}"><view class="product-list mart15"><block wx:for="{{productList}}" wx:for-item="product" wx:for-index="__i0__" wx:key="id"><view data-event-opts="{{[['tap',[['toGoods',['$0'],[[['productList','id',product.id,'id']]]]]]]}}" class="product" bindtap="__e"><image mode="widthFix" src="{{imageUrl+product.couponImg}}"></image><view class="name">{{product.couponName}}</view><view class="info"><view class="price">{{"¥"+product.discountPrice}}</view><block wx:if="{{product.discountPrice!==product.salesPrice}}"><view class="slogan">{{'¥'+product.salesPrice}}</view></block></view></view></block></view></scroll-view></view></view> |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/coupon-details/coupon-details"],{"31a2":function(n,t,e){"use strict";e.r(t);var o=e("856c"),c=e.n(o);for(var u in o)"default"!==u&&function(n){e.d(t,n,(function(){return o[n]}))}(u);t["default"]=c.a},"704b":function(n,t,e){"use strict";var o;e.d(t,"b",(function(){return c})),e.d(t,"c",(function(){return u})),e.d(t,"a",(function(){return o}));var c=function(){var n=this,t=n.$createElement;n._self._c},u=[]},"76b9":function(n,t,e){"use strict";e.r(t);var o=e("704b"),c=e("31a2");for(var u in c)"default"!==u&&function(n){e.d(t,n,(function(){return c[n]}))}(u);e("e879");var a,i=e("f0c5"),r=Object(i["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);t["default"]=r.exports},"856c":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=e("524d"),c={data:function(){return{couDesId:"",couponDesInfo:[]}},onLoad:function(n){this.couDesId=n.id,this.getUserCouponDetail()},filters:{formatDate:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",e=new Date(n),o=e.getFullYear(),c=e.getMonth()+1,u=e.getDate(),a=e.getHours(),i=e.getMinutes(),r=e.getSeconds();return c=c>10?c:"0"+c,u=u>10?u:"0"+u,a=a>10?a:"0"+a,i=i>10?i:"0"+i,r=r>10?r:"0"+r,"".concat(o).concat(t).concat(c).concat(t).concat(u," ").concat(a,":").concat(i,":").concat(r)}},methods:{getUserCouponDetail:function(){var t=this;n.showLoading({title:"加载中..."}),n.showLoading({});var e={couponId:this.couDesId};(0,o.getUserCouponDetail)(e).then((function(e){"000000"==e.return_code?(t.couponDesInfo=e.return_data,n.hideLoading()):n.hideLoading()}))},scan:function(){n.scanCode({success:function(n){console.log("条码类型:"+n.scanType),console.log("条码内容:"+n.result)}})}}};t.default=c}).call(this,e("543d")["default"])},bc39:function(n,t,e){"use strict";(function(n){e("185d");o(e("66fd"));var t=o(e("76b9"));function o(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},cc65:function(n,t,e){},e879:function(n,t,e){"use strict";var o=e("cc65"),c=e.n(o);c.a}},[["bc39","common/runtime","common/vendor"]]]); |
@ -0,0 +1,5 @@ |
||||
{ |
||||
"navigationBarTitleText": "卡券详情", |
||||
"enablePullDownRefresh": false, |
||||
"usingComponents": {} |
||||
} |
@ -0,0 +1 @@ |
||||
<view><view class="width100 fotct coupon-status font14 fcor41c">已使用</view><view class="line1"></view><view class="coupon-cont width90"><view class="flright fotct"><image class="coupon-img" src="../../../static/img/goods/oil.png"></image></view><view class="coupon-mes mart10"><view class="fcor333 fontwig6 font24 width100">{{couponDesInfo.couponName}}</view><view class="fcor666 font13 width100 mart5">获得时间:2020/12/02 13:12:21</view><view class="fcor666 font13 width100 mart5">使用时间:2020/12/03 23:23:22</view><view class="fcorred font15 width100 mart5">过期时间:2021/11/01 23:59:22</view></view></view><view class="line1 mart15"></view><view class="width90 mart10 fcor666">核销码(商户扫客户)</view><view class="width90 mart20 fotct"><image class="coupon-qr" src="../../../static/img/qr.png"></image></view><view class="width90 mart60" style="height:80px;"><view class="coupon-des flleft">立即<view class="_br"></view>前往</view><view class="coupon-cont-dh"><view class="coupon-title flleft width70"><view class="font20 fcor333 fontwig6 width100">重庆好利来大坪店</view><view class="font14 fcor999 width100 text2 mart5">长江二路2号(中国石化肖家湾加油站)</view></view><view class="coupon-map flright width30 fotrt"><image src="../../../static/img/goods/oil.png"></image><view class="mart5 fcor999 font13">2.28KM</view></view></view></view><view class="width90 mart20" style="height:80px;"><view class="coupon-des flleft">立即<view class="_br"></view>前往</view><view class="coupon-cont-dh"><view class="coupon-title flleft width70"><view class="font20 fcor333 fontwig6 width100">重庆好利来大坪店</view><view class="font14 fcor999 width100 text2 mart5">长江二路2号(中国石化肖家湾加油站)</view></view><view class="coupon-map flright width30 fotrt"><image src="../../../static/img/goods/oil.png"></image><view class="mart5 fcor999 font13">2.28KM</view></view></view></view><view class="width90 mart60" style="height:80px;"><view class="coupon-des flleft">立即<view class="_br"></view>前往</view><view class="coupon-cont-dh"><view class="coupon-title flleft width70"><view class="font20 fcor333 fontwig6 width100">重庆好利来大坪店</view><view class="font14 fcor999 width100 text2 mart5">长江二路2号(中国石化肖家湾加油站)</view></view><view class="coupon-map flright width30 fotrt"><image src="../../../static/img/goods/oil.png"></image><view class="mart5 fcor999 font13">2.28KM</view></view></view></view><view class="height60"></view><button data-event-opts="{{[['tap',[['scan',['$event']]]]]}}" class="coupne-btn width100" bindtap="__e">其他门店</button></view> |
@ -0,0 +1 @@ |
||||
.font12{font-size:12px}.font13{font-size:13px}.font14{font-size:14px}.font15{font-size:15px}.font16{font-size:16px}.font18{font-size:18px}.font20{font-size:20px}.font24{font-size:24px}.font28{font-size:28px}.fontwig6{font-weight:600}.fontspec{letter-spacing:1px}.linehet{line-height:20px}.fotlt{text-align:left}.fotrt{text-align:right}.fotct{text-align:center}.margle{margin-left:6px}.marglerig{margin-right:5px}.verc{vertical-align:middle}.versub{vertical-align:sub}.text1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.text2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.fcor333{color:#333}.fcorfff{color:#fff}.fcor666{color:#666}.fcor999{color:#b2b2b2}.fcor089{color:#089bf5}.fcoreb5{color:#eb5823}.fcorred{color:red}.fcor41c{color:#41cda2}.backcor9{background-color:#f6f6f6}.backcor89{background-color:#089bf5}.backcorfff{background-color:#fff}.backshare{background:transparent}.width90{width:90%;margin-left:5%}.width80{width:80%;margin-left:10%}.width70{width:70%}.width15{width:15%}.width50{width:50%}.width60{width:65%;margin-left:5%}.width30{width:30%}.width95{width:95%}.width100{width:100%}.bor-botm1{border-bottom:1px solid #f4f4f4}.height45{height:45px}.height40{height:40px}.height22{height:22px}.height100{height:100%}.height10{height:10px}.height60{height:60px}.height30{height:30px;line-height:30px}.height40{height:40px;line-height:40px}.height20{height:20px;line-height:20px}.height50{height:50px;line-height:50px}.mart90{margin-top:90px}.mart60{margin-top:60px}.mart50{margin-top:50px}.mart40{margin-top:40px}.mart30{margin-top:30px}.mart15{margin-top:15px}.mart20{margin-top:20px}.mart10{margin-top:10px}.mart5{margin-top:5px}.marb65{margin-bottom:65px}.marb50{margin-bottom:50px}.marb40{margin-bottom:40px}.marb30{margin-bottom:30px}.marb20{margin-bottom:20px}.marb10{margin-bottom:10px}.marb5{margin-bottom:5px}.paddtop10{padding-top:10px}.paading10{padding:10px}.paddtop13{padding-top:13px}.paddleft10{padding-left:10px}.padleft15{padding-left:15px}.paddtright10{padding-right:10px}.paddbotm10{padding-bottom:10px}.flleft{float:left}.flright{float:right}.btnw70{width:70%;color:#fff;margin-top:40px;background-color:#089bf5;border-radius:6px}.line1{height:1px;background-color:#f4f4f4}.line10{height:10px;background-color:#f4f4f4}.line1089{height:10px;background-color:#089bf5}.displ{display:inline-block}.coupon-status{height:35px;line-height:35px}.coupon-cont{height:130px}.coupon-mes{margin-right:90px}.coupon-img{width:80px;height:80px;margin-top:10px}.coupon-qr{width:150px;height:150px}.coupon-des{width:80px;height:80px;text-align:center;color:#fff;font-size:28px;border-radius:10px;background-color:red}.coupon-cont-dh{margin-left:90px}.coupon-map image{width:45px;height:45px}.coupon-no{height:80px;line-height:80px;border:1px solid #b2b2b2;border-radius:10px}.coupne-btn{position:fixed;bottom:0;background-color:red;color:#fff} |
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/goods-list/goods-list"],{1521:function(o,t,i){"use strict";var e=i("eeb3"),s=i.n(e);s.a},"1db2":function(o,t,i){"use strict";i.r(t);var e=i("322e"),s=i("20a1");for(var n in s)"default"!==n&&function(o){i.d(t,o,(function(){return s[o]}))}(n);i("1521");var r,d=i("f0c5"),a=Object(d["a"])(s["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],r);t["default"]=a.exports},"20a1":function(o,t,i){"use strict";i.r(t);var e=i("92ec"),s=i.n(e);for(var n in e)"default"!==n&&function(o){i.d(t,o,(function(){return e[o]}))}(n);t["default"]=s.a},"322e":function(o,t,i){"use strict";var e;i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return e}));var s=function(){var o=this,t=o.$createElement;o._self._c},n=[]},"92ec":function(o,t,i){"use strict";(function(o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={data:function(){return{goodsList:[{goods_id:0,img:"/static/img/goods/p1.jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"},{goods_id:1,img:"/static/img/goods/p2.jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"},{goods_id:2,img:"/static/img/goods/p3.jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"},{goods_id:3,img:"/static/img/goods/p4.jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"},{goods_id:4,img:"/static/img/goods/p5.jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"},{goods_id:5,img:"/static/img/goods/p6.jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"},{goods_id:6,img:"/static/img/goods/p7.jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"},{goods_id:7,img:"/static/img/goods/p8.jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"},{goods_id:8,img:"/static/img/goods/p9.jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"},{goods_id:9,img:"/static/img/goods/p10.jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"}],loadingText:"正在加载...",headerTop:"0px",headerPosition:"fixed",orderbyList:[{text:"销量",selected:!0,orderbyicon:!1,orderby:0},{text:"价格",selected:!1,orderbyicon:["sheng","jiang"],orderby:0},{text:"好评",selected:!1,orderbyicon:!1,orderby:0}],orderby:"sheng"}},onLoad:function(t){console.log(t.cid),o.setNavigationBarTitle({title:t.name})},onPageScroll:function(o){o.scrollTop>=0?this.headerPosition="fixed":this.headerPosition="absolute"},onPullDownRefresh:function(){var t=this;setTimeout((function(){t.reload(),o.stopPullDownRefresh()}),1e3)},onReachBottom:function(){o.showToast({title:"触发上拉加载"});var t=this.goodsList.length;if(t>=40)return this.loadingText="到底了",!1;this.loadingText="正在加载...";for(var i=this.goodsList[t-1].goods_id,e=1;e<=10;e++){var s=i+e,n={goods_id:s,img:"/static/img/goods/p"+(s%10==0?10:s%10)+".jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"};this.goodsList.push(n)}},methods:{reload:function(){console.log("reload");this.goodsList=[];for(var o=0,t=1;t<=10;t++){var i=o+t,e={goods_id:i,img:"/static/img/goods/p"+(i%10==0?10:i%10)+".jpg",name:"商品名称商品名称商品名称商品名称商品名称",price:"¥168",slogan:"1235人付款"};this.goodsList.push(e)}},toGoods:function(t){o.showToast({title:"商品"+t.goods_id,icon:"none"}),o.navigateTo({url:"../goods"})},select:function(t){var i=this.orderbyList[t].text+"排序 ";if(this.orderbyList[t].orderbyicon){var e=0==this.orderbyList[t].orderby?"升序":"降序";this.orderbyList[t].selected&&(e=0==this.orderbyList[t].orderby?"降序":"升序",this.orderbyList[t].orderby=0==this.orderbyList[t].orderby?1:0),i+=e}this.orderbyList[t].selected=!0;for(var s=this.orderbyList.length,n=0;n<s;n++)n!=t&&(this.orderbyList[n].selected=!1);o.showToast({title:i,icon:"none"})}}};t.default=i}).call(this,i("543d")["default"])},"9ac5":function(o,t,i){"use strict";(function(o){i("185d");e(i("66fd"));var t=e(i("1db2"));function e(o){return o&&o.__esModule?o:{default:o}}o(t.default)}).call(this,i("543d")["createPage"])},eeb3:function(o,t,i){}},[["9ac5","common/runtime","common/vendor"]]]); |
@ -0,0 +1,5 @@ |
||||
{ |
||||
"navigationBarTitleText": "", |
||||
"enablePullDownRefresh": true, |
||||
"usingComponents": {} |
||||
} |
@ -0,0 +1 @@ |
||||
<view><view class="place"></view><view class="goods-list"><view class="product-list"><block wx:for="{{goodsList}}" wx:for-item="goods" wx:for-index="__i0__" wx:key="goods_id"><view data-event-opts="{{[['tap',[['toGoods',['$0'],[[['goodsList','goods_id',goods.goods_id]]]]]]]}}" class="product" bindtap="__e"><image mode="widthFix" src="{{goods.img}}"></image><view class="name">{{goods.name}}</view><view class="info"><view class="price">{{goods.price}}</view><view class="slogan">{{goods.slogan}}</view></view></view></block></view><view class="loading-text">{{loadingText}}</view></view></view> |
@ -0,0 +1 @@ |
||||
.font12{font-size:12px}.font13{font-size:13px}.font14{font-size:14px}.font15{font-size:15px}.font16{font-size:16px}.font18{font-size:18px}.font20{font-size:20px}.font24{font-size:24px}.font28{font-size:28px}.fontwig6{font-weight:600}.fontspec{letter-spacing:1px}.linehet{line-height:20px}.fotlt{text-align:left}.fotrt{text-align:right}.fotct{text-align:center}.margle{margin-left:6px}.marglerig{margin-right:5px}.verc{vertical-align:middle}.versub{vertical-align:sub}.text1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.text2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.fcor333{color:#333}.fcorfff{color:#fff}.fcor666{color:#666}.fcor999{color:#b2b2b2}.fcor089{color:#089bf5}.fcoreb5{color:#eb5823}.fcorred{color:red}.fcor41c{color:#41cda2}.backcor9{background-color:#f6f6f6}.backcor89{background-color:#089bf5}.backcorfff{background-color:#fff}.backshare{background:transparent}.width90{width:90%;margin-left:5%}.width80{width:80%;margin-left:10%}.width70{width:70%}.width15{width:15%}.width50{width:50%}.width60{width:65%;margin-left:5%}.width30{width:30%}.width95{width:95%}.width100{width:100%}.bor-botm1{border-bottom:1px solid #f4f4f4}.height45{height:45px}.height40{height:40px}.height22{height:22px}.height100{height:100%}.height10{height:10px}.height60{height:60px}.height30{height:30px;line-height:30px}.height40{height:40px;line-height:40px}.height20{height:20px;line-height:20px}.height50{height:50px;line-height:50px}.mart90{margin-top:90px}.mart60{margin-top:60px}.mart50{margin-top:50px}.mart40{margin-top:40px}.mart30{margin-top:30px}.mart15{margin-top:15px}.mart20{margin-top:20px}.mart10{margin-top:10px}.mart5{margin-top:5px}.marb65{margin-bottom:65px}.marb50{margin-bottom:50px}.marb40{margin-bottom:40px}.marb30{margin-bottom:30px}.marb20{margin-bottom:20px}.marb10{margin-bottom:10px}.marb5{margin-bottom:5px}.paddtop10{padding-top:10px}.paading10{padding:10px}.paddtop13{padding-top:13px}.paddleft10{padding-left:10px}.padleft15{padding-left:15px}.paddtright10{padding-right:10px}.paddbotm10{padding-bottom:10px}.flleft{float:left}.flright{float:right}.btnw70{width:70%;color:#fff;margin-top:40px;background-color:#089bf5;border-radius:6px}.line1{height:1px;background-color:#f4f4f4}.line10{height:10px;background-color:#f4f4f4}.line1089{height:10px;background-color:#089bf5}.displ{display:inline-block}.icon{font-size:26rpx}.header{width:92%;padding:0 4%;height:79rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;position:fixed;top:0;z-index:10;background-color:#fff;border-bottom:solid 1rpx #eee}.header .target{width:20%;height:60rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:28rpx;margin-bottom:-2rpx;color:#aaa}.header .target.on{color:#555;border-bottom:4rpx solid #f06c7a;font-weight:600;font-size:30rpx}.place{background-color:#fff;height:100rpx}.goods-list .loading-text{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:60rpx;color:#979797;font-size:24rpx}.goods-list .product-list{width:92%;padding:0 4% 3vw 4%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-flex-wrap:wrap;flex-wrap:wrap}.goods-list .product-list .product{width:48%;border-radius:20rpx;background-color:#fff;margin:0 0 15rpx 0;box-shadow:0rpx 5rpx 25rpx rgba(0,0,0,.1)}.goods-list .product-list .product image{width:100%;border-radius:20rpx 20rpx 0 0}.goods-list .product-list .product .name{width:92%;padding:10rpx 4%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-align:justify;overflow:hidden;font-size:30rpx}.goods-list .product-list .product .info{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;width:92%;padding:10rpx 4% 10rpx 4%}.goods-list .product-list .product .info .price{color:#e65339;font-size:30rpx;font-weight:600}.goods-list .product-list .product .info .slogan{color:#807c87;font-size:24rpx} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,8 @@ |
||||
{ |
||||
"navigationBarTitleText": "", |
||||
"navigationBarBackgroundColor": "#f1f1f1", |
||||
"onReachBottomDistance": 50, |
||||
"usingComponents": { |
||||
"authorize": "/components/Authorize" |
||||
} |
||||
} |
@ -0,0 +1 @@ |
||||
<view><view class="footer"><block wx:if="{{user.phone==null}}"><button class="width100 fotct btnfot" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e">立即购买</button></block><block wx:else><button data-event-opts="{{[['tap',[['buy',['$event']]]]]}}" class="width100 fotct btnfot" bindtap="__e">立即购买</button></block></view><view class="swiper-box"><swiper circular="true" autoplay="true" data-event-opts="{{[['change',[['swiperChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{swiperList}}" wx:for-item="swiper" wx:for-index="__i0__" wx:key="id"><swiper-item><image src="{{imageUrl+swiper}}"></image></swiper-item></block></swiper><view class="indicator">{{currentSwiper+1+"/"+swiperList.length}}</view></view><view class="info-box goods-info"><view class="price">{{"¥"+goodsData[0].discountPrice+''}}<block wx:if="{{goodsData[0].discountPrice!=goodsData[0].salesPrice}}"><text class="zprice font14 fcor666">{{"¥"+goodsData[0].salesPrice}}</text></block></view><view class="title">{{''+goodsData[0].couponName+''}}</view><view class="mart10 width100"><view class="font14 fcor666">{{"库存 : "+goodsData[0].stockCount+"件"}}</view></view></view><view data-event-opts="{{[['tap',[['jumpstore',['$event']]]]]}}" class="info-box spec" bindtap="__e"><view class="row"><view class="text">门店列表</view><view class="arrow"><view class="icon xiangyou"></view></view></view></view><block wx:if="{{goodsData[0].handselCouponList!=''}}"><view class="description"><view class="title">———— 赠送卡券 ————</view><view class="product-list mart15"><block wx:for="{{goodsData[0].handselCouponList}}" wx:for-item="product" wx:for-index="__i1__" wx:key="id"><view data-event-opts="{{[['tap',[['toGoods',['$0'],[[['goodsData.__$n0.handselCouponList','id',product.id,'id']]]]]]]}}" class="product" bindtap="__e"><image mode="widthFix" src="{{imageUrl+product.highCouponModel.couponImg}}"></image><view class="name">{{product.highCouponModel.couponName}}</view><view class="info"><view class="price">{{"¥"+product.highCouponModel.discountPrice}}</view><block wx:if="{{product.highCouponModel.discountPrice!==product.highCouponModel.salesPrice}}"><view class="slogan">{{'¥'+product.highCouponModel.salesPrice}}</view></block></view></view></block></view></view></block><view class="description"><view class="title">———— 商品详情 ————</view><view class="content marb65"><rich-text nodes="{{descriptionStr}}"></rich-text></view></view><authorize vue-id="576f0adc-1" bind:__l="__l"></authorize></view> |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/ratings/ratings"],{"05a2":function(e,t,n){},"5e99":function(e,t,n){"use strict";n.r(t);var a=n("d6f1"),i=n("8977");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n("6ab1");var c,s=n("f0c5"),d=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],c);t["default"]=d.exports},6648:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{labelList:[{name:"全部",number:25,type:"all"},{name:"好评",number:23,type:"good"},{name:"中评",number:1,type:"secondary"},{name:"差评",number:1,type:"poor"},{name:"有图",number:12,type:"img"},{name:"视频",number:2,type:"video"},{name:"追加",number:2,type:"append"}],labelIndex:0,ratingsList:[{id:1,username:"大黑哥",face:"/static/img/face.jpg",date:"2019-04-21",spec:"规格: XL",grade:"good",first:{content:"好看,可以,不愧是专业的,才拿到手上就研究了半天才装上",img:["https://ae01.alicdn.com/kf/HTB1wREwTXzqK1RjSZFvq6AB7VXaT.jpg","https://ae01.alicdn.com/kf/HTB1sL7hTjDpK1RjSZFrq6y78VXaw.jpg","https://ae01.alicdn.com/kf/HTB111soTbvpK1RjSZPiq6zmwXXaB.jpg","https://ae01.alicdn.com/kf/HTB1O2TRTmzqK1RjSZPcq6zTepXa4.jpg"],video:[{img:"https://ae01.alicdn.com/kf/HTB1AMEBTcfpK1RjSZFOq6y6nFXaK.jpg",path:"https://mp4.vjshi.com/2018-12-28/1083f3db90334f86e3fc3586b4472914.mp4"}]},append:{date:65,content:"用了一段时间,质量很好,体验很流畅,推荐购买",img:["https://ae01.alicdn.com/kf/HTB1dKZtTgHqK1RjSZFEq6AGMXXaS.jpg","https://ae01.alicdn.com/kf/HTB18h3oTmzqK1RjSZFjq6zlCFXap.jpg"],video:[{img:"https://ae01.alicdn.com/kf/HTB1AMEBTcfpK1RjSZFOq6y6nFXaK.jpg",path:"https://mp4.vjshi.com/2017-06-17/ed1d63669bea39f5ef078c4e194291d6.mp4"}]}},{id:2,username:"小黑狗",face:"/static/img/face.jpg",date:"2019-04-21",spec:"规格: XL",grade:"secondary",first:{content:"好评,看图",img:["https://ae01.alicdn.com/kf/HTB111soTbvpK1RjSZPiq6zmwXXaB.jpg","https://ae01.alicdn.com/kf/HTB1O2TRTmzqK1RjSZPcq6zTepXa4.jpg"],video:[]}},{id:3,username:"小黑狗",face:"/static/img/face.jpg",date:"2019-04-21",spec:"规格: XL",grade:"poor",first:{content:"好评,看图",img:["https://ae01.alicdn.com/kf/HTB111soTbvpK1RjSZPiq6zmwXXaB.jpg","https://ae01.alicdn.com/kf/HTB1O2TRTmzqK1RjSZPcq6zTepXa4.jpg"],video:[]}},{id:3,username:"小黑狗",face:"/static/img/face.jpg",date:"2019-04-21",spec:"规格: XL",grade:"secondary",first:{content:"系统默认好评",img:[],video:[]}}],videoDirection:0,showFullscreenBtn:!0,showPlayBtn:!0,isPlayVideo:!0,videoSrc:""}},onReady:function(t){this.videoContext=e.createVideoContext("myVideo")},onPullDownRefresh:function(){setTimeout((function(){e.stopPullDownRefresh()}),1e3)},onReachBottom:function(){e.showToast({title:"触发上拉加载"})},methods:{loadRatings:function(t){this.labelIndex=t,e.showToast({title:"切换评论列表"})},playVideo:function(e){this.videoSrc=e,this.$nextTick((function(){this.videoContext.requestFullScreen({direction:0})}))},stopPlayVideo:function(){this.videoContext.pause()},videoPause:function(){this.videoSrc=""},viderFullscreen:function(e){e.detail.fullScreen?this.videoContext.play():this.stopPlayVideo()},showBigImg:function(t,n){e.previewImage({current:t,urls:n})}}};t.default=n}).call(this,n("543d")["default"])},"6ab1":function(e,t,n){"use strict";var a=n("05a2"),i=n.n(a);i.a},"7f0f":function(e,t,n){"use strict";(function(e){n("185d");a(n("66fd"));var t=a(n("5e99"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},8977:function(e,t,n){"use strict";n.r(t);var a=n("6648"),i=n.n(a);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=i.a},d6f1:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var i=function(){var e=this,t=e.$createElement;e._self._c},o=[]}},[["7f0f","common/runtime","common/vendor"]]]); |
@ -0,0 +1,8 @@ |
||||
{ |
||||
"navigationBarTitleText": "商品评论", |
||||
"enablePullDownRefresh": true, |
||||
"onReachBottomDistance": 50, |
||||
"backgroundColorTop": "#ffffff", |
||||
"backgroundColorBottom": "#ffffff", |
||||
"usingComponents": {} |
||||
} |
@ -0,0 +1 @@ |
||||
<view><video hidden="{{!(isPlayVideo)}}" class="myVideo" id="myVideo" src="{{videoSrc}}" show-fullscreen-btn="{{showFullscreenBtn}}" direction="{{videoDirection}}" show-play-btn="{{showPlayBtn}}" data-event-opts="{{[['pause',[['videoPause',['$event']]]],['fullscreenchange',[['viderFullscreen',['$event']]]]]}}" bindpause="__e" bindfullscreenchange="__e"><cover-image class="stopPlayVideoBtn" src="/static/img/close.png" data-event-opts="{{[['tap',[['stopPlayVideo',['$event']]]]]}}" bindtap="__e"></cover-image></video><view class="content"><view class="label"><block wx:for="{{labelList}}" wx:for-item="label" wx:for-index="index" wx:key="type"><view data-event-opts="{{[['tap',[['loadRatings',[index]]]]]}}" class="{{[(index==labelIndex)?'on':'']}}" bindtap="__e">{{''+label.name+"("+label.number+')'}}</view></block></view><view class="list"><block wx:for="{{ratingsList}}" wx:for-item="row" wx:for-index="Rindex" wx:key="Rindex"><view class="row"><view class="left"><view class="face"><image src="{{row.face}}"></image></view></view><view class="right"><view class="name-date"><view class="username">{{''+row.username+''}}</view><view class="date">{{''+row.date+''}}</view></view><view class="spec">{{''+row.spec+''}}</view><view class="first"><view class="rat">{{''+row.first.content+''}}</view><view class="img-video"><block wx:for="{{row.first.video}}" wx:for-item="item" wx:for-index="__i0__" wx:key="path"><view data-event-opts="{{[['tap',[['playVideo',['$0'],[[['ratingsList','',Rindex],['first.video','path',item.path,'path']]]]]]]}}" class="box" bindtap="__e"><image mode="aspectFill" src="{{item.img}}"></image><view class="playbtn"><view class="icon bofang"></view></view></view></block><block wx:for="{{row.first.img}}" wx:for-item="item" wx:for-index="__i1__" wx:key="*this"><view data-event-opts="{{[['tap',[['showBigImg',['$0','$1'],[[['ratingsList','',Rindex],['first.img','',__i1__]],[['ratingsList','',Rindex,'first.img']]]]]]]}}" class="box" bindtap="__e"><image mode="aspectFill" src="{{item}}"></image></view></block></view></view><block wx:if="{{row.append}}"><view class="append"><view class="date">{{''+row.append.date+'天后追加'}}</view><view class="rat">{{''+row.append.content+''}}</view><view class="img-video"><block wx:for="{{row.append.video}}" wx:for-item="item" wx:for-index="__i2__" wx:key="path"><view data-event-opts="{{[['tap',[['playVideo',['$0'],[[['ratingsList','',Rindex],['append.video','path',item.path,'path']]]]]]]}}" class="box" bindtap="__e"><image mode="aspectFill" src="{{item.img}}"></image><view class="playbtn"><view class="icon bofang"></view></view></view></block><block wx:for="{{row.append.img}}" wx:for-item="item" wx:for-index="__i3__" wx:key="*this"><view data-event-opts="{{[['tap',[['showBigImg',['$0','$1'],[[['ratingsList','',Rindex],['append.img','',__i3__]],[['ratingsList','',Rindex,'append.img']]]]]]]}}" class="box" bindtap="__e"><image mode="aspectFill" src="{{item}}"></image></view></block></view></view></block></view></view></block></view></view></view> |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/recording/recording"],{"07b6":function(t,e,n){"use strict";var o=n("387d"),r=n.n(o);r.a},"08f6":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.recordInfo,(function(e,n){var o=t.__get_orig(e),r=t._f("formatDate")(e.createTime,"-");return{$orig:o,f0:r}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},a=[]},"387d":function(t,e,n){},4248:function(t,e,n){"use strict";n.r(e);var o=n("08f6"),r=n("73ec");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("07b6");var c,i=n("f0c5"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);e["default"]=u.exports},"73ec":function(t,e,n){"use strict";n.r(e);var o=n("8315"),r=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},8315:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("524d"),r={data:function(){return{typeId:"",recordInfo:[]}},onLoad:function(e){this.typeId=e.id,1==this.typeId?t.setNavigationBarTitle({title:"充值记录"}):t.setNavigationBarTitle({title:"消费记录"}),this.getUserGoldRecLists()},filters:{formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=new Date(t),o=n.getFullYear(),r=n.getMonth()+1,a=n.getDate(),c=n.getHours(),i=n.getMinutes(),u=n.getSeconds();return r=r>10?r:"0"+r,a=a>10?a:"0"+a,c=c>10?c:"0"+c,i=i>10?i:"0"+i,u=u>10?u:"0"+u,"".concat(o).concat(e).concat(r).concat(e).concat(a," ").concat(c,":").concat(i,":").concat(u)}},methods:{getUserGoldRecLists:function(){var e=this;t.showLoading({title:"加载中"});var n={goldType:this.typeId,pageNum:1,pageSize:10};(0,o.getUserGoldRecList)(n).then((function(n){"000000"==n.return_code?(t.hideLoading(),e.recordInfo=n.return_data.list):t.showToast({title:n.return_msg,icon:"none"})}))}}};e.default=r}).call(this,n("543d")["default"])},fa3c:function(t,e,n){"use strict";(function(t){n("185d");o(n("66fd"));var e=o(n("4248"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["fa3c","common/runtime","common/vendor"]]]); |
@ -0,0 +1,4 @@ |
||||
{ |
||||
"enablePullDownRefresh": false, |
||||
"usingComponents": {} |
||||
} |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
||||
.font12{font-size:12px}.font13{font-size:13px}.font14{font-size:14px}.font15{font-size:15px}.font16{font-size:16px}.font18{font-size:18px}.font20{font-size:20px}.font24{font-size:24px}.font28{font-size:28px}.fontwig6{font-weight:600}.fontspec{letter-spacing:1px}.linehet{line-height:20px}.fotlt{text-align:left}.fotrt{text-align:right}.fotct{text-align:center}.margle{margin-left:6px}.marglerig{margin-right:5px}.verc{vertical-align:middle}.versub{vertical-align:sub}.text1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.text2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.fcor333{color:#333}.fcorfff{color:#fff}.fcor666{color:#666}.fcor999{color:#b2b2b2}.fcor089{color:#089bf5}.fcoreb5{color:#eb5823}.fcorred{color:red}.fcor41c{color:#41cda2}.backcor9{background-color:#f6f6f6}.backcor89{background-color:#089bf5}.backcorfff{background-color:#fff}.backshare{background:transparent}.width90{width:90%;margin-left:5%}.width80{width:80%;margin-left:10%}.width70{width:70%}.width15{width:15%}.width50{width:50%}.width60{width:65%;margin-left:5%}.width30{width:30%}.width95{width:95%}.width100{width:100%}.bor-botm1{border-bottom:1px solid #f4f4f4}.height45{height:45px}.height40{height:40px}.height22{height:22px}.height100{height:100%}.height10{height:10px}.height60{height:60px}.height30{height:30px;line-height:30px}.height40{height:40px;line-height:40px}.height20{height:20px;line-height:20px}.height50{height:50px;line-height:50px}.mart90{margin-top:90px}.mart60{margin-top:60px}.mart50{margin-top:50px}.mart40{margin-top:40px}.mart30{margin-top:30px}.mart15{margin-top:15px}.mart20{margin-top:20px}.mart10{margin-top:10px}.mart5{margin-top:5px}.marb65{margin-bottom:65px}.marb50{margin-bottom:50px}.marb40{margin-bottom:40px}.marb30{margin-bottom:30px}.marb20{margin-bottom:20px}.marb10{margin-bottom:10px}.marb5{margin-bottom:5px}.paddtop10{padding-top:10px}.paading10{padding:10px}.paddtop13{padding-top:13px}.paddleft10{padding-left:10px}.padleft15{padding-left:15px}.paddtright10{padding-right:10px}.paddbotm10{padding-bottom:10px}.flleft{float:left}.flright{float:right}.btnw70{width:70%;color:#fff;margin-top:40px;background-color:#089bf5;border-radius:6px}.line1{height:1px;background-color:#f4f4f4}.line10{height:10px;background-color:#f4f4f4}.line1089{height:10px;background-color:#089bf5}.displ{display:inline-block}page{background-color:#f8f8f9}.bordr{border-top:1px solid #fcfcfc}.height60{height:60px;line-height:60px}.pictime{margin-left:20px}.arrow{width:8px;height:8px;border-top:2px solid #999;border-right:2px solid #999;position:absolute;left:30%;top:22px;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.line1f2{width:100%;height:1px;background-color:#f2f2f2} |
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/store-list/store-details"],{"3e42":function(t,n,e){},"636c":function(t,n,e){"use strict";var u;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return u}));var a=function(){var t=this,n=t.$createElement;t._self._c},o=[]},a079:function(t,n,e){"use strict";e.r(n);var u=e("636c"),a=e("f19b");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("b915");var r,c=e("f0c5"),i=Object(c["a"])(a["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],r);n["default"]=i.exports},b05a:function(t,n,e){"use strict";(function(t){e("185d");u(e("66fd"));var n=u(e("a079"));function u(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},b915:function(t,n,e){"use strict";var u=e("3e42"),a=e.n(u);a.a},b976:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{}},methods:{jumpCoupondes:function(){t.navigateTo({url:"../coupon-details/coupon-details"})}}};n.default=e}).call(this,e("543d")["default"])},f19b:function(t,n,e){"use strict";e.r(n);var u=e("b976"),a=e.n(u);for(var o in u)"default"!==o&&function(t){e.d(n,t,(function(){return u[t]}))}(o);n["default"]=a.a}},[["b05a","common/runtime","common/vendor"]]]); |
@ -0,0 +1,5 @@ |
||||
{ |
||||
"navigationBarTitleText": "门店详情", |
||||
"enablePullDownRefresh": false, |
||||
"usingComponents": {} |
||||
} |
@ -0,0 +1 @@ |
||||
<view><view class="width90 mart20" style="height:80px;"><view class="store-des flleft">立即<view class="_br"></view>前往</view><view class="store-cont"><view class="store-title flleft width70"><view class="font20 fcor333 fontwig6 width100">重庆好利来大坪店</view><view class="font14 fcor999 width100 text2 mart5">长江二路2号(中国石化肖家湾加油站)</view></view><view class="store-map flright width30 fotrt"><image src="../../../static/img/goods/oil.png"></image><view class="mart5 fcor999 font13">2.28KM</view></view></view></view><view class="line1 mart15 marb40"></view><view class="width90 store-list mart10"><view class="width100" style="height:72px;"><view class="flleft width70"><view class="width90 fcor333 font15 mart5">中石化150元加油码</view><view class="width90 fcor333 font13 mart5">验证码:79SF97FSDSFSFS08</view><view class="width90 fcorred font14 mart5">过期时间:2021/12/21 20:00:00</view></view><view class="flleft width30 mart10 fotct"><image src="../../../static/img/goods/oil.png"></image></view></view><view class="width90"><button data-event-opts="{{[['tap',[['jumpCoupondes',['$event']]]]]}}" class="store-jdes flleft mart5" bindtap="__e">查看详情</button><view class="store-ims fcorred font13 fotrt paddtop13">加油站可直接扫码或者查看详情</view></view></view><view class="width90 store-list mart10"><view class="width100" style="height:72px;"><view class="flleft width70"><view class="width90 fcor333 font15 mart5">中石化150元加油码</view><view class="width90 fcor333 font13 mart5">验证码:79SF97FSDSFSFS08</view><view class="width90 fcorred font14 mart5">过期时间:2021/12/21 20:00:00</view></view><view class="flleft width30 mart10 fotct"><image src="../../../static/img/goods/oil.png"></image></view></view><view class="width90"><button data-event-opts="{{[['tap',[['jumpCoupondes',['$event']]]]]}}" class="store-jdes flleft mart5" bindtap="__e">查看详情</button><view class="store-ims fcorred font13 fotrt paddtop13">加油站可直接扫码或者查看详情</view></view></view><view class="width90 store-list mart10"><view class="width100" style="height:72px;"><view class="flleft width70"><view class="width90 fcor333 font15 mart5">中石化150元加油码</view><view class="width90 fcor333 font13 mart5">验证码:79SF97FSDSFSFS08</view><view class="width90 fcorred font14 mart5">过期时间:2021/12/21 20:00:00</view></view><view class="flleft width30 mart10 fotct"><image src="../../../static/img/goods/oil.png"></image></view></view><view class="width90"><button data-event-opts="{{[['tap',[['jumpCoupondes',['$event']]]]]}}" class="store-jdes flleft mart5" bindtap="__e">查看详情</button><view class="store-ims fcorred font13 fotrt paddtop13">加油站可直接扫码或者查看详情</view></view></view></view> |
@ -0,0 +1 @@ |
||||
.font12{font-size:12px}.font13{font-size:13px}.font14{font-size:14px}.font15{font-size:15px}.font16{font-size:16px}.font18{font-size:18px}.font20{font-size:20px}.font24{font-size:24px}.font28{font-size:28px}.fontwig6{font-weight:600}.fontspec{letter-spacing:1px}.linehet{line-height:20px}.fotlt{text-align:left}.fotrt{text-align:right}.fotct{text-align:center}.margle{margin-left:6px}.marglerig{margin-right:5px}.verc{vertical-align:middle}.versub{vertical-align:sub}.text1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.text2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.fcor333{color:#333}.fcorfff{color:#fff}.fcor666{color:#666}.fcor999{color:#b2b2b2}.fcor089{color:#089bf5}.fcoreb5{color:#eb5823}.fcorred{color:red}.fcor41c{color:#41cda2}.backcor9{background-color:#f6f6f6}.backcor89{background-color:#089bf5}.backcorfff{background-color:#fff}.backshare{background:transparent}.width90{width:90%;margin-left:5%}.width80{width:80%;margin-left:10%}.width70{width:70%}.width15{width:15%}.width50{width:50%}.width60{width:65%;margin-left:5%}.width30{width:30%}.width95{width:95%}.width100{width:100%}.bor-botm1{border-bottom:1px solid #f4f4f4}.height45{height:45px}.height40{height:40px}.height22{height:22px}.height100{height:100%}.height10{height:10px}.height60{height:60px}.height30{height:30px;line-height:30px}.height40{height:40px;line-height:40px}.height20{height:20px;line-height:20px}.height50{height:50px;line-height:50px}.mart90{margin-top:90px}.mart60{margin-top:60px}.mart50{margin-top:50px}.mart40{margin-top:40px}.mart30{margin-top:30px}.mart15{margin-top:15px}.mart20{margin-top:20px}.mart10{margin-top:10px}.mart5{margin-top:5px}.marb65{margin-bottom:65px}.marb50{margin-bottom:50px}.marb40{margin-bottom:40px}.marb30{margin-bottom:30px}.marb20{margin-bottom:20px}.marb10{margin-bottom:10px}.marb5{margin-bottom:5px}.paddtop10{padding-top:10px}.paading10{padding:10px}.paddtop13{padding-top:13px}.paddleft10{padding-left:10px}.padleft15{padding-left:15px}.paddtright10{padding-right:10px}.paddbotm10{padding-bottom:10px}.flleft{float:left}.flright{float:right}.btnw70{width:70%;color:#fff;margin-top:40px;background-color:#089bf5;border-radius:6px}.line1{height:1px;background-color:#f4f4f4}.line10{height:10px;background-color:#f4f4f4}.line1089{height:10px;background-color:#089bf5}.displ{display:inline-block}.store-des{width:80px;height:80px;text-align:center;color:#fff;font-size:28px;border-radius:10px;background-color:red}.store-cont{margin-left:90px}.store-map image{width:45px;height:45px}.store-no{height:80px;line-height:80px;border:1px solid #b2b2b2;border-radius:10px}.store-list{height:120px;border:1px solid #b2b2b2;border-radius:5px}.store-list image{width:60px;height:60px}.store-jdes{width:70px;height:30px;line-height:30px;background-color:#eb5823;color:#fff;font-size:12px;padding:0}.store-ims{margin-left:75px} |
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/store-list/store-list"],{4953:function(t,e,n){"use strict";n.r(e);var o=n("96e2"),u=n("d481");for(var r in u)"default"!==r&&function(t){n.d(e,t,(function(){return u[t]}))}(r);n("6ccb");var a,i=n("f0c5"),c=Object(i["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);e["default"]=c.exports},"6ccb":function(t,e,n){"use strict";var o=n("bbfb"),u=n.n(o);u.a},"756d":function(t,e,n){"use strict";(function(t){n("185d");o(n("66fd"));var e=o(n("4953"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"91ea":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("524d"),u=getApp(),r={data:function(){return{storeList:[],storeId:"",imageUrl:u.globalData.imgUrl}},onLoad:function(t){this.storeId=t.id,this.getStoreListByCoupon()},methods:{getStoreListByCoupon:function(){var t=this,e={couponId:this.storeId,pageNum:1,pageSize:10};(0,o.getStoreListByCoupon)(e).then((function(e){"000000"==e.return_code&&(t.storeList=e.return_data)}))},seeloaction:function(e){t.openLocation({latitude:Number(e.latitude),longitude:Number(e.longitude),name:e.storeName,address:e.address})},jumpdetails:function(){t.navigateTo({url:"store-details"})}}};e.default=r}).call(this,n("543d")["default"])},"96e2":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var u=function(){var t=this,e=t.$createElement;t._self._c},r=[]},bbfb:function(t,e,n){},d481:function(t,e,n){"use strict";n.r(e);var o=n("91ea"),u=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=u.a}},[["756d","common/runtime","common/vendor"]]]); |
@ -0,0 +1,5 @@ |
||||
{ |
||||
"navigationBarTitleText": "门店列表", |
||||
"enablePullDownRefresh": false, |
||||
"usingComponents": {} |
||||
} |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
||||
.font12{font-size:12px}.font13{font-size:13px}.font14{font-size:14px}.font15{font-size:15px}.font16{font-size:16px}.font18{font-size:18px}.font20{font-size:20px}.font24{font-size:24px}.font28{font-size:28px}.fontwig6{font-weight:600}.fontspec{letter-spacing:1px}.linehet{line-height:20px}.fotlt{text-align:left}.fotrt{text-align:right}.fotct{text-align:center}.margle{margin-left:6px}.marglerig{margin-right:5px}.verc{vertical-align:middle}.versub{vertical-align:sub}.text1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.text2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.fcor333{color:#333}.fcorfff{color:#fff}.fcor666{color:#666}.fcor999{color:#b2b2b2}.fcor089{color:#089bf5}.fcoreb5{color:#eb5823}.fcorred{color:red}.fcor41c{color:#41cda2}.backcor9{background-color:#f6f6f6}.backcor89{background-color:#089bf5}.backcorfff{background-color:#fff}.backshare{background:transparent}.width90{width:90%;margin-left:5%}.width80{width:80%;margin-left:10%}.width70{width:70%}.width15{width:15%}.width50{width:50%}.width60{width:65%;margin-left:5%}.width30{width:30%}.width95{width:95%}.width100{width:100%}.bor-botm1{border-bottom:1px solid #f4f4f4}.height45{height:45px}.height40{height:40px}.height22{height:22px}.height100{height:100%}.height10{height:10px}.height60{height:60px}.height30{height:30px;line-height:30px}.height40{height:40px;line-height:40px}.height20{height:20px;line-height:20px}.height50{height:50px;line-height:50px}.mart90{margin-top:90px}.mart60{margin-top:60px}.mart50{margin-top:50px}.mart40{margin-top:40px}.mart30{margin-top:30px}.mart15{margin-top:15px}.mart20{margin-top:20px}.mart10{margin-top:10px}.mart5{margin-top:5px}.marb65{margin-bottom:65px}.marb50{margin-bottom:50px}.marb40{margin-bottom:40px}.marb30{margin-bottom:30px}.marb20{margin-bottom:20px}.marb10{margin-bottom:10px}.marb5{margin-bottom:5px}.paddtop10{padding-top:10px}.paading10{padding:10px}.paddtop13{padding-top:13px}.paddleft10{padding-left:10px}.padleft15{padding-left:15px}.paddtright10{padding-right:10px}.paddbotm10{padding-bottom:10px}.flleft{float:left}.flright{float:right}.btnw70{width:70%;color:#fff;margin-top:40px;background-color:#089bf5;border-radius:6px}.line1{height:1px;background-color:#f4f4f4}.line10{height:10px;background-color:#f4f4f4}.line1089{height:10px;background-color:#089bf5}.displ{display:inline-block}.store-head{height:80px;border-bottom:1px solid #f4f4f4}.store-head image{width:60px;height:60px}.storefig{margin-left:70px}.store-cont-le{width:80%}.store-cont-rg{width:20%}.store-cont-rg image{width:30px;height:30px}.store-title{font-weight:600}.store-labl{border:1px solid #f5f5f5;box-shadow:0 0 2px 0} |
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"059e":function(e,n,o){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;i(o("cd20"));var t=o("524d");function i(e){return e&&e.__esModule?e:{default:e}}var r=getApp(),s={data:function(){return{phoneNumber:"",passwd:"",isShowOauth:!1,showProvider:{weixin:!1,qq:!1,sinaweibo:!1,xiaomi:!1}}},onShow:function(){},onLoad:function(){this.getProvider()},methods:{oauthLogin:function(n){e.showLoading(),e.login({provider:n,success:function(o){console.log("success: "+JSON.stringify(o)),e.getUserInfo({provider:n,success:function(n){console.log("用户信息:"+JSON.stringify(n.userInfo)),e.setStorage({key:"UserInfo",data:{username:n.userInfo.nickName,face:n.userInfo.avatarUrl,signature:"个性签名",integral:0,balance:0,envelope:0},success:function(){e.hideLoading(),e.showToast({title:"登录成功",icon:"success"}),setTimeout((function(){e.navigateBack()}),300)}})}})},fail:function(e){console.log("fail: "+JSON.stringify(e))}})},getProvider:function(){var n=this;e.getProvider({service:"oauth",success:function(e){for(var o=e.provider.length,t=0;t<o;t++)n.showProvider[e.provider[t]]=!0;0==e.provider.length&&(n.isShowOauth=!1)}})},toPage:function(n){e.hideKeyboard(),e.navigateTo({url:n})},doLogin:function(){if(e.hideKeyboard(),""==this.phoneNumber)return e.showToast({title:"请填写账号",icon:"none"}),!1;if(""==this.passwd)return e.showToast({title:"请填写密码",icon:"none"}),!1;e.showLoading({title:"登录中..."});var n={loginName:this.phoneNumber,password:this.passwd};(0,t.userLogin)(n).then((function(n){"000000"==n.return_code?(e.hideLoading(),e.navigateTo({url:"../user/business/business"}),r.globalData.brestUserInfo=n.return_data.object.secUser,r.globalData.brestToken=n.return_data.uniqueCode):(e.hideLoading(),e.showToast({title:n.return_msg,icon:"none"}))}))}}};n.default=s}).call(this,o("543d")["default"])},"233e":function(e,n,o){},"380c":function(e,n,o){"use strict";o.r(n);var t=o("8ffe"),i=o("b61e");for(var r in i)"default"!==r&&function(e){o.d(n,e,(function(){return i[e]}))}(r);o("fbcd");var s,a=o("f0c5"),u=Object(a["a"])(i["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],s);n["default"]=u.exports},"8ffe":function(e,n,o){"use strict";var t;o.d(n,"b",(function(){return i})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){return t}));var i=function(){var e=this,n=e.$createElement;e._self._c},r=[]},b61e:function(e,n,o){"use strict";o.r(n);var t=o("059e"),i=o.n(t);for(var r in t)"default"!==r&&function(e){o.d(n,e,(function(){return t[e]}))}(r);n["default"]=i.a},e5b5:function(e,n,o){"use strict";(function(e){o("185d");t(o("66fd"));var n=t(o("380c"));function t(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,o("543d")["createPage"])},fbcd:function(e,n,o){"use strict";var t=o("233e"),i=o.n(t);i.a}},[["e5b5","common/runtime","common/vendor"]]]); |
@ -0,0 +1,6 @@ |
||||
{ |
||||
"navigationBarTitleText": "门店登录", |
||||
"navigationBarBackgroundColor": "#f06c7a", |
||||
"navigationBarTextStyle": "white", |
||||
"usingComponents": {} |
||||
} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@ |
||||
.font12{font-size:12px}.font13{font-size:13px}.font14{font-size:14px}.font15{font-size:15px}.font16{font-size:16px}.font18{font-size:18px}.font20{font-size:20px}.font24{font-size:24px}.font28{font-size:28px}.fontwig6{font-weight:600}.fontspec{letter-spacing:1px}.linehet{line-height:20px}.fotlt{text-align:left}.fotrt{text-align:right}.fotct{text-align:center}.margle{margin-left:6px}.marglerig{margin-right:5px}.verc{vertical-align:middle}.versub{vertical-align:sub}.text1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.text2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.fcor333{color:#333}.fcorfff{color:#fff}.fcor666{color:#666}.fcor999{color:#b2b2b2}.fcor089{color:#089bf5}.fcoreb5{color:#eb5823}.fcorred{color:red}.fcor41c{color:#41cda2}.backcor9{background-color:#f6f6f6}.backcor89{background-color:#089bf5}.backcorfff{background-color:#fff}.backshare{background:transparent}.width90{width:90%;margin-left:5%}.width80{width:80%;margin-left:10%}.width70{width:70%}.width15{width:15%}.width50{width:50%}.width60{width:65%;margin-left:5%}.width30{width:30%}.width95{width:95%}.width100{width:100%}.bor-botm1{border-bottom:1px solid #f4f4f4}.height45{height:45px}.height40{height:40px}.height22{height:22px}.height100{height:100%}.height10{height:10px}.height60{height:60px}.height30{height:30px;line-height:30px}.height40{height:40px;line-height:40px}.height20{height:20px;line-height:20px}.height50{height:50px;line-height:50px}.mart90{margin-top:90px}.mart60{margin-top:60px}.mart50{margin-top:50px}.mart40{margin-top:40px}.mart30{margin-top:30px}.mart15{margin-top:15px}.mart20{margin-top:20px}.mart10{margin-top:10px}.mart5{margin-top:5px}.marb65{margin-bottom:65px}.marb50{margin-bottom:50px}.marb40{margin-bottom:40px}.marb30{margin-bottom:30px}.marb20{margin-bottom:20px}.marb10{margin-bottom:10px}.marb5{margin-bottom:5px}.paddtop10{padding-top:10px}.paading10{padding:10px}.paddtop13{padding-top:13px}.paddleft10{padding-left:10px}.padleft15{padding-left:15px}.paddtright10{padding-right:10px}.paddbotm10{padding-bottom:10px}.flleft{float:left}.flright{float:right}.btnw70{width:70%;color:#fff;margin-top:40px;background-color:#089bf5;border-radius:6px}.line1{height:1px;background-color:#f4f4f4}.line10{height:10px;background-color:#f4f4f4}.line1089{height:10px;background-color:#089bf5}.displ{display:inline-block}page{background:-webkit-linear-gradient(top,#f06c7a,#f06c7a);background:linear-gradient(180deg,#f06c7a 0,#f06c7a);height:100%}.icon{color:#fff}.logo{width:100%;height:45vw;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.logo .img{width:25%;height:25vw}.logo .img image{width:100%;border-radius:100%}.form{width:86%;padding:0 7%;font-size:30rpx}.form .username, |
||||
.form .password, |
||||
.form .code{width:calc(100% - 90rpx);height:90rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:45rpx;background-color:hsla(0,0%,100%,.1);padding:0 45rpx;margin-bottom:26rpx}.form .username input, |
||||
.form .password input, |
||||
.form .code input{width:100%;height:50rpx;color:hsla(0,0%,100%,.8);font-weight:200}.form .btn{color:#f06c7a;width:100%;height:90rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:45rpx;background-color:#fff;font-size:40rpx}.re .username{position:relative}.re .username .get-code{position:absolute;height:90rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;right:0;padding:0 40rpx;z-index:3}.re .username .get-code:after{content:" ";width:1rpx;height:50rpx;background-color:#fff;position:absolute;z-index:3;margin-right:100%;left:0;top:20rpx}.re .res{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100rpx;color:hsla(0,0%,100%,.8)}.form .res{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100rpx;color:hsla(0,0%,100%,.8)}.oauth{position:absolute;bottom:50rpx;width:100%}@media (max-height:150vw){.oauth{display:none}}.oauth .text{width:100%;height:60rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:hsla(0,0%,100%,.8);font-size:28rpx}.oauth .list{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:20rpx 0}.oauth .list .icon{font-size:80rpx;margin:0 30rpx} |
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/register"],{"388a":function(e,t,n){"use strict";(function(e){n("185d");o(n("66fd"));var t=o(n("7652"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},5967:function(e,t,n){},"681e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("cd20"));function i(e){return e&&e.__esModule?e:{default:e}}var s={data:function(){return{phoneNumber:"",code:"",passwd:"",getCodeText:"获取验证码",getCodeBtnColor:"#ffffff",getCodeisWaiting:!1}},onLoad:function(){},methods:{Timer:function(){},getCode:function(){var t=this;if(e.hideKeyboard(),!this.getCodeisWaiting){if(!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.phoneNumber))return e.showToast({title:"请填写正确手机号码",icon:"none"}),!1;this.getCodeText="发送中...",this.getCodeisWaiting=!0,this.getCodeBtnColor="rgba(255,255,255,0.5)",setTimeout((function(){e.showToast({title:"验证码已发送",icon:"none"}),t.code=1234,t.setTimer()}),1e3)}},setTimer:function(){var e=this,t=60;this.getCodeText="重新获取(60)",this.Timer=setInterval((function(){if(t<=0)return e.getCodeisWaiting=!1,e.getCodeBtnColor="#ffffff",e.getCodeText="获取验证码",void clearInterval(e.Timer);e.getCodeText="重新获取("+t+")",t--}),1e3)},doReg:function(){var t=this;return e.hideKeyboard(),/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.phoneNumber)?1234!=this.code?(e.showToast({title:"验证码不正确",icon:"none"}),!1):(e.showLoading({title:"提交中..."}),void setTimeout((function(){e.getStorage({key:"UserList",success:function(n){n.data.push({username:t.phoneNumber,passwd:(0,o.default)(t.passwd)}),e.setStorage({key:"UserList",data:n.data,success:function(){e.hideLoading(),e.showToast({title:"注册成功",icon:"success"}),setTimeout((function(){e.navigateBack()}),1e3)}})},fail:function(n){e.hideLoading(),console.log("error"),e.setStorage({key:"UserList",data:[{username:t.phoneNumber,passwd:(0,o.default)(t.passwd)}],success:function(){e.hideLoading(),e.showToast({title:"注册成功",icon:"success"}),setTimeout((function(){e.navigateBack()}),1e3)},fail:function(e){console.log("set error:"+JSON.stringify(e))}})}})}),1e3)):(e.showToast({title:"请填写正确手机号码",icon:"none"}),!1)},toLogin:function(){e.hideKeyboard(),e.redirectTo({url:"login"}),e.navigateBack()}}};t.default=s}).call(this,n("543d")["default"])},7652:function(e,t,n){"use strict";n.r(t);var o=n("cc42"),i=n("94d0");for(var s in i)"default"!==s&&function(e){n.d(t,e,(function(){return i[e]}))}(s);n("8c6f");var a,r=n("f0c5"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);t["default"]=u.exports},"8c6f":function(e,t,n){"use strict";var o=n("5967"),i=n.n(o);i.a},"94d0":function(e,t,n){"use strict";n.r(t);var o=n("681e"),i=n.n(o);for(var s in o)"default"!==s&&function(e){n.d(t,e,(function(){return o[e]}))}(s);t["default"]=i.a},cc42:function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return o}));var i=function(){var e=this,t=e.$createElement;e._self._c},s=[]}},[["388a","common/runtime","common/vendor"]]]); |
@ -0,0 +1,6 @@ |
||||
{ |
||||
"navigationBarTitleText": "注册账号", |
||||
"navigationBarBackgroundColor": "#f06c7a", |
||||
"navigationBarTextStyle": "white", |
||||
"usingComponents": {} |
||||
} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@ |
||||
.font12{font-size:12px}.font13{font-size:13px}.font14{font-size:14px}.font15{font-size:15px}.font16{font-size:16px}.font18{font-size:18px}.font20{font-size:20px}.font24{font-size:24px}.font28{font-size:28px}.fontwig6{font-weight:600}.fontspec{letter-spacing:1px}.linehet{line-height:20px}.fotlt{text-align:left}.fotrt{text-align:right}.fotct{text-align:center}.margle{margin-left:6px}.marglerig{margin-right:5px}.verc{vertical-align:middle}.versub{vertical-align:sub}.text1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.text2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.fcor333{color:#333}.fcorfff{color:#fff}.fcor666{color:#666}.fcor999{color:#b2b2b2}.fcor089{color:#089bf5}.fcoreb5{color:#eb5823}.fcorred{color:red}.fcor41c{color:#41cda2}.backcor9{background-color:#f6f6f6}.backcor89{background-color:#089bf5}.backcorfff{background-color:#fff}.backshare{background:transparent}.width90{width:90%;margin-left:5%}.width80{width:80%;margin-left:10%}.width70{width:70%}.width15{width:15%}.width50{width:50%}.width60{width:65%;margin-left:5%}.width30{width:30%}.width95{width:95%}.width100{width:100%}.bor-botm1{border-bottom:1px solid #f4f4f4}.height45{height:45px}.height40{height:40px}.height22{height:22px}.height100{height:100%}.height10{height:10px}.height60{height:60px}.height30{height:30px;line-height:30px}.height40{height:40px;line-height:40px}.height20{height:20px;line-height:20px}.height50{height:50px;line-height:50px}.mart90{margin-top:90px}.mart60{margin-top:60px}.mart50{margin-top:50px}.mart40{margin-top:40px}.mart30{margin-top:30px}.mart15{margin-top:15px}.mart20{margin-top:20px}.mart10{margin-top:10px}.mart5{margin-top:5px}.marb65{margin-bottom:65px}.marb50{margin-bottom:50px}.marb40{margin-bottom:40px}.marb30{margin-bottom:30px}.marb20{margin-bottom:20px}.marb10{margin-bottom:10px}.marb5{margin-bottom:5px}.paddtop10{padding-top:10px}.paading10{padding:10px}.paddtop13{padding-top:13px}.paddleft10{padding-left:10px}.padleft15{padding-left:15px}.paddtright10{padding-right:10px}.paddbotm10{padding-bottom:10px}.flleft{float:left}.flright{float:right}.btnw70{width:70%;color:#fff;margin-top:40px;background-color:#089bf5;border-radius:6px}.line1{height:1px;background-color:#f4f4f4}.line10{height:10px;background-color:#f4f4f4}.line1089{height:10px;background-color:#089bf5}.displ{display:inline-block}page{background:-webkit-linear-gradient(top,#f06c7a,#f06c7a);background:linear-gradient(180deg,#f06c7a 0,#f06c7a);height:100%}.icon{color:#fff}.logo{width:100%;height:45vw;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.logo .img{width:25%;height:25vw}.logo .img image{width:100%;border-radius:100%}.form{width:86%;padding:0 7%;font-size:30rpx}.form .username, |
||||
.form .password, |
||||
.form .code{width:calc(100% - 90rpx);height:90rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:45rpx;background-color:hsla(0,0%,100%,.1);padding:0 45rpx;margin-bottom:26rpx}.form .username input, |
||||
.form .password input, |
||||
.form .code input{width:100%;height:50rpx;color:hsla(0,0%,100%,.8);font-weight:200}.form .btn{color:#f06c7a;width:100%;height:90rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:45rpx;background-color:#fff;font-size:40rpx}.re .username{position:relative}.re .username .get-code{position:absolute;height:90rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;right:0;padding:0 40rpx;z-index:3}.re .username .get-code:after{content:" ";width:1rpx;height:50rpx;background-color:#fff;position:absolute;z-index:3;margin-right:100%;left:0;top:20rpx}.re .res{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100rpx;color:hsla(0,0%,100%,.8)} |
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/resetpasswd"],{"21d2":function(t,e,n){"use strict";(function(t){n("185d");o(n("66fd"));var e=o(n("3666"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},3666:function(t,e,n){"use strict";n.r(e);var o=n("4dbc"),i=n("c8ea");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("6e99");var s,r=n("f0c5"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);e["default"]=u.exports},"4dbc":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},a=[]},"6e99":function(t,e,n){"use strict";var o=n("738f"),i=n.n(o);i.a},"738f":function(t,e,n){},ad26:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("cd20"));function i(t){return t&&t.__esModule?t:{default:t}}var a={data:function(){return{phoneNumber:"",code:"",passwd:"",getCodeText:"获取验证码",getCodeBtnColor:"#ffffff",getCodeisWaiting:!1}},onLoad:function(){},methods:{Timer:function(){},getCode:function(){var e=this;if(!this.getCodeisWaiting){if(!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.phoneNumber))return t.showToast({title:"请填写正确手机号码",icon:"none"}),!1;this.getCodeText="发送中...",this.getCodeisWaiting=!0,this.getCodeBtnColor="rgba(255,255,255,0.5)",setTimeout((function(){t.showToast({title:"验证码已发送",icon:"none"}),e.code=1234,e.setTimer()}),1e3)}},setTimer:function(){var t=this,e=60;this.getCodeText="重新获取(60)",this.Timer=setInterval((function(){if(e<=0)return t.getCodeisWaiting=!1,t.getCodeBtnColor="#ffffff",t.getCodeText="获取验证码",void clearInterval(t.Timer);t.getCodeText="重新获取("+e+")",e--}),1e3)},doReset:function(){var e=this;return t.hideKeyboard(),/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.phoneNumber)?1234!=this.code?(t.showToast({title:"验证码不正确",icon:"none"}),!1):(t.showLoading({title:"提交中..."}),void setTimeout((function(){t.getStorage({key:"UserList",success:function(n){for(var i in t.hideLoading(),n.data){var a=n.data[i];if(a.username==e.phoneNumber)return n.data[i].passwd=(0,o.default)(e.passwd),void t.setStorage({key:"UserList",data:n.data,success:function(){t.showToast({title:"密码已重置",icon:"success"}),setTimeout((function(){t.navigateBack()}),1e3)}})}t.showToast({title:"手机号码未注册",icon:"none"})},fail:function(e){t.hideLoading(),t.showToast({title:"手机号码未注册",icon:"none"})}})}),1e3)):(t.showToast({title:"请填写正确手机号码",icon:"none"}),!1)}}};e.default=a}).call(this,n("543d")["default"])},c8ea:function(t,e,n){"use strict";n.r(e);var o=n("ad26"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a}},[["21d2","common/runtime","common/vendor"]]]); |
@ -0,0 +1,6 @@ |
||||
{ |
||||
"navigationBarTitleText": "重置密码", |
||||
"navigationBarBackgroundColor": "#f06c7a", |
||||
"navigationBarTextStyle": "white", |
||||
"usingComponents": {} |
||||
} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@ |
||||
.font12{font-size:12px}.font13{font-size:13px}.font14{font-size:14px}.font15{font-size:15px}.font16{font-size:16px}.font18{font-size:18px}.font20{font-size:20px}.font24{font-size:24px}.font28{font-size:28px}.fontwig6{font-weight:600}.fontspec{letter-spacing:1px}.linehet{line-height:20px}.fotlt{text-align:left}.fotrt{text-align:right}.fotct{text-align:center}.margle{margin-left:6px}.marglerig{margin-right:5px}.verc{vertical-align:middle}.versub{vertical-align:sub}.text1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.text2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.fcor333{color:#333}.fcorfff{color:#fff}.fcor666{color:#666}.fcor999{color:#b2b2b2}.fcor089{color:#089bf5}.fcoreb5{color:#eb5823}.fcorred{color:red}.fcor41c{color:#41cda2}.backcor9{background-color:#f6f6f6}.backcor89{background-color:#089bf5}.backcorfff{background-color:#fff}.backshare{background:transparent}.width90{width:90%;margin-left:5%}.width80{width:80%;margin-left:10%}.width70{width:70%}.width15{width:15%}.width50{width:50%}.width60{width:65%;margin-left:5%}.width30{width:30%}.width95{width:95%}.width100{width:100%}.bor-botm1{border-bottom:1px solid #f4f4f4}.height45{height:45px}.height40{height:40px}.height22{height:22px}.height100{height:100%}.height10{height:10px}.height60{height:60px}.height30{height:30px;line-height:30px}.height40{height:40px;line-height:40px}.height20{height:20px;line-height:20px}.height50{height:50px;line-height:50px}.mart90{margin-top:90px}.mart60{margin-top:60px}.mart50{margin-top:50px}.mart40{margin-top:40px}.mart30{margin-top:30px}.mart15{margin-top:15px}.mart20{margin-top:20px}.mart10{margin-top:10px}.mart5{margin-top:5px}.marb65{margin-bottom:65px}.marb50{margin-bottom:50px}.marb40{margin-bottom:40px}.marb30{margin-bottom:30px}.marb20{margin-bottom:20px}.marb10{margin-bottom:10px}.marb5{margin-bottom:5px}.paddtop10{padding-top:10px}.paading10{padding:10px}.paddtop13{padding-top:13px}.paddleft10{padding-left:10px}.padleft15{padding-left:15px}.paddtright10{padding-right:10px}.paddbotm10{padding-bottom:10px}.flleft{float:left}.flright{float:right}.btnw70{width:70%;color:#fff;margin-top:40px;background-color:#089bf5;border-radius:6px}.line1{height:1px;background-color:#f4f4f4}.line10{height:10px;background-color:#f4f4f4}.line1089{height:10px;background-color:#089bf5}.displ{display:inline-block}page{background:-webkit-linear-gradient(top,#f06c7a,#f06c7a);background:linear-gradient(180deg,#f06c7a 0,#f06c7a);height:100%}.icon{color:#fff}.logo{width:100%;height:45vw;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.logo .img{width:25%;height:25vw}.logo .img image{width:100%;border-radius:100%}.form{width:86%;padding:0 7%;font-size:30rpx}.form .username, |
||||
.form .password, |
||||
.form .code{width:calc(100% - 90rpx);height:90rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:45rpx;background-color:hsla(0,0%,100%,.1);padding:0 45rpx;margin-bottom:26rpx}.form .username input, |
||||
.form .password input, |
||||
.form .code input{width:100%;height:50rpx;color:hsla(0,0%,100%,.8);font-weight:200}.form .btn{color:#f06c7a;width:100%;height:90rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;border-radius:45rpx;background-color:#fff;font-size:40rpx}.re .username{position:relative}.re .username .get-code{position:absolute;height:90rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;right:0;padding:0 40rpx;z-index:3}.re .username .get-code:after{content:" ";width:1rpx;height:50rpx;background-color:#fff;position:absolute;z-index:3;margin-right:100%;left:0;top:20rpx}.re .res{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100rpx;color:hsla(0,0%,100%,.8)} |
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/msg/msg"],{"0b52":function(e,i,t){"use strict";var a=t("6392"),c=t.n(a);c.a},"153e":function(e,i,t){"use strict";(function(e){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var t={data:function(){return{chatList:[{uid:1,username:"鲜果蔬专营店",face:"/static/img/im/face/face_1.jpg",time:"13:08",msg:"亲,20点前下单都是当天送达的",tisNum:1},{uid:2,username:"官店大欺客旗舰店",face:"/static/img/im/face/face_2.jpg",time:"13:05",msg:"问那么多干什么?不想买就滚~",tisNum:0},{uid:3,username:"妙不可言",face:"/static/img/im/face/face_3.jpg",time:"12:15",msg:"推荐一个商品呗?",tisNum:0},{uid:4,username:"茶叶专卖",face:"/static/img/im/face/face_4.jpg",time:"12:11",msg:"现在卖的都是未过青的茶哦",tisNum:0},{uid:5,username:"likeKiss客服",face:"/static/img/im/face/face_5.jpg",time:"12:10",msg:"你好,发福建快递多久送到的?",tisNum:0},{uid:6,username:"白开水",face:"/static/img/im/face/face_6.jpg",time:"12:10",msg:"在吗?",tisNum:0},{uid:7,username:"衣帽间的叹息",face:"/static/img/im/face/face_7.jpg",time:"11:56",msg:"新品上市,欢迎选购",tisNum:0},{uid:8,username:"景萧疏",face:"/static/img/im/face/face_8.jpg",time:"11:56",msg:"商品七天无理由退换的",tisNum:0},{uid:9,username:"文宁先生",face:"/static/img/im/face/face_9.jpg",time:"12:15",msg:"星期天再发货的",tisNum:0},{uid:10,username:"高端Chieh",face:"/static/img/im/face/face_10.jpg",time:"12:36",msg:"建议你直接先测量好尺码在选购的。",tisNum:0},{uid:11,username:"mode旗舰店",face:"/static/img/im/face/face_11.jpg",time:"12:40",msg:"新品5折,还有大量优惠券。",tisNum:0},{uid:12,username:"敏萘客服",face:"/static/img/im/face/face_12.jpg",time:"12:36",msg:"还没有用,等我明天早上试一下",tisNum:0},{uid:13,username:"春天里的花",face:"/static/img/im/face/face_13.jpg",time:"12:36",msg:"适用于成年人的,小孩不适用的",tisNum:0},{uid:14,username:"电脑外设专业户",face:"/static/img/im/face/face_13.jpg",time:"12:36",msg:"把上面的螺丝拆下来,把铁片撬开就能看见了",tisNum:0},{uid:15,username:"至善汽车用品",face:"/static/img/im/face/face_15.jpg",time:"12:36",msg:"这个产品是原车配件,完美装上的",tisNum:0}]}},onPullDownRefresh:function(){setTimeout((function(){e.stopPullDownRefresh()}),1e3)},onLoad:function(){},methods:{toChat:function(e){}}};i.default=t}).call(this,t("543d")["default"])},"3e8e":function(e,i,t){"use strict";t.r(i);var a=t("153e"),c=t.n(a);for(var u in a)"default"!==u&&function(e){t.d(i,e,(function(){return a[e]}))}(u);i["default"]=c.a},4210:function(e,i,t){"use strict";var a;t.d(i,"b",(function(){return c})),t.d(i,"c",(function(){return u})),t.d(i,"a",(function(){return a}));var c=function(){var e=this,i=e.$createElement;e._self._c},u=[]},"529b":function(e,i,t){"use strict";(function(e){t("185d");a(t("66fd"));var i=a(t("b7a8"));function a(e){return e&&e.__esModule?e:{default:e}}e(i.default)}).call(this,t("543d")["createPage"])},6392:function(e,i,t){},b7a8:function(e,i,t){"use strict";t.r(i);var a=t("4210"),c=t("3e8e");for(var u in c)"default"!==u&&function(e){t.d(i,e,(function(){return c[e]}))}(u);t("0b52");var m,s=t("f0c5"),n=Object(s["a"])(c["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],m);i["default"]=n.exports}},[["529b","common/runtime","common/vendor"]]]); |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"enablePullDownRefresh": true, |
||||
"navigationBarTitleText": "消息列表", |
||||
"navigationBarBackgroundColor": "#f06c7a", |
||||
"navigationBarTextStyle": "white", |
||||
"usingComponents": {} |
||||
} |
@ -0,0 +1 @@ |
||||
<view><view class="chat-list"><block wx:for="{{chatList}}" wx:for-item="chat" wx:for-index="index" wx:key="index"><view class="chat"><view data-event-opts="{{[['tap',[['toChat',['$0'],[[['chatList','',index]]]]]]]}}" class="row" bindtap="__e"><view class="left"><image src="{{chat.face}}"></image></view><view class="right"><view class="top"><view class="username">{{chat.username}}</view><view class="time">{{chat.time}}</view></view><view class="bottom"><view class="msg">{{chat.msg}}</view><block wx:if="{{chat.tisNum>0}}"><view class="tis">{{chat.tisNum}}</view></block></view></view></view></view></block></view></view> |
@ -0,0 +1 @@ |
||||
.font12{font-size:12px}.font13{font-size:13px}.font14{font-size:14px}.font15{font-size:15px}.font16{font-size:16px}.font18{font-size:18px}.font20{font-size:20px}.font24{font-size:24px}.font28{font-size:28px}.fontwig6{font-weight:600}.fontspec{letter-spacing:1px}.linehet{line-height:20px}.fotlt{text-align:left}.fotrt{text-align:right}.fotct{text-align:center}.margle{margin-left:6px}.marglerig{margin-right:5px}.verc{vertical-align:middle}.versub{vertical-align:sub}.text1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;text-overflow:ellipsis}.text2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.fcor333{color:#333}.fcorfff{color:#fff}.fcor666{color:#666}.fcor999{color:#b2b2b2}.fcor089{color:#089bf5}.fcoreb5{color:#eb5823}.fcorred{color:red}.fcor41c{color:#41cda2}.backcor9{background-color:#f6f6f6}.backcor89{background-color:#089bf5}.backcorfff{background-color:#fff}.backshare{background:transparent}.width90{width:90%;margin-left:5%}.width80{width:80%;margin-left:10%}.width70{width:70%}.width15{width:15%}.width50{width:50%}.width60{width:65%;margin-left:5%}.width30{width:30%}.width95{width:95%}.width100{width:100%}.bor-botm1{border-bottom:1px solid #f4f4f4}.height45{height:45px}.height40{height:40px}.height22{height:22px}.height100{height:100%}.height10{height:10px}.height60{height:60px}.height30{height:30px;line-height:30px}.height40{height:40px;line-height:40px}.height20{height:20px;line-height:20px}.height50{height:50px;line-height:50px}.mart90{margin-top:90px}.mart60{margin-top:60px}.mart50{margin-top:50px}.mart40{margin-top:40px}.mart30{margin-top:30px}.mart15{margin-top:15px}.mart20{margin-top:20px}.mart10{margin-top:10px}.mart5{margin-top:5px}.marb65{margin-bottom:65px}.marb50{margin-bottom:50px}.marb40{margin-bottom:40px}.marb30{margin-bottom:30px}.marb20{margin-bottom:20px}.marb10{margin-bottom:10px}.marb5{margin-bottom:5px}.paddtop10{padding-top:10px}.paading10{padding:10px}.paddtop13{padding-top:13px}.paddleft10{padding-left:10px}.padleft15{padding-left:15px}.paddtright10{padding-right:10px}.paddbotm10{padding-bottom:10px}.flleft{float:left}.flright{float:right}.btnw70{width:70%;color:#fff;margin-top:40px;background-color:#089bf5;border-radius:6px}.line1{height:1px;background-color:#f4f4f4}.line10{height:10px;background-color:#f4f4f4}.line1089{height:10px;background-color:#089bf5}.displ{display:inline-block}page{background-color:initial}.chat-list{width:94%;padding:0 3%}.chat-list .chat{width:100%;height:100rpx;padding:20rpx 0;border-bottom:solid 1rpx #eaeaea}.chat-list .chat .row{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.chat-list .chat .row .left{-webkit-flex-shrink:0;flex-shrink:0;width:100rpx;height:100rpx}.chat-list .chat .row .left image{width:100rpx;height:100rpx;border-radius:20rpx}.chat-list .chat .row .right{-webkit-flex-shrink:1;flex-shrink:1;width:98%;padding-left:2%}.chat-list .chat .row .right .top{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end}.chat-list .chat .row .right .top .usernam{font-size:26rpx}.chat-list .chat .row .right .top .time{font-size:22rpx;color:#bebebe}.chat-list .chat .row .right .bottom{width:100%;height:40rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.chat-list .chat .row .right .bottom .msg{font-size:25rpx;color:#777}.chat-list .chat .row .right .bottom .tis{width:35rpx;height:35rpx;font-size:22rpx;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-color:#eb4d3d;color:#fff;border-radius:100%} |
@ -0,0 +1 @@ |
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/confirmation"],{"0190":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{buylist:[],goodsPrice:0,sumPrice:0,freight:12,note:"",int:1200,deduction:0,recinfo:{id:1,name:"大黑哥",head:"大",tel:"18816881688",address:{region:{label:"广东省-深圳市-福田区",value:[18,2,1],cityCode:"440304"},detailed:"深南大道1111号无名摩登大厦6楼A2"},isDefault:!0}}},onShow:function(){var t=this;e.getStorage({key:"buylist",success:function(e){t.buylist=e.data,t.goodsPrice=0;for(var n=t.buylist.length,i=0;i<n;i++)t.goodsPrice=t.goodsPrice+t.buylist[i].number*t.buylist[i].price;t.deduction=t.int/100,t.sumPrice=t.goodsPrice-t.deduction+t.freight}}),e.getStorage({key:"selectAddress",success:function(n){t.recinfo=n.data,e.removeStorage({key:"selectAddress"})}})},onHide:function(){},onBackPress:function(){this.clearOrder()},filters:{toFixed:function(e){return parseFloat(e).toFixed(2)}},methods:{clearOrder:function(){var t=this;e.removeStorage({key:"buylist",success:function(e){t.buylist=[],console.log("remove buylist success")}})},toPay:function(){for(var t=this,n=[],i=[],o=this.buylist.length,r=0;r<o;r++)n.push(this.buylist[r]),i.push(this.buylist[r].id);0!=n.length?(e.showLoading({title:"正在提交订单..."}),setTimeout((function(){e.setStorage({key:"paymentOrder",data:n,success:function(){e.hideLoading(),e.redirectTo({url:"../pay/payment/payment?amount="+t.sumPrice})}})}),1e3)):e.showToast({title:"订单信息有误,请重新购买",icon:"none"})},selectAddress:function(){e.navigateTo({url:"../user/address/address?type=select"})}}};t.default=n}).call(this,n("543d")["default"])},"10b9":function(e,t,n){"use strict";(function(e){n("185d");i(n("66fd"));var t=i(n("d3b5"));function i(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"2d9a":function(e,t,n){},"5d17":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e._f("toFixed")(e.deduction)),i=e._f("toFixed")(e.goodsPrice),o=e._f("toFixed")(e.freight),r=e._f("toFixed")(e.deduction),s=e._f("toFixed")(e.sumPrice);e.$mp.data=Object.assign({},{$root:{f0:n,f1:i,f2:o,f3:r,f4:s}})},r=[]},9286:function(e,t,n){"use strict";var i=n("2d9a"),o=n.n(i);o.a},a193:function(e,t,n){"use strict";n.r(t);var i=n("0190"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},d3b5:function(e,t,n){"use strict";n.r(t);var i=n("5d17"),o=n("a193");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("9286");var s,u=n("f0c5"),c=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],s);t["default"]=c.exports}},[["10b9","common/runtime","common/vendor"]]]); |
@ -0,0 +1,5 @@ |
||||
{ |
||||
"navigationBarTitleText": "确认订单", |
||||
"softinputNavBar": "none", |
||||
"usingComponents": {} |
||||
} |
@ -0,0 +1 @@ |
||||
<view><view class="buy-list"><block wx:for="{{buylist}}" wx:for-item="row" wx:for-index="index" wx:key="index"><view class="row"><view class="goods-info"><view class="img"><image src="{{row.img}}"></image></view><view class="info"><view class="title">{{row.name}}</view><view class="spec">{{"选择"+row.spec+" 数量:"+row.number}}</view><view class="price-number"><view class="price">{{"¥"+row.price*row.number}}</view><view class="number"></view></view></view></view></view></block></view><view class="order"><view class="row"><view class="left">积分 :</view><view class="right">{{'已扣除'+int+"积分抵扣"+$root.f0+'元'}}</view></view><view class="row"><view class="left">备注 :</view><view class="right"><input placeholder="选填,备注内容" data-event-opts="{{[['input',[['__set_model',['','note','$event',[]]]]]]}}" value="{{note}}" bindinput="__e"/></view></view></view><view class="detail"><view class="row"><view class="nominal">商品金额</view><view class="content">{{'¥'+$root.f1+''}}</view></view><view class="row"><view class="nominal">运费</view><view class="content">{{'¥+'+$root.f2+''}}</view></view><view class="row"><view class="nominal">积分抵扣</view><view class="content">{{'¥-'+$root.f3+''}}</view></view></view><view class="blck"></view><view class="footer"><view class="settlement"><view class="sum">合计:<view class="money">{{"¥"+$root.f4}}</view></view><view data-event-opts="{{[['tap',[['toPay',['$event']]]]]}}" class="btn" bindtap="__e">提交订单</view></view></view></view> |
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue