作者 lihongjuan

1

正在显示 42 个修改的文件 包含 2554 行增加1399 行删除

要显示太多修改。

为保证性能只显示 42 of 42+ 个文件。

... ... @@ -6,8 +6,8 @@
onShow: function() {
console.log('App Show')
},
post: function(url, data,method) {
post: function(url, data, method) {
// (showLoad == undefined || showLoad) ?
// wx.showLoading({
// title: '加载中',
... ... @@ -21,30 +21,30 @@
token: token || ''
},
postData;
// console.log(token,"token")
// console.log(token,"token")
//网络请求
uni.request({
url: this.globalData.baseUrl + url,
data: data,
method: method,
header: header,
success: function(res) {
// console.log(res)//返回取得的数据
success: function(res) {
// console.log(res)//返回取得的数据
// console.log(res)
if (res.data.code ==1) {
if (res.data.code == 1) {
console.log(8888)
resolve(res);
}else{
} else {
reject(res.data)
}
},
fail: function(e) {
console.log(e)
console.log(e)
reject('网络出错');
// (showLoad || showLoad == undefined) ? wx.hideLoading() : "";
wx.hideNavigationBarLoading()
... ... @@ -58,9 +58,9 @@
},
globalData: {
userInfo: null,
baseUrl:'http://zhongmian.w.brotop.cn/api/'
baseUrl: 'http://zhongmian.w.brotop.cn/api/'
},
onHide: function() {
console.log('App Hide')
}
... ... @@ -73,6 +73,20 @@
width: 100%;
height: 100%;
}
.content.title {
padding-top: var(--status-bar-height);
box-sizing: border-box;
}
.status_bar {
height: var(--status-bar-height);
width: 100%;
background: #C29445;
position: fixed;
top: 0;
left: 0;
z-index: 3;
}
page {
background: #fff;
... ... @@ -199,6 +213,7 @@
width: 32rpx;
height: 32rpx;
font-size: 0;
flex: 0 0 auto;
}
.middleenter {
... ... @@ -208,10 +223,10 @@
}
.middleenter input {
width: 600rpx;
width: 100%;
height: 60rpx;
line-height: 60rpx;
padding:0 12rpx;
padding: 0 12rpx;
box-sizing: border-box;
color: #BDC4CE;
font-size: 24rpx;
... ... @@ -332,7 +347,7 @@
text-align: center;
line-height: 36rpx;
margin-top: 4rpx;
padding: 0 5rpx;
box-sizing: border-box;
}
... ... @@ -1020,15 +1035,16 @@
height: 37rpx;
font-size: 0;
}
.activename{
color:#FF9417;
.activename {
color: #FF9417;
}
/* 暂无数据 */
.nodata{
color:#999;
.nodata {
color: #999;
font-size: 32rpx;
text-align: center;
margin-top:30rpx;
margin-top: 30rpx;
}
</style>
... ...
... ... @@ -319,6 +319,7 @@
font-size: 24rpx;
}
.usertop {
width: 550rpx;
margin-top: 2rpx;
... ... @@ -420,7 +421,7 @@
.shuxingwrap {
width: 750rpx;
height: 920rpx;
/* height: 920rpx; */
background: #fff;
padding: 32rpx;
box-sizing: border-box;
... ... @@ -428,12 +429,14 @@
left: 0;
bottom: 0
}
.shucha {
width: 52rpx;
height: 52rpx;
font-size: 0;
margin-left: 22rpx;
}
.shuname {
width: 370rpx;
height: 120rpx;
... ... @@ -548,7 +551,7 @@
font-size: 28rpx;
text-align: center;
line-height: 88rpx;
margin-top:30rpx;
margin-top: 30rpx;
}
... ... @@ -597,6 +600,14 @@
border-bottom: 16rpx solid #f5f5f5;
background: #fff;
}
.sureshopk{
padding: 0 0rpx 32rpx;
}
.bigbox{
padding: 0 32rpx;
box-sizing: border-box;
}
.sureorderbox {
padding: 22rpx 0;
... ... @@ -606,7 +617,7 @@
.sureorderitem {
margin-top: 30rpx;
}
.sureorderitemleft {
... ... @@ -626,6 +637,17 @@
height: 76rpx;
}
.suregoodnamek {
color: #3C444C;
font-size: 28rpx;
margin-bottom: 20rpx;
}
.spec {
color: #3D454C;
font-size: 28rpx;
}
.surebot {
margin-top: 20rpx;
}
... ... @@ -640,15 +662,38 @@
font-size: 28rpx;
margin-right: 24rpx;
}
.dikouname{
width:200rpx;
}
.dikouname input{
width:100%;
height:100%;
color: #3D454C;
font-size: 28rpx;
}
.dikouinput{
color: #3D454C;
font-size: 28rpx;
}
.delivery {
padding: 34rpx 32rpx;
padding: 34rpx 0;
box-sizing: border-box;
background: #fff;
}
.markcontent {
border-top: 16rpx solid #F0EFF2;
/* border-top: 16rpx solid #F0EFF2; */
}
.botbox{
width:100%;
height:16rpx;
background:#F0EFF2;
}
.bigbox {
}
.markname {
... ... @@ -678,6 +723,9 @@
font-size: 0;
matign-left: 16rpx;
}
.youimg{
margin-left:16rpx;
}
.deliveryitemname {
color: #3D444C;
... ... @@ -764,4 +812,3 @@
margin-top: 42rpx;
border-top: 1rpx solid #f5f5f5;
}
... ...
不能预览此文件类型

802 字节

154 字节

870 字节

1019 字节

{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/homepage/homepage",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#C29445",
"navigationBarTextStyle": "white",
"navigationStyle": "custom",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
"bounce": "none"
}
}
},
{
"path": "pages/nearshop/cartlist",
"path": "pages/nearshop/selectcoupon",
"style": {
"navigationBarTitleText": "购物车",
"navigationBarTitleText": "选择优惠券",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/nearshop/cartbox",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/login/loginindex",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/nearshop/cartlist",
"style": {
"navigationBarTitleText": "购物车",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/homepage/collectshop",
"style": {
"navigationBarTitleText": "店铺收藏",
... ... @@ -33,7 +57,7 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/luntan/examineresult",
"style": {
... ... @@ -66,17 +90,7 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/login/loginindex",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/login/accountpassword",
"style": {
... ... @@ -85,8 +99,8 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/login/registercode",
"style": {
... ... @@ -111,7 +125,7 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/login/finishregister",
"style": {
... ... @@ -185,7 +199,7 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/nearshop/goodtail",
... ... @@ -261,19 +275,30 @@
{
"path": "pages/homepage/search",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
"type": "transparent", //透明渐变导航栏 App-nvue 2.4.4+ 支持
"searchInput": {
"backgroundColor": "#fff",
"borderRadius": "6px", //输入框圆角
"placeholder": "请输入搜索内容",
"disabled": false, //disable时点击输入框不置焦,可以跳到新页面搜索
"align":"left"
},
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "搜索"
}]
}
}
}
},
... ... @@ -285,7 +310,7 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/login/setmima",
... ... @@ -313,7 +338,7 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "pages/index/index",
"style": {
... ...
... ... @@ -170,7 +170,7 @@
font-family: uniicons;
font-weight: normal;
font-style: normal;
src: url('~@/static/uni.ttf') format('truetype');
/* src: url('~@/static/uni.ttf') format('truetype'); */
}
/* #endif */
... ...
<template>
<view class="content">
<view class="content title">
<view class="status_bar"></view>
<view class='navhead flextwo'>
<view class="navheadleft">
<view class="addimg">
... ... @@ -15,7 +16,7 @@
<input type="text" placeholder="请输入商品,店铺搜索" placeholder-class="enterk" />
</view>
</view>
<view class="navright">
<view class="navright" @click="cartlist">
<image src="../../static/cart.png" mode=""></image>
<view class="cartnum">16</view>
</view>
... ... @@ -100,7 +101,7 @@
</view>
</view>
<view class="homeshoplist flexone">
<view class="homeshopitem" v-for="(item,index) in shoplist" :key="index">
<view class="homeshopitem" v-for="(item,index) in shoplist" :key="index" @click="goodtail" :data-id="item.id">
<view class="gooditemimg">
<image :src="item.image" mode=""></image>
<view class="sale">已售{{item.sales}}件</view>
... ... @@ -206,10 +207,10 @@
showbanben: false,
footersel: 1,
jifenshow: false,
keyword:'',
order:'',
page:1,
shoplist:[]
keyword: '',
order: '',
page: 1,
shoplist: []
}
},
onLoad() {
... ... @@ -217,9 +218,15 @@
},
methods: {
// 抽奖专区
choujiang(){
choujiang() {
uni.navigateTo({
url:'/pages/homepage/drawlottery'
url: '/pages/homepage/drawlottery'
})
},
// 购物车列表
cartlist(){
uni.navigateTo({
url:'/pages/nearshop/cartlist'
})
},
// 获取面访商品列表
... ... @@ -234,15 +241,23 @@
}
app.post(url, params).then((res) => {
console.log(res);
that.shoplist=res.data.data
that.shoplist = res.data.data
}).catch((err) => {
})
},
// 商品详情
goodtail(e) {
let id = e.currentTarget.dataset.id;
// type 1 面访商品
uni.navigateTo({
url: '/pages/nearshop/goodtail?id=' + id + '&type=' + 1
})
},
hidebanben() {
this.showbanben = false
},
... ... @@ -303,8 +318,6 @@
})
}
},
}
}
... ... @@ -312,6 +325,15 @@
<style>
@import url('../../base/homepage');
.content {
padding-top: calc(var(--status-bar-height) + 88rpx);
}
.status_bar {
background: ;
}
.lianxu {
color: #3D444C;
... ... @@ -375,7 +397,7 @@
.navhead {
width: 750rpx;
position: fixed;
top: 0rpx;
top: var(--status-bar-height);
left: 0;
z-index: 99
}
... ...
<template>
<view class="content">
<view class='navhead flextwo searchnav'>
<view class="navheadleft">
<!-- <view class='navhead flextwo searchnav'>
<view class="navheadleft" @click="back">
<view class="yourow">
<image src="../../static/zuorow.png" mode=""></image>
</view>
... ... @@ -19,223 +19,467 @@
搜索
</view>
</view>
<!-- 历史搜索 -->
<view class="commnonpadding" v-if="history">
<view class="zuijin flextwo">
<view class="zuititle">最近搜索</view>
<view class="zuiyou">清除历史搜索</view>
</view>
<view class="searchbox flexone">
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
-->
</view>
<view class="searchbox">
<!-- 历史搜索 -->
<view class="commnonpadding" v-if="history">
<view class="zuijin flextwo">
<view class="zuititle">最近搜索</view>
<view class="zuiyou">清除历史搜索</view>
</view>
<view class="searchbox flexone">
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<view class="zuijin flextwo">
<view class="zuititle">热门搜索</view>
</view>
</view>
<view class="searchbox flexone">
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<view class="zuijin flextwo">
<view class="zuititle">热门搜索</view>
</view>
</view>
</view>
<view class="searchbox flexone">
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<view class="searchitem">龙须面</view>
<!-- 搜索店铺 -->
<view class="commnonpadding" v-if="shopshow">
<view class="searchshopitem flexone">
<view class="searchitemimg">
<image src="../../static/searchshop.png" mode=""></image>
</view>
<view class="searchname">“南阳面”店铺</view>
</view>
<view class="searchshopitem">
<view class="searchname">南阳面粉糕</view>
</view>
<view class="searchshopitem">
<view class="searchname">南阳面粉糕</view>
</view>
</view>
<!-- 搜索商品 -->
<view class="searchgood commnonpadding" v-if="searchgood">
<view class="searchgooditem flexone boxsizing">
<view class="gooditemleft">
<image src="../../static/goopic.png" mode=""></image>
<!-- 搜索店铺 -->
<view class="commnonpadding" v-if="shopshow">
<view class="searchshopitem flexone">
<view class="searchitemimg">
<image src="../../static/searchshop.png" mode=""></image>
</view>
<view class="searchname">“南阳面”店铺</view>
</view>
<view class="gooditemright ">
<view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view>
<view class="saleprice">¥288</view>
<view class="hui flextwo">
<view class="huiyuanprice">会员价:¥200</view>
<view class="yisale">已售76件</view>
<view class="searchshopitem">
<view class="searchname">南阳面粉糕</view>
</view>
<view class="searchshopitem">
<view class="searchname">南阳面粉糕</view>
</view>
</view>
<!-- 搜索商品 -->
<view class="searchgood commnonpadding" v-if="searchgood">
<view class="searchgooditem flexone boxsizing">
<view class="gooditemleft">
<image src="../../static/goopic.png" mode=""></image>
</view>
<view class="goodaddress flextwo">
<view class="goodaddressleft flexone">
<view class='addressimg'>
<image src="../../static/goodshop.png" mode=""></image>
</view>
<view class="addressname">湖北省南阳市南阳面粉厂</view>
<view class="gooditemright ">
<view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view>
<view class="saleprice">¥288</view>
<view class="hui flextwo">
<view class="huiyuanprice">会员价:¥200</view>
<view class="yisale">已售76件</view>
</view>
<view class="goodaddressright">
265km
<view class="goodaddress flextwo">
<view class="goodaddressleft flexone">
<view class='addressimg'>
<image src="../../static/goodshop.png" mode=""></image>
</view>
<view class="addressname">湖北省南阳市南阳面粉厂</view>
</view>
<view class="goodaddressright">
265km
</view>
</view>
</view>
</view>
</view>
<view class="searchgooditem flexone boxsizing">
<view class="gooditemleft">
<image src="../../static/goopic.png" mode=""></image>
</view>
<view class="gooditemright ">
<view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view>
<view class="saleprice">¥288</view>
<view class="hui flextwo">
<view class="huiyuanprice">会员价:¥200</view>
<view class="yisale">已售76件</view>
<view class="searchgooditem flexone boxsizing">
<view class="gooditemleft">
<image src="../../static/goopic.png" mode=""></image>
</view>
<view class="goodaddress flextwo">
<view class="goodaddressleft flexone">
<view class='addressimg'>
<image src="../../static/goodshop.png" mode=""></image>
</view>
<view class="addressname">湖北省南阳市南阳面粉厂</view>
<view class="gooditemright ">
<view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view>
<view class="saleprice">¥288</view>
<view class="hui flextwo">
<view class="huiyuanprice">会员价:¥200</view>
<view class="yisale">已售76件</view>
</view>
<view class="goodaddressright">
265km
<view class="goodaddress flextwo">
<view class="goodaddressleft flexone">
<view class='addressimg'>
<image src="../../static/goodshop.png" mode=""></image>
</view>
<view class="addressname">湖北省南阳市南阳面粉厂</view>
</view>
<view class="goodaddressright">
265km
</view>
</view>
</view>
</view>
</view>
<view class="searchgooditem flexone boxsizing">
<view class="gooditemleft">
<image src="../../static/goopic.png" mode=""></image>
</view>
<view class="gooditemright ">
<view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view>
<view class="saleprice">¥288</view>
<view class="hui flextwo">
<view class="huiyuanprice">会员价:¥200</view>
<view class="yisale">已售76件</view>
<view class="searchgooditem flexone boxsizing">
<view class="gooditemleft">
<image src="../../static/goopic.png" mode=""></image>
</view>
<view class="goodaddress flextwo">
<view class="goodaddressleft flexone">
<view class='addressimg'>
<image src="../../static/goodshop.png" mode=""></image>
</view>
<view class="addressname">湖北省南阳市南阳面粉厂</view>
<view class="gooditemright ">
<view class="goodsouname morehidden">商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称</view>
<view class="saleprice">¥288</view>
<view class="hui flextwo">
<view class="huiyuanprice">会员价:¥200</view>
<view class="yisale">已售76件</view>
</view>
<view class="goodaddressright">
265km
<view class="goodaddress flextwo">
<view class="goodaddressleft flexone">
<view class='addressimg'>
<image src="../../static/goodshop.png" mode=""></image>
</view>
<view class="addressname">湖北省南阳市南阳面粉厂</view>
</view>
<view class="goodaddressright">
265km
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 搜索店铺 -->
<view class="searchshop commnonpadding">
<view class="searchgooditem flex boxsizing">
<view class="shopleftimg">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="shopright">
<view class="shopname">湖北省南阳市南阳面粉厂</view>
<view class="shopmiddle flexone">
<view class="shopmiddleleft">
8.2
</view>
<view class="shopmiddleright">
<view class="star flex">
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/kongxing.png" mode=""></image>
</view>
<!-- 搜索店铺 -->
<view class="searchshop commnonpadding">
<view class="searchgooditem flex boxsizing">
<view class="shopleftimg">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="shopright">
<view class="shopname">湖北省南阳市南阳面粉厂</view>
<view class="shopmiddle flexone">
<view class="shopmiddleleft">
8.2
</view>
<view class="shopmiddleright">
<view class="star flex">
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/kongxing.png" mode=""></image>
</view>
</view>
<view class="haoping">好评率96%</view>
</view>
<view class="haoping">好评率96%</view>
</view>
</view>
<view class="shopdizhi flexone">
<view class="shopdiimg">
<image src="../../static/shopaddress.png" mode=""></image>
<view class="shopdizhi flexone">
<view class="shopdiimg">
<image src="../../static/shopaddress.png" mode=""></image>
</view>
<view class='shopli'>距离256km</view>
</view>
<view class='shopli'>距离256km</view>
</view>
</view>
</view>
<view class="searchgooditem flex boxsizing">
<view class="shopleftimg">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="shopright">
<view class="shopname">湖北省南阳市南阳面粉厂</view>
<view class="shopmiddle flexone">
<view class="shopmiddleleft">
8.2
<view class="searchgooditem flex boxsizing">
<view class="shopleftimg">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="shopright">
<view class="shopname">湖北省南阳市南阳面粉厂</view>
<view class="shopmiddle flexone">
<view class="shopmiddleleft">
8.2
</view>
<view class="shopmiddleright">
<view class="star flex">
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/kongxing.png" mode=""></image>
</view>
</view>
<view class="haoping">好评率96%</view>
</view>
</view>
<view class="shopdizhi flexone">
<view class="shopdiimg">
<image src="../../static/shopaddress.png" mode=""></image>
</view>
<view class='shopli'>距离256km</view>
</view>
<view class="shopmiddleright">
<view class="star flex">
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
</view>
<view class="searchgooditem flex boxsizing">
<view class="shopleftimg">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="shopright">
<view class="shopname">湖北省南阳市南阳面粉厂</view>
<view class="shopmiddle flexone">
<view class="shopmiddleleft">
8.2
</view>
<view class="shopmiddleright">
<view class="star flex">
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/kongxing.png" mode=""></image>
</view>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
<view class="haoping">好评率96%</view>
</view>
</view>
<view class="shopdizhi flexone">
<view class="shopdiimg">
<image src="../../static/shopaddress.png" mode=""></image>
</view>
<view class='shopli'>距离256km</view>
</view>
</view>
</view>
<view class="searchgooditem flex boxsizing">
<view class="shopleftimg">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="shopright">
<view class="shopname">湖北省南阳市南阳面粉厂</view>
<view class="shopmiddle flexone">
<view class="shopmiddleleft">
8.2
</view>
<view class="shopmiddleright">
<view class="star flex">
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/kongxing.png" mode=""></image>
</view>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
<view class="haoping">好评率96%</view>
</view>
</view>
<view class="shopdizhi flexone">
<view class="shopdiimg">
<image src="../../static/shopaddress.png" mode=""></image>
</view>
<view class='shopli'>距离256km</view>
</view>
</view>
</view>
<view class="searchgooditem flex boxsizing">
<view class="shopleftimg">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="shopright">
<view class="shopname">湖北省南阳市南阳面粉厂</view>
<view class="shopmiddle flexone">
<view class="shopmiddleleft">
8.2
</view>
<view class="shopmiddleright">
<view class="star flex">
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/kongxing.png" mode=""></image>
</view>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
<view class="haoping">好评率96%</view>
</view>
</view>
<view class="shopdizhi flexone">
<view class="shopdiimg">
<image src="../../static/shopaddress.png" mode=""></image>
</view>
<view class='shopli'>距离256km</view>
</view>
</view>
</view>
<view class="searchgooditem flex boxsizing">
<view class="shopleftimg">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="shopright">
<view class="shopname">湖北省南阳市南阳面粉厂</view>
<view class="shopmiddle flexone">
<view class="shopmiddleleft">
8.2
</view>
<view class="shopmiddleright">
<view class="star flex">
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/kongxing.png" mode=""></image>
</view>
</view>
<view class="starimg">
<image src="../../static/kongxing.png" mode=""></image>
<view class="haoping">好评率96%</view>
</view>
</view>
<view class="shopdizhi flexone">
<view class="shopdiimg">
<image src="../../static/shopaddress.png" mode=""></image>
</view>
<view class='shopli'>距离256km</view>
</view>
</view>
</view>
<view class="searchgooditem flex boxsizing">
<view class="shopleftimg">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="shopright">
<view class="shopname">湖北省南阳市南阳面粉厂</view>
<view class="shopmiddle flexone">
<view class="shopmiddleleft">
8.2
</view>
<view class="shopmiddleright">
<view class="star flex">
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/kongxing.png" mode=""></image>
</view>
</view>
<view class="haoping">好评率96%</view>
</view>
<view class="haoping">好评率96%</view>
</view>
<view class="shopdizhi flexone">
<view class="shopdiimg">
<image src="../../static/shopaddress.png" mode=""></image>
</view>
<view class='shopli'>距离256km</view>
</view>
</view>
<view class="shopdizhi flexone">
<view class="shopdiimg">
<image src="../../static/shopaddress.png" mode=""></image>
</view>
<view class="searchgooditem flex boxsizing">
<view class="shopleftimg">
<image src="../../static/shop.png" mode=""></image>
</view>
<view class="shopright">
<view class="shopname">湖北省南阳市南阳面粉厂</view>
<view class="shopmiddle flexone">
<view class="shopmiddleleft">
8.2
</view>
<view class="shopmiddleright">
<view class="star flex">
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/shixing.png" mode=""></image>
</view>
<view class="starimg">
<image src="../../static/kongxing.png" mode=""></image>
</view>
</view>
<view class="haoping">好评率96%</view>
</view>
</view>
<view class="shopdizhi flexone">
<view class="shopdiimg">
<image src="../../static/shopaddress.png" mode=""></image>
</view>
<view class='shopli'>距离256km</view>
</view>
<view class='shopli'>距离256km</view>
</view>
</view>
</view>
</view>
</view>
</template>
... ... @@ -246,7 +490,7 @@
return {
history: false,
shopshow: false,
searchgood:false
searchgood: false
}
},
onLoad() {
... ... @@ -254,11 +498,25 @@
},
methods: {}
methods: {
back() {
uni.navigateBack({
checked: true
})
},
onNavigationBarButtonTap(e) {
console.log(e)
console.log("success")
},
}
}
</script>
<style>
@import url('../../base/homepage');
.searchbox {
margin-top: 120rpx;
}
</style>
... ...
... ... @@ -138,19 +138,18 @@
title:"登录成功",
icon:'none'
})
uni.setStorageSync("token",res.data.data.token);
setTimeout(function() {
uni.navigateTo({
url:'/pages/homepage/homepage'
})
}, 1500);
}).catch((err) => {
console.log(err)
console.log(err.data)
uni.showToast({
title:err.data.msg,
title:err.msg,
icon:'none'
})
})
... ...
... ... @@ -104,7 +104,7 @@
},
// 获取验证码
getcode() {
console.log(9999)
let that = this;
that.disable = true;
if (that.phone == '') {
... ... @@ -137,7 +137,8 @@
that.setcode = r.data.data.code
interval = setInterval(function() {
currentTime--;
that.time = currentTime + '秒'
that.time = currentTime + '秒';
console.log(that.time)
if (currentTime <= 0) {
clearInterval(interval)
... ... @@ -148,7 +149,8 @@
}, 1000)
}).catch(err => {
console.log(err)
console.log(err);
})
},
... ... @@ -195,17 +197,28 @@
app.post(url, params, "post").then((res) => {
console.log(res, '37443');
uni.showToast({
title: res.data.msg,
title: '录成功',
icon: 'none'
})
uni.setStorageSync("token",res.data.data.token);
clearInterval(interval);
setTimeout(function() {
uni.navigateTo({
url:'/pages/homepage/homepage'
})
}, 1500);
}).catch((err) => {
console.log(err)
uni.showToast({
title: err.msg,
icon: 'none'
})
clearInterval(interval);
that.time = '发送验证码';
that.currentTime = 61;
that.disable = false;
})
},
// istestcode(){
... ...
<template>
<view class="content">
<view class="home-wrap">
<!-- 搜索 -->
<view class="search-wrap navigator">
<view class="homeimg" open-type="navigate" @click="homeback">
<image class="home-ico" src="../../static/home.png" mode="widthFix"/>
</view>
<view class="search-input navigator" url="/pages/searchGoods/index" open-type="navigate">
<icon type="search" size="20" color="#BDC4CE"/>
请输入关键词搜索
</view>
<view class="map navigator" url="/pages/city/index" open-type="navigate">
<text class="">北京</text>
<image class="down-ico" src="../../static/xiala.png" />
</view>
</view>
<!-- nav -->
<view class="nav-wrap">
<view class="navigator" @click="zhaopin">
<image src="../../static/helppeople.png" ></image>
<text>帮工招聘求职</text>
</view>
<view class="navigator">
<image src="../../static/mianturn.png" ></image>
<text>面坊求购转让</text>
</view>
<view class="navigator">
<image src="../../static/friend.png" ></image>
<text>征婚交友</text>
</view>
<view class="navigator">
<image src="../../static/zhonglogo.png" ></image>
<text>中面集团</text>
</view>
</view>
<!-- 最新发布 -->
<view class="new-release-wrap">
<!-- title -->
<view class="new-release-title">最新发布</view>
<!-- content -->
<view class="new-release-content">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap" @click="usercenter">
<image src="../../static/userpic.png"></image>
<text class="title">我是用户昵称</text>
<view class="VIP">
<image src="../../static/huiyuan.png"></image>
VIP5
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
</view>
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../static/tienozan.png"></image>
399
</view>
<view class="number">
<image src="../../static/userpeopel.png"></image>
399
</view>
</view>
</view>
<view class="new-release-content">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image src="../../icons/nav2.png"></image>
<text class="title">我是用户昵称</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
VIP5
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
</view>
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../icons/thumbs1.png"></image>
399
</view>
<view class="number">
<image src="../../icons/number.png"></image>
399
</view>
</view>
</view>
<view class="new-release-content">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap">
<image src="../../icons/nav2.png"></image>
<text class="title">我是用户昵称</text>
<view class="VIP">
<image src="../../icons/vip.png"></image>
VIP5
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
</view>
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容
<image src="../../icons/banner.png" mode="widthFix" />
<image src="../../icons/banner.png" mode="widthFix" />
<image src="../../icons/banner.png" mode="widthFix" />
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../icons/thumbs1.png"></image>
399
</view>
<view class="number">
<image src="../../icons/number.png"></image>
399
</view>
</view>
</view>
</view>
<!-- 搜索 -->
<view class="search-wrap navigator">
<view class="homeimg" open-type="navigate" @click="homeback">
<image class="home-ico" src="../../static/home.png" mode="widthFix" />
</view>
<view class="search-input navigator" url="/pages/searchGoods/index" open-type="navigate">
<icon type="search" size="12" color="#BDC4CE" style="margin-right:10rpx;"/>
请输入关键词搜索
</view>
<picker @change="bindproChange" :value="index" :range="provincelist" range-key="name">
<!-- <view class="uni-input">{{array[index]}}</view> -->
<view class="proselect flexthree">
<text class="proname">{{provincename}}</text>
<image class="down-ico" src="../../static/xiala.png" />
</view>
</picker>
</view>
<!-- nav -->
<view class="nav-wrap">
<view class="navigator" @click="zhaopin">
<image src="../../static/helppeople.png"></image>
<text>帮工招聘求职</text>
</view>
<view class="navigator">
<image src="../../static/mianturn.png"></image>
<text>面坊求购转让</text>
</view>
<view class="navigator">
<image src="../../static/friend.png"></image>
<text>征婚交友</text>
</view>
<view class="navigator">
<image src="../../static/zhonglogo.png"></image>
<text>中面集团</text>
</view>
</view>
<!-- 最新发布 -->
<view class="new-release-wrap">
<!-- title -->
<view class="new-release-title">最新发布</view>
<!-- content -->
<view class="new-release-content" v-for="(item,index) in luntanlist" :key="index">
<!-- 头像,名称,等级 -->
<view class="userinfo-wrap" @click="usercenter">
<image src="../../static/userpic.png"></image>
<text class="title">{{item.nickname}}</text>
<view class="VIP">
<image src="../../static/huiyuan.png"></image>
VIP5
</view>
</view>
<!-- type -->
<view class="type-wrap">
帮工招聘求职
<text>帮工</text>
<text>配送员</text>
<text>销售员</text>
</view>
<!-- content -->
<view class="release-text">
<view class="release-text-title">
帖子标题帖子标题帖子标题帖子标题帖子帖子
</view>
<view class="release-text-content">
帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容帖子内容...
</view>
</view>
<!-- 点赞, 人数 -->
<view class="thumbs-number">
<view class="thumbs">
<image src="../../static/tienozan.png"></image>
399
</view>
<view class="number">
<image src="../../static/userpeopel.png"></image>
399
</view>
</view>
</view>
</view>
</view>
<!-- 发布 -->
<view class="release-news" v-if="publish">
<view class="release-content">
<view class="nav-wrap publishnav">
<view class="navigator" @click="zhaopin">
<image src="../../static/helppeople.png" ></image>
<text>帮工招聘求职</text>
</view>
<view class="navigator">
<image src="../../static/mianturn.png" ></image>
<text>面坊求购转让</text>
</view>
<view class="navigator">
<image src="../../static/friend.png" ></image>
<text>征婚交友</text>
</view>
<view class="navigator">
<image src="../../static/zhonglogo.png" ></image>
<text>中面集团</text>
</view>
</view>
<!-- close -->
<view class="close" @click="hidepublish">
<image src="../../static/publishchahao.png" />
</view>
</view>
<view class="release-content">
<view class="nav-wrap publishnav">
<view class="navigator" @click="zhaopin">
<image src="../../static/helppeople.png"></image>
<text>帮工招聘求职</text>
</view>
<view class="navigator">
<image src="../../static/mianturn.png"></image>
<text>面坊求购转让</text>
</view>
<view class="navigator">
<image src="../../static/friend.png"></image>
<text>征婚交友</text>
</view>
<view class="navigator">
<image src="../../static/zhonglogo.png"></image>
<text>中面集团</text>
</view>
</view>
<!-- close -->
<view class="close" @click="hidepublish">
<image src="../../static/publishchahao.png" />
</view>
</view>
</view>
<!-- 底部导航 -->
<view class="teacherfooter">
<view class="teacherfootitem" @click="footerseljump" :data-id="1">
<view class="teacherfootitemtop shou">
<image :src="footersel==1?'../../static/tieziactive.png':'../../static/tiezi.png'"></image>
</view>
<view class="teacherfootname " :class="footersel==1?'activename':''">帖子</view>
</view>
<view class="teacherfootitem" @click="footerseljump" :data-id="2">
<view class="teacherfootitemtop shou">
<image :src="footersel==2?'../../static/fabu.png':'../../static/fabu.png'"></image>
</view>
<view class="teacherfootname" :class="footersel==2?'activename':''">发布</view>
</view>
<view class="teacherfootitem" @click="footerseljump" :data-id="3">
<view class="teacherfootitemtop shou">
<image :src="footersel==3?'../../static/examineactive.png':'../../static/examine.png'"></image>
</view>
<view class="teacherfootname" :class="footersel==3?'activename':''">考试</view>
</view>
</view>
<view class="teacherfootitem" @click="footerseljump" :data-id="1">
<view class="teacherfootitemtop shou">
<image :src="footersel==1?'../../static/tieziactive.png':'../../static/tiezi.png'"></image>
</view>
<view class="teacherfootname " :class="footersel==1?'activename':''">帖子</view>
</view>
<view class="teacherfootitem" @click="footerseljump" :data-id="2">
<view class="teacherfootitemtop shou">
<image :src="footersel==2?'../../static/fabu.png':'../../static/fabu.png'"></image>
</view>
<view class="teacherfootname" :class="footersel==2?'activename':''">发布</view>
</view>
<view class="teacherfootitem" @click="footerseljump" :data-id="3">
<view class="teacherfootitemtop shou">
<image :src="footersel==3?'../../static/examineactive.png':'../../static/examine.png'"></image>
</view>
<view class="teacherfootname" :class="footersel==3?'activename':''">考试</view>
</view>
</view>
</view>
</template>
... ... @@ -217,22 +142,54 @@
data() {
return {
publish: false,
footersel:1,
province_id:'',
type:1,
page:1
footersel: 1,
province_id: '',
type: 1,
page: 1,
provincelist: [],
provincename:'',
index:0,
luntanlist:[]
}
},
onLoad() {
this.getluntanlist()
// 获取省份列表
this.getprovincelist();
},
methods: {
hidepublish(){
this.publish=false
hidepublish() {
this.publish = false
},
// 获取身份列表
getprovincelist() {
let that = this;
var url = 'forum/get_province';
var params = {
is_forum_hot: ''
}
console.log('7766554', params)
app.post(url, params).then((res) => {
console.log(res);
that.provincelist = res.data.data;
this.provincename=res.data.data[0].name;
that.province_id=res.data.data[0].id;
// 获取论坛列表
this.getluntanlist()
}).catch((err) => {
})
},
bindproChange(e){
this.index = e.target.value;
this.provincename=this.provincelist[e.target.value].name;
this.province_id=this.provincelist[e.target.value].id;
// 获取论坛列表
this.getluntanlist();
},
// 获取论坛列表
getluntanlist(){
getluntanlist() {
let that = this;
var url = 'forum/get_forum';
var params = {
... ... @@ -241,166 +198,217 @@
page: that.page,
pageNum: 10
}
console.log('7766554',params)
app.post(url, params).then((res) => {
console.log(res);
that.luntanlist=that.luntanlist.concat(res.data.data);
console.log('9999',this.luntanlist)
}).catch((err) => {
console.log(err)
})
},
// 返回首页
homeback(){
homeback() {
console.log(43898934894)
uni.navigateTo({
url:'/pages/homepage/homepage'
url: '/pages/homepage/homepage'
})
},
// 论坛列表
zhaopin(){
zhaopin() {
uni.navigateTo({
url:'../luntan/luntanlist'
url: '../luntan/luntanlist'
})
},
// 底部导航跳转
footerseljump(e){
footerseljump(e) {
console.log(e)
let id=e.currentTarget.dataset.id;
let id = e.currentTarget.dataset.id;
console.log(id)
if(id==1){
if (id == 1) {
uni.navigateTo({
url:'/pages/luntan/luntan'
url: '/pages/luntan/luntan'
})
}else if(id==3){
} else if (id == 3) {
uni.navigateTo({
url:"/pages/luntan/examine"
url: "/pages/luntan/examine"
})
}else{
this.publish=true
} else {
this.publish = true
}
}
}
}
</script>
<style>
page {
background: #F9F9F9;
background: #F9F9F9;
}
.proselect{
width:120rpx;
height:60rpx;
border:2rpx solid rgba(238,238,238,1);
color:#fff;
font-size:24rpx;
border-radius: 40rpx;
padding: 0 10rpx;
box-sizing: border-box;
margin-left:16rpx;
}
.proname{
width:90rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right:5rpx;
}
.down-ico{
width:16rpx;
height:16rpx;
font-size: 0;
}
.publishnav{
padding: 0!important;
.publishnav {
padding: 0 !important;
}
.homeimg{
width:88rpx;
height:88rpx;
.homeimg {
width: 88rpx;
height: 88rpx;
font-size: 0;
}
.search-input{
width:470rpx!important;
.search-input {
width: 470rpx !important;
}
/* 搜素 */
.search-wrap{
width:750rpx;
.search-wrap {
width: 750rpx;
padding: 14rpx 0;
box-sizing: border-box;
background: #C29445;
position: fixed;
top: 0;
left: 0;
}
.nav-wrap {
background: #fff;
display: flex;
justify-content: space-between;
padding: 32rpx 64rpx;
margin-bottom: 16rpx;
background: #fff;
display: flex;
justify-content: space-between;
padding: 32rpx 64rpx;
margin-bottom: 16rpx;
margin-top: 100rpx;
}
.nav-wrap .navigator {
text-align: center;
text-align: center;
}
.nav-wrap .navigator image {
width: 88rpx;
height: 88rpx;
margin: auto;
width: 88rpx;
height: 88rpx;
margin: auto;
}
.nav-wrap .navigator text {
width: 104rpx;
display: block;
color: #3D454C;
font-size: 26rpx;
width: 104rpx;
display: block;
color: #3D454C;
font-size: 26rpx;
}
.new-release-wrap .new-release-title {
height: 84rpx;
line-height: 84rpx;
padding-left: 32rpx;
position: relative;
background: #fff;
font-size: 32rpx;
color: #061220;
border-bottom: 1px solid #E3E2E1;
height: 84rpx;
line-height: 84rpx;
padding-left: 32rpx;
position: relative;
background: #fff;
font-size: 32rpx;
color: #061220;
border-bottom: 1px solid #E3E2E1;
}
.new-release-wrap .new-release-title:after {
content: "";
position: absolute;
top: 20rpx;
left: 0;
height: 44rpx;
width: 8rpx;
background: var(--themeColor);
border-top-right-radius: 6rpx;
border-bottom-right-radius: 6rpx;
content: "";
position: absolute;
top: 20rpx;
left: 0;
height: 44rpx;
width: 8rpx;
background: var(--themeColor);
border-top-right-radius: 6rpx;
border-bottom-right-radius: 6rpx;
}
.release-news {
position: fixed;
width: 750rpx;
height: 100%;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 10;
position: fixed;
width: 750rpx;
height: 100%;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 10;
}
.release-news .release-content {
position: absolute;
width: 750rpx;
bottom: 0;
left: 0;
background: #fff;
z-index: 1000;
padding: 60rpx;
box-sizing: border-box;
border-top-left-radius: 40rpx;
border-top-right-radius: 40rpx;
position: absolute;
width: 750rpx;
bottom: 0;
left: 0;
background: #fff;
z-index: 1000;
padding: 60rpx;
box-sizing: border-box;
border-top-left-radius: 40rpx;
border-top-right-radius: 40rpx;
}
.release-news .meun-lists {
display: flex;
justify-content: space-between;
display: flex;
justify-content: space-between;
}
.release-news .meun-lists navigator {
text-align: center;
text-align: center;
}
.release-news .meun-lists navigator image {
width: 88rpx;
height: 88rpx;
margin: auto;
width: 88rpx;
height: 88rpx;
margin: auto;
}
.release-news .meun-lists navigator text {
width: 104rpx;
display: block;
color: #3D454C;
font-size: 26rpx;
width: 104rpx;
display: block;
color: #3D454C;
font-size: 26rpx;
}
.release-news .close {
display: flex;
justify-content: center;
margin-top: 38rpx;
display: flex;
justify-content: center;
margin-top: 38rpx;
}
.release-news .close image {
width: 60rpx;
height: 60rpx;
width: 60rpx;
height: 60rpx;
}
.search-wrap .navigator:nth-child(3){
/* font-size: 20rpx; */
}
/* .proname{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} */
</style>
... ...
<template>
<view class="content">
<view class="sureshop">
</view>
<!-- 面坊商品 -->
<view>
<view class="sureorderbox flexone" @click="mianfang">
<view class="sureimg">
<image src="../../static/nearshop.png" mode=""></image>
</view>
<view class="sureshopname">面坊商品</view>
</view>
<view class='cartlist'>
<view class="sureorderitem flexone" v-for="(item,index) in data2" :key="index">
<view class="cartselimg" @click="selectcart(item)">
<image src="../../static/cartnosel.png" mode="" v-if="item.sel==false"></image>
<image src="../../static/cartsel.png" mode="" v-else></image>
</view>
<view class="sureorderitemleft">
<image :src="item.flour_goods.flour_goods_spec.spec_image" mode=""></image>
</view>
<view class='shuright'>
<view class="suregoodname">{{item.flour_goods.name}}{{item.sel}}
</view>
<view class="surebot flextwo">
<view class="saleprice">¥{{item.flour_goods.price}}</view>
<view class="weightnumk flexone">
<view class="weightnumkleft leftk" @click="reducecart(item)">
<image src="../../static/reduceimg.png" mode=""></image>
</view>
<view class="detailnum">{{item.number}}</view>
<view class="weightnumkleft rightk" @click='addcart(item)'>
<image src="../../static/addimg.png" mode=""></image>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
data1: [], //店铺商品
data3: [], //积分商品
selall: false,
sel: false,
data2: [{
"id": 12,
"type": "1",
"store_id": null,
"goods_id": 2,
"user_id": 5,
"spec_sku_id": "",
"number": 2,
"createtime": 1586225601,
"flour_goods": {
"id": 2,
"name": "商品名称(单规格)",
"image": "http://zhongmian.w.brotop.cn",
"images": null,
"content": "详细描述详细描述",
"spec_type": "1",
"sales_initial": 20,
"sales_actual": 0,
"weigh": 2,
"publishtime": 1584694198,
"createtime": 1584694198,
"updatetime": 1584694198,
"status": "1",
"is_seckill": "2",
"is_sales": "2",
"is_distribution": "2",
"sales": 20,
"flour_goods_spec": {
"id": 5,
"flour_goods_id": 2,
"goods_no": "CH-56",
"goods_price": "5.00",
"seckill_price": "3.00",
"stock_num": 20,
"goods_sales": 0,
"spec_sku_id": null,
"spec_image": "http://zhongmian.w.brotop.cn",
"createtime": 0,
"updatetime": 0
},
"goods_price": "5.00",
"seckill_price": "3.00",
"spec": [],
"price": "5.00"
},
"sel": 0
}]
}
},
methods: {
//面坊商品选择购物车
selectcart(item) {
let that = this
if (item.type == 2) {
let newdata=that.data3
newdata.forEach(function(value, index, array) {
if (value.id == item.id) {
value.sel =!value.sel
// value.number=8
}
})
console.log(newdata)
that.data3 = newdata
}else if(item.type==1){
let newdata=that.data2
newdata.forEach(function(value, index, array) {
if (value.id == item.id) {
value.sel =!value.sel
// value.sel = !value.sel
}
})
that.data2 = newdata;
}
},
}
}
</script>
<style>
@import url('../../base/nearshop');
@import url('../../base/homepage');
page {
background: #F8F6F9;
}
.cartlist {
/* padding-bottom: 120rpx; */
}
.cartselimg {
width: 30rpx;
height: 30rpx;
font-size: 0;
margin-right: 30rpx;
flex: 0 0 auto;
}
.sureorderitem {
padding-bottom: 30rpx;
box-sizing: border-box;
}
.cartbottom {
width: 750rpx;
position: fixed;
bottom: 0;
left: 0;
padding: 38rpx 32rpx;
box-sizing: border-box;
background: #fff;
}
.totalnum {
color: #3D454C;
font-size: 28rpx;
/* margin-left:12rpx; */
}
.totalmoney {
color: #E26335;
font-size: 28rpx;
/* margin-left:12rpx; */
}
.jiesuan {
width: 280rpx;
height: 88rpx;
background: rgba(194, 148, 69, 1);
border-radius: 16rpx;
color: #fff;
font-size: 28rpx;
text-align: center;
line-height: 88rpx;
}
</style>
... ...
<template>
<view class="content">
<view class="sureshop">
<view class="sureorderbox flexone">
<view class="sureimg">
<image src="../../static/nearshop.png" mode=""></image>
<!-- 店铺商品-->
<view v-if="data1.length!=0">
<view class="sureorderbox flexone">
<view class="sureimg">
<image src="../../static/nearshop.png" mode=""></image>
</view>
<view class="sureshopname">红大地面品厂</view>
</view>
<view class="sureshopname">红大地面品厂</view>
</view>
<view class='cartlist'>
<view class="sureorderitem flexone">
<view class="cartselimg">
<image src="../../static/cartsel.png" mode=""></image>
<view class='cartlist'>
<view class="sureorderitem flexone">
<view class="cartselimg">
<image src="../../static/cartsel.png" mode=""></image>
</view>
<view class="sureorderitemleft">
<image src="../../static/goodtailtop.png" mode=""></image>
</view>
<view class='shuright'>
<view class="suregoodnamek">商品名称商品名称商品名称商
品名称商品名称商品名称商品名称商品名称
</view>
<view class="surebot flextwo">
<view class="saleprice">¥288</view>
<view class="weightnumk flexone">
<view class="weightnumkleft leftk">
<image src="../../static/addimg.png" mode=""></image>
</view>
<view class="detailnum">1</view>
<view class="weightnumkleft rightk">
<image src="../../static/reduceimg.png" mode=""></image>
</view>
</view>
</view>
</view>
</view>
<view class="sureorderitemleft">
<image src="../../static/goodtailtop.png" mode=""></image>
</view>
</view>
<!-- 面坊商品 -->
<view v-if="data2.length!=0">
<view class="sureorderbox flexone">
<view class="sureimg">
<image src="../../static/nearshop.png" mode=""></image>
</view>
<view class='shuright'>
<view class="suregoodname">商品名称商品名称商品名称商
品名称商品名称商品名称商品名称商品名称
<view class="sureshopname">面坊商品</view>
</view>
<view class='cartlist'>
<view class="sureorderitem flexone" v-for="(item,index) in data2" :key="index">
<view class="cartselimg" @click="selectcart(item,index)">
<image src="../../static/cartnosel.png" mode="" v-if="item.sel==false"></image>
<image src="../../static/cartsel.png" mode="" v-else></image>
</view>
<view class="surebot flextwo">
<view class="saleprice">¥288</view>
<view class="weightnumk flexone">
<view class="weightnumkleft leftk">
<image src="../../static/addimg.png" mode=""></image>
</view>
<view class="detailnum">1</view>
<view class="weightnumkleft rightk">
<image src="../../static/reduceimg.png" mode=""></image>
<view class="sureorderitemleft">
<image :src="item.flour_goods.flour_goods_spec.spec_image" mode=""></image>
</view>
<view class='shuright'>
<view class="suregoodnamek">
{{item.flour_goods.name}}
</view>
<!-- 商品属性 -->
<view v-if="item.flour_goods.spec.length!=0">
<view class="spec" v-for="(item,index) in item.flour_goods.spec" :key="index">{{item.spec_name}}:{{item.spec_value}}</view>
</view>
<view class="surebot flextwo">
<view class="saleprice">¥{{item.flour_goods.price}}</view>
<view class="weightnumk flexone">
<view class="weightnumkleft rightk" @click="reducecart(item)">
<image src="../../static/reduceimg.png" mode=""></image>
</view>
<view class="detailnum">{{item.number}}</view>
<view class="weightnumkleft leftk" @click="addcart(item)">
<image src="../../static/addimg.png" mode=""></image>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="sureorderitem flexone">
<view class="cartselimg">
<image src="../../static/cartnosel.png" mode=""></image>
</view>
<view class="sureorderitemleft">
<image src="../../static/goodtailtop.png" mode=""></image>
</view>
<!-- 积分商品 -->
<view v-if="data3.length!=0">
<view class="sureorderbox flexone" @click="jifenshop">
<view class="sureimg">
<image src="../../static/nearshop.png" mode=""></image>
</view>
<view class='shuright'>
<view class="suregoodname">商品名称商品名称商品名称商
品名称商品名称商品名称商品名称商品名称
<view class="sureshopname">积分商品</view>
</view>
<view class='cartlist'>
<view class="sureorderitem flexone" v-for="(item,index) in data3" :key="index">
<view class="flexone" @click="selectcart(item)">
<view class="cartselimg">
{{item.sel}}
<image src="../../static/cartsel.png" mode="" v-if="item.sel==true"></image>
<image src="../../static/cartnosel.png" mode="" v-else></image>
</view>
<view class="sureorderitemleft">
<image src="" mode=""></image>
</view>
</view>
<view class="surebot flextwo">
<view class="saleprice">¥288</view>
<view class="weightnumk flexone">
<view class="weightnumkleft leftk">
<image src="../../static/addimg.png" mode=""></image>
</view>
<view class="detailnum">1</view>
<view class="weightnumkleft rightk">
<image src="../../static/reduceimg.png" mode=""></image>
<view class='shuright'>
<!-- {{item.score_goods.name}} {{item.sel}} -->
<view class="suregoodnamek">
{{item.score_goods.name}}
</view>
<view v-if="item.score_goods.spec.length!=0">
<view class="spec" v-for="(item,index) in item.score_goods.spec" :key="index">{{item.spec_name}}:{{item.spec_value}}</view>
</view>
<view class="surebot flextwo">
<view class="saleprice">¥{{item.score_goods.price}}</view>
<view class="weightnumk flexone">
<view class="weightnumkleft rightk" @click="reducecart(item)">
<image src="../../static/reduceimg.png" mode=""></image>
</view>
<view class="detailnum">{{item.number}}</view>
<view class="weightnumkleft leftk" @click='addcart(item)'>
<image src="../../static/addimg.png" mode=""></image>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="cartbottom flextwo">
<view class="cartbotleft flexone">
<view class="cartbotleft flexone" @click="selectall">
<view class="cartselimg">
<image src="../../static/cartnosel.png" mode=""></image>
<image src="../../static/cartsel.png" mode="" v-if="selall"></image>
<image src="../../static/cartnosel.png" mode="" v-else></image>
</view>
<view class="totalnum">总计:</view>
<view class="totalmoney">¥28880</view>
<view class="totalmoney">¥{{total}}</view>
</view>
<view class='jiesuan'>去结算(2件)</view>
<view class='jiesuan' @click="jiesuan">去结算({{arr.length}}件)</view>
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
data1: [], //店铺商品
data2: [], //面坊商品
data3: [], //积分商品
selall: false,
total: 0,
arr:[],
data:[]
}
},
onLoad() {
// 获取购物车列表
this.getcartlist()
console.log(uni.getStorageSync("token"))
},
methods: {
// 积分商品
jifenshop() {
uni.navigateTo({
url: '/pages/homepage/jifenshop'
})
},
//面坊商品
mianfang() {
uni.navigateTo({
url: '/pages/homepage/shoplist'
})
},
// 获取购物车列表
getcartlist() {
let that = this;
var url = 'car/get_all';
var params = {
}
console.log(params)
app.post(url, params).then((res) => {
console.log(res);
that.data1 = res.data.data.data3;
that.data2 = res.data.data.data1;
that.data3 = res.data.data.data2;
// 面坊商品
that.data2.forEach(function(value, index, array) {
value.sel = false;
})
that.data2 = that.data2;
console.log('738932893', that.data2)
// 积分商品
that.data3.forEach(function(value, index, array) {
value.sel = false
})
that.data3 = that.data3;
}).catch((err) => {
console.log(err)
})
},
//面坊商品选择购物车
selectcart(item, index) {
console.log(item, index)
let that = this;
let obj={}
if (item.type == 2) {
that.data3.forEach(function(value, index, array) {
if (value.id == item.id) {
value.sel = !value.sel;
if (value.sel == true) {
that.arr.push(1)
that.total = that.total * 100 / 100 + value.score_goods.price * 100 / 100 * value.number;
console.log(6666);
obj.type=item.type;
obj.goods_id=item.goods_id;
obj.spec_sku_id=item.spec_sku_id;
obj.number=item.number;
console.log('34898348',obj);
that.data.push(obj)
} else {
that.arr.splice(0,1)
that.total = that.total * 100 / 100 - value.score_goods.price * 100 / 100 * value.number;
that.data.forEach(function(value,index,array){
console.log(value.goods_id);
console.log(item.goods_id)
if(item.goods_id==value.goods_id){
console.log(34349349043)
that.data.splice(index,1)
}
})
}
that.data=that.data;
console.log(that.data)
}
})
that.data3 = that.data3
} else if (item.type == 1) {
console.log(88888)
that.data2.forEach(function(value, index, array) {
if (value.id == item.id) {
value.sel = !value.sel;
if (value.sel == true) {
that.arr.push(1)
that.total = that.total * 100 / 100 + value.flour_goods.price * 100 / 100 * value.number;
obj.type=item.type;
obj.goods_id=item.goods_id;
obj.spec_sku_id=item.spec_sku_id;
obj.number=item.number;
that.data.push(obj)
} else {
that.total = that.total * 100 / 100 - value.flour_goods.price * 100 / 100 * value.number;
that.arr.splice(0,1);
that.data.forEach(function(value,index,array){
if(item.goods_id==value.goods_id){
that.data.splice(index,1)
}
})
}
}
})
that.data2 = that.data2;
that.data=that.data;
console.log(that.data)
}
},
// 选择全部购物车
selectall() {
let that=this;
this.selall = !this.selall;
let newarr=[];
let newtotal=0
if (this.selall == true) {
this.data3.forEach(function(value, index, array) {
value.sel = true;
newarr.push(1);
newtotal=newtotal+value.score_goods.price * 100 / 100 * value.number
// this.total = this.total * 100 / 100 + value.score_goods.price * 100 / 100 * value.number
})
this.data2.forEach(function(value, index, array){
value.sel = true;
newtotal=newtotal+value.flour_goods.price * 100 / 100 * value.number
// this.total = this.total * 100 / 100 + value.flour_goods.price * 100 / 100 * value.number;
newarr.push(1)
})
} else {
this.data3.forEach(function(value, index, array) {
value.sel = false;
})
this.data2.forEach(function(value, index, array){
value.sel =false
})
newarr=[];
newtotal=0
}
this.data3 = this.data3;
this.total=newtotal;
this.arr=newarr;
},
//购物车增加
addcart(item) {
let that = this
if (item.type == 2) {
that.data3.forEach(function(value, index, array) {
if (value.id == item.id) {
value.number++;
if (item.sel == true) {
that.total = that.total * 100 / 100 + value.score_goods.price * 100 / 100 * 1;
}
}
})
that.data3 = that.data3;
} else if (item.type == 1) {
that.data2.forEach(function(value, index, array) {
if (value.id == item.id) {
value.number++;
if (item.sel == true) {
that.total = that.total * 100 / 100 + value.flour_goods.price * 100 / 100 * 1;
}
}
})
that.data2 = that.data2;
}
that.addcartk(item.id)
},
// 购物车增加
addcartk(id) {
let that = this;
var url = 'car/update_car';
var params = {
type: 1,
car_id: id
}
console.log(params)
app.post(url, params).then((res) => {
console.log(res);
}).catch((err) => {
console.log(err)
})
},
// 购物车减少
reducecart(item) {
let that = this;
if (item.type == 2) {
that.data3.forEach(function(value, index, array) {
if (value.id == item.id) {
if (value.number > 1) {
value.number = value.number - 1;
if (item.sel == true) {
that.total = that.total * 100 / 100 - value.score_goods.price * 100 / 100 * 1;
}
that.reducecartk(item.id)
} else {
uni.showToast({
title: '不能再减少了~',
icon: 'none'
})
}
}
})
that.data3 = that.data3;
} else if (item.type == 1) {
that.data2.forEach(function(value, index, array) {
if (value.id == item.id) {
if (value.number > 1) {
value.number = value.number - 1;
that.reducecartk(item.id);
if (item.sel == true) {
that.total = that.total * 100 / 100 - value.flour_goods.price * 100 / 100 * 1;
}
}else{
uni.showToast({
title: '不能再减少了~',
icon: 'none'
})
}
}
})
that.data2 = that.data2;
}
},
reducecartk(id) {
let that = this;
var url = 'car/update_car';
var params = {
type: 2,
car_id: id
}
console.log(params)
app.post(url, params).then((res) => {
console.log(res);
}).catch((err) => {
console.log(err)
})
},
// 去结算
jiesuan(){
let that = this;
if(that.data.length==0){
uni.showToast({
title:'请选择商品',
icon:'none'
})
return false
}
var url = 'order/confirm_order';
console.log('获取的参数',that.data)
var params = {
data: JSON.stringify(that.data),
}
console.log(params)
app.post(url, params,"post").then((res) => {
console.log(res);
console.log(res.data.data)
uni.setStorageSync("goodinfo",res.data.data);
uni.navigateTo({
url:'/pages/nearshop/sureorder'
})
}).catch((err) => {
console.log(err)
})
},
},
}
</script>
<style>
@import url('../../base/nearshop');
@import url('../../base/homepage');
page{
page {
background: #F8F6F9;
}
.cartlist{
padding-bottom: 120rpx;
.cartlist {
/* padding-bottom: 120rpx; */
}
.spec{
color:#3D454C;
font-size: 28rpx;
}
.cartselimg{
width:30rpx;
height:30rpx;
.cartselimg {
width: 30rpx;
height: 30rpx;
font-size: 0;
margin-right:30rpx;
margin-right: 30rpx;
flex: 0 0 auto;
}
.sureorderitem{
.sureorderitem {
padding-bottom: 30rpx;
box-sizing: border-box;
}
.cartbottom{
width:750rpx;
position:fixed;
bottom:0;
left:0;
.cartbottom {
width: 750rpx;
position: fixed;
bottom: 0;
left: 0;
padding: 38rpx 32rpx;
box-sizing: border-box;
background: #fff;
}
.totalnum{
color:#3D454C;
.totalnum {
color: #3D454C;
font-size: 28rpx;
/* margin-left:12rpx; */
}
.totalmoney{
color:#E26335;
.totalmoney {
color: #E26335;
font-size: 28rpx;
/* margin-left:12rpx; */
}
.jiesuan{
width:280rpx;
height:88rpx;
background:rgba(194,148,69,1);
border-radius:16rpx;
color:#fff;
.jiesuan {
width: 280rpx;
height: 88rpx;
background: rgba(194, 148, 69, 1);
border-radius: 16rpx;
color: #fff;
font-size: 28rpx;
text-align: center;
line-height: 88rpx;
... ...
... ... @@ -13,7 +13,8 @@
<view class="huiyuanprice">会员价:¥{{goodtail.vip_price}}</view>
</view>
<view class="heziright flexone">
<view class="heziprice stock">库存:{{goodtail.flour_goods_spec.stock_num}}件</view>
<!-- {{goodtail.flour_goods_spec.stock_num}} -->
<view class="heziprice stock">库存:件</view>
<view class="heziprice">已售{{goodtail.sales}}件</view>
</view>
</view>
... ... @@ -62,7 +63,7 @@
</view>
<view class="send">
{{item.postage}}
{{goodtail.postage}}
<!-- 包邮 店铺满100元包邮 -->
</view>
<view class="tapnav flextwo">
... ... @@ -154,10 +155,14 @@
<view class="shuxingwrap">
<view class="goodtailtopk flex">
<view class="shuxingimg">
<view class="shusmallimg">
<image :src="goodtail.image" mode=""></image>
<!-- 面坊商品 -->
<view class="shusmallimg" v-if="type==1">
<image :src="goodtail.flour_goods_spec.spec_image" mode=""></image>
</view>
<!-- 积分商品 -->
<view class="shusmallimg" v-if="type==2">
<image :src="goodtail.score_goods_spec.spec_image" mode=""></image>
</view>
</view>
<view class='shuright'>
<view class="shutop flex">
... ... @@ -167,7 +172,10 @@
<image src="../../static/goodtaicha.png" mode=""></image>
</view>
</view>
<view class="saleprice">¥{{goodtail.goodp_price}}</view>
<!-- 面坊商品 -->
<view class="saleprice" v-if="type==1">¥{{goodtail.price}}</view>
<!-- 积分商品 -->
<view class="saleprice" v-if="type==2">¥{{goodtail.score_goods_spec.goods_price}}</view>
</view>
</view>
<view v-for="(item,parindex) in specarr" :key="parindex" >
... ... @@ -206,6 +214,7 @@
export default {
data() {
return {
footersel:1,
sel: 2,
shuwrap:false,
goodid:'',
... ... @@ -213,7 +222,7 @@
goodtail:'',
tapnavactive:'',
selnav:1,
sel:1,
// 商品规格
specarr:[],
// 商品规格id
... ... @@ -279,7 +288,7 @@
},
// 获取积分商城商品详情
getjifengoodtail(){
console.log(4334)
let that = this;
var url = 'score_goods/get_score_goods_detail';
var params = {
... ... @@ -319,15 +328,18 @@
console.log(res);
that.specarr=res.data.data;
that.specarr.forEach(function(value,index,array){
value.selindex=-1;
value.selid='';
value.selindex=0;
value.spec_value.forEach(function(valuek,indexk,arrayk){
if(indexk==0){
value.selid=valuek.id;
}
valuek.sel=false
})
})
that.specarr=that.specarr;
console.log(JSON.stringify(this.specarr))
that.specarr=that.specarr;
}).catch((err) => {
console.log(err)
})
... ... @@ -345,6 +357,36 @@
// console.log(this.specarr[parindex].spec_value[childindex].sel)
console.log(JSON.stringify(this.specarr))
this.changspec()
},
// 更换商品的图片和价格
changspec(){
let that = this;
let newspec_sku_id=[]
that.specarr.forEach(function(value,index,array){
newspec_sku_id.push(value.selid)
})
that.spec_sku_id=newspec_sku_id
var url = 'score_goods/get_spec_sku2';
var params = {
score_goods_id:that.goodid,
spec_sku_id:that.spec_sku_id.join("_")
}
console.log(params)
app.post(url, params).then((res) => {
console.log(res);
if(that.type==1){
that.goodtail.flour_goods_spec=res.data.data;
that.goodtail.price=res.data.data.price;
}else if(that.type==2){
that.goodtail.score_goods_spec=res.data.data
}
that.goodtail=that.goodtail;
}).catch((err) => {
console.log(err)
})
},
sure(){
if(this.addtype==1){
... ... @@ -362,17 +404,26 @@
newspec_sku_id.push(value.selid)
})
that.spec_sku_id=newspec_sku_id
var url = 'car/join_car';
var params = {
type:this.type,
goods_id:this.goodid,
spec_sku_id:that.spec_sku_id.join(","),
spec_sku_id:that.spec_sku_id.join("_"),
number: that.cartnumber,
}
console.log(params)
app.post(url, params).then((res) => {
console.log(res);
uni.showToast({
title:"加入购物车成功",
icon:'none'
})
setTimeout(function(){
uni.navigateTo({
url:'/pages/nearshop/cartlist'
})
},1500)
}).catch((err) => {
... ...
<template>
<view class="page">
<view class="boxb">
<view class="container">
<view class="bitem">
<view class="top">
<view class="price">¥1</view>
<view class="right">
<view class="bname">
<text>抵用卷</text>
<!-- <text>待使用</text> -->
</view>
<view class="tips">满6元可用</view>
</view>
</view>
<view class="btime">
有效期至:2019-10-10 19:30:30
</view>
</view>
<view class="bitem borderactive">
<view class="top">
<view class="price wordacticve">¥1</view>
<view class="right">
<view class="bname">
<text class="wordacticve">抵用卷</text>
<!-- <text>待使用</text> -->
</view>
<view class="tips wordacticve">满6元可用</view>
</view>
</view>
<view class="btime wordacticve">
有效期至:2019-10-10 19:30:30
</view>
</view>
</view>
</view>
</view>
</template>
page{
background: #F7F7F7;
}
.navbox{
height: 88rpx;
background: #fff;
display: -webkit-box;
display: -webkit-flex;
display: flex;
}
.navitem{
width: 50%;
height: 100%;
font-size:32rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(35,35,35,1);
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;
}
.boxa{
margin-top: 16rpx;
background: #fff;
overflow: hidden;
padding: 0 36rpx;
box-sizing: border-box;
}
.aitem{
height: 150rpx;
border-bottom: 1px solid #FEFEFE;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.left{
width: 340rpx;
}
.left .name{
font-size:32rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(35,35,35,1);
}
.left .time{
font-size:24rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(91,94,100,1);
margin-top: 8rpx;
}
.btn{
width:160rpx;
height:64rpx;
border-radius:8rpx;
border:1px solid rgba(255,148,23,1);
font-size:24rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(255,148,23,1);
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;
}
.activeA{
color: #BDC4CE;
border-color: #BDC4CE;
}
.boxb{
padding: 0 32rpx;
box-sizing: border-box;
}
.xnavbox{
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
margin-top: 16rpx;
}
.xnavitem{
width:212rpx;
height:62rpx;
font-size:28rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(61,69,76,1);
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;
background: #fff;
}
.xactive{
background: #C29445;
color: #fff;
}
.container{
margin-top: 12rpx;
}
.bitem{
margin-top: 16rpx;
border-left: 8rpx solid #C29445;
padding: 40rpx 32rpx 20rpx;
box-sizing: border-box;
background: #fff;
}
.top{
height: 156rpx;
border-bottom: 1px solid #EEEEEE;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
}
.price{
font-size:72rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(194,148,69,1);
margin-right: 32rpx;
}
.right{
width: 100%;
}
.bname{
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
font-size:28rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(91,94,100,1);
}
.bname text:first-child{
font-size:36rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:600;
color:rgba(6,18,32,1);
}
.tips{
font-size:32rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(61,68,76,1);
margin-top: 16rpx;
}
.btime{
font-size:28rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(61,69,76,1);
margin-top: 40rpx;
}
.borderactive{
border-color: #BDC4CE;
}
.wordacticve{
font-weight:500 !important;
color:rgba(189,196,206,1) !important;
}
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
page{
background: #F7F7F7;
}
.navbox{
height: 88rpx;
background: #fff;
display: flex;
}
.navitem{
width: 50%;
height: 100%;
font-size:32rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(35,35,35,1);
display: flex;
align-items: center;
justify-content: center;
}
.boxa{
margin-top: 16rpx;
background: #fff;
overflow: hidden;
padding: 0 36rpx;
box-sizing: border-box;
}
.aitem{
height: 150rpx;
border-bottom: 1px solid #FEFEFE;
display: flex;
align-items: center;
justify-content: space-between;
}
.left{
width: 340rpx;
}
.left .name{
font-size:32rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(35,35,35,1);
}
.left .time{
font-size:24rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(91,94,100,1);
margin-top: 8rpx;
}
.btn{
width:160rpx;
height:64rpx;
border-radius:8rpx;
border:1px solid rgba(255,148,23,1);
font-size:24rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(255,148,23,1);
display: flex;
align-items: center;
justify-content: center;
}
.activeA{
color: #BDC4CE;
border-color: #BDC4CE;
}
.boxb{
padding: 0 32rpx;
box-sizing: border-box;
}
.xnavbox{
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 16rpx;
}
.xnavitem{
width:212rpx;
height:62rpx;
font-size:28rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(61,69,76,1);
display: flex;
align-items: center;
justify-content: center;
background: #fff;
}
.xactive{
background: #C29445;
color: #fff;
}
.container{
margin-top: 12rpx;
}
.bitem{
margin-top: 16rpx;
border-left: 8rpx solid #C29445;
padding: 40rpx 32rpx 20rpx;
box-sizing: border-box;
background: #fff;
}
.top{
height: 156rpx;
border-bottom: 1px solid #EEEEEE;
display: flex;
align-items: center;
}
.price{
font-size:72rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(194,148,69,1);
margin-right: 32rpx;
}
.right{
width: 100%;
}
.bname{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
font-size:28rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(91,94,100,1);
}
.bname text:first-child{
font-size:36rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:600;
color:rgba(6,18,32,1);
}
.tips{
font-size:32rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(61,68,76,1);
margin-top: 16rpx;
}
.btime{
font-size:28rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(61,69,76,1);
margin-top: 40rpx;
}
.borderactive{
border-color: #BDC4CE;
}
.wordacticve{
font-weight:500 !important;
color:rgba(189,196,206,1) !important;
}
</style>
... ...
<template>
<view class="content">
<view class="sureordertop flextwo">
<view class="addresstop ">
<view class="sureordertop flextwo" @click="addaddress">
<!-- @click="addaddress" -->
<view class="sureordername" v-if="addressitem==''">请选择地址</view>
<view class="addresstop" v-else>
<view class="addressname flexone">
<view class="sureordername">
名字XX
{{addressitem.name}}
</view>
<view class="sureorderphone">15822187563</view>
<view class="sureorderphone">{{addressitem.phone}}</view>
</view>
<view class="addresstitle">
天津西青区XXXXXXXXXXXXXXXXXXXXXXXX
{{addressitem.province_name}}{{addressitem.city_name}}{{addressitem.county_name}}{{addressitem.address}}
</view>
</view>
<view class="yourowk">
<image src="../../static/yourowk.png" mode=""></image>
</view>
</view>
<view class="sureshop">
<view class="sureorderbox flexone">
<view class="sureimg">
<image src="../../static/nearshop.png" mode=""></image>
<view class="sureshop sureshopk">
<!-- 店铺商品 -->
<view class="bigbox">
<view class="sureorderbox flexone">
<view class="sureimg">
<image src="../../static/nearshop.png" mode=""></image>
</view>
<view class="sureshopname">红大地面品厂</view>
</view>
<view class="sureshopname">红大地面品厂</view>
</view>
<view class="sureorderitem flex">
<view class="sureorderitemleft">
<image src="../../static/goodtailtop.png" mode=""></image>
</view>
<view class='shuright'>
<view class="suregoodname">商品名称商品名称商品名称商
品名称商品名称商品名称商品名称商品名称
</view>
<view class="surebot flextwo">
<view class="saleprice">¥288</view>
<view class="weightnumk flexone">
<view class="weightnumkleft leftk">
<image src="../../static/addimg.png" mode=""></image>
<view class="boxbox">
<view class="sureorderitem flex">
<view class="sureorderitemleft">
<image src="../../static/goodtailtop.png" mode=""></image>
</view>
<view class='shuright'>
<view class="suregoodname">商品名称商品名称商品名称商
品名称商品名称商品名称商品名称商品名称
</view>
<view class="detailnum">1</view>
<view class="weightnumkleft rightk">
<image src="../../static/reduceimg.png" mode=""></image>
<view class="surebot flextwo">
<view class="saleprice">¥288</view>
<view class="weightnumk flexone">
<view class="weightnumkleft leftk">
<image src="../../static/addimg.png" mode=""></image>
</view>
<view class="detailnum">1</view>
<view class="weightnumkleft rightk">
<image src="../../static/reduceimg.png" mode=""></image>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="delivery flextwo">
<view class="deliveryleft">配送服务</view>
<view class="deliveryright flexone">
<view class="deliveryname">快递配送</view>
<view class='yourow'>
<image src="../../static/yourowk.png" mode=""></image>
<div class="botbox" v-if="goodinfo.data1.flour_goods!=undefined"></div>
<!-- 面坊商品 -->
<view class="bigbox" v-if="goodinfo.data1.flour_goods!=undefined">
<view class="sureorderbox flexone">
<view class="sureimg">
<image src="../../static/nearshop.png" mode=""></image>
</view>
<view class="sureshopname">面坊商品</view>
</view>
<view class="boxbox">
<view class="sureorderitem flex" v-for="(item,index) in goodinfo.data1.flour_goods" :key="index">
<view class="sureorderitemleft">
<!-- <image :src="item.score_goods_spec.spec_image" mode=""></image> -->
</view>
<view class='shuright'>
<view class="suregoodnamek">{{item.name}}
</view>
<view v-if="item.spec.length!=0">
<view class="spec" v-for="(item,index) in item.spec" :key="index">{{item.spec_name}}:{{item.spec_value}}</view>
</view>
<view class="surebot flexone">
<view class="saleprice">¥{{item.price}}</view>
<view class="detailnum">x{{item.number}}</view>
</view>
</view>
</view>
</view>
<view class="delivery flextwo">
<view class="deliveryleft">配送服务</view>
<view class="deliveryright flexone">
<picker @change="bindmianChange" :value="mianindex" :range="servicearr" range-key="name">
<view class="deliveryname">{{mianpeiname}}</view>
</picker>
<view class='yourow'>
<image src="../../static/yourowk.png" mode=""></image>
</view>
</view>
</view>
<view class="delivery markcontent">
<view class='markname'>店铺备注</view>
<view class="marktext">
<textarea value="" placeholder="选填,给商家留言" />
</view>
</view>
<!-- <view class="delivery flextwo markcontent">
<view class="deliveryleft flexone">
<view class='jifen'>可用积分抵扣50</view>
<view class="jifenimg">
<image src="../../static/gantan.png" mode=""></image>
</view>
</view>
<view class="deliveryname">请输入抵扣积分</view>
</view> -->
<view class="delivery flextwo markcontent" @click="selectcoupon">
<view class="deliveryleft flexone">
<view class='jifen'>优惠劵</view>
<view class="jifenimg youimg">
<image src="../../static/gantan.png" mode=""></image>
</view>
</view>
<view class="deliveryname">{{couponname}}</view>
</view>
</view>
</view>
<view class="delivery markcontent">
<view class='markname'>店铺备注</view>
<view class="marktext">
<textarea value="" placeholder="选填,给商家留言" />
<div class="botbox" v-if="goodinfo.data2.score_goods!=undefined"></div>
<!-- 积分商品 -->
<view class="bigbox jibox" v-if="goodinfo.data2.score_goods!=undefined">
<view class="sureorderbox flexone">
<view class="sureimg">
<image src="../../static/nearshop.png" mode=""></image>
</view>
<view class="sureshopname">积分商品</view>
</view>
</view>
<view class="delivery flextwo markcontent">
<view class="deliveryleft flexone">
<view class='jifen'>可用积分抵扣50</view>
<view class="jifenimg">
<image src="../../static/gantan.png" mode=""></image>
<view class="boxbox">
<view class="sureorderitem flex" v-for="(item,index) in goodinfo.data2.score_goods" :key="index">
<view class="sureorderitemleft">
<image :src="item.score_goods_spec.spec_image" mode=""></image>
</view>
<view class='shuright'>
<view class="suregoodnamek">{{item.name}}
</view>
<view v-if="item.spec.length!=0">
<view class="spec" v-for="(item,index) in item.spec" :key="index">{{item.spec_name}}:{{item.spec_value}}</view>
</view>
<view class="surebot flexone">
<view class="saleprice">¥{{item.price}}</view>
<view class="weightnumk flexone">
<view class="detailnum">x{{item.number}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="delivery flextwo">
<view class="deliveryleft">配送服务</view>
<view class="deliveryright flexone">
<view class="deliveryname">快递配送</view>
<view class='yourow'>
<image src="../../static/yourowk.png" mode=""></image>
</view>
</view>
</view>
<view class="deliveryname">请输入抵扣积分</view>
</view>
<view class="delivery flextwo markcontent">
<view class="deliveryleft flexone">
<view class='jifen'>优惠劵</view>
<view class="jifenimg">
<image src="../../static/gantan.png" mode=""></image>
<view class="delivery markcontent">
<view class='markname'>店铺备注</view>
<view class="marktext">
<textarea value="" placeholder="选填,给商家留言" />
</view>
</view>
<view class="delivery flextwo markcontent">
<view class="deliveryleft flexone">
<view class='jifen'>可用积分抵扣50</view>
<view class="jifenimg youimg">
<image src="../../static/gantan.png" mode=""></image>
</view>
</view>
<view class="deliveryname dikouname">
<input type="text" value="" placeholder="请输入抵扣积分" placeholder-class="dikouinput" @input="enterjifen"/>
</view>
</view>
<!-- <view class="delivery flextwo markcontent">
<view class="deliveryleft flexone">
<view class='jifen'>优惠劵</view>
<view class="jifenimg">
<image src="../../static/gantan.png" mode=""></image>
</view>
</view>
<view class="deliveryname">满200减99优惠券</view>
</view> -->
</view>
<view class="deliveryname">满200减99优惠券</view>
</view>
<view class="delivery markcontent">
<!-- <view class="delivery markcontent">
<view class="deliveryitem flextwo">
<view class='deliveryitemname'>商品金额</view>
<view class='deliveryitemname moneyright'>¥2600.00</view>
... ... @@ -106,11 +208,10 @@
<view class="deliveryleft">配送服务</view>
<view class="deliverymoney">¥2560.00</view>
</view>
<view class="huiyuanbot boxsizing">
<view class="behuiyuanbtn">确认支付</view>
</view>
-->
<!-- 购买弹层 -->
<view class="register" @click="hidebuy" v-if="buyshow">
<view class="buywrap boxsizing">
... ... @@ -187,20 +288,93 @@
data() {
return {
buyshow: false,
couponrule:false
couponrule:false,
goodinfo:'',
addressitem:'',
addresssel:'请选择地址',
mianindex:0,
servicearr:[{
id:1,
name:'快递配送'
},
{
id:2,
name:'上门自提'
},
],
mianpeiname:'请选择配送方式',
jifen:'',
couponname:'请选择优惠券'
// data1 面坊 data2 积分 data3 店铺
}
},
onLoad() {
onLoad(options) {
console.log(38349403)
this.goodinfo=uni.getStorageSync("goodinfo");
console.log(this.goodinfo)
},
methods: {
// 面访商品配送方式
bindmianChange(e){
this.mianpeiname=this.servicearr[e.target.value].name;
this.mianindex=e.target.value
},
// 输入积分
enterjifen(e){
this.jifen=e.detail.vlaue
},
// 选择优惠券
selectcoupon(){
uni.navigateTo({
url:'/pages/nearshop/selectcoupon'
})
},
// 添加地址
addaddress(){
console.log(334439090)
uni.navigateTo({
url:"/pages/usercenter/address"
})
},
know(){
this.couponrule=false
},
getordertail(){
let that = this;
if(that.data.length==0){
uni.showToast({
title:'请选择商品',
icon:'none'
})
return false
}
var url = 'order/confirm_order';
var params = {
data: JSON.stringify(that.data),
}
console.log(params)
app.post(url, params,"post").then((res) => {
console.log(res);
uni.navigateTo({
url:'/pages/nearshop/sureorder'
})
}).catch((err) => {
console.log(err)
})
}
}
},
onShow() {
this.addressitem = uni.getStorageSync("addressitem");
console.log(this.addressitem)
}
}
</script>
... ...
... ... @@ -4,48 +4,364 @@
<view class="item">
<view class="left">姓名</view>
<view class="right">
<input type="text" value="" placeholder="请输入姓名"/>
<image src="../../static/right.png" mode="widthFix" />
<input type="text" :value="name" placeholder="请输入姓名" @input="entername" />
<!-- <image src="../../static/right.png" mode="widthFix" /> -->
</view>
</view>
<view class="item">
<view class="left">联系方式</view>
<view class="right">
<input type="text" value="" placeholder="请输入手机号码" />
<image src="../../static/right.png" mode="widthFix" />
<input type="text" :value="phone" placeholder="请输入手机号码" @input="enterphone" />
<!-- <image src="../../static/right.png" mode="widthFix" /> -->
</view>
</view>
<view class="item">
<view class="left">地区</view>
<view class="right">
<input type="text" value="" placeholder="请选择所在地区"/>
<picker @change="bindproChange" :value="proindex" :range="proarray" range-key="name">
<view class="uni-input">{{proname}}</view>
</picker>
<view class="uni-input" v-if="province_id==''" @click="selectcity">{{cityname}}</view>
<picker @change="bindcityChange" :value="cityindex" :range="cityarray" range-key="name" v-else>
<view class="uni-input">{{cityname}}</view>
</picker>
<view class="uni-input" v-if="city_id==''" @click="selarea">{{areaname}}</view>
<picker @change="bindareaChange" :value="areaindex" :range="arearray" range-key="name" v-else>
<view class="uni-input">{{areaname}}</view>
</picker>
<!-- <input type="text" value="" placeholder="请选择所在地区" /> -->
<image src="../../static/right.png" mode="widthFix" />
</view>
</view>
<view class="item">
<view class="left">详细地址</view>
<view class="right">
<input type="text" value="" placeholder="详细地址须填写楼栋楼层或房间号信息"/>
<image src="../../static/right.png" mode="widthFix" />
<input type="text" :value="address" placeholder="详细地址须填写楼栋楼层或房间号信息" @input="enteraddress" />
<!-- <image src="../../static/right.png" mode="widthFix" /> -->
</view>
</view>
</view>
<view class="btn">确认</view>
<view class="btn" @click="sureadd">确认</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
name: '',
phone: '',
province_id: '',
city_id: '',
county_id: '',
address: '',
proarray:[],
proindex:'',
proname:'请选择省',
cityname:'请选择市',
cityindex:'',
cityarray:[],
arearray:[],
areaindex:'',
areaname:'请选择区',
type:'',
addressid:'',
item:''
}
},
onLoad(options) {
if(options.type!=undefined){
this.type=options.type;
this.addressid=options.id;
this.item=JSON.parse(options.item);
this.name=this.item.name;
this.phone=this.item.phone;
this.address=this.item.address;
this.province_id=this.item.province_id;
this.city_id=this.item.city_id;
this.county_id=this.item.county_id;
this.proname=this.item.province_name;
this.cityname=this.item.city_name;
this.areaname=this.item.county_name;
this.getprovince();
this.getcity();
this.getarea();
}
this.getprovince();
},
methods: {
// 输入姓名
entername(e) {
this.name = e.detail.value
},
// 输入电话号
enterphone(e) {
this.phone = e.detail.value
},
// 输入地址
enteraddress(e) {
this.address = e.detail.value
},
//获取省
getprovince(){
let that=this;
var url = 'user_address/get_province';
var params = {
}
console.log(params)
app.post(url, params, "post").then((res) => {
console.log(res);
that.proarray=res.data.data;
that.proarray.forEach(function(value,index,array){
if(that.province_id==value.id){
that.proindex=index
}
})
}).catch((err) => {
console.log(err)
})
},
bindproChange(e){
this.proname=this.proarray[e.target.value].name;
this.proindex=e.target.value;
this.province_id=this.proarray[e.target.value].id
this.getcity();
},
// 获取市
getcity(){
let that=this;
var url = 'user_address/get_city';
var params = {
province_id:that.province_id,
}
app.post(url, params, "post").then((res) => {
console.log(res);
that.cityarray=res.data.data;
console.log(that.cityarray);
console.log('2393883843',that.city_id);
that.cityarray.forEach(function(value,index,array){
if(that.city_id==value.id){
that.cityindex=index
}
})
}).catch((err) => {
console.log(err)
})
},
selectcity(){
if(this.province_id==''){
uni.showToast({
title:'请选择省',
icon:'none'
})
return false
}
},
//选择市
bindcityChange(e){
this.cityname=this.cityarray[e.target.value].name;
this.cityindex=e.target.value;
this.city_id=this.cityarray[e.target.value].id
this.getarea();
},
// 获取区
getarea(){
let that=this;
var url = 'user_address/get_county';
var params = {
city_id:that.city_id,
}
app.post(url, params, "post").then((res) => {
console.log(res);
that.arearray=res.data.data;
that.arearray.forEach(function(value,index,array){
if(that.county_id==value.id){
that.areaindex=index
}
})
}).catch((err) => {
console.log(err)
})
},
selarea(){
if(this.city_id==''){
uni.showToast({
title:'请选择市',
icon:'none'
})
return false
}
},
//选择区
bindareaChange(e){
this.areaname=this.arearray[e.target.value].name;
this.areaindex=e.target.value;
this.county_id=this.arearray[e.target.value].id
},
//确认添加地址
sureadd() {
let that = this;
if(that.name==''){
uni.showToast({
title:'请输入姓名',
icon:'none'
})
return false
}
if(that.phone==''){
uni.showToast({
title:'请输入联系方式',
icon:'none'
})
return false
}
if(that.phone!=''){
var reg=/^[1][3,4,5,6,,7,8,9][0-9]{9}$/;
if(!reg.test(that.phone)){
uni.showToast({
title:'请输入正确的手机号',
icon:'none'
})
return false
}
}
if(that.province_id==''){
uni.showToast({
title:'请选择省',
icon:'none'
})
return false
}
if(that.city_id==''){
uni.showToast({
title:'请选择市',
icon:'none'
})
return false
}
if(that.county_id==''){
uni.showToast({
title:'请选择区',
icon:'none'
})
return false
}
if(that.address==''){
uni.showToast({
title:'请输入详细地址',
icon:'none'
})
return false
}
if(that.type==1){
that.editaddress();
}else{
that.adddizhi()
}
},
//添加地址
adddizhi(){
let that=this;
var url = 'user_address/add_user_address';
var params = {
name: that.name,
phone: that.phone,
province_id: that.province_id,
city_id: that.city_id,
county_id: that.county_id,
address: that.address,
}
console.log(params)
app.post(url, params, "post").then((res) => {
console.log(res);
uni.showToast({
title:'添加地址成功',
icon:'none'
})
setTimeout(function(){
uni.navigateBack({
checked:true
})
},1500)
}).catch((err) => {
console.log(err)
})
},
// 编辑地址
editaddress(){
let that=this;
var url = 'user_address/edit_user_address';
var params = {
user_address_id:that.addressid,
name: that.name,
phone: that.phone,
province_id: that.province_id,
city_id: that.city_id,
county_id: that.county_id,
address: that.address,
}
console.log(params)
app.post(url, params, "post").then((res) => {
console.log(res);
uni.showToast({
title:'修改地址成功',
icon:'none'
})
setTimeout(function(){
uni.navigateBack({
checked:true
})
},1500)
}).catch((err) => {
console.log(err)
})
},
}
}
</script>
... ... @@ -55,7 +371,9 @@
background: #F7F7F7;
}
.uni-input{
margin-right:20rpx;
}
.box {
padding: 0 32rpx;
box-sizing: border-box;
... ... @@ -97,12 +415,13 @@
width: 32rpx;
margin-left: 16rpx;
}
.right input{
.right input {
max-width: 476rpx;
font-size:28rpx;
font-family:PingFangHK-Regular,PingFangHK;
font-weight:400;
color:rgba(61,69,76,1);
font-size: 28rpx;
font-family: PingFangHK-Regular, PingFangHK;
font-weight: 400;
color: rgba(61, 69, 76, 1);
}
.btn {
... ... @@ -118,8 +437,8 @@
justify-content: center;
align-items: center;
/* margin: 100rpx auto; */
position:fixed;
bottom:30rpx;
left:32rpx;
position: fixed;
bottom: 30rpx;
left: 32rpx;
}
</style>
... ...
<template>
<view class="page">
<view class="box">
<view class="item">
<view class="item" v-for="(item,index) in addresslist" :key="index" @click="selectaddress(item)">
<view class="left">
<view class="top">
<text class="name">名字XX</text>
<text class="tel">1566666666</text>
<text class="name">{{item.name}}</text>
<text class="tel">{{item.phone}}</text>
</view>
<view class="address">天津西青区天津西青区天津西青区天津西青区天津西青区</view>
<view class="address">{{item.province_name}}{{item.city_name}}{{item.county_name}}{{item.address}}</view>
</view>
<view class="right">
<image src="../../static/edit.png" mode="widthFix"/>
</view>
</view>
<view class="item">
<view class="left">
<view class="top">
<text class="name">名字XX</text>
<text class="tel">1566666666</text>
</view>
<view class="address">天津西青区天津西青区天津西青区天津西青区天津西青区</view>
</view>
<view class="right">
<image src="../../static/edit.png" mode="widthFix"/>
</view>
</view>
<view class="item">
<view class="left">
<view class="top">
<text class="name">名字XX</text>
<text class="tel">1566666666</text>
</view>
<view class="address">天津西青区天津西青区天津西青区天津西青区天津西青区</view>
</view>
<view class="right">
<image src="../../static/edit.png" mode="widthFix"/>
<view class="right" @click.stop="editaddress(item)">
<image src="../../static/edit.png" mode="widthFix" />
</view>
</view>
</view>
... ... @@ -43,19 +19,86 @@
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
addresslist: [],
showaddress: []
}
},
onLoad() {
},
methods: {
addaddress(){
addaddress() {
uni.navigateTo({
url: "/pages/usercenter/addAddress"
})
},
// 获取地址列表
getaddresslist() {
let that = this;
var url = 'user_address/get_list';
var params = {
page: that.page,
pageNum: 10
}
console.log(params)
app.post(url, params, "post").then((res) => {
console.log(res);
this.addresslist = this.addresslist.concat(res.data.data);
this.showaddress = res.data.data;
console.log(that.addresslist)
}).catch((err) => {
console.log(err)
})
},
// 选择地址
selectaddress(item) {
uni.setStorageSync("addressitem",item)
uni.navigateBack({
checked:true
})
},
// 编辑地址
editaddress(item) {
var newitem = JSON.stringify(item);
console.log(item)
uni.navigateTo({
url:"/pages/usercenter/addAddress"
url: '/pages/usercenter/addAddress?id=' + item.id + '&type=' + 1 + '&item=' + newitem
})
},
},
onShow() {
this.page = 1;
this.addresslist = []
this.getaddresslist();
},
onReachBottom: function() {
let newpage = this.data.page;
newpage++;
this.setData({
page: newpage
})
if (this.showaddress.length == 0) {
uni.showToast({
title: '没有更多了~',
icon: "none"
})
} else {
this.getaddresslist();
}
}
},
}
</script>
... ... @@ -91,32 +134,37 @@
font-weight: 400;
color: rgba(8, 18, 31, 1);
}
.top{
.top {
width: 100%;
display: flex;
align-items: center;
}
.name{
font-size:32rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color:rgba(6,18,32,1);
.name {
font-size: 32rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: rgba(6, 18, 32, 1);
}
.tel{
font-size:28rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(61,69,76,1);
.tel {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: rgba(61, 69, 76, 1);
margin-left: 48rpx;
}
.address{
.address {
width: 100%;
font-size:28rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
color:rgba(61,69,76,1);
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: rgba(61, 69, 76, 1);
margin-top: 20rpx;
}
.right {
width: 168rpx;
font-size: 28rpx;
... ... @@ -128,7 +176,7 @@
justify-content: flex-end;
}
.right image{
.right image {
width: 32rpx;
}
... ... @@ -144,10 +192,10 @@
display: flex;
justify-content: center;
align-items: center;
position:fixed;
bottom:30rpx;
left:32rpx;
position: fixed;
bottom: 30rpx;
left: 32rpx;
/* margin: 300rpx auto; */
}
</style>
... ...
... ... @@ -23,7 +23,7 @@
<view class="companyitem">
<view class="companyitemleft">营业执照</view>
<view class="compantphoto">
<image src="../../static/addpic.png" mode=""></image>
<image src="" mode=""></image>
</view>
</view>
<view class="companyitem flextwo">
... ...
{
"pages": [
"pages/homepage/homepage",
"pages/login/loginindex",
"pages/nearshop/cartlist",
"pages/homepage/collectshop",
"pages/luntan/examineresult",
"pages/luntan/examintext",
"pages/luntan/examine",
"pages/nearshop/sureorder",
"pages/login/loginindex",
"pages/login/accountpassword",
"pages/login/registercode",
"pages/homepage/mygift",
... ... @@ -83,6 +83,6 @@
"autoclose": false
},
"appname": "zhongmian",
"compilerVersion": "2.6.5",
"compilerVersion": "2.4.6",
"usingComponents": {}
}
\ No newline at end of file
... ...
... ... @@ -215,6 +215,9 @@ image {
width: 32rpx;
height: 32rpx;
font-size: 0;
-webkit-box-flex:0;
-webkit-flex:0 0 auto;
flex:0 0 auto;
}
.middleenter {
width: 600rpx;
... ... @@ -222,7 +225,7 @@ image {
font-size: 0;
}
.middleenter input {
width: 600rpx;
width: 100%;
height: 60rpx;
line-height: 60rpx;
padding:0 12rpx;
... ...
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/uni-section/uni-section"],{
/***/ 503:
/*!***************************************************************************!*\
!*** D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue ***!
\***************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./uni-section.vue?vue&type=template&id=43bdfe2c&scoped=true& */ 504);\n/* harmony import */ var _uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./uni-section.vue?vue&type=script&lang=js& */ 506);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n/* harmony import */ var _uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./uni-section.vue?vue&type=style&index=0&id=43bdfe2c&lang=scss&scoped=true& */ 508);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 15);\n\nvar renderjs\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n _uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n \"43bdfe2c\",\n null,\n false,\n _uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"components\"],\n renderjs\n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFvSTtBQUNwSTtBQUMrRDtBQUNMO0FBQ3NDOzs7QUFHaEc7QUFDeUs7QUFDekssZ0JBQWdCLCtLQUFVO0FBQzFCLEVBQUUsaUZBQU07QUFDUixFQUFFLGtHQUFNO0FBQ1IsRUFBRSwyR0FBZTtBQUNqQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsRUFBRSxzR0FBVTtBQUNaO0FBQ0E7O0FBRUE7QUFDQSxJQUFJLEtBQVUsRUFBRSxZQWlCZjtBQUNEO0FBQ2UsZ0YiLCJmaWxlIjoiNTAzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMsIHJlY3ljbGFibGVSZW5kZXIsIGNvbXBvbmVudHMgfSBmcm9tIFwiLi91bmktc2VjdGlvbi52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NDNiZGZlMmMmc2NvcGVkPXRydWUmXCJcbnZhciByZW5kZXJqc1xuaW1wb3J0IHNjcmlwdCBmcm9tIFwiLi91bmktc2VjdGlvbi52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCJcbmV4cG9ydCAqIGZyb20gXCIuL3VuaS1zZWN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uaXNSZWNvcmRlZCgnNDNiZGZlMmMnKSkge1xuICAgICAgYXBpLmNyZWF0ZVJlY29yZCgnNDNiZGZlMmMnLCBjb21wb25lbnQub3B0aW9ucylcbiAgICB9IGVsc2Uge1xuICAgICAgYXBpLnJlbG9hZCgnNDNiZGZlMmMnLCBjb21wb25lbnQub3B0aW9ucylcbiAgICB9XG4gICAgbW9kdWxlLmhvdC5hY2NlcHQoXCIuL3VuaS1zZWN0aW9uLnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD00M2JkZmUyYyZzY29wZWQ9dHJ1ZSZcIiwgZnVuY3Rpb24gKCkge1xuICAgICAgYXBpLnJlcmVuZGVyKCc0M2JkZmUyYycsIHtcbiAgICAgICAgcmVuZGVyOiByZW5kZXIsXG4gICAgICAgIHN0YXRpY1JlbmRlckZuczogc3RhdGljUmVuZGVyRm5zXG4gICAgICB9KVxuICAgIH0pXG4gIH1cbn1cbmNvbXBvbmVudC5vcHRpb25zLl9fZmlsZSA9IFwiRDovZnViZW4v6aG555uuL3pob25nbWlhbnByb2dyYW0vY29tcG9uZW50cy91bmktc2VjdGlvbi91bmktc2VjdGlvbi52dWVcIlxuZXhwb3J0IGRlZmF1bHQgY29tcG9uZW50LmV4cG9ydHMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///503\n");
/***/ }),
/***/ 504:
/*!**********************************************************************************************************************!*\
!*** D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=template&id=43bdfe2c&scoped=true& ***!
\**********************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-section.vue?vue&type=template&id=43bdfe2c&scoped=true& */ 505);\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"recyclableRender\", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"recyclableRender\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"components\", function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_template_id_43bdfe2c_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"components\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBIiwiZmlsZSI6IjUwNC5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCItIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHZ1ZS1sb2FkZXJcXFxcbGliXFxcXGxvYW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FxcXHN0eWxlLmpzIS4vdW5pLXNlY3Rpb24udnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTQzYmRmZTJjJnNjb3BlZD10cnVlJlwiIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///504\n");
/***/ }),
/***/ 505:
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=template&id=43bdfe2c&scoped=true& ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"recyclableRender\", function() { return recyclableRender; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"components\", function() { return components; });\nvar components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiNTA1LmpzIiwic291cmNlc0NvbnRlbnQiOlsidmFyIGNvbXBvbmVudHNcbnZhciByZW5kZXIgPSBmdW5jdGlvbigpIHtcbiAgdmFyIF92bSA9IHRoaXNcbiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50XG4gIHZhciBfYyA9IF92bS5fc2VsZi5fYyB8fCBfaFxufVxudmFyIHJlY3ljbGFibGVSZW5kZXIgPSBmYWxzZVxudmFyIHN0YXRpY1JlbmRlckZucyA9IFtdXG5yZW5kZXIuX3dpdGhTdHJpcHBlZCA9IHRydWVcblxuZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMsIHJlY3ljbGFibGVSZW5kZXIsIGNvbXBvbmVudHMgfSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///505\n");
/***/ }),
/***/ 506:
/*!****************************************************************************************************!*\
!*** D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=script&lang=js& ***!
\****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-section.vue?vue&type=script&lang=js& */ 507);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_E_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQXluQixDQUFnQiwrbkJBQUcsRUFBQyIsImZpbGUiOiI1MDYuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxiYWJlbC1sb2FkZXJcXFxcbGliXFxcXGluZGV4LmpzIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHdlYnBhY2stcHJlcHJvY2Vzcy1sb2FkZXJcXFxcaW5kZXguanM/P3JlZi0tMTItMSFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcQGRjbG91ZGlvXFxcXHdlYnBhY2stdW5pLW1wLWxvYWRlclxcXFxsaWJcXFxcc2NyaXB0LmpzIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxAZGNsb3VkaW9cXFxcdnVlLWNsaS1wbHVnaW4tdW5pXFxcXHBhY2thZ2VzXFxcXHZ1ZS1sb2FkZXJcXFxcbGliXFxcXGluZGV4LmpzPz92d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dGlvbnMhRTpcXFxc6L2v5Lu2XFxcXEhCdWlsZGVyWFxcXFxwbHVnaW5zXFxcXHVuaWFwcC1jbGlcXFxcbm9kZV9tb2R1bGVzXFxcXEBkY2xvdWRpb1xcXFx3ZWJwYWNrLXVuaS1tcC1sb2FkZXJcXFxcbGliXFxcXHN0eWxlLmpzIS4vdW5pLXNlY3Rpb24udnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///506\n");
/***/ }),
/***/ 507:
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=script&lang=js& ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, \"__esModule\", { value: true });exports.default = void 0; //\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/**\n * Section 标题栏\n * @description 标题栏\n * @property {String} type = [line|circle] 标题装饰类型\n * \t@value line 竖线\n * \t@value circle 圆形\n * @property {String} title 主标题\n * @property {String} subTitle 副标题\n */var _default =\n\n{\n name: 'UniTitle',\n props: {\n type: {\n type: String,\n default: '' },\n\n title: {\n type: String,\n default: '' },\n\n subTitle: {\n type: String,\n default: '' } },\n\n\n data: function data() {\n return {};\n },\n watch: {\n title: function title(newVal) {\n if (uni.report && newVal !== '') {\n uni.report('title', newVal);\n }\n } },\n\n methods: {\n onClick: function onClick() {\n this.$emit('click');\n } } };exports.default = _default;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-app-plus/dist/index.js */ 1)[\"default\"]))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVuaS1hcHA6Ly8vY29tcG9uZW50cy91bmktc2VjdGlvbi91bmktc2VjdGlvbi52dWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBZUE7Ozs7Ozs7Ozs7QUFVQTtBQUNBLGtCQURBO0FBRUE7QUFDQTtBQUNBLGtCQURBO0FBRUEsaUJBRkEsRUFEQTs7QUFLQTtBQUNBLGtCQURBO0FBRUEsaUJBRkEsRUFMQTs7QUFTQTtBQUNBLGtCQURBO0FBRUEsaUJBRkEsRUFUQSxFQUZBOzs7QUFnQkEsTUFoQkEsa0JBZ0JBO0FBQ0E7QUFDQSxHQWxCQTtBQW1CQTtBQUNBLFNBREEsaUJBQ0EsTUFEQSxFQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FMQSxFQW5CQTs7QUEwQkE7QUFDQSxXQURBLHFCQUNBO0FBQ0E7QUFDQSxLQUhBLEVBMUJBLEUiLCJmaWxlIjoiNTA3LmpzIiwic291cmNlc0NvbnRlbnQiOlsiPHRlbXBsYXRlPlxyXG5cdDx2aWV3IGNsYXNzPVwidW5pLXNlY3Rpb25cIj5cclxuXHRcdDx2aWV3IHYtaWY9XCJ0eXBlXCIgY2xhc3M9XCJ1bmktc2VjdGlvbl9faGVhZFwiPlxyXG5cdFx0XHQ8dmlldyA6Y2xhc3M9XCJ0eXBlXCIgY2xhc3M9XCJ1bmktc2VjdGlvbl9faGVhZC10YWdcIiAvPlxyXG5cdFx0PC92aWV3PlxyXG5cdFx0PHZpZXcgY2xhc3M9XCJ1bmktc2VjdGlvbl9fY29udGV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Ym9yZGVyLXRvcC1sZWZ0LXJhZGl1czogNTBweDtcclxuXHRcdGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDUwcHg7XHJcblx0XHRib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czogNTBweDtcclxuXHRcdGJhY2tncm91bmQtY29sb3I6ICR1bmktdGV4dC1jb2xvci1kaXNhYmxlO1xyXG5cdH1cclxuXHJcblx0LnVuaS1zZWN0aW9uX19jb250ZW50IHtcclxuXHRcdGZsZXg6IDE7XHJcblx0XHRjb2xvcjogJHVuaS10ZXh0LWNvbG9yO1xyXG5cdH1cclxuXHJcblx0LnVuaS1zZWN0aW9uX19jb250ZW50LXRpdGxlIHtcclxuXHRcdGZvbnQtc2l6ZTogJHVuaS1mb250LXNpemUtYmFzZTtcclxuXHRcdGNvbG9yOiAkdW5pLXRleHQtY29sb3I7XHJcblx0fVxyXG5cclxuXHQuZGlzdHJhY3Rpb24ge1xyXG5cdFx0ZmxleC1kaXJlY3Rpb246IHJvdztcclxuXHRcdGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcblx0fVxyXG5cclxuXHQudW5pLXNlY3Rpb25fX2NvbnRlbnQtc3ViIHtcclxuXHRcdGZvbnQtc2l6ZTogJHVuaS1mb250LXNpemUtc207XHJcblx0XHRjb2xvcjogJHVuaS10ZXh0LWNvbG9yLWdyZXk7XHJcblx0fVxyXG48L3N0eWxlPlxyXG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///507\n");
/***/ }),
/***/ 508:
/*!*************************************************************************************************************************************!*\
!*** D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=style&index=0&id=43bdfe2c&lang=scss&scoped=true& ***!
\*************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-1!./node_modules/css-loader??ref--8-oneOf-1-2!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-section.vue?vue&type=style&index=0&id=43bdfe2c&lang=scss&scoped=true& */ 509);\n/* harmony import */ var _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_E_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_1_E_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_index_js_ref_8_oneOf_1_2_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_E_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_E_HBuilderX_plugins_uniapp_cli_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_4_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_E_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_uni_section_vue_vue_type_style_index_0_id_43bdfe2c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQWlxQyxDQUFnQix3bUNBQUcsRUFBQyIsImZpbGUiOiI1MDguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxcXFxkaXN0XFxcXGxvYWRlci5qcz8/cmVmLS04LW9uZU9mLTEtMCFFOlxcXFzova/ku7ZcXFxcSEJ1aWxkZXJYXFxcXHBsdWdpbnNcXFxcdW5pYXBwLWNsaVxcXFxub2RlX21vZHVsZXNcXFxcQGRjbG91ZGlvXFxcXHZ1ZS1jbGktcGx1Z2luLXVuaVxcXFxwYWNrYWdlc1xcXFx3ZWJwYWNrLXByZXByb2Nlc3MtbG9hZGVyXFxcXGluZGV4LmpzPz9yZWYtLTgtb25lT2YtMS0xIUU6XFxcXOi9r+S7tlxcXFxIQnVpbGRlclhcXFxccGx1Z2luc1xcXFx1bmlhcHAtY2xpXFxcXG5vZGVfbW9kdWxlc1xcXFxjc3MtbG9hZGVyXFxcXGluZGV4LmpzPz9yZWYtLTgtb25lT2YtMS0y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RydWUmXCIiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///508\n");
/***/ }),
/***/ 509:
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-1!./node_modules/css-loader??ref--8-oneOf-1-2!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/fuben/项目/zhongmianprogram/components/uni-section/uni-section.vue?vue&type=style&index=0&id=43bdfe2c&lang=scss&scoped=true& ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("// extracted by mini-css-extract-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIiwiZmlsZSI6IjUwOS5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///509\n");
/***/ })
}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/uni-section/uni-section-create-component',
{
'components/uni-section/uni-section-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('1')['createComponent'](__webpack_require__(503))
})
},
[['components/uni-section/uni-section-create-component']]
]);
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<view class="uni-section data-v-43bdfe2c"><block wx:if="{{type}}"><view class="uni-section__head data-v-43bdfe2c"><view class="{{['uni-section__head-tag data-v-43bdfe2c',type]}}"></view></view></block><view class="uni-section__content data-v-43bdfe2c"><text class="{{['uni-section__content-title data-v-43bdfe2c',(!subTitle)?'distraction':'']}}">{{title}}</text><block wx:if="{{subTitle}}"><text class="uni-section__content-sub data-v-43bdfe2c">{{subTitle}}</text></block></view><slot></slot></view>
\ No newline at end of file
@charset "UTF-8";
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.uni-section.data-v-43bdfe2c {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: flex;
margin-top: 10px;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
padding: 0 10px;
height: 50px;
background-color: #f8f8f8;
font-weight: normal;
}
.uni-section.data-v-43bdfe2c:after {
position: absolute;
bottom: 0;
right: 0;
left: 0;
height: 1px;
content: '';
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
background-color: #c8c7cc;
}
.uni-section__head.data-v-43bdfe2c {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
margin-right: 10px;
}
.line.data-v-43bdfe2c {
height: 15px;
background-color: #c0c0c0;
border-radius: 5px;
width: 3px;
}
.circle.data-v-43bdfe2c {
width: 8px;
height: 8px;
border-top-right-radius: 50px;
border-top-left-radius: 50px;
border-bottom-left-radius: 50px;
border-bottom-right-radius: 50px;
background-color: #c0c0c0;
}
.uni-section__content.data-v-43bdfe2c {
-webkit-box-flex: 1;
-webkit-flex: 1;
flex: 1;
color: #333;
}
.uni-section__content-title.data-v-43bdfe2c {
font-size: 28rpx;
color: #333;
}
.distraction.data-v-43bdfe2c {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
}
.uni-section__content-sub.data-v-43bdfe2c {
font-size: 24rpx;
color: #999;
}
/**
* 监听页面内值的变化,主要用于动态开关swipe-action
* @param {Object} newValue
* @param {Object} oldValue
* @param {Object} ownerInstance
* @param {Object} instance
*/
function sizeReady(newValue, oldValue, ownerInstance, instance) {
var state = instance.getState()
state.position = JSON.parse(newValue)
if (!state.position || state.position.length === 0) return
var show = state.position[0].show
state.left = state.left || state.position[0].left;
// 通过用户变量,开启或关闭
if (show) {
openState(true, instance, ownerInstance)
} else {
openState(false, instance, ownerInstance)
}
}
/**
* 开始触摸操作
* @param {Object} e
* @param {Object} ins
*/
function touchstart(e, ins) {
var instance = e.instance;
var state = instance.getState();
var pageX = e.touches[0].pageX;
// 开始触摸时移除动画类
instance.removeClass('ani');
var owner = ins.selectAllComponents('.button-hock')
for (var i = 0; i < owner.length; i++) {
owner[i].removeClass('ani');
}
// state.position = JSON.parse(instance.getDataset().position);
state.left = state.left || state.position[0].left;
// 获取最终按钮组的宽度
state.width = pageX - state.left;
ins.callMethod('closeSwipe')
}
/**
* 开始滑动操作
* @param {Object} e
* @param {Object} ownerInstance
*/
function touchmove(e, ownerInstance) {
var instance = e.instance;
var disabled = instance.getDataset().disabled
var state = instance.getState()
// fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复
disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false;
if (disabled) return
var pageX = e.touches[0].pageX;
move(pageX - state.width, instance, ownerInstance)
}
/**
* 结束触摸操作
* @param {Object} e
* @param {Object} ownerInstance
*/
function touchend(e, ownerInstance) {
var instance = e.instance;
var disabled = instance.getDataset().disabled
var state = instance.getState()
// fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复
disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false;
if (disabled) return
// 滑动过程中触摸结束,通过阙值判断是开启还是关闭
moveDirection(state.left, -40, instance, ownerInstance)
}
/**
* 设置移动距离
* @param {Object} value
* @param {Object} instance
* @param {Object} ownerInstance
*/
function move(value, instance, ownerInstance) {
var state = instance.getState()
// 获取可滑动范围
var x = Math.max(-state.position[1].width, Math.min((value), 0));
state.left = x;
instance.setStyle({
transform: 'translateX(' + x + 'px)',
'-webkit-transform': 'translateX(' + x + 'px)'
})
// 折叠按钮动画
buttonFold(x, instance, ownerInstance)
}
/**
* 移动方向判断
* @param {Object} left
* @param {Object} value
* @param {Object} ownerInstance
* @param {Object} ins
*/
function moveDirection(left, value, ins, ownerInstance) {
var state = ins.getState()
var position = state.position
var isopen = state.isopen
if (!position[1].width) {
openState(false, ins, ownerInstance)
return
}
// 如果已经是打开状态,进行判断是否关闭,还是保留打开状态
if (isopen) {
if (-left <= position[1].width) {
openState(false, ins, ownerInstance)
} else {
openState(true, ins, ownerInstance)
}
return
}
// 如果是关闭状态,进行判断是否打开,还是保留关闭状态
if (left <= value) {
openState(true, ins, ownerInstance)
} else {
openState(false, ins, ownerInstance)
}
}
/**
* 设置按钮移动距离
* @param {Object} value
* @param {Object} instance
* @param {Object} ownerInstance
*/
function buttonFold(value, instance, ownerInstance) {
var ins = ownerInstance.selectAllComponents('.button-hock');
var state = instance.getState();
var position = state.position;
var arr = [];
var w = 0;
for (var i = 0; i < ins.length; i++) {
if (!ins[i].getDataset().button) return
var btnData = JSON.parse(ins[i].getDataset().button)
// fix by mehaotian TODO 在 app-vue 中,字符串转对象,需要转两次,这里先这么兼容
if (typeof(btnData) === 'string') {
btnData = JSON.parse(btnData)
}
var button = btnData[i] && btnData[i].width || 0
w += button
arr.push(-w)
// 动态计算按钮组每个按钮的折叠动画移动距离
var distance = arr[i - 1] + value * (arr[i - 1] / position[1].width)
if (i != 0) {
ins[i].setStyle({
transform: 'translateX(' + distance + 'px)',
})
}
}
}
/**
* 开启状态
* @param {Boolean} type
* @param {Object} ins
* @param {Object} ownerInstance
*/
function openState(type, ins, ownerInstance) {
var state = ins.getState()
var position = state.position
if (state.isopen === undefined) {
state.isopen = false
}
// 只有状态有改变才会通知页面改变状态
if (state.isopen !== type) {
// 通知页面,已经打开
ownerInstance.callMethod('change', {
open: type
})
}
// 设置打开和移动状态
state.isopen = type
// 添加动画类
ins.addClass('ani');
var owner = ownerInstance.selectAllComponents('.button-hock')
for (var i = 0; i < owner.length; i++) {
owner[i].addClass('ani');
}
// 设置最终移动位置
move(type ? -position[1].width : 0, ins, ownerInstance)
}
module.exports = {
sizeReady: sizeReady,
touchstart: touchstart,
touchmove: touchmove,
touchend: touchend
}