1.上传代码 第一完结打包

yj-dev
name 4 years ago
parent feaa0a26aa
commit 68da3cee39
  1. 27
      App.vue
  2. 82
      Utils/Api.js
  3. 38
      Utils/Request.js
  4. 47
      Utils/bRequest.js
  5. 283
      components/Authorize.vue
  6. 454
      components/mehaotian-search-revision/mehaotian-search-revision.vue
  7. 71
      pages.json
  8. 191
      pages/goods/HM-search/HM-search.vue
  9. 185
      pages/goods/coupon-details/coupon-details.vue
  10. 1790
      pages/goods/goods.vue
  11. 157
      pages/goods/recording/recording.vue
  12. 123
      pages/goods/store-list/store-list.vue
  13. 47
      pages/login/login.vue
  14. 4
      pages/order/confirmation.vue
  15. 274
      pages/pay/payment/payment.vue
  16. 306
      pages/tabBar/category/category.vue
  17. 589
      pages/tabBar/home/home.vue
  18. 454
      pages/tabBar/user/user.vue
  19. 100
      pages/user/business/business.vue
  20. 243
      pages/user/deposit/deposit.vue
  21. 208
      pages/user/mineCoupons/mineCoupons.vue
  22. 603
      pages/user/order_details/order_details.vue
  23. 614
      pages/user/order_list/order_list.vue
  24. BIN
      static/img/banner2.png
  25. BIN
      static/img/banner3.png
  26. BIN
      static/img/head.png
  27. BIN
      static/img/scan.png
  28. 15
      uni.scss
  29. 0
      unpackage/dist/build/.automator/mp-weixin/.automator.json
  30. 4
      unpackage/dist/build/mp-weixin/app.js
  31. 75
      unpackage/dist/build/mp-weixin/app.json
  32. 3
      unpackage/dist/build/mp-weixin/app.wxss
  33. 1
      unpackage/dist/build/mp-weixin/common/main.js
  34. 1
      unpackage/dist/build/mp-weixin/common/main.wxss
  35. 4
      unpackage/dist/build/mp-weixin/common/runtime.js
  36. 16
      unpackage/dist/build/mp-weixin/common/vendor.js
  37. 10
      unpackage/dist/build/mp-weixin/components/Authorize.js
  38. 4
      unpackage/dist/build/mp-weixin/components/Authorize.json
  39. 1
      unpackage/dist/build/mp-weixin/components/Authorize.wxml
  40. 1
      unpackage/dist/build/mp-weixin/components/Authorize.wxss
  41. 10
      unpackage/dist/build/mp-weixin/components/mehaotian-search-revision/mehaotian-search-revision.js
  42. 4
      unpackage/dist/build/mp-weixin/components/mehaotian-search-revision/mehaotian-search-revision.json
  43. 1
      unpackage/dist/build/mp-weixin/components/mehaotian-search-revision/mehaotian-search-revision.wxml
  44. 1
      unpackage/dist/build/mp-weixin/components/mehaotian-search-revision/mehaotian-search-revision.wxss
  45. 10
      unpackage/dist/build/mp-weixin/components/mpvue-citypicker/mpvueCityPicker.js
  46. 4
      unpackage/dist/build/mp-weixin/components/mpvue-citypicker/mpvueCityPicker.json
  47. 1
      unpackage/dist/build/mp-weixin/components/mpvue-citypicker/mpvueCityPicker.wxml
  48. 1
      unpackage/dist/build/mp-weixin/components/mpvue-citypicker/mpvueCityPicker.wxss
  49. 1
      unpackage/dist/build/mp-weixin/pages/goods/HM-search/HM-search.js
  50. 6
      unpackage/dist/build/mp-weixin/pages/goods/HM-search/HM-search.json
  51. 1
      unpackage/dist/build/mp-weixin/pages/goods/HM-search/HM-search.wxml
  52. 2
      unpackage/dist/build/mp-weixin/pages/goods/HM-search/HM-search.wxss
  53. 1
      unpackage/dist/build/mp-weixin/pages/goods/coupon-details/coupon-details.js
  54. 5
      unpackage/dist/build/mp-weixin/pages/goods/coupon-details/coupon-details.json
  55. 1
      unpackage/dist/build/mp-weixin/pages/goods/coupon-details/coupon-details.wxml
  56. 1
      unpackage/dist/build/mp-weixin/pages/goods/coupon-details/coupon-details.wxss
  57. 1
      unpackage/dist/build/mp-weixin/pages/goods/goods-list/goods-list.js
  58. 5
      unpackage/dist/build/mp-weixin/pages/goods/goods-list/goods-list.json
  59. 1
      unpackage/dist/build/mp-weixin/pages/goods/goods-list/goods-list.wxml
  60. 1
      unpackage/dist/build/mp-weixin/pages/goods/goods-list/goods-list.wxss
  61. 1
      unpackage/dist/build/mp-weixin/pages/goods/goods.js
  62. 8
      unpackage/dist/build/mp-weixin/pages/goods/goods.json
  63. 1
      unpackage/dist/build/mp-weixin/pages/goods/goods.wxml
  64. 11
      unpackage/dist/build/mp-weixin/pages/goods/goods.wxss
  65. 1
      unpackage/dist/build/mp-weixin/pages/goods/ratings/ratings.js
  66. 8
      unpackage/dist/build/mp-weixin/pages/goods/ratings/ratings.json
  67. 1
      unpackage/dist/build/mp-weixin/pages/goods/ratings/ratings.wxml
  68. 1
      unpackage/dist/build/mp-weixin/pages/goods/ratings/ratings.wxss
  69. 1
      unpackage/dist/build/mp-weixin/pages/goods/recording/recording.js
  70. 4
      unpackage/dist/build/mp-weixin/pages/goods/recording/recording.json
  71. 1
      unpackage/dist/build/mp-weixin/pages/goods/recording/recording.wxml
  72. 1
      unpackage/dist/build/mp-weixin/pages/goods/recording/recording.wxss
  73. 1
      unpackage/dist/build/mp-weixin/pages/goods/store-list/store-details.js
  74. 5
      unpackage/dist/build/mp-weixin/pages/goods/store-list/store-details.json
  75. 1
      unpackage/dist/build/mp-weixin/pages/goods/store-list/store-details.wxml
  76. 1
      unpackage/dist/build/mp-weixin/pages/goods/store-list/store-details.wxss
  77. 1
      unpackage/dist/build/mp-weixin/pages/goods/store-list/store-list.js
  78. 5
      unpackage/dist/build/mp-weixin/pages/goods/store-list/store-list.json
  79. 1
      unpackage/dist/build/mp-weixin/pages/goods/store-list/store-list.wxml
  80. 1
      unpackage/dist/build/mp-weixin/pages/goods/store-list/store-list.wxss
  81. 1
      unpackage/dist/build/mp-weixin/pages/login/login.js
  82. 6
      unpackage/dist/build/mp-weixin/pages/login/login.json
  83. 1
      unpackage/dist/build/mp-weixin/pages/login/login.wxml
  84. 5
      unpackage/dist/build/mp-weixin/pages/login/login.wxss
  85. 1
      unpackage/dist/build/mp-weixin/pages/login/register.js
  86. 6
      unpackage/dist/build/mp-weixin/pages/login/register.json
  87. 1
      unpackage/dist/build/mp-weixin/pages/login/register.wxml
  88. 5
      unpackage/dist/build/mp-weixin/pages/login/register.wxss
  89. 1
      unpackage/dist/build/mp-weixin/pages/login/resetpasswd.js
  90. 6
      unpackage/dist/build/mp-weixin/pages/login/resetpasswd.json
  91. 1
      unpackage/dist/build/mp-weixin/pages/login/resetpasswd.wxml
  92. 5
      unpackage/dist/build/mp-weixin/pages/login/resetpasswd.wxss
  93. 1
      unpackage/dist/build/mp-weixin/pages/msg/msg.js
  94. 7
      unpackage/dist/build/mp-weixin/pages/msg/msg.json
  95. 1
      unpackage/dist/build/mp-weixin/pages/msg/msg.wxml
  96. 1
      unpackage/dist/build/mp-weixin/pages/msg/msg.wxss
  97. 1
      unpackage/dist/build/mp-weixin/pages/order/confirmation.js
  98. 5
      unpackage/dist/build/mp-weixin/pages/order/confirmation.json
  99. 1
      unpackage/dist/build/mp-weixin/pages/order/confirmation.wxml
  100. 1
      unpackage/dist/build/mp-weixin/pages/order/confirmation.wxss
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,21 +1,24 @@
<script>
export default {
globalData: {
url: 'https://hsgcs.dctpay.com/crest',
imgUrl: '',
userInfo: {},
openId: '',
code: '',
token : ''
},
export default {
globalData: {
url: 'https://hsgcs.dctpay.com/crest',
// url: 'http://192.168.3.4:9301/crest',
// url: 'http://192.168.3.21:9301/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')
},
}
</script>

@ -1,17 +1,28 @@
import {
POST
} from "./Request.js"
// let base = 'https://hsgcs.dctpay.com/crest';
} from "./Request.js";
import {
POSTBREST} from "./bRequest.js";
let app = getApp();
let base = app.globalData.url;
let brestBase = app.globalData.brestUrl;
//根据code获取openId
export const HandleCode = params => {
return POST('GET', `${base}/wechat/handleCode`, params).then(res => res.data);
}
//微信第一次登录
}
//微信登录获取手机号
export const GetPhoneNumber = params => {
return POST('GET', `${base}/wechat/getPhoneNumber`, params).then(res => res.data);
};
//获取用户授权信息
export const getUserInfo = params => {
return POST('GET', `${base}/wechat/getUserInfo`, params).then(res => res.data);
}
//获取用户信息
export const findUser = params => {
return POST('GET', `${base}/highUser/findUser`, params).then(res => res.data);
}
//微信登录
export const WXlogin = params => {
return POST('GET', `${base}/wechat/login`, params).then(res => res.data);
@ -19,4 +30,65 @@ export const WXlogin = params => {
//通过openid获取用户的信息
export const OpenidGetUser = (openId, params) => {
return POST('GET', `${base}/User/openid/${openId}`, params).then(res => res.data);
};
};
//获取卡券列表
export const getCouponList = params => {
return POST('GET', `${base}/coupon/getCouponList`, params).then(res => res.data);
};
//根据卡券id获取门店信息
export const getStoreListByCoupon = params => {
return POST('GET', `${base}/highMerchantStore/getStoreListByCoupon`, params).then(res => res.data);
}
//卡券详情
export const getCouponById = params => {
return POST('GET', `${base}/coupon/getCouponById`, params).then(res => res.data);
}
//生成订单
export const addOrder = params => {
return POST('POST', `${base}/highOrder/addOrder`, params).then(res => res.data);
}
//获取订单支付信息
export const orderToPay = params => {
return POST('POST', `${base}/order/orderToPay`, params).then(res => res.data);
}
//金币支付
export const orderToGoldPay = params => {
return POST('POST', `${base}/order/orderToGoldPay`, params).then(res => res.data);
}
//查询用户金币使用情况
export const getUserGoldRecList = params => {
return POST('GET', `${base}/highGoldRec/getUserGoldRecList`, params).then(res => res.data);
}
//获取用户卡券
export const getUserCouponList = params => {
return POST('GET', `${base}/coupon/getUserCouponList`, params).then(res => res.data);
}
//获取用户卡券详情
export const getUserCouponDetail = params => {
return POST('GET', `${base}/coupon/getUserCouponDetail`, params).then(res => res.data);
}
//获取订单信息
export const getUserOrderList = params => {
return POST('GET', `${base}/highOrder/getUserOrderList`, params).then(res => res.data);
}
//取消订单
export const cancelOrder = params => {
return POST('GET', `${base}/highOrder/cancelOrder`, params).then(res => res.data);
}
//订单查询详情
export const getOrderById = params => {
return POST('GET', `${base}/highOrder/getOrderById`, params).then(res => res.data);
}
// 门店登录
export const userLogin = params => {
return POST('POST', `${brestBase}/login/userLogin`, params).then(res => res.data);
}
//门店扫码销核
export const useCouponCode = params => {
return POSTBREST('POST', `${brestBase}/couponCode/useCouponCode`, params).then(res => res.data);
}

@ -1,9 +1,7 @@
let app = getApp();
let app = getApp();
function request(method, url, data) {
return new Promise((resolve) => {
uni.showLoading({
title: '加载中...'
});
uni.request({
method: method,
url: url,
@ -11,12 +9,30 @@ function request(method, url, data) {
header: {
'Accept': "*/*",
'content-type': 'application/json;charset=utf-8',
// 'token': app.globalData.token, //您可根据如本地存储或者vuex再此处使用逻辑或 来插入token
'Authorization': app.globalData.token, //有的时候这里不一定是 token 还可能是 Authorization
},
'Authorization': app.globalData.token
}, //有的时候这里不一定是 token 还可能是 Authorization
success(res) {
resolve(res)
uni.hideLoading()
resolve(res)
if(res.statusCode == 401 || res.data.return_code == 102068){
uni.showToast({
title:'登录信息过期,请重新授权',
icon:'none',
duration:2000
})
app.globalData.userInfo = '';
app.globalData.token = '';
uni.setStorage({
key: "user",
data: ''
})
uni.setStorage({
key: "token",
data: ''
})
uni.reLaunch({
url: '/pages/tabBar/home/home'
})
}
},
fail(err) {
uni.showToast({
@ -24,15 +40,17 @@ function request(method, url, data) {
icon: 'none',
duration: 1500,
})
uni.hideLoading()
}
})
})
}
function POST(method, url, data) {
return request(method, url, data)
}
module.exports = {
POST
}

@ -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
}

@ -2,19 +2,20 @@
<view>
<view class='Popup' v-if='isShowAuth'>
<view class="logo-auth">
<image src='../static/img/logo.png' mode="aspectFit"></image>
<image src='../static/img/logo.png' mode="aspectFit"></image>
</view>
<view class='title'>授权提醒</view>
<view class='tip'>请授权头像等信息以便为您提供更好的服务</view>
<view class='bottom flex'>
<view class='item' @click='close'>随便逛逛</view>
<!-- #ifdef APP-PLUS -->
<!-- <button class='item grant' @click="setUserInfo">去授权</button> -->
<!-- #endif -->
<!-- #ifdef MP -->
<button class='item grant' type="primary" open-type="getUserInfo" lang="zh_CN"
@getuserinfo="getuserinfo" withCredentials="true">去授权</button>
<!-- #endif -->
</view>
<view class='title'>授权提醒</view>
<view class='tip'>请授权头像等信息以便为您提供更好的服务</view>
<view class='bottom flex'>
<view class='item' @click='close'>随便逛逛</view>
<!-- #ifdef APP-PLUS -->
<!-- <button class='item grant' @click="setUserInfo">去授权</button> -->
<!-- #endif -->
<!-- #ifdef MP -->
<button class='item grant' type="primary" open-type="getUserInfo" lang="zh_CN" @getuserinfo="setUserInfo">去授权</button>
<!-- #endif -->
</view>
</view>
<view class='mask' v-if='isShowAuth' @click='close'></view>
</view>
@ -22,122 +23,196 @@
<script>
const app = getApp();
// import Cache from '../utils/cache';
// import { getLogo } from '../api/public';
// import { LOGO_URL } from '../config/cache';
// import { mapGetters } from 'vuex';
// import Routine from '../libs/routine';
import {
getUserInfo
} from "../Utils/Api.js"
export default {
name:'Authorize',
props:{
isAuto:{
type:Boolean,
default:true
},
isGoIndex:{
type:Boolean,
default:true
},
isShowAuth:{
type:Boolean,
default:false
}
},
data(){
name: 'Authorize',
data() {
return {
isShowAuth: false
}
},
// computed:mapGetters(['isLogin','userInfo']),
watch:{
isLogin(n){
n === true && this.$emit('onLoadFun',this.userInfo);
watch: {
isLogin(n) {
n === true && this.$emit('onLoadFun', this.userInfo);
}
},
created() {
// this.getLogoUrl();
// this.setAuthStatus();
this.iscode()
},
methods:{
// setAuthStatus(){
// Routine.authorize().then(res=>{
// if(res.islogin === false)
// this.setUserInfo();
// else
// this.$emit('onLoadFun',this.userInfo);
// }).catch(res=>{
// if (this.isAuto)
// this.$emit('authColse',true);
// })
// },
setUserInfo(){
// uni.showLoading({title:''});
// Routine.getCode().then(code=>{
// this.getUserInfo(code);
// uni.switchTab({url:'/pages/user/index'});
// }).catch(res=>{
// uni.hideLoading();
// })
methods: {
iscode() {
let that = this;
if (!app.globalData.userInfo) {
this.isShowAuth = true;
} else {}
},
getuserinfo() {
uni.showLoading({
title: '正在登录中'
});
let that = this;
wx.login({
success(res) {
if (res.code) {
//
var code = res.code
//
wx.getUserInfo({
success: function(res) {
let params = {
openId: app.globalData.openId,
iv: res.iv,
encryptedData: res.encryptedData
}
getUserInfo(params).then(res => {
if (res.return_code == '000000') {
uni.hideLoading();
app.globalData.userInfo = res.return_data
.object
.highUser;
app.globalData.token = res.return_data.uniqueCode;
that.isShowAuth = false
uni.setStorage({
key: "user",
data: res.return_data
.object
.highUser
})
uni.setStorage({
key: "token",
data: res.return_data.uniqueCode
})
uni.reLaunch({
url: '/pages/tabBar/user/user'
});
} else {
uni.showToast({
title: res.return_msg
})
}
});
},
fail: res => {
uni.showToast({
title: "微信登录授权失败",
icon: "none"
});
}
})
} else {
fail: res => {
uni.showToast({
title: "微信登录授权失败",
icon: "none"
});
}
}
}
})
that.isShowAuth = false
},
// getLogoUrl(){
// this.logoUrl = app.globalData.site_logo
// // let that = this;
// // if (Cache.has(LOGO_URL)) {
// // this.logoUrl = Cache.get(LOGO_URL);
// // return;
// // }
// // getLogo().then(res=>{
// // that.logoUrl = res.data.logo_url
// // Cache.set(LOGO_URL,that.logoUrl);
// // })
// },
close(){
console.log('1111');
let pages = getCurrentPages(), currPage = pages[pages.length - 1];
if(this.isGoIndex){
uni.switchTab({url:'/pages/index/index'});
} else {
this.$emit('authColse',false);
}
// if (currPage && currPage.isShowAuth != undefined){
// currPage.isShowAuth = true;
// }
close() {
uni.reLaunch({
url: '/pages/tabBar/home/home'
});
},
}
}
</script>
<style scoped lang='scss'>
.Popup{width:500rpx;background-color:#fff;position:fixed;top:50%;left:50%;margin-left:-250rpx;transform:translateY(-50%);z-index:320;}
.Popup{
.logo-auth{
.Popup {
width: 500rpx;
background-color: #fff;
position: fixed;
top: 50%;
left: 50%;
margin-left: -250rpx;
transform: translateY(-50%);
z-index: 320;
}
.Popup {
.logo-auth {
z-index: -1;
position: absolute;
left: 50%;
top: 0%;
transform: translate(-50%,-50%);
width:150rpx;
height:150rpx;
display:flex;
transform: translate(-50%, -50%);
width: 150rpx;
height: 150rpx;
display: flex;
align-items: center;
justify-content: center;
border: 8rpx solid #fff;
border-radius: 50%;
background: #fff;
}
image{
height: 80rpx;
margin-top: -54rpx;
}
image {
height: 80rpx;
margin-top: -54rpx;
}
}
.Popup .title {
font-size: 28rpx;
color: #000;
text-align: center;
margin-top: 30rpx
}
.Popup .tip {
font-size: 22rpx;
color: #555;
padding: 0 24rpx;
margin-top: 25rpx;
}
.Popup .bottom .item {
width: 50%;
height: 80rpx;
background-color: #eeeeee;
text-align: center;
line-height: 80rpx;
font-size: 24rpx;
color: #666;
margin-top: 54rpx;
}
.Popup .bottom .item.on {
width: 100%
}
.flex {
display: flex;
}
.Popup .bottom .item.grant {
font-size: 28rpx;
color: #fff;
font-weight: bold;
background-color: #a1bac5;
border-radius: 0;
padding: 0;
}
.mask {
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.65);
z-index: 310;
}
.Popup .title{font-size:28rpx;color:#000;text-align:center;margin-top: 30rpx}
.Popup .tip{font-size:22rpx;color:#555;padding:0 24rpx;margin-top:25rpx;}
.Popup .bottom .item{width:50%;height:80rpx;background-color:#eeeeee;text-align:center;line-height:80rpx;font-size:24rpx;color:#666;margin-top:54rpx;}
.Popup .bottom .item.on{width: 100%}
.flex{display:flex;}
.Popup .bottom .item.grant{font-size:28rpx;color:#fff;font-weight:bold;background-color:#a1bac5;border-radius:0;padding:0;}
.mask{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,0.65);z-index:310;}
</style>
</style>

@ -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>

@ -108,7 +108,7 @@
{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录",
"navigationBarTitleText": "门店登录",
"navigationBarBackgroundColor": "#f06c7a",
"navigationBarTextStyle": "white",
"app-plus": {
@ -146,14 +146,6 @@
"navigationBarTitleText": "确认订单",
"softinputNavBar": "none"
}
}, {
"path": "pages/user/order_list/order_list",
"style": {
"navigationBarTitleText": "我的订单",
"navigationBarBackgroundColor": "#f8f8f8",
"backgroundColorTop": "#f3f3f3",
"backgroundColorBottom": "#ffffff"
}
}, {
"path": "pages/user/setting/setting",
"style": {
@ -170,15 +162,15 @@
"bounce": "none"
}
}
} ,{
"path" : "pages/msg/msg",
"style" : {
}, {
"path": "pages/msg/msg",
"style": {
"enablePullDownRefresh": true,
"navigationBarTitleText": "消息列表",
"navigationBarBackgroundColor":"#f06c7a",
"navigationBarTextStyle":"white"
"navigationBarBackgroundColor": "#f06c7a",
"navigationBarTextStyle": "white"
}
},{
}, {
"path": "pages/user/coupon/coupon",
"style": {
"navigationBarTitleText": "优惠券",
@ -263,6 +255,43 @@
"enablePullDownRefresh": false
}
}, {
"path": "pages/user/business/business",
"style": {
"navigationBarTitleText": "门店",
"enablePullDownRefresh": false
}
}, {
"path": "pages/user/order_list/order_list",
"style": {
"navigationBarTitleText": "我的订单",
"navigationBarBackgroundColor": "#f8f8f8",
"backgroundColorTop": "#f3f3f3",
"backgroundColorBottom": "#ffffff"
}
}, {
"path": "pages/user/order_details/order_details",
"style": {
// "navigationBarTitleText": "订单详情",
"navigationBarBackgroundColor": "#f06c7a",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false
}
}, {
"path": "pages/goods/recording/recording",
"style": {
"enablePullDownRefresh": false
}
}, {
"path": "pages/user/mineCoupons/mineCoupons",
"style": {
"navigationBarTitleText": "我的卡券",
"enablePullDownRefresh": false
}
}
],
@ -291,12 +320,12 @@
"selectedIconPath": "static/img/tabBar/category-on.png",
"text": "分类"
},
{
"pagePath": "pages/tabBar/cart/cart",
"iconPath": "static/img/tabBar/cart.png",
"selectedIconPath": "static/img/tabBar/cart-on.png",
"text": "购物车"
},
// {
// "pagePath": "pages/tabBar/cart/cart",
// "iconPath": "static/img/tabBar/cart.png",
// "selectedIconPath": "static/img/tabBar/cart-on.png",
// "text": "购物车"
// },
{
"pagePath": "pages/tabBar/user/user",
"iconPath": "static/img/tabBar/user.png",

@ -3,7 +3,7 @@
<view class="search-box">
<!-- mSearch组件 如果使用原样式删除组件元素-->
<mSearch class="mSearch-input-box" :mode="2" button="inside" :placeholder="defaultKeyword"
@search="doSearch(false)" @input="inputChange" @confirm="doSearch(false)" v-model="keyword"></mSearch>
@search="doSearch(false)" @confirm="doSearch(false)" v-model="keyword"></mSearch>
<!-- 原样式 如果使用原样式恢复下方注销代码 -->
<!--
<view class="input-box">
@ -22,47 +22,35 @@
<rich-text :nodes="row.htmlStr"></rich-text>
</view>
<view class="keyword-img" @tap.stop="setKeyword(keywordList[index].keyword)">
<image src="../../../static/img/HM-search/back.png"></image>
<image src="/static/HM-search/back.png"></image>
</view>
</view>
</block>
</scroll-view>
<scroll-view class="keyword-box" v-show="!isShowKeywordList" scroll-y>
<view class="keyword-block" v-if="oldKeywordList.length>0">
<view class="keyword-list-header">
<view>历史搜索</view>
<view>
<image @tap="oldDelete" src="../../../static/img/HM-search/delete.png"></image>
<view class="product-list mart15">
<view class="product" v-for="product in productList" :key="product.id" @tap="toGoods(product.id)">
<image mode="widthFix" :src="imageUrl+product.couponImg"></image>
<view class="name">{{ product.couponName }}</view>
<view class="info">
<view class="price">{{ product.discountPrice}}</view>
<view class="slogan" v-if="product.discountPrice !== product.salesPrice">
{{ product.salesPrice}}</view>
</view>
</view>
<view class="keyword">
<view v-for="(keyword,index) in oldKeywordList" @tap="doSearch(keyword)" :key="index">
{{keyword}}</view>
</view>
</view>
<view class="keyword-block">
<view class="keyword-list-header">
<view>热门搜索</view>
<view>
<image @tap="hotToggle" :src="'../../../static/img/HM-search/attention'+forbid+'.png'">
</image>
</view>
</view>
<view class="keyword" v-if="forbid==''">
<view v-for="(keyword,index) in hotKeywordList" @tap="doSearch(keyword)" :key="index">
{{keyword}}</view>
</view>
<view class="hide-hot-tis" v-else>
<view>当前搜热门搜索已隐藏</view>
</view>
</view>
</scroll-view>
</view>
</view>
<view class="loading-text">{{ loadingText }}</view>
</view>
</template>
<script>
import {
getCouponList
} from "../../../Utils/Api.js";
let app = getApp()
//mSearch
import mSearch from '@/components/mehaotian-search-revision/mehaotian-search-revision.vue';
export default {
@ -74,7 +62,13 @@
hotKeywordList: [],
keywordList: [],
forbid: '',
isShowKeywordList: false
isShowKeywordList: false,
imageUrl: app.globalData.imgUrl,
productList: [],
pageNum: 1,
pageSize: 10,
isNoMoreData: false,
loadingText: ''
}
},
onLoad() {
@ -83,12 +77,47 @@
components: {
//mSearch
mSearch
},
onReachBottom() {
this.getCouponList();
},
methods: {
methods: {
toGoods(e) {
uni.navigateTo({
url:'../../goods/goods?id='+e
});
},
getCouponList() {
uni.showLoading({
title: '加载中...'
})
if (this.isNoMoreData) {
uni.hideLoading()
this.loadingText = '到底了';
return false;
}
let pagenum = this.pageNum;
let params = {
regionId: app.globalData.cityId,
pageNum: pagenum,
couponName: this.keyword,
pageSize: this.pageSize
}
getCouponList(params).then(res => {
if (res.return_code == '000000') {
uni.hideLoading();
this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true;
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum;
this.productList = this.productList.concat(res.return_data.list);
} else {
this.productList = [];
uni.hideLoading()
}
})
},
init() {
this.loadDefaultKeyword();
this.loadOldKeyword();
this.loadHotKeyword();
},
blur() {
@ -109,11 +138,7 @@
}
});
},
//
loadHotKeyword() {
//ajax
this.hotKeywordList = ['键盘', '鼠标', '显示器', '电脑主机', '蓝牙音箱', '笔记本电脑', '鼠标垫', 'USB', 'USB3.0'];
},
//
inputChange(event) {
//
@ -125,14 +150,7 @@
}
this.isShowKeywordList = true;
//
uni.request({
url: 'https://suggest.taobao.com/sug?code=utf-8&q=' + keyword, //
success: (res) => {
this.keywordList = [];
this.keywordList = this.drawCorrelativeKeyword(res.data.result, keyword);
}
});
this.getCouponList();
},
//
drawCorrelativeKeyword(keywords, keyword) {
@ -179,22 +197,9 @@
//
doSearch(keyword) {
keyword = keyword === false ? this.keyword : keyword;
this.keyword = keyword;
this.saveKeyword(keyword); //
uni.showToast({
title: keyword,
icon: 'none',
duration: 2000
});
//
/*
//#ifdef APP-PLUS
plus.runtime.openURL(encodeURI('taobao://s.taobao.com/search?q=' + keyword));
//#endif
//#ifdef H5
window.location.href = 'taobao://s.taobao.com/search?q=' + keyword
//#endif
*/
this.keyword = keyword;
this.pageNum = 1;
this.getCouponList();
},
//
saveKeyword(keyword) {
@ -230,10 +235,72 @@
}
}
</script>
<style>
<style lang="scss">
view {
display: block;
}
.loading-text {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
height: 60upx;
color: #979797;
font-size: 24upx;
}
.product-list {
width: 92%;
padding: 0 4% 3vw 4%;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
.product {
width: 48%;
border-radius: 20upx;
background-color: #fff;
margin: 0 0 15upx 0;
box-shadow: 0upx 5upx 25upx rgba(0, 0, 0, 0.1);
image {
width: 100%;
border-radius: 20upx 20upx 0 0;
}
.name {
width: 92%;
padding: 10upx 4%;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
text-align: justify;
overflow: hidden;
font-size: 30upx;
}
.info {
display: flex;
justify-content: space-between;
align-items: flex-end;
width: 92%;
padding: 10upx 4% 10upx 4%;
.price {
color: #e65339;
font-size: 30upx;
font-weight: 600;
}
.slogan {
color: #807c87;
font-size: 24upx;
text-decoration: line-through;
margin-right: 50px;
}
}
}
}
.search-box {
width: 95%;

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

@ -10,7 +10,7 @@
<!-- 账号密码输入框 -->
<view class="form">
<view class="username">
<input placeholder="请输入手机号" v-model="phoneNumber" placeholder-style="color: rgba(255,255,255,0.8);" />
<input placeholder="请输入号" v-model="phoneNumber" placeholder-style="color: rgba(255,255,255,0.8);" />
</view>
<view class="password">
<input placeholder="请输入密码" v-model="passwd" password=true
@ -37,6 +37,10 @@
<script>
import md5 from "@/common/SDK/md5.min.js";
import {
userLogin
} from "../../Utils/Api.js";
let app = getApp();
export default {
data() {
return {
@ -129,15 +133,50 @@
doLogin() {
uni.hideKeyboard();
//
if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.phoneNumber))) {
// if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.phoneNumber))) {
// uni.showToast({
// title: '',
// icon: "none"
// });
// return false;
// }
if (this.phoneNumber == '') {
uni.showToast({
title: '请填写账号',
icon: "none"
});
return false;
} else if (this.passwd == '') {
uni.showToast({
title: '请填写正确手机号码',
title: '请填写码',
icon: "none"
});
return false;
}
uni.showLoading({
title: '提交中...'
title: '登录中...'
})
let datas = {
"loginName": this.phoneNumber,
"password": this.passwd
}
userLogin(datas).then(res => {
if (res.return_code == '000000') {
uni.hideLoading();
uni.navigateTo({
url: '../user/business/business'
})
app.globalData.brestUserInfo = res.return_data.object.secUser;
app.globalData.brestToken = res.return_data.uniqueCode;
} else {
uni.hideLoading();
uni.showToast({
title: res.return_msg,
icon: "none"
})
}
})
//使
// setTimeout(()=>{

@ -1,7 +1,7 @@
<template>
<view>
<!-- 收货地址 -->
<view class="addr" @tap="selectAddress">
<!-- <view class="addr" @tap="selectAddress">
<view class="icon">
<image src="../../static/img/addricon.png" mode=""></image>
</view>
@ -19,7 +19,7 @@
{{recinfo.address.detailed}}
</view>
</view>
</view>
</view> -->
<!-- 购买商品列表 -->
<view class="buy-list">
<view class="row" v-for="(row,index) in buylist" :key="index">

@ -1,13 +1,17 @@
<template>
<template>
<view>
<view class="block">
<view class="content">
<view class="orderinfo">
<!-- <view class="row">
<view class="nominal">订单名称:</view>
<view class="text">{{orderName}}</view>
</view> -->
<view class="row">
<view class="nominal">订单名称:</view><view class="text">{{orderName}}</view>
</view>
<view class="row">
<view class="nominal">订单金额:</view><view class="text">{{amount}}</view>
<view class="nominal">订单金额:</view>
<view class="text" v-if="pryType == 1">{{amount}} </view>
<view class="text" v-if="pryType == 2">{{amount*100}} 个金币 (当前金币:{{user.gold}})</view>
<view class="text" v-if="pryType == 3">{{amount}}(当前金币:{{user.gold}})</view>
</view>
</view>
</view>
@ -18,144 +22,240 @@
</view>
<view class="content">
<view class="pay-list">
<!-- <view class="row" @tap="paytype='alipay'">
<view class="left">
<image src="/static/img/alipay.png"></image>
</view>
<view class="center">
支付宝支付
</view>
<view class="right">
<radio :checked="paytype=='alipay'" color="#f06c7a" />
</view>
</view> -->
<view class="row" @tap="paytype='wxpay'">
<view class="left">
<image src="/static/img/wxpay.png"></image>
</view>
<view class="center">
微信支付
</view>
<view class="right">
<radio :checked="paytype=='wxpay'" color="#f06c7a" />
</view>
<view class="row" @tap="paytype='jinbi'" v-if="pryType == 2 || pryType==3 ">
<view class="left">
<image
src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjE2ODUyMjc2NDc1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI0MDMiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTEyIDUwOS4xbS00NDQuNCAwYTQ0NC40IDQ0NC40IDAgMSAwIDg4OC44IDAgNDQ0LjQgNDQ0LjQgMCAxIDAtODg4LjggMFoiIGZpbGw9IiNGQUIwMDEiIHAtaWQ9IjI0MDQiPjwvcGF0aD48cGF0aCBkPSJNODg3LjcgNDU5LjFjMC0xMzIuNS01OC0yNTEuMy0xNTAtMzMyLjdDNjcxLjYgODcuMiA1OTQuNCA2NC43IDUxMiA2NC43Yy0yNDUuNCAwLTQ0NC40IDE5OS00NDQuNCA0NDQuNCAwIDEzMi41IDU4IDI1MS4zIDE1MCAzMzIuNyA2Ni4yIDM5LjEgMTQzLjMgNjEuNyAyMjUuOCA2MS43IDI0NS40IDAgNDQ0LjMtMTk5IDQ0NC4zLTQ0NC40eiIgZmlsbD0iI0Y5RTQ4QSIgcC1pZD0iMjQwNSI+PC9wYXRoPjxwYXRoIGQ9Ik01NjggMTAyLjVjLTI0NS40IDAtNDQ0LjQgMTk5LTQ0NC40IDQ0NC40IDAgMTIyLjUgNDkuNyAyMzMuNCAxMzAgMzEzLjggNTcuNiAyNy4zIDEyMS44IDQyLjggMTg5LjggNDIuOCAyNDUuNCAwIDQ0NC40LTE5OSA0NDQuNC00NDQuNCAwLTEyMi41LTQ5LjctMjMzLjQtMTMwLTMxMy44LTU3LjYtMjcuMy0xMjEuOS00Mi44LTE4OS44LTQyLjh6IiBmaWxsPSIjRkVDRTBBIiBwLWlkPSIyNDA2Ij48L3BhdGg+PHBhdGggZD0iTTcwNC40IDYxNi40YzAgMjguNi00LjkgNDQuNi0yNS4yIDU0LjMtMTUuNCA3LjMtMzUgOS40LTYwLjIgMTAtMTEuOCAwLjMtMjIuMS03LjctMjUuNC0xOS0wLjQtMS41LTAuOS0zLjEtMS40LTQuNi01LjMtMTYuNyA3LjMtMzMuNiAyNC44LTMzLjYgOCAwIDE0LjMtMC4xIDE3LjEtMC4zIDcuOCAwIDkuNy0xLjkgOS43LTguMlY1MTQuM2MwLTE0LjMtMTEuNi0yNS45LTI1LjktMjUuOWgtMzYuNGMtMTQuMyAwLTI1LjkgMTEuNi0yNS45IDI1Ljl2MTk1LjVjMCAxNC4zLTExLjYgMjUuOS0yNS45IDI1LjlINTIxYy0xNC4zIDAtMjUuOS0xMS42LTI1LjktMjUuOVY1MTQuM2MwLTE0LjMtMTEuNi0yNS45LTI1LjktMjUuOWgtMzNjLTE0LjMgMC0yNS45IDExLjYtMjUuOSAyNS45djE0MS42YzAgMTQuMy0xMS42IDI1LjktMjUuOSAyNS45aC03LjNjLTE0LjMgMC0yNS45LTExLjYtMjUuOS0yNS45VjQ1OGMwLTE0LjMgMTEuNi0yNS45IDI1LjktMjUuOWg5Mi4yYzE0LjMgMCAyNS45LTExLjYgMjUuOS0yNS45di0xMC45YzAtMTQuOC0xMi40LTI2LjYtMjcuMi0yNS45LTM4LjggMS43LTc3LjUgMi43LTExNC42IDMtMTIuMSAwLjEtMjIuOS04LjMtMjUuNC0yMC4xIDAtMC4yLTAuMS0wLjQtMC4xLTAuNi0zLjQtMTYuMSA4LjMtMzEuNCAyNC44LTMxLjggMTE4LTIuNyAyNDUuOS0xMC42IDMzOC4zLTIyLjggMTEuNi0xLjUgMjIuNyA0LjkgMjcuMiAxNS43bDEuMSAyLjZjNi42IDE1LjgtMy40IDMzLjYtMjAuNCAzNS44LTM2LjkgNC45LTc3LjIgOC43LTExOS4zIDExLjktMTMuNSAxLTIzLjkgMTIuMy0yMy45IDI1Ljl2MTcuM2MwIDE0LjMgMTEuNiAyNS45IDI1LjkgMjUuOWg5N2MxNC4zIDAgMjUuOSAxMS42IDI1LjkgMjUuOXYxNTguM3oiIGZpbGw9IiNGRkZGRkYiIHAtaWQ9IjI0MDciPjwvcGF0aD48L3N2Zz4=">
</image>
</view>
<view class="center">
金币支付
</view>
<view class="right">
<radio :checked="paytype=='jinbi'" color="#f06c7a" />
</view>
</view>
<view class="row" @tap="paytype='wxpay'" v-if="pryType == 1 || pryType==3 ">
<view class="left">
<image src="/static/img/wxpay.png"></image>
</view>
<view class="center">
微信支付
</view>
<view class="right">
<radio :checked="paytype=='wxpay'" color="#f06c7a" />
</view>
</view>
</view>
</view>
</view>
<view class="pay">
<view class="btn" @tap="doDeposit">立即支付</view>
<view class="btn" @tap="orderToPay">立即支付</view>
<view class="tis">
点击立即支付即代表您同意<view class="terms">
条款协议
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
amount:0,
orderName:'',
paytype:'wxpay'//
};
</view>
</template>
<script>
import {
orderToPay,
orderToGoldPay
} from '../../../Utils/Api.js'
let app = getApp()
export default {
data() {
return {
amount: 0,
orderName: '',
pryType: '',
paytype: '', //
orderNo: '',
user: ''
};
},
onLoad(e) {
onLoad(e) {
this.pryType = e.paytype;
this.orderNo = e.orderId;
this.user = app.globalData.userInfo;
if (this.pryType == 1) {
this.paytype = 'wxpay';
} else if(this.pryType == 2){
this.paytype = 'jinbi'
}else{
this.paytype = ''
}
this.amount = parseFloat(e.amount).toFixed(2);
uni.getStorage({
key:'paymentOrder',
key: 'paymentOrder',
success: (e) => {
if(e.data.length>1){
if (e.data.length > 1) {
this.orderName = '多商品合并支付'
}else{
} else {
this.orderName = e.data[0].name;
}
uni.removeStorage({
key:'paymentOrder'
key: 'paymentOrder'
})
}
})
},
methods:{
doDeposit(){
///
uni.showLoading({
title:'支付中...'
});
setTimeout(()=>{
uni.hideLoading();
uni.showToast({
title:'支付成功'
methods: {
//
orderToPay() {
if (this.paytype == 'wxpay') {
uni.showLoading({
title: '支付中...'
})
let params = {
"orderId": this.orderNo,
"openId": app.globalData.openId,
"orderScene": "GOODS_ORDER"
}
orderToPay(params).then(res => {
if (res.return_code == '000000') {
uni.requestPayment({
"appId": res.return_data.appId,
"nonceStr": res.return_data.nonceStr,
"package": res.return_data.package,
"paySign": res.return_data.sign,
"signType": "MD5",
"timeStamp": res.return_data.timeStamp,
success: function(res) {
uni.hideLoading();
uni.showToast({
title: '支付成功'
})
setTimeout(() => {
uni.navigateBack({})
}, 100)
},
fail: function(err) {
uni.hideLoading();
console.log('fail:' + JSON.stringify(err));
}
});
} else {
uni.showToast({
title: res.return_msg,
icon: 'none'
})
}
})
} else if(this.paytype == 'jinbi'){
uni.showModal({
title: '金币支付',
content: '确认是否用金币支付?',
success: (res) => {
if (res.confirm) {
uni.showLoading({
title: '支付中...'
})
let params = {
"orderId": this.orderNo
}
orderToGoldPay(params).then(res => {
if (res.return_code == '000000') {
uni.hideLoading();
uni.showToast({
title: '支付成功'
})
setTimeout(() => {
uni.navigateBack({})
}, 100)
} else {
uni.showToast({
title: res.return_msg,
icon: 'none'
})
}
})
} else if (res.cancel) {}
}
});
setTimeout(()=>{
uni.redirectTo({
url:'../../pay/success/success?amount='+this.amount
});
},300);
},700)
}
}
}
</script>
<style lang="scss">
.block{
}else{
uni.showToast({
title:'请选择支付方式',
icon : 'none',
duration: 2000
})
}
},
}
}
</script>
<style lang="scss">
.block {
width: 94%;
padding: 0 3% 40upx 3%;
.title{
.title {
width: 100%;
font-size: 34upx;
}
.content{
.orderinfo{
.content {
.orderinfo {
width: 100%;
border-bottom: solid 1upx #eee;
.row{
.row {
width: 100%;
height: 90upx;
display: flex;
align-items: center;
.nominal{
.nominal {
flex-shrink: 0;
font-size: 32upx;
color: #7d7d7d;
}
.text{
.text {
width: 70%;
margin-left: 10upx;
overflow: hidden;
text-overflow:ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 32upx;
}
}
}
.pay-list{
.pay-list {
width: 100%;
border-bottom: solid 1upx #eee;
.row{
.row {
width: 100%;
height: 120upx;
display: flex;
align-items: center;
.left{
.left {
width: 100upx;
flex-shrink: 0;
display: flex;
align-items: center;
image{
image {
width: 80upx;
height: 80upx;
}
}
.center{
.center {
width: 100%;
font-size: 30upx;
}
.right{
.right {
width: 100upx;
flex-shrink: 0;
display: flex;
@ -165,13 +265,15 @@
}
}
}
.pay{
.pay {
margin-top: 20upx;
width: 100%;
display: flex;
justify-content: center;
flex-wrap: wrap;
.btn{
.btn {
width: 70%;
height: 80upx;
border-radius: 80upx;
@ -180,9 +282,10 @@
align-items: center;
color: #fff;
background-color: #f06c7a;
box-shadow: 0upx 5upx 10upx rgba(0,0,0,0.2);
box-shadow: 0upx 5upx 10upx rgba(0, 0, 0, 0.2);
}
.tis{
.tis {
margin-top: 10upx;
width: 100%;
font-size: 24upx;
@ -190,9 +293,10 @@
justify-content: center;
align-items: baseline;
color: #999;
.terms{
.terms {
color: #5a9ef7;
}
}
}
}
</style>

@ -2,10 +2,12 @@
<view>
<!-- 状态栏 -->
<view class="status" :style="{position:headerPosition}"></view>
<view class="header" :style="{position:headerPosition}">
<view class="addr"><view class="icon location"></view>{{city}}</view>
<view class="header" :style="{position:headerPosition}">
<view class="addr">
<view class="icon location"></view>{{city}}
</view>
<view class="input-box">
<input placeholder="默认关键字" placeholder-style="color:#c0c0c0;" @tap="toSearch()"/>
<input placeholder="默认关键字" placeholder-style="color:#c0c0c0;" @tap="toSearch()" />
<view class="icon search"></view>
</view>
<view class="icon-btn">
@ -16,132 +18,161 @@
<view class="place"></view>
<view class="category-list">
<!-- 左侧分类导航 -->
<scroll-view scroll-y="true" class="left" >
<view class="row" v-for="(category,index) in categoryList" :key="category.id" :class="[index==showCategoryIndex?'on':'']" @tap="showCategory(index)">
<scroll-view scroll-y="true" class="left">
<view class="row" :class="[0==showCategoryIndex?'on':'']">
<view class="text">
<view class="block"></view>
{{category.title}}
卡券
</view>
</view>
</scroll-view>
</scroll-view>
<!-- 右侧子导航 -->
<scroll-view scroll-y="true" class="right" >
<view class="category" v-for="(category,index) in categoryList" :key="category.id" v-show="index==showCategoryIndex" >
<scroll-view scroll-y="true" class="right">
<view class="category" v-show="0==showCategoryIndex">
<view class="banner">
<image :src="category.banner"></image>
<image src="/static/img/banner2.png"></image>
</view>
<view class="list">
<view class="box" v-for="(box,i) in category.list" :key="i" @tap="toCategory(box)">
<image :src="box.img"></image>
<view class="text">{{box.name}}</view>
<view class="box" v-for="(box,i) in categoryList" :key="i" @tap="toCategory(box.id)">
<image :src="imageUrl+box.couponImg"></image>
<view class="text">{{box.couponName}}</view>
</view>
</view>
</view>
<view class="loading-text" @click="getCouponList">{{ loadingText }}</view>
</scroll-view>
</view>
<authorize></authorize>
</view>
</template>
<script>
//SDK
// import amap from '@/common/SDK/amap-wx.js';
import {
getCouponList
} from "../../../Utils/Api.js";
import authorize from '../../../components/Authorize';
let app = getApp();
export default {
components: {
authorize
},
data() {
return {
showCategoryIndex:0,
headerPosition:"fixed",
city:"北京",
showCategoryIndex: 0,
headerPosition: "fixed",
city: "",
imageUrl: app.globalData.imgUrl,
//
categoryList:[
{id:1,title:'卡券',banner:'/static/img/category/banner.jpg',list:[
{name:'100元卡券', img:'/static/img/banner1.png'},
{name:'200元卡券', img:'/static/img/banner1.png'},
{name:'150元卡券', img:'/static/img/banner1.png'},
{name:'100中石化卡券',img:'/static/img/banner1.png'},
{name:'150通用卡券', img:'/static/img/banner1.png'},
{name:'燃气灶', img:'/static/img/banner1.png'},
{name:'热水器', img:'/static/img/banner1.png'},
{name:'电吹风', img:'/static/img/banner1.png'},
{name:'电饭煲', img:'/static/img/banner1.png'}
],},
// {id:2,title:'',banner:'/static/img/category/banner.jpg',list:[
// {name:'', img:'1.jpg'},
// {name:'', img:'2.jpg'},
// {name:'', img:'3.jpg'},
// {name:'', img:'4.jpg'},
// {name:'', img:'5.jpg'},
// {name:'', img:'6.jpg'}
// ]},
// {id:3,title:'',banner:'/static/img/category/banner.jpg',list:[
// {name:'', img:'1.jpg'},
// {name:'', img:'2.jpg'},
// {name:'', img:'3.jpg'},
// {name:'', img:'4.jpg'},
// {name:'', img:'5.jpg'},
// {name:'', img:'6.jpg'},
// {name:'', img:'7.jpg'}
// ]},
// {id:4,title:'',banner:'/static/img/category/banner.jpg',list:[
// {name:'', img:'1.jpg'},
// {name:'', img:'2.jpg'},
// {name:'', img:'3.jpg'},
// {name:'', img:'4.jpg'},
// {name:'', img:'5.jpg'},
// {name:'', img:'6.jpg'},
// {name:'', img:'7.jpg'}
// ]},
]
categoryList: [],
pageNum: 1,
pageSize: 10,
isNoMoreData: false,
loadingText: '点击加载更多'
}
},
onPageScroll(e){
onPageScroll(e) {
//iOS
if(e.scrollTop>=0){
if (e.scrollTop >= 0) {
this.headerPosition = "fixed";
}else{
} else {
this.headerPosition = "absolute";
}
},
onLoad() {
// this.amapPlugin = new amap.AMapWX({
// //KEYKEYhttp://ask.dcloud.net.cn/article/35070
// key: '7c235a9ac4e25e482614c6b8eac6fd8e'
// });
// //
// this.amapPlugin.getRegeo({
// success: (data) => {
// this.city = data[0].regeocodeData.addressComponent.city.replace(//g,'');//""
// }
// });
this.postionIng();
},
methods: {
//
toMsg(){
uni.navigateTo({
url:'../../msg/msg'
postionIng() {
uni.showLoading({
})
let that = this;
uni.getLocation({
type: 'wgs84',
success: function(res) {
uni.request({
url: 'https://apis.map.qq.com/ws/geocoder/v1/?location=' + res.latitude +
',' + res.longitude + '&key=YQDBZ-T54K4-5J6U7-DO3BA-CNZJO-PTFMU',
data: {},
success: function(res) {
that.city = res.data.result.address_component.city.replace(/市/g,
'');
let a = res.data.result.ad_info.adcode.substring(5, '');
app.globalData.cityId = '500100';
that.getCouponList();
uni.hideLoading()
}
})
}
})
},
//
getCouponList() {
uni.showLoading({
title: '加载中...'
})
if (this.isNoMoreData) {
uni.hideLoading()
this.loadingText = '到底了';
return false;
}
let pagenum = this.pageNum;
let params = {
regionId: app.globalData.cityId,
pageNum: pagenum,
pageSize: this.pageSize
}
getCouponList(params).then(res => {
if (res.return_code == '000000') {
uni.hideLoading();
this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true;
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum;
this.categoryList = this.categoryList.concat(res.return_data.list);
} else {
uni.hideLoading()
}
})
},
toMsg() {
// uni.navigateTo({
// url:'../../msg/msg'
// })
uni.showToast({
title: '暂未开通',
icon: 'none'
});
},
//
showCategory(index){
showCategory(index) {
this.showCategoryIndex = index;
},
toCategory(e){
uni.setStorageSync('catName',e.name);
toCategory(e) {
// uni.setStorageSync('catName',e.name);
// uni.navigateTo({
// url: '../../goods/goods-list/goods-list?cid='+e.id+'&name='+e.name
// });
uni.navigateTo({
url:'../../goods/store-list/store-list'
})
// });
// uni.navigateTo({
// url:'../../goods/store-list/store-list?id='+e
// })
uni.navigateTo({
url: '../../goods/goods?id=' + e
});
},
//
toSearch(){
uni.showToast({title: "建议跳转到新页面做搜索功能"});
toSearch() {
uni.navigateTo({
url: '../../goods/HM-search/HM-search'
})
// uni.showToast({title: ""});
}
}
}
</script>
<style lang="scss">
.status {
width: 100%;
height: 0;
@ -150,12 +181,21 @@
background-color: #fff;
top: 0;
/* #ifdef APP-PLUS */
height: var(--status-bar-height);//
height: var(--status-bar-height); //
/* #endif */
}
.header{
.loading-text {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
height: 60upx;
color: #979797;
font-size: 24upx;
}
.header {
width: 92%;
padding: 0 4%;
height: 100upx;
@ -168,16 +208,17 @@
/* #ifdef APP-PLUS */
top: var(--status-bar-height);
/* #endif */
.addr{
.addr {
width: 120upx;
height: 60upx;
flex-shrink: 0;
display: flex;
align-items: center;
font-size: 28upx;
.icon{
height: 60upx;
.icon {
height: 60upx;
margin-right: 5upx;
display: flex;
align-items: center;
@ -185,7 +226,8 @@
color: #ffc50a;
}
}
.input-box{
.input-box {
width: 100%;
height: 60upx;
background-color: #f5f5f5;
@ -193,29 +235,33 @@
position: relative;
display: flex;
align-items: center;
.icon{
.icon {
display: flex;
align-items: center;
position: absolute;
top:0;
top: 0;
right: 0;
width: 60upx;
height: 60upx;
font-size: 34upx;
color: #c0c0c0;
}
input{
input {
padding-left: 28upx;
height: 28upx;
font-size: 28upx;
}
}
.icon-btn{
.icon-btn {
width: 60upx;
height: 60upx;
flex-shrink: 0;
display: flex;
.icon{
.icon {
width: 60upx;
height: 60upx;
display: flex;
@ -225,57 +271,68 @@
}
}
}
.place{
.place {
background-color: #ffffff;
height: 100upx;
/* #ifdef APP-PLUS */
margin-top: var(--status-bar-height);
/* #endif */
}
.category-list{
.category-list {
width: 100%;
background-color: #fff;
display: flex;
.left,.right{
.left,
.right {
position: absolute;
top: 100upx;
/* #ifdef APP-PLUS */
top: calc(100upx + var(--status-bar-height));
/* #endif */
bottom: 0upx;
}
.left{
.left {
width: 24%;
left: 0upx;
background-color: #f2f2f2;
.row{
.row {
width: 100%;
height: 90upx;
display: flex;
align-items: center;
.text{
.text {
width: 100%;
position: relative;
font-size: 28upx;
display: flex;
justify-content: center;
color: #3c3c3c;
.block{
.block {
position: absolute;
width: 0upx;
left: 0;
}
}
&.on{
&.on {
height: 100upx;
background-color: #fff;
.text{
.text {
font-size: 30upx;
font-weight: 600;
color: #2d2d2d;
.block{
.block {
width: 10upx;
height: 80%;
top: 10%;
@ -285,40 +342,48 @@
}
}
}
.right{
width: 76%;
.right {
width: 76%;
left: 24%;
.category{
.category {
width: 94%;
padding: 20upx 3%;
.banner{
.banner {
width: 100%;
height: 24.262vw;
border-radius: 10upx;
overflow: hidden;
box-shadow: 0upx 5upx 20upx rgba(0,0,0,0.3);
image{
box-shadow: 0upx 5upx 20upx rgba(0, 0, 0, 0.3);
image {
width: 100%;
height: 24.262vw;
}
}
.list{
.list {
margin-top: 40upx;
width: 100%;
display: flex;
flex-wrap: wrap;
.box{
.box {
width: calc(71.44vw / 2);
margin-bottom: 30upx;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
image{
image {
width: 60%;
height: calc(71.44vw / 2 * 0.6);
}
.text{
.text {
margin-top: 5upx;
width: 100%;
display: flex;
@ -330,5 +395,4 @@
}
}
}
</style>

File diff suppressed because one or more lines are too long

@ -1,37 +1,36 @@
<template>
<view>
<view v-if="showHeader" class="status" :style="{position:headerPosition,top:statusTop}"></view>
<view v-if="showHeader" class="header" :style="{position:headerPosition,top:headerTop}">
<view class="addr"></view>
<view class="input-box">
</view>
<view class="icon-btn">
<view class="icon tongzhi" @tap="toMsg"></view>
<view class="icon setting" @tap="toSetting"></view>
</view>
</view>
<!-- 占位 -->
<view v-if="showHeader" class="place"></view>
<!-- 用户信息 -->
<view class="user">
<!-- 头像 -->
<view class="left">
<image :src="user.face" @tap="toSetting"></image>
<image src="/static/img/head.png" v-if="!user.headerImg"></image>
<image :src="user.headerImg" v-else></image>
</view>
<!-- 昵称,个性签名 -->
<view class="right">
<view class="username" @tap="toLogin">{{user.username}}</view>
<view class="signature" @tap="toSetting">{{user.signature}}</view>
<view class="username" v-if="!user.name">请授权登录</view>
<view class="username" v-else>{{user.name}}</view>
<view class="font14 fcorfff" v-if="!user.gold">金币: 0</view>
<view class="font14 fcorfff" v-else>金币: {{user.gold}} </view>
<!-- <view class="signature" @tap="toSetting">{{user.signature}}</view> -->
</view>
<!-- 二维码按钮 -->
<view class="erweima" @tap="toMyQR">
<view class="icon qr"></view>
</view>
<button class="erweima" v-if="user.phone == null" open-type="getPhoneNumber"
@getphonenumber="getPhoneNumber">
<image
src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjE2ODUyMjc2NDc1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI0MDMiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTEyIDUwOS4xbS00NDQuNCAwYTQ0NC40IDQ0NC40IDAgMSAwIDg4OC44IDAgNDQ0LjQgNDQ0LjQgMCAxIDAtODg4LjggMFoiIGZpbGw9IiNGQUIwMDEiIHAtaWQ9IjI0MDQiPjwvcGF0aD48cGF0aCBkPSJNODg3LjcgNDU5LjFjMC0xMzIuNS01OC0yNTEuMy0xNTAtMzMyLjdDNjcxLjYgODcuMiA1OTQuNCA2NC43IDUxMiA2NC43Yy0yNDUuNCAwLTQ0NC40IDE5OS00NDQuNCA0NDQuNCAwIDEzMi41IDU4IDI1MS4zIDE1MCAzMzIuNyA2Ni4yIDM5LjEgMTQzLjMgNjEuNyAyMjUuOCA2MS43IDI0NS40IDAgNDQ0LjMtMTk5IDQ0NC4zLTQ0NC40eiIgZmlsbD0iI0Y5RTQ4QSIgcC1pZD0iMjQwNSI+PC9wYXRoPjxwYXRoIGQ9Ik01NjggMTAyLjVjLTI0NS40IDAtNDQ0LjQgMTk5LTQ0NC40IDQ0NC40IDAgMTIyLjUgNDkuNyAyMzMuNCAxMzAgMzEzLjggNTcuNiAyNy4zIDEyMS44IDQyLjggMTg5LjggNDIuOCAyNDUuNCAwIDQ0NC40LTE5OSA0NDQuNC00NDQuNCAwLTEyMi41LTQ5LjctMjMzLjQtMTMwLTMxMy44LTU3LjYtMjcuMy0xMjEuOS00Mi44LTE4OS44LTQyLjh6IiBmaWxsPSIjRkVDRTBBIiBwLWlkPSIyNDA2Ij48L3BhdGg+PHBhdGggZD0iTTcwNC40IDYxNi40YzAgMjguNi00LjkgNDQuNi0yNS4yIDU0LjMtMTUuNCA3LjMtMzUgOS40LTYwLjIgMTAtMTEuOCAwLjMtMjIuMS03LjctMjUuNC0xOS0wLjQtMS41LTAuOS0zLjEtMS40LTQuNi01LjMtMTYuNyA3LjMtMzMuNiAyNC44LTMzLjYgOCAwIDE0LjMtMC4xIDE3LjEtMC4zIDcuOCAwIDkuNy0xLjkgOS43LTguMlY1MTQuM2MwLTE0LjMtMTEuNi0yNS45LTI1LjktMjUuOWgtMzYuNGMtMTQuMyAwLTI1LjkgMTEuNi0yNS45IDI1Ljl2MTk1LjVjMCAxNC4zLTExLjYgMjUuOS0yNS45IDI1LjlINTIxYy0xNC4zIDAtMjUuOS0xMS42LTI1LjktMjUuOVY1MTQuM2MwLTE0LjMtMTEuNi0yNS45LTI1LjktMjUuOWgtMzNjLTE0LjMgMC0yNS45IDExLjYtMjUuOSAyNS45djE0MS42YzAgMTQuMy0xMS42IDI1LjktMjUuOSAyNS45aC03LjNjLTE0LjMgMC0yNS45LTExLjYtMjUuOS0yNS45VjQ1OGMwLTE0LjMgMTEuNi0yNS45IDI1LjktMjUuOWg5Mi4yYzE0LjMgMCAyNS45LTExLjYgMjUuOS0yNS45di0xMC45YzAtMTQuOC0xMi40LTI2LjYtMjcuMi0yNS45LTM4LjggMS43LTc3LjUgMi43LTExNC42IDMtMTIuMSAwLjEtMjIuOS04LjMtMjUuNC0yMC4xIDAtMC4yLTAuMS0wLjQtMC4xLTAuNi0zLjQtMTYuMSA4LjMtMzEuNCAyNC44LTMxLjggMTE4LTIuNyAyNDUuOS0xMC42IDMzOC4zLTIyLjggMTEuNi0xLjUgMjIuNyA0LjkgMjcuMiAxNS43bDEuMSAyLjZjNi42IDE1LjgtMy40IDMzLjYtMjAuNCAzNS44LTM2LjkgNC45LTc3LjIgOC43LTExOS4zIDExLjktMTMuNSAxLTIzLjkgMTIuMy0yMy45IDI1Ljl2MTcuM2MwIDE0LjMgMTEuNiAyNS45IDI1LjkgMjUuOWg5N2MxNC4zIDAgMjUuOSAxMS42IDI1LjkgMjUuOXYxNTguM3oiIGZpbGw9IiNGRkZGRkYiIHAtaWQ9IjI0MDciPjwvcGF0aD48L3N2Zz4=">
</image>
</button>
<button class="erweima" v-else @click="toDeposit">
<image
src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjE2ODUyMjc2NDc1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI0MDMiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTEyIDUwOS4xbS00NDQuNCAwYTQ0NC40IDQ0NC40IDAgMSAwIDg4OC44IDAgNDQ0LjQgNDQ0LjQgMCAxIDAtODg4LjggMFoiIGZpbGw9IiNGQUIwMDEiIHAtaWQ9IjI0MDQiPjwvcGF0aD48cGF0aCBkPSJNODg3LjcgNDU5LjFjMC0xMzIuNS01OC0yNTEuMy0xNTAtMzMyLjdDNjcxLjYgODcuMiA1OTQuNCA2NC43IDUxMiA2NC43Yy0yNDUuNCAwLTQ0NC40IDE5OS00NDQuNCA0NDQuNCAwIDEzMi41IDU4IDI1MS4zIDE1MCAzMzIuNyA2Ni4yIDM5LjEgMTQzLjMgNjEuNyAyMjUuOCA2MS43IDI0NS40IDAgNDQ0LjMtMTk5IDQ0NC4zLTQ0NC40eiIgZmlsbD0iI0Y5RTQ4QSIgcC1pZD0iMjQwNSI+PC9wYXRoPjxwYXRoIGQ9Ik01NjggMTAyLjVjLTI0NS40IDAtNDQ0LjQgMTk5LTQ0NC40IDQ0NC40IDAgMTIyLjUgNDkuNyAyMzMuNCAxMzAgMzEzLjggNTcuNiAyNy4zIDEyMS44IDQyLjggMTg5LjggNDIuOCAyNDUuNCAwIDQ0NC40LTE5OSA0NDQuNC00NDQuNCAwLTEyMi41LTQ5LjctMjMzLjQtMTMwLTMxMy44LTU3LjYtMjcuMy0xMjEuOS00Mi44LTE4OS44LTQyLjh6IiBmaWxsPSIjRkVDRTBBIiBwLWlkPSIyNDA2Ij48L3BhdGg+PHBhdGggZD0iTTcwNC40IDYxNi40YzAgMjguNi00LjkgNDQuNi0yNS4yIDU0LjMtMTUuNCA3LjMtMzUgOS40LTYwLjIgMTAtMTEuOCAwLjMtMjIuMS03LjctMjUuNC0xOS0wLjQtMS41LTAuOS0zLjEtMS40LTQuNi01LjMtMTYuNyA3LjMtMzMuNiAyNC44LTMzLjYgOCAwIDE0LjMtMC4xIDE3LjEtMC4zIDcuOCAwIDkuNy0xLjkgOS43LTguMlY1MTQuM2MwLTE0LjMtMTEuNi0yNS45LTI1LjktMjUuOWgtMzYuNGMtMTQuMyAwLTI1LjkgMTEuNi0yNS45IDI1Ljl2MTk1LjVjMCAxNC4zLTExLjYgMjUuOS0yNS45IDI1LjlINTIxYy0xNC4zIDAtMjUuOS0xMS42LTI1LjktMjUuOVY1MTQuM2MwLTE0LjMtMTEuNi0yNS45LTI1LjktMjUuOWgtMzNjLTE0LjMgMC0yNS45IDExLjYtMjUuOSAyNS45djE0MS42YzAgMTQuMy0xMS42IDI1LjktMjUuOSAyNS45aC03LjNjLTE0LjMgMC0yNS45LTExLjYtMjUuOS0yNS45VjQ1OGMwLTE0LjMgMTEuNi0yNS45IDI1LjktMjUuOWg5Mi4yYzE0LjMgMCAyNS45LTExLjYgMjUuOS0yNS45di0xMC45YzAtMTQuOC0xMi40LTI2LjYtMjcuMi0yNS45LTM4LjggMS43LTc3LjUgMi43LTExNC42IDMtMTIuMSAwLjEtMjIuOS04LjMtMjUuNC0yMC4xIDAtMC4yLTAuMS0wLjQtMC4xLTAuNi0zLjQtMTYuMSA4LjMtMzEuNCAyNC44LTMxLjggMTE4LTIuNyAyNDUuOS0xMC42IDMzOC4zLTIyLjggMTEuNi0xLjUgMjIuNyA0LjkgMjcuMiAxNS43bDEuMSAyLjZjNi42IDE1LjgtMy40IDMzLjYtMjAuNCAzNS44LTM2LjkgNC45LTc3LjIgOC43LTExOS4zIDExLjktMTMuNSAxLTIzLjkgMTIuMy0yMy45IDI1Ljl2MTcuM2MwIDE0LjMgMTEuNiAyNS45IDI1LjkgMjUuOWg5N2MxNC4zIDAgMjUuOSAxMS42IDI1LjkgMjUuOXYxNTguM3oiIGZpbGw9IiNGRkZGRkYiIHAtaWQ9IjI0MDciPjwvcGF0aD48L3N2Zz4=">
</image>
</button>
</view>
<!-- 订单-余额 -->
<view class="order">
<!-- 订单类型 -->
<view class="title">我的订单</view>
<view class="list">
<view class="box" v-for="(row,index) in orderList" :key="index" @tap="toOrderList(index)">
<view class="img">
@ -40,27 +39,6 @@
<view class="text">{{row.text}}</view>
</view>
</view>
<!-- 余额 -->
<view class="balance-info">
<view class="left">
<view class="box">
<view class="num">{{user.integral}}</view>
<view class="text">积分</view>
</view>
<view class="box">
<view class="num">{{user.balance}}</view>
<view class="text">余额</view>
</view>
</view>
<view class="right">
<view class="box" @tap="toDeposit">
<view class="img">
<view class="icon chongzhi"></view>
</view>
<view class="text">充值</view>
</view>
</view>
</view>
</view>
<!-- 工具栏 -->
<view class="toolbar">
@ -76,121 +54,176 @@
</view>
<!-- 占位 -->
<view class="place-bottom"></view>
<authorize></authorize>
</view>
</template>
<script>
import {
GetPhoneNumber,
findUser
} from "../../../Utils/Api.js";
let app = getApp()
import authorize from '../../../components/Authorize';
export default {
components: {
authorize
},
data() {
return {
isfirst:true,
headerPosition:"fixed",
headerTop:null,
statusTop:null,
showHeader:true,
isfirst: true,
headerPosition: "fixed",
headerTop: null,
statusTop: null,
showHeader: true,
//,
user:{
username:'游客1002',
face:'/static/img/face.jpg',
signature:'点击昵称跳转登录/注册页',
integral:0,
balance:0,
envelope:0
},
user: "",
//
orderList:[
{text:'待付款',icon:"fukuan"},
{text:'待发货',icon:"fahuo"},
{text:'待收货',icon:"shouhuo"},
{text:'待评价',icon:"pingjia"},
orderList: [{
text: '待支付',
icon: "fukuan"
},
{
text: '已支付',
icon: "fahuo"
},
{
text: '已完成',
icon: "shouhuo"
},
// {
// text: '退',
// icon: "pingjia"
// },
{
text: '已取消',
icon: "pingjia"
},
],
//
mytoolbarList:[
{url:'../../user/keep/keep',text:'充值记录',img:'/static/img/user/point.png'},
{url:'../../user/coupon/coupon',text:'优惠券',img:'/static/img/user/quan.png'},
{url:'',text:'中石化券码',img:'/static/img/user/renw.png'},
{url:'',text:'卡券',img:'/static/img/user/choujiang.png'},
{url:'../../login/login',text:'商户入口',img:'/static/img/user/mingxi.png'}
mytoolbarList: [{
url: '/pages/goods/recording/recording?id=1',
text: '充值记录',
img: '/static/img/user/mingxi.png'
},
{
url: '/pages/goods/recording/recording?id=2',
text: '消费记录',
img: '/static/img/user/quan.png'
},
{
url: '/pages/user/mineCoupons/mineCoupons',
text: '我的卡券',
img: '/static/img/user/choujiang.png'
},
{
url: '../../login/login',
text: '商户入口',
img: '/static/img/user/point.png'
}
]
}
},
//page.json "enablePullDownRefresh": true
onPullDownRefresh() {
setTimeout(function () {
uni.stopPullDownRefresh();
}, 1000);
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
},
onPageScroll(e){
onPageScroll(e) {
//iOS
this.headerPosition = e.scrollTop>=0?"fixed":"absolute";
this.headerTop = e.scrollTop>=0?null:0;
this.statusTop = e.scrollTop>=0?null:-this.statusHeight+'px';
this.headerPosition = e.scrollTop >= 0 ? "fixed" : "absolute";
this.headerTop = e.scrollTop >= 0 ? null : 0;
this.statusTop = e.scrollTop >= 0 ? null : -this.statusHeight + 'px';
},
onLoad() {
this.statusHeight = 0;
// #ifdef APP-PLUS
this.showHeader = false;
this.statusHeight = plus.navigator.getStatusbarHeight();
// #endif
},
onReady(){
onReady() {
//,
uni.setStorage({
key: 'UserInfo',
data: false,
success: function () {
},
fail:function(e){
}
success: function() {},
fail: function(e) {}
});
},
onShow(){
uni.getStorage({
key: 'UserInfo',
success: (res)=>{
if(!res.data){
if(this.isfirst){
//this.toLogin();
}
return ;
}
this.user = res.data;
},
fail:(e)=>{
//this.toLogin();
}
});
onShow() {
if (app.globalData.userInfo) {
this.findUser();
}
},
methods: {
//
toMsg(){
uni.navigateTo({
url:'../../msg/msg'
})
findUser() {
let params;
findUser(params).then(res => {
if (res.return_code == '000000') {
app.globalData.userInfo = res.return_data;
this.user = res.return_data;
uni.setStorage({
key: "user",
data: res.return_data
})
}
});
},
toOrderList(index){
uni.setStorageSync('tbIndex',index);
uni.navigateTo({url:'../../user/order_list/order_list?tbIndex='+index})
getPhoneNumber(PhoneNumber) {
let params = {
openId: app.globalData.openId,
iv: PhoneNumber.detail.iv,
encryptedData: PhoneNumber.detail.encryptedData
}
GetPhoneNumber(params).then(res => {
if (res.return_code == '000000') {
app.globalData.userInfo = res.return_data
.object
.highUser;
uni.setStorage({
key: "user",
data: res.return_data
.object
.highUser
})
this.toDeposit();
}
});
},
toSetting(){
//
toMsg() {
// uni.navigateTo({
// url:'../../msg/msg'
// })
uni.showToast({
title: '暂未开通',
icon: 'none'
});
},
toOrderList(index) {
uni.navigateTo({
url:'../../user/setting/setting'
url: '../../user/order_list/order_list?tbIndex=' + index
})
},
toMyQR(){
// toSetting() {
// uni.navigateTo({
// url: '../../user/setting/setting'
// })
// },
toMyQR() {
uni.navigateTo({
url:'../../user/myQR/myQR'
url: '../../user/myQR/myQR'
})
},
toLogin(){
uni.showToast({title: '请登录',icon:"none"});
toLogin() {
uni.showToast({
title: '请登录',
icon: "none"
});
uni.navigateTo({
url:'../../login/login'
url: '../../login/login'
})
this.isfirst = false;
},
isLogin(){
isLogin() {
//,token.
const value = uni.getStorageSync('UserInfo');
if (value) {
@ -198,24 +231,32 @@
}
return false
},
toDeposit(){
toDeposit() {
uni.navigateTo({
url:'../../user/deposit/deposit'
url: '../../user/deposit/deposit'
})
},
toPage(url){
if(!url){
uni.showToast({title: '模板未包含此页面',icon:"none"});return;
toPage(url) {
if (!url) {
uni.showToast({
title: '模板未包含此页面',
icon: "none"
});
return;
}
uni.navigateTo({
url:url
url: url
})
}
}
}
}
</script>
<style lang="scss">
page{position: relative;background-color: #fff;}
page {
position: relative;
background-color: #fff;
}
.status {
width: 100%;
height: 0;
@ -224,12 +265,12 @@
background-color: #f06c7a;
top: 0;
/* #ifdef APP-PLUS */
height: var(--status-bar-height);//
height: var(--status-bar-height); //
/* #endif */
}
.header{
.header {
width: 92%;
padding: 0 4%;
height: 100upx;
@ -242,13 +283,15 @@
background-color: #f06c7a;
/* #ifdef APP-PLUS */
top: var(--status-bar-height);
/* #endif */
.icon-btn{
.icon-btn {
width: 120upx;
height: 60upx;
flex-shrink: 0;
display: flex;
.icon{
.icon {
color: #fff;
width: 60upx;
height: 60upx;
@ -259,17 +302,20 @@
}
}
}
.place{
.place {
background-color: #f06c7a;
height: 100upx;
/* #ifdef APP-PLUS */
margin-top: var(--status-bar-height);
/* #endif */
}
.place-bottom{
.place-bottom {
height: 300upx;
}
.user{
.user {
width: 92%;
padding: 0 4%;
display: flex;
@ -277,71 +323,92 @@
// position: relative;
background-color: #f06c7a;
padding-bottom: 40rpx;
.left{
.left {
width: 20vw;
height: 20vw;
flex-shrink: 0;
margin-right: 20upx;
border: solid 1upx #fff;
border-radius: 100%;
image{
image {
width: 20vw;
height: 20vw;
border-radius: 100%;
}
}
.right{
.right {
width: 100%;
.username{
.username {
font-size: 36upx;
color: #fff;
}
.signature{
.signature {
color: #eee;
font-size: 28upx;
}
}
.erweima{
.erweima {
flex-shrink: 0;
width: 10vw;
height: 10vw;
width: 50px;
height: 50px;
padding: 0;
margin-left: 5vw;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to left, #fbbb37 0%,#fcf0d0 105%);
.icon{
background: linear-gradient(to left, #fbbb37 0%, #fcf0d0 105%);
.icon {
color: #7b6335;
font-size: 42upx;
}
}
}
.order{
width: 84%;
margin: 30upx 4% 30upx 4%;
padding: 30upx 4% 20upx 4%;
.order {
.title {
padding-top: 10upx;
margin: 0 0 10upx 3%;
font-size: 30upx;
height: 80upx;
display: flex;
align-items: center;
}
width: 92%;
margin: 30rpx 4% 30rpx 4%;
padding: 0rpx 0% 20rpx 0%;
background-color: #fff;
box-shadow: 0upx 0upx 25upx rgba(0,0,0,0.1);
border-radius: 15upx;
.list{
box-shadow: 0rpx 0rpx 25rpx rgba(0, 0, 0, 0.1);
border-radius: 15rpx;
.list {
display: flex;
border-bottom: solid 1upx #17e6a1;
padding-bottom: 10upx;
.box{
.box {
width: 25%;
.img{
.img {
width: 100%;
display: flex;
justify-content: center;
.icon{
.icon {
font-size: 50upx;
color: #464646;
}
}
.text{
.text {
width: 100%;
display: flex;
justify-content: center;
@ -350,17 +417,20 @@
}
}
}
.balance-info{
.balance-info {
display: flex;
padding: 10upx 0;
.left{
.left {
width: 75%;
display: flex;
.box{
.box {
width: 50%;
font-size: 28upx;
.num{
.num {
width: 100%;
height: 50upx;
display: flex;
@ -368,7 +438,8 @@
align-items: flex-end;
color: #f9a453;
}
.text{
.text {
width: 100%;
display: flex;
justify-content: center;
@ -377,23 +448,27 @@
}
}
}
.right{
.right {
border-left: solid 1upx #17e6a1;
width: 25%;
.box{
.img{
.box {
.img {
width: 100%;
height: 50upx;
display: flex;
justify-content: center;
align-items: flex-end;
.icon{
.icon {
font-size: 45upx;
color: #e78901;
}
}
.text{
.text {
width: 100%;
display: flex;
justify-content: center;
@ -404,30 +479,35 @@
}
}
}
.VIP{
.VIP {
width: 84%;
margin: -65upx auto 20upx auto;
padding: 30upx 4%;
background: linear-gradient(to left, #dea96d 0%,#f6d59b 100%);
box-shadow: 0upx 0upx 25upx rgba(0,0,0,0.2);
background: linear-gradient(to left, #dea96d 0%, #f6d59b 100%);
box-shadow: 0upx 0upx 25upx rgba(0, 0, 0, 0.2);
border-radius: 15upx;
display: flex;
align-items: center;
.img{
.img {
flex-shrink: 0;
width: 60upx;
height: 60upx;
image{
image {
width: 60upx;
height: 60upx;
}
}
.title{
.title {
width: 100%;
color: #796335;
font-size: 30upx;
}
.tis{
.tis {
width: 100%;
display: flex;
justify-content: flex-end;
@ -435,14 +515,16 @@
font-size: 26upx;
}
}
.toolbar{
.toolbar {
width: 92%;
margin: 0 4% 0 4%;
padding: 0 0 20upx 0;
background-color: #fff;
box-shadow: 0upx 0upx 25upx rgba(0,0,0,0.1);
box-shadow: 0upx 0upx 25upx rgba(0, 0, 0, 0.1);
border-radius: 15upx;
.title{
.title {
padding-top: 10upx;
margin: 0 0 10upx 3%;
font-size: 30upx;
@ -450,24 +532,28 @@
display: flex;
align-items: center;
}
.list{
.list {
display: flex;
flex-wrap: wrap;
.box{
.box {
width: 25%;
margin-bottom: 30upx;
.img{
.img {
width: 23vw;
height: 10.5vw;
display: flex;
justify-content: center;
image{
image {
width: 9vw;
height: 9vw;
}
}
.text{
.text {
width: 100%;
display: flex;
justify-content: center;

File diff suppressed because one or more lines are too long

@ -1,12 +1,9 @@
<template>
<view>
<template>
<view>
<view class="block">
<view class="title">
我的账户
</view>
<view class="content">
<view class="my">
我的账户余额0
我的账户余额 {{user.gold}} ( 1:100)
</view>
</view>
</view>
@ -17,7 +14,8 @@
<view class="content">
<view class="amount">
<view class="list">
<view class="box" v-for="(amount,index) in amountList" :key="index" @tap="select(amount)" :class="{'on':amount == inputAmount}">
<view class="box" v-for="(amount,index) in amountList" :key="index" @tap="select(amount)"
:class="{'on':amount == inputAmount}">
{{amount}}
</view>
</view>
@ -50,89 +48,149 @@
</view>
</view> -->
<view class="row" @tap="paytype='wxpay'">
<view class="left">
<image src="/static/img/wxpay.png"></image>
</view>
<view class="center">
微信支付
</view>
<view class="right">
<radio :checked="paytype=='wxpay'" color="#f06c7a" />
</view>
<view class="left">
<image src="/static/img/wxpay.png"></image>
</view>
<view class="center">
微信支付
</view>
<view class="right">
<radio :checked="paytype=='wxpay'" color="#f06c7a" />
</view>
</view>
</view>
</view>
</view>
<view class="pay">
<view class="btn" @tap="doDeposit">立即充值</view>
<button class="btn" @tap="doDeposit">立即充值</button>
<view class="tis">
点击立即充值即代表您同意<view class="terms">
条款协议
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
</view>
</view>
</template>
<script>
let app = getApp()
import {
addOrder,
orderToPay
} from "../../../Utils/Api.js";
export default {
data() {
return {
inputAmount:'',//
amountList:[10,50,100],//3
paytype:'wxpay'//
};
inputAmount: '', //
amountList: [10, 50, 100], //3
paytype: 'wxpay', //
user: "",
};
},
methods:{
select(amount){
methods: {
select(amount) {
this.inputAmount = amount;
},
doDeposit(){
doDeposit() {
if (parseFloat(this.inputAmount).toString() == "NaN") {
uni.showToast({title:'请输入正确金额',icon:'none'});
return ;
}
if(this.inputAmount<=0){
uni.showToast({title:'请输入大于0的金额',icon:'none'});
return ;
uni.showToast({
title: '请输入正确金额',
icon: 'none'
});
return;
}
if(parseFloat(this.inputAmount).toFixed(2)!=parseFloat(this.inputAmount)){
uni.showToast({title:'最多只能输入两位小数哦~',icon:'none'});
return ;
if (this.inputAmount <= 0) {
uni.showToast({
title: '请输入大于0的金额',
icon: 'none'
});
return;
}
///
uni.showLoading({
title:'支付中...'
});
setTimeout(()=>{
uni.hideLoading();
if (parseFloat(this.inputAmount).toFixed(2) != parseFloat(this.inputAmount)) {
uni.showToast({
title:'支付成功'
title: '最多只能输入两位小数哦~',
icon: 'none'
});
setTimeout(()=>{
uni.redirectTo({
url:'../../pay/success/success?amount='+this.inputAmount
return;
}
uni.showLoading({
title: '正在提交订单...'
})
let goods = {
"highChildOrderList": [{
"goodsType": 2,
"goodsId": app.globalData.userInfo.id,
"saleCount": 1,
"goodsPrice": 0.01
}]
}
addOrder(goods).then(res => {
if (res.return_code == '000000') {
///
uni.showLoading({
title: '支付中...'
})
let params = {
"orderId": res.return_data.id,
"openId": app.globalData.openId,
"orderScene": "GOODS_ORDER"
}
orderToPay(params).then(res => {
if (res.return_code == '000000') {
uni.requestPayment({
"appId": res.return_data.appId,
"nonceStr": res.return_data.nonceStr,
"package": res.return_data.package,
"paySign": res.return_data.sign,
"signType": "MD5",
"timeStamp": res.return_data.timeStamp,
success: function(res) {
uni.hideLoading();
uni.showToast({
title: '支付成功'
})
setTimeout(() => {
uni.navigateBack({})
}, 100)
},
fail: function(err) {
uni.hideLoading();
console.log('fail:' + JSON.stringify(err));
}
});
}else{
uni.showToast({
title:'支付失败'
})
}
})
} else {
uni.showToast({
title: res.return_msg
});
},300);
},700)
}
})
}
},
onLoad() {
},
}
</script>
this.user = app.globalData.userInfo
},
}
</script>
<style lang="scss">
.block{
.block {
width: 94%;
padding: 20upx 3%;
.title{
.title {
width: 100%;
font-size: 34upx;
}
.content{
.my{
.content {
.my {
width: 100%;
height: 120upx;
display: flex;
@ -140,46 +198,53 @@
font-size: 30upx;
border-bottom: solid 1upx #eee;
}
.amount{
.amount {
width: 100%;
.list{
.list {
display: flex;
justify-content: space-between;
padding: 20upx 0;
.box{
.box {
width: 30%;
height: 120upx;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10upx;
box-shadow: 0upx 5upx 20upx rgba(0,0,0,0.05);
box-shadow: 0upx 5upx 20upx rgba(0, 0, 0, 0.05);
font-size: 36upx;
background-color: #f1f1f1;
color: 333;
&.on{
&.on {
background-color: #f06c7a;
color: #fff;
}
}
}
.num{
.num {
margin-top: 10upx;
display: flex;
justify-content: flex-end;
align-items: center;
.text{
.text {
padding-right: 10upx;
font-size: 30upx;
}
.input{
.input {
width: 28.2vw;
border-bottom: solid 2upx #999;
justify-content: flex-end;
align-items: center;
input{
input {
margin: 0 20upx;
height: 60upx;
font-size: 30upx;
@ -190,29 +255,35 @@
}
}
}
.pay-list{
.pay-list {
width: 100%;
border-bottom: solid 1upx #eee;
.row{
.row {
width: 100%;
height: 120upx;
display: flex;
align-items: center;
.left{
.left {
width: 100upx;
flex-shrink: 0;
display: flex;
align-items: center;
image{
image {
width: 80upx;
height: 80upx;
}
}
.center{
.center {
width: 100%;
font-size: 30upx;
}
.right{
.right {
width: 100upx;
flex-shrink: 0;
display: flex;
@ -222,13 +293,15 @@
}
}
}
.pay{
.pay {
margin-top: 20upx;
width: 100%;
display: flex;
justify-content: center;
flex-wrap: wrap;
.btn{
.btn {
width: 70%;
height: 80upx;
border-radius: 80upx;
@ -237,9 +310,10 @@
align-items: center;
color: #fff;
background-color: #f06c7a;
box-shadow: 0upx 5upx 10upx rgba(0,0,0,0.2);
box-shadow: 0upx 5upx 10upx rgba(0, 0, 0, 0.2);
}
.tis{
.tis {
margin-top: 10upx;
width: 100%;
font-size: 24upx;
@ -247,9 +321,10 @@
justify-content: center;
align-items: baseline;
color: #999;
.terms{
.terms {
color: #5a9ef7;
}
}
}
}
</style>

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>

@ -9,41 +9,65 @@
<!-- 考虑非APP端长列表和复杂的DOM使用scroll-view会卡顿所以漂浮顶部选项卡使用page本身的滑动 -->
<view class="order-list">
<view class="list">
<view class="onorder" v-if="list.length==0">
<view class="onorder" v-if="orderList.length==0">
<image src="../../../static/img/noorder.png"></image>
<view class="text">
没有相关订单
</view>
</view>
<view class="row" v-for="(row,index) in list" :key="index">
<view class="type">{{typeText[row.type]}}</view>
<view class="order-info">
<view class="row" v-for="(row,index) in orderList" :key="index">
<view class="type">{{typeText[row.orderStatus]}}</view>
<view class="order-info" @click="jumpDetails(row.id)">
<view class="left">
<image :src="row.img"></image>
<image v-if="row.highChildOrderList[0].goodsType == 1"
:src="imageUrl+row.highChildOrderList[0].goodsImg"></image>
<image v-else :src="row.highChildOrderList[0].goodsImg"></image>
</view>
<view class="right">
<view class="name">
{{row.name}}
{{row.highChildOrderList[0].goodsName}}
</view>
<view class="spec">{{row.spec}}</view>
<view class="price-number">
<view class="price">{{row.price}}</view>
x<view class="number">{{row.numner}}</view>
<view class="spec">规格 : {{row.highChildOrderList[0].goodsSpecName}}</view>
<view class="price-number fcorred">
<view class="price mart5">{{row.highChildOrderList[0].totalPrice}}</view>
<!-- x<view class="number">{{row.highChildOrderList[0].saleCount}}</view> -->
</view>
<view class="zspec" v-if="row.highChildOrderList[0].goodsType == 1">卡券订单</view>
<view class="zspec" v-else>金币订单</view>
</view>
</view>
<view class="detail">
<view class="number">{{row.numner}}件商品</view><view class="sum">合计<view class="price">{{row.payment}}</view></view><view class="nominal">(含运费 {{row.freight}})</view>
<view class="number">{{row.highChildOrderList[0].saleCount}}件商品</view>
<view class="sum">合计:<view class="price fcorred">{{row.payPrice}}</view>
</view>
</view>
<view class="btns">
<block v-if="row.type=='unpaid'"><view class="default" @tap="cancelOrder(row)">取消订单</view><view class="pay" @tap="toPayment(row)">付款</view></block>
<block v-if="row.type=='back'"><view class="default" @tap="remindDeliver(row)">提醒发货</view></block>
<block v-if="row.type=='unreceived'"><view class="default" @tap="showLogistics(row)">查看物流</view><view class="pay">确认收货</view><view class="pay">我要退货</view></block>
<block v-if="row.type=='received'"><view class="default">评价</view><view class="default">再次购买</view></block>
<block v-if="row.type=='completed'"><view class="default">再次购买</view></block>
<block v-if="row.type=='refunds'"><view class="default">查看进度</view></block>
<block v-if="row.type=='cancelled'"><view class="default">已取消</view></block>
<view class="btns" v-if="row.orderStatus==1">
<block>
<view class="default" @tap="cancelOrder(row.id)">取消订单</view>
<view class="pay" @tap="toPayment(row)">付款</view>
</block>
<!-- <block v-if="row.type=='back'">
<view class="default" @tap="remindDeliver(row)">提醒发货</view>
</block>
<block v-if="row.type=='unreceived'">
<view class="default" @tap="showLogistics(row)">查看物流</view>
<view class="pay">确认收货</view>
<view class="pay">我要退货</view>
</block>
<block v-if="row.type=='received'">
<view class="default">评价</view>
<view class="default">再次购买</view>
</block>
<block v-if="row.type=='completed'">
<view class="default">再次购买</view>
</block>
<block v-if="row.type=='refunds'">
<view class="default">查看进度</view>
</block>
<block v-if="row.type=='cancelled'">
<view class="default">已取消</view>
</block> -->
</view>
</view>
</view>
@ -51,310 +75,400 @@
</view>
</template>
<script>
import {
getUserOrderList,
cancelOrder
} from '../../../Utils/Api.js';
let app = getApp()
export default {
data() {
return {
headerPosition:"fixed",
headerTop:"0px",
typeText:{
unpaid:'等待付款',
back:'等待商家发货',
unreceived:'商家已发货',
received:'等待用户评价',
completed:'交易已完成',
refunds:'商品退货处理中',
cancelled:'订单已取消'
},
headerPosition: "fixed",
headerTop: "0px",
typeText: {
1: '等待付款',
2: '订单已支付',
3: '订单已完成',
5: '订单已取消'
},
// 退
orderType: ['全部','待付款','待发货','待收货','待评价'],
orderType: ['全部', '待支付', '已支付', '已完成', '已取消'],
//
orderList:[
[
{ type:"unpaid",ordersn:0,goods_id: 0, img: '/static/img/goods/p1.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '168.00',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 },
{ type:"unpaid",ordersn:1,goods_id: 1, img: '/static/img/goods/p2.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '168.00',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 },
{ type:"back",ordersn:2,goods_id: 1, img: '/static/img/goods/p3.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '168.00',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 },
{ type:"unreceived",ordersn:3,goods_id: 1, img: '/static/img/goods/p4.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '168.00',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 },
{ type:"received",ordersn:4,goods_id: 1, img: '/static/img/goods/p5.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '168.00',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 },
{ type:"completed",ordersn:5,goods_id: 1, img: '/static/img/goods/p6.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '168.00',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 },
{ type:"refunds",ordersn:6,goods_id: 1, img: '/static/img/goods/p5.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 },
{ type:"cancelled",ordersn:7,goods_id: 1, img: '/static/img/goods/p5.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 }
],
[
{ type:"unpaid",ordersn:0,goods_id: 0, img: '/static/img/goods/p1.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 },
{ type:"unpaid",ordersn:1,goods_id: 1, img: '/static/img/goods/p2.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 }
],
[
//
],
[
{ type:"unreceived",ordersn:3,goods_id: 1, img: '/static/img/goods/p4.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 }
],
[
{ type:"received",ordersn:4,goods_id: 1, img: '/static/img/goods/p5.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 }
],
[
{ type:"refunds",ordersn:6,goods_id: 1, img: '/static/img/goods/p5.jpg', name: '商品名称商品名称商品名称商品名称商品名称', price: '¥168',payment:168.00,freight:12.00,spec:'规格:S码',numner:1 }
]
],
list:[],
tabbarIndex:0
};
orderList: [],
list: [],
tabbarIndex: 0,
pageNum: 1,
pageSize: 10,
isNoMoreData: false,
loadingText: '',
typeId: '',
imageUrl: app.globalData.imgUrl
}
},
onLoad(option) {
//optionobject
console.log("option: " + JSON.stringify(option));
let tbIndex = parseInt(option.tbIndex)+1;
let tbIndex = parseInt(option.tbIndex) + 1;
this.list = this.orderList[tbIndex];
this.tabbarIndex = tbIndex;
//H5
// #ifdef H5
let Timer = setInterval(()=>{
let uniHead = document.getElementsByTagName('uni-page-head');
if(uniHead.length>0){
this.headerTop = uniHead[0].offsetHeight+'px';
clearInterval(Timer);//
}
},1);
// #endif
this.tabbarIndex = tbIndex;
this.typeId = tbIndex;
this.getUserOrderList();
},
onPageScroll(e){
onPageScroll(e) {
return;
//iOS
this.headerPosition = e.scrollTop>=0?"fixed":"absolute";
this.headerPosition = e.scrollTop >= 0 ? "fixed" : "absolute";
},
onReachBottom() {
this.getUserOrderList();
},
methods: {
showType(tbIndex){
//
getUserOrderList() {
uni.showLoading({
title: '加载中...'
})
if (this.isNoMoreData) {
uni.hideLoading()
return false;
}
let statusId;
if (this.typeId == 4) {
statusId = 5;
} else {
statusId = this.typeId;
}
let pagenum = this.pageNum;
let params = {
status: statusId,
pageNum: this.pageNum,
pageSize: this.pageSize
}
getUserOrderList(params).then(res => {
if (res.return_code == '000000' && res.return_data.list != '') {
uni.hideLoading();
this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true;
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum;
this.orderList = this.orderList.concat(res.return_data.list);
} else {
this.orderList = [];
uni.hideLoading()
}
})
},
//
jumpDetails(e) {
uni.navigateTo({
url: '../order_details/order_details?id=' + e
})
},
showType(tbIndex) {
this.tabbarIndex = tbIndex;
this.list = this.orderList[tbIndex];
this.pageNum = 1;
this.orderList = []
this.isNoMoreData = false;
if (tbIndex == 0) {
this.typeId = '';
} else {
this.typeId = tbIndex;
}
this.getUserOrderList();
},
showLogistics(row){
showLogistics(row) {
},
remindDeliver(row){
remindDeliver(row) {
uni.showToast({
title:'已提醒商家发货'
title: '已提醒商家发货'
})
},
cancelOrder(row){
cancelOrder(row) {
let that = this;
uni.showModal({
title: '取消订单',
content: '确定取消此订单?',
success: (res)=>{
success: (res) => {
if (res.confirm) {
console.log('用户点击确定');
this.doCancelOrder(row.ordersn);
uni.showLoading({
title: '加载中...'
})
let params = {
orderId: row,
}
cancelOrder(params).then(res => {
if (res.return_code == '000000') {
uni.hideLoading();
uni.showToast({
title: res.return_data,
icon: 'none',
duration: 2000
})
this.pageNum = 1;
this.orderList = []
this.isNoMoreData = false;
that.getUserOrderList();
} else {
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000
})
uni.hideLoading()
}
})
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
},
doCancelOrder(ordersn){
doCancelOrder(ordersn) {
let typeNum = this.orderList.length;
for(let i=0;i<typeNum;i++){
for (let i = 0; i < typeNum; i++) {
let list = this.orderList[i];
let orderNum = list.length;
if(orderNum>0 && list[0].type=='unpaid'){
for(let j=0;j<orderNum;j++){
if(this.orderList[i][j].ordersn == ordersn){
if (orderNum > 0 && list[0].type == 'unpaid') {
for (let j = 0; j < orderNum; j++) {
if (this.orderList[i][j].ordersn == ordersn) {
this.orderList[i][j].type = 'cancelled';
break;
}
}
}
}
},
toPayment(row){
//UI
uni.showLoading({
title:'正在获取订单...'
toPayment(row) {
console.log('===' + row.payPrice)
let payTypes;
if (row.payType == null) {
payTypes = 3
}
uni.redirectTo({
url: "/pages/pay/payment/payment?amount=" + row.payPrice +
'&paytype=3' + '&orderId=' + row.id
})
let paymentOrder = [];
paymentOrder.push(row);
setTimeout(()=>{
uni.setStorage({
key:'paymentOrder',
data:paymentOrder,
success: () => {
uni.hideLoading();
uni.navigateTo({
url:'../../pay/payment/payment?amount='+row.payment
})
}
})
},500)
}
}
}
</script>
<style lang="scss">
page{
background-color: #f3f3f3;
}
.topTabBar{
width: 100%;
position: fixed;
top: 0;
z-index: 10;
background-color: #f8f8f8;
height: 80upx;
display: flex;
justify-content: space-around;
.grid{
width: 20%;
height: 80upx;
page {
background-color: #f3f3f3;
}
.zspec {
font-size: 22rpx;
background-color: #f06c7a;
color: #FFFFFF;
height: 40rpx;
display: -webkit-box;
display: -webkit-flex;
display: flex;
width: 44px;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
padding: 0 15rpx;
border-radius: 4px;
margin-bottom: 10px;
margin-left: 5px;
}
.loading-text {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
color: #444;
font-size: 28upx;
.text{
height: 76upx;
display: flex;
align-items: center;
&.on{
color: #f06c7a;
border-bottom: solid 4upx #f06c7a;
}
}
height: 60upx;
color: #979797;
font-size: 24upx;
}
}
.order-list{
margin-top: 80upx;
padding-top: 20upx;
width: 100%;
.list{
width: 94%;
margin: 0 auto;
.onorder{
width: 100%;
height: 50vw;
.topTabBar {
width: 100%;
position: fixed;
top: 0;
z-index: 10;
background-color: #f8f8f8;
height: 80upx;
display: flex;
justify-content: space-around;
.grid {
width: 20%;
height: 80upx;
display: flex;
justify-content: center;
align-content: center;
flex-wrap: wrap;
image{
width: 20vw;
height: 20vw;
border-radius: 100%;
}
.text{
width: 100%;
height: 60upx;
font-size: 28upx;
color: #444;
align-items: center;
color: #444;
font-size: 28upx;
.text {
height: 76upx;
display: flex;
justify-content: center;
align-items: center;
&.on {
color: #f06c7a;
border-bottom: solid 4upx #f06c7a;
}
}
}
.row{
width: calc(100% - 40upx);
padding: 10upx 20upx;
border-radius: 10upx;
background-color: #fff;
margin-bottom: 20upx;
.type{
font-size: 26upx;
color: #ec652f;
height: 50upx;
display: flex;
align-items: center;
}
.order-info{
}
.order-list {
margin-top: 80upx;
padding-top: 20upx;
width: 100%;
.list {
width: 94%;
margin: 0 auto;
.onorder {
width: 100%;
height: 50vw;
display: flex;
.left{
flex-shrink: 0;
width: 25vw;
height: 25vw;
image{
width: 25vw;
height: 25vw;
border-radius: 10upx;
}
justify-content: center;
align-content: center;
flex-wrap: wrap;
image {
width: 20vw;
height: 20vw;
border-radius: 100%;
}
.right{
.text {
width: 100%;
margin-left: 10upx;
position: relative;
.name{
width: 100%;
font-size: 28upx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.spec{
color: #a7a7a7;
font-size: 22upx;
height: 60upx;
font-size: 28upx;
color: #444;
display: flex;
justify-content: center;
align-items: center;
}
}
.row {
width: calc(100% - 40upx);
padding: 10upx 20upx;
border-radius: 10upx;
background-color: #fff;
margin-bottom: 20upx;
.type {
font-size: 26upx;
color: #ec652f;
height: 50upx;
display: flex;
align-items: center;
}
.order-info {
width: 100%;
display: flex;
.left {
flex-shrink: 0;
width: 25vw;
height: 25vw;
image {
width: 25vw;
height: 25vw;
border-radius: 10upx;
}
}
.price-number{
position: absolute;
bottom: 0;
.right {
width: 100%;
display: flex;
justify-content: flex-end;
font-size: 22upx;
color: #333;
display: flex;
align-items: flex-end;
.price{
font-size: 24upx;
margin-right: 5upx;
margin-left: 10upx;
position: relative;
.name {
width: 100%;
font-size: 18px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.spec {
color: #a7a7a7;
font-size: 14px;
}
.price-number {
width: 100%;
font-size: 15px;
display: flex;
.price {
font-size: 14px;
margin-right: 5upx;
}
}
}
}
}
.detail{
display: flex;
justify-content: flex-end;
align-items: flex-end;
height: 60upx;
font-size: 26upx;
.sum{
padding: 0 8upx;
.detail {
display: flex;
justify-content: flex-end;
align-items: flex-end;
.price{
font-size: 30upx;
height: 60upx;
font-size: 26upx;
.sum {
padding: 0 8upx;
display: flex;
align-items: flex-end;
.price {
font-size: 30upx;
}
}
}
}
.btns{
height: 80upx;
display: flex;
align-items: center;
justify-content: flex-end;
view{
min-width: 120upx;
height: 50upx;
padding: 0 20upx;
border-radius: 50upx;
.btns {
height: 80upx;
display: flex;
justify-content: center;
align-items: center;
font-size: 28upx;
margin-left: 20upx;
}
.default{
border: solid 1upx #ccc;
color: #666;
}
.pay{
border: solid 1upx #ec652f;
color: #ec652f;
justify-content: flex-end;
view {
min-width: 120upx;
height: 50upx;
padding: 0 20upx;
border-radius: 50upx;
display: flex;
justify-content: center;
align-items: center;
font-size: 28upx;
margin-left: 20upx;
}
.default {
border: solid 1upx #ccc;
color: #666;
}
.pay {
border: solid 1upx #ec652f;
color: #ec652f;
}
}
}
}
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

@ -209,6 +209,15 @@ $uni-font-size-paragraph:30upx;
background-color: #f6f6f6;
}
.backcor9 {
background-color: #f6f6f6;
}
.backcorf06{
background-color: #f06c7a;
}
.backcor89 {
background-color: #089bf5;
}
@ -298,6 +307,12 @@ $uni-font-size-paragraph:30upx;
line-height: 30px;
}
.height40 {
height: 40px;
line-height: 40px;
}
.height20 {
height: 20px;
line-height: 20px;

@ -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 @@
<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…
Cancel
Save