换ubuntu

This commit is contained in:
asd
2019-12-23 14:13:27 +08:00
parent 2688882a3e
commit 888b4ee55c
485 changed files with 12277 additions and 12196 deletions

View File

@@ -1,66 +1,66 @@
// pages/accomplish/accomplish.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
// pages/accomplish/accomplish.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -1,7 +1,7 @@
{
"usingComponents": {
"content":"../components/particulars/content/index",
"orderchooseaddr":"../components/particulars/orderchooseaddr/index",
"logistics": "../components/particulars/logistics/index"
}
{
"usingComponents": {
"content":"../components/particulars/content/index",
"orderchooseaddr":"../components/particulars/orderchooseaddr/index",
"logistics": "../components/particulars/logistics/index"
}
}

View File

@@ -1,4 +1,4 @@
.box{}
page{
background-color: #fbfbfb;
.box{}
page{
background-color: #fbfbfb;
}

View File

@@ -1,5 +1,5 @@
<view class="box">
<orderchooseaddr></orderchooseaddr>
<content></content>
<logistics></logistics>
<view class="box">
<orderchooseaddr></orderchooseaddr>
<content></content>
<logistics></logistics>
</view>

View File

@@ -1 +1 @@
page{background-color:#fbfbfb}
page{background-color:#fbfbfb}

View File

@@ -10,8 +10,13 @@ Page({
no: 0,
userid:"",
show: false,
arealist:[],
area:["请选择","请选择","请选择"]
arealist1:[],
arealist2:[],
arealist3:[],
area:["请选择","请选择","请选择"],
tagDis:[false,true,true],
active:0,
addressCity:"北京市 北京市 北京市"
},
/**
@@ -23,17 +28,18 @@ Page({
urldata:{
parent_id:0
},
}).then((res)=>{
console.log(res)
// console.log(res)
this.setData({
arealist:res.data.result
arealist1:res.data.result
})
console.log(this.data.arealist)
})
},
bindPickerChange(e) {
console.log(e)
// console.log(e)
},
showPopup() {
this.setData({ show: true });
@@ -43,7 +49,7 @@ Page({
this.setData({ show: false });
},
onMyEvent(e) {
console.log(e)
// console.log(e)
for (let i = 0; i < 8; i++) {
if (i == e.currentTarget.dataset.no) {
this.data.canshu[i] = e.detail
@@ -51,10 +57,10 @@ Page({
}
console.log(this.data.canshu)
// console.log(this.data.canshu)
},
choose(e){
console.log(e.currentTarget.dataset.id,e.currentTarget.dataset.name,e.currentTarget.dataset)
choose1(e){
// console.log(e.currentTarget.dataset.id,e.currentTarget.dataset.name,e.currentTarget.dataset)
let type=parseInt(e.currentTarget.dataset.type)
request({
url: "User/getArea",
@@ -62,24 +68,99 @@ Page({
parent_id:e.currentTarget.dataset.id
},
}).then((res)=>{
console.log(res)
if(res.data.result.length){
// console.log(res)
this.setData({
arealist1:res.data.result
arealist2:res.data.result,
active:1
})
// this.data.area[type]=e.currentTarget.dataset.name
console.log(this.data.area,123)
}
this.setData({
tagDis:[false,false,true]
})
// console.log(this.data.area,123)
this.data.area[0]=e.currentTarget.dataset.name
// for(let i in this.data.area){
// if(i==type){
// this.data.area[i]=e.currentTarget.dataset.name
// }
// }
this.data.area[0]=e.currentTarget.dataset.name
this.setData({
area:this.data.area
})
console.log(this.data.area,this.data.arealist)
// console.log(this.data.area,this.data.arealist)
})
},
choose2(e){
// console.log(e.currentTarget.dataset.id,e.currentTarget.dataset.name,e.currentTarget.dataset)
let type=parseInt(e.currentTarget.dataset.type)
request({
url: "User/getArea",
urldata:{
parent_id:e.currentTarget.dataset.id
},
}).then((res)=>{
this.setData({
arealist3:res.data.result,
active:2,
tagDis:[false,false,false]
})
// this.data.area[type]=e.currentTarget.dataset.name
// console.log(this.data.area,123)
this.data.area[1]=e.currentTarget.dataset.name
// for(let i in this.data.area){
// if(i==type){
// this.data.area[i]=e.currentTarget.dataset.name
// }
// }
this.setData({
area:this.data.area
})
// console.log(this.data.area,this.data.arealist)
console.log(this.data.arealist3+"001",this.data.active+"002",this.data.tagDis+"003")
})
},
choose3(e){
// console.log(e.currentTarget.dataset.id,e.currentTarget.dataset.name,e.currentTarget.dataset)
let type=parseInt(e.currentTarget.dataset.type)
request({
url: "User/getArea",
urldata:{
parent_id:e.currentTarget.dataset.id
},
}).then((res)=>{
// console.log(res)
this.setData({
arealist1:res.data.result,
tagDis:[false,false,false],
active:1
})
// this.data.area[type]=e.currentTarget.dataset.name
// console.log(this.data.area,123)
this.data.area[2]=e.currentTarget.dataset.name
// for(let i in this.data.area){
// if(i==type){
// this.data.area[i]=e.currentTarget.dataset.name
// }
// }}
console.log(93)
this.setData({
area:this.data.area,
show: false,
addressCity:this.data.area[0]+this.data.area[1]+this.data.area[2]
})
console.log(this.data.active,94)
// console.log(this.data.area,this.data.arealist)
})
},
save() {
@@ -89,7 +170,7 @@ Page({
request({
url: "User/validateOpenid",
}).then((res)=>{
console.log(res,1452)
// console.log(res,1452)
this.setData({
userid:res.data.data.user_id
})
@@ -113,7 +194,7 @@ Page({
zipcode: "271103",
}
}).then((res)=>{
console.log(res)
// console.log(res)
})
})

View File

@@ -1,17 +1,17 @@
.addaddress {
background-color: white;
.btn1 {
position: fixed;
bottom: 102rpx;
left: 50rpx;
}
.choose{
width:100%;
height: 500rpx;
.item{
text-indent: 15rpx;
line-height: 70rpx;
}
}
.addaddress {
background-color: white;
.btn1 {
position: fixed;
bottom: 102rpx;
left: 50rpx;
}
.choose{
width:100%;
height: 500rpx;
.item{
text-indent: 15rpx;
line-height: 70rpx;
}
}
}

View File

@@ -8,27 +8,27 @@
<shuru left="城市信息" right="北京市 北京市 东城区" ifarrow="{{true}}" data-no="3"></shuru>
</picker> -->
<view bindtap="showPopup">
<shuru left="城市信息" right="北京市 北京市 东城区" ifarrow="{{true}}" data-no="3"></shuru>
<shuru left="城市信息" right="{{addressCity}}" ifarrow="{{true}}" data-no="3"></shuru>
</view>
<van-popup show="{{ show }}" position="bottom" bind:close="onClose">
<van-tabs class="tab" swipe-threshold="5">
<van-tab title="{{area[0]}}">
<van-popup show="{{ show }}" position="bottom" bind:close="onClose" >
<van-tabs class="tab" swipe-threshold="5" active="{{active}}">
<van-tab title="{{area[0]}}" disabled="{{tagDis[0]}}">
<view class="choose">
<view class="item" wx:for="{{arealist}}" bindtap="choose" data-type="0" data-id="{{item.id}}" data-name="{{item.name}}">
<view class="item" wx:for="{{arealist1}}" bindtap="choose1" data-type="0" data-id="{{item.id}}" data-name="{{item.name}}">
{{item.name}}
</view>
</view>
</van-tab>
<van-tab title="{{area[1]}}">
<van-tab title="{{area[1]}}" disabled="{{tagDis[1]}}" bingtap="choose2">
<view class="choose">
<view class="item" wx:for="{{arealist1}}" data-type="1" data-id="{{item.id}}" data-name="{{item.name}}">
<view class="item" wx:for="{{arealist2}}" bindtap="choose2" data-type="1" data-id="{{item.id}}" data-name="{{item.name}}">
{{item.name}}
</view>
</view>
</van-tab>
<van-tab title="{{area[2]}}">
<van-tab title="{{area[2]}}" disabled="{{tagDis[2]}}">
<view class="choose">
<view class="item" wx:for="{{arealist2}}" data-type="2" data-id="{{item.id}}" data-name="{{item.name}}">
<view class="item" wx:for="{{arealist3}}" bindtap="choose3" data-type="2" data-id="{{item.id}}" data-name="{{item.name}}">
{{item.name}}
</view>
</view>

View File

@@ -1,10 +1,10 @@
.chooseaddress {
.addr {
margin-left: 30rpx;
}
.btn1 {
position: fixed;
bottom: 149rpx;
left: 50rpx;
}
.chooseaddress {
.addr {
margin-left: 30rpx;
}
.btn1 {
position: fixed;
bottom: 149rpx;
left: 50rpx;
}
}

View File

@@ -1,98 +1,98 @@
// pages/classify/classify.js
import { request } from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
type: [],
list:[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
request({
url: "Goods/goodsCategoryList",
data: {
parent_id: 2
}
}).then((res) => {
// console.log(res)
this.setData({
type: res.data.result
})
this.select({detail:{id:res.data.result[0].id}})
console.log(this.data.type, 150)
})
},
select(a){
// console.log(a)
// a.detail.id
request({
url:'Goods/goodsList',
urldata:{
id:a.detail.id,
sort:'shop_price',
sort_asc:'desc',
p:0
}
}).then((res)=>{
console.log(res)
this.setData({
list:res.data.result.goods_list
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
}
// pages/classify/classify.js
import { request } from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
type: [],
list:[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
request({
url: "Goods/goodsCategoryList",
data: {
parent_id: 2
}
}).then((res) => {
// console.log(res)
this.setData({
type: res.data.result
})
this.select({detail:{id:res.data.result[0].id}})
console.log(this.data.type, 150)
})
},
select(a){
// console.log(a)
// a.detail.id
request({
url:'Goods/goodsList',
urldata:{
id:a.detail.id,
sort:'shop_price',
sort_asc:'desc',
p:0
}
}).then((res)=>{
console.log(res)
this.setData({
list:res.data.result.goods_list
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
}
})

View File

@@ -1,6 +1,6 @@
{
"usingComponents": {
"list":"../components/classify/list/index",
"navigation":"../components/classify/navigation/index"
}
{
"usingComponents": {
"list":"../components/classify/list/index",
"navigation":"../components/classify/navigation/index"
}
}

View File

@@ -1,7 +1,7 @@
.box{
width: 750rpx;
display: flex;
border-top: 1rpx solid #eaeaea;
.box{
width: 750rpx;
display: flex;
border-top: 1rpx solid #eaeaea;
}

View File

@@ -1,4 +1,4 @@
<view class="box">
<navigation bindselect="select" types="{{type}}"></navigation>
<list list="{{list}}"></list>
<view class="box">
<navigation bindselect="select" types="{{type}}"></navigation>
<list list="{{list}}"></list>
</view>

View File

@@ -1 +1 @@
.box{width:750rpx;display:flex;border-top:1rpx solid #eaeaea}
.box{width:750rpx;display:flex;border-top:1rpx solid #eaeaea}

View File

@@ -1,22 +1,22 @@
import {request} from "../../utils/bin"
Page({
data:{
list:[]
},
onLoad(){
request({
url:"Goods/hotGoodsList",
data:{
page:0
}
}).then((res)=>{
console.log(res.data.result)
this.setData({
list:res.data.result
})
})
},
searchs(){
console.log(10)
}
})
import {request} from "../../utils/bin"
Page({
data:{
list:[]
},
onLoad(){
request({
url:"Goods/hotGoodsList",
data:{
page:0
}
}).then((res)=>{
console.log(res.data.result)
this.setData({
list:res.data.result
})
})
},
searchs(){
console.log(10)
}
})

View File

@@ -1,6 +1,6 @@
{
"usingComponents": {
"search":"../components/index/search/index",
"list":"../components/index/list/index"
}
{
"usingComponents": {
"search":"../components/index/search/index",
"list":"../components/index/list/index"
}
}

View File

@@ -1,9 +1,9 @@
.box {
border-top: #eaeaea solid 1rpx;
width: 750rpx;
// overflow: hidden;
display: flex;
align-items: center;
flex-direction: column;
}
.box {
border-top: #eaeaea solid 1rpx;
width: 750rpx;
// overflow: hidden;
display: flex;
align-items: center;
flex-direction: column;
}

View File

@@ -1,4 +1,4 @@
<view class="box">
<search bind:tap="searchs"></search>
<list list="{{list}}"></list>
<view class="box">
<search bind:tap="searchs"></search>
<list list="{{list}}"></list>
</view>

View File

@@ -1 +1 @@
.box{border-top:#eaeaea solid 1rpx;width:750rpx;display:flex;align-items:center;flex-direction:column}
.box{border-top:#eaeaea solid 1rpx;width:750rpx;display:flex;align-items:center;flex-direction:column}

View File

@@ -1,123 +1,123 @@
// pages/login/login.js
import {request} from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
},
getinfo(a){
request({
url:"User/validateOpenid"
}).then((res)=>{
if(res.data.code == 400){
request({
url:"User/register",
data:{
country:"",
gender:0,
nick_name:a.detail.userInfo.nickName,
province:"",
city:"",
head_pic:a.detail.userInfo.avatarUrl,
open_id: wx.getStorageSync("openid"),
}
}).then((res)=>{
if(res.data.code == 200){
wx.switchTab({
url:"/pages/index/index"
})
}
})
}else{
wx.switchTab({
url:"/pages/index/index"
})
}
})
},
login(a){
console.log(a)
let i = this
wx.login({
success (res) {
if (res.code) {
//发起网络请求
request({
url:"User/getopenId",
data:{
js_code:res.code
}
}).then((res)=>{
console.log(res)
wx.setStorageSync("openid",res.data.openid)
i.getinfo(a)
wx.switchTab({
url:"/pages/index/index"
})
})
} else {
console.log('登录失败!' + res.errMsg)
}
}
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
// pages/login/login.js
import {request} from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
},
getinfo(a){
request({
url:"User/validateOpenid"
}).then((res)=>{
if(res.data.code == 400){
request({
url:"User/register",
data:{
country:"",
gender:0,
nick_name:a.detail.userInfo.nickName,
province:"",
city:"",
head_pic:a.detail.userInfo.avatarUrl,
open_id: wx.getStorageSync("openid"),
}
}).then((res)=>{
if(res.data.code == 200){
wx.switchTab({
url:"/pages/index/index"
})
}
})
}else{
wx.switchTab({
url:"/pages/index/index"
})
}
})
},
login(a){
console.log(a)
let i = this
wx.login({
success (res) {
if (res.code) {
//发起网络请求
request({
url:"User/getopenId",
data:{
js_code:res.code
}
}).then((res)=>{
console.log(res)
wx.setStorageSync("openid",res.data.openid)
i.getinfo(a)
wx.switchTab({
url:"/pages/index/index"
})
})
} else {
console.log('登录失败!' + res.errMsg)
}
}
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -1,3 +1,3 @@
{
"usingComponents": {}
{
"usingComponents": {}
}

View File

@@ -1,3 +1,3 @@
<view>
<button open-type="getUserInfo" bindgetuserinfo="login">登录</button>
<view>
<button open-type="getUserInfo" bindgetuserinfo="login">登录</button>
</view>

View File

@@ -1,11 +1,11 @@
.membershops {
display: flex;
flex-wrap: wrap;
.membershop {
// margin-right: 4rpx;
margin-bottom: 4rpx;
}
.membershop:nth-child(odd) {
margin-right: 4rpx;
}
.membershops {
display: flex;
flex-wrap: wrap;
.membershop {
// margin-right: 4rpx;
margin-bottom: 4rpx;
}
.membershop:nth-child(odd) {
margin-right: 4rpx;
}
}

View File

@@ -1,66 +1,66 @@
// pages/message/message.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
// pages/message/message.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -1,3 +1,3 @@
{
"usingComponents": {}
{
"usingComponents": {}
}

View File

@@ -1,54 +1,54 @@
.box {
// border-top: 1rpx solid #eaeaea;
display: flex;
flex-direction: column;
align-items: center;
.list {
width: 650rpx;
.information {
margin-top: 43rpx;
display: flex;
flex-direction: column;
font-size: 28rpx;
color: #333;
border-bottom: 1rpx solid #eaeaea;
justify-content: space-between;
> input {
height: 28rpx;
font-size: 28rpx;
color: #333;
}
}
}
.upload{
width: 650rpx;
margin-top: 42rpx;
.title{
font-size: 26rpx;
color: #999;
}
.files{
margin-top: 42rpx;
width: 195rpx;
height: 195rpx;
box-shadow:2rpx 3rpx 16rpx 1rpx rgba(51,51,51,0.1);
>image{
width: 50rpx;
height: 41rpx;
background-color: #000;
margin: 77rpx 73rpx;
}
}
}
.submit{
margin-top: 295rpx;
width: 650rpx;
height: 98rpx;
background-color: #47C877;
border-radius: 49rpx;
font-size: 36rpx;
line-height: 98rpx;
text-align: center;
color: #fff;
}
}
.box {
// border-top: 1rpx solid #eaeaea;
display: flex;
flex-direction: column;
align-items: center;
.list {
width: 650rpx;
.information {
margin-top: 43rpx;
display: flex;
flex-direction: column;
font-size: 28rpx;
color: #333;
border-bottom: 1rpx solid #eaeaea;
justify-content: space-between;
> input {
height: 28rpx;
font-size: 28rpx;
color: #333;
}
}
}
.upload{
width: 650rpx;
margin-top: 42rpx;
.title{
font-size: 26rpx;
color: #999;
}
.files{
margin-top: 42rpx;
width: 195rpx;
height: 195rpx;
box-shadow:2rpx 3rpx 16rpx 1rpx rgba(51,51,51,0.1);
>image{
width: 50rpx;
height: 41rpx;
background-color: #000;
margin: 77rpx 73rpx;
}
}
}
.submit{
margin-top: 295rpx;
width: 650rpx;
height: 98rpx;
background-color: #47C877;
border-radius: 49rpx;
font-size: 36rpx;
line-height: 98rpx;
text-align: center;
color: #fff;
}
}

View File

@@ -1,29 +1,29 @@
<view class="box">
<view class="list">
<view class="information">
<text>姓名</text>
<input type="text" />
</view>
<view class="information">
<text>联系电话</text>
<input type="text" />
</view>
<view class="information">
<text>邮箱</text>
<input type="text" />
</view>
<view class="information">
<text>护照奥马</text>
<input type="text" />
</view>
</view>
<view class="upload">
<text class="title">护照正反面照片</text>
<view class="files">
<image></image>
</view>
</view>
<view class="submit">
保存
</view>
<view class="box">
<view class="list">
<view class="information">
<text>姓名</text>
<input type="text" />
</view>
<view class="information">
<text>联系电话</text>
<input type="text" />
</view>
<view class="information">
<text>邮箱</text>
<input type="text" />
</view>
<view class="information">
<text>护照奥马</text>
<input type="text" />
</view>
</view>
<view class="upload">
<text class="title">护照正反面照片</text>
<view class="files">
<image></image>
</view>
</view>
<view class="submit">
保存
</view>
</view>

View File

@@ -1 +1 @@
.box{display:flex;flex-direction:column;align-items:center}.box .list{width:650rpx}.box .list .information{margin-top:43rpx;display:flex;flex-direction:column;font-size:28rpx;color:#333;border-bottom:1rpx solid #eaeaea;justify-content:space-between}.box .list .information>input{height:28rpx;font-size:28rpx;color:#333}.box .upload{width:650rpx;margin-top:42rpx}.box .upload .title{font-size:26rpx;color:#999}.box .upload .files{margin-top:42rpx;width:195rpx;height:195rpx;box-shadow:2rpx 3rpx 16rpx 1rpx rgba(51,51,51,0.1)}.box .upload .files>image{width:50rpx;height:41rpx;background-color:#000;margin:77rpx 73rpx}.box .submit{margin-top:295rpx;width:650rpx;height:98rpx;background-color:#47C877;border-radius:49rpx;font-size:36rpx;line-height:98rpx;text-align:center;color:#fff}
.box{display:flex;flex-direction:column;align-items:center}.box .list{width:650rpx}.box .list .information{margin-top:43rpx;display:flex;flex-direction:column;font-size:28rpx;color:#333;border-bottom:1rpx solid #eaeaea;justify-content:space-between}.box .list .information>input{height:28rpx;font-size:28rpx;color:#333}.box .upload{width:650rpx;margin-top:42rpx}.box .upload .title{font-size:26rpx;color:#999}.box .upload .files{margin-top:42rpx;width:195rpx;height:195rpx;box-shadow:2rpx 3rpx 16rpx 1rpx rgba(51,51,51,0.1)}.box .upload .files>image{width:50rpx;height:41rpx;background-color:#000;margin:77rpx 73rpx}.box .submit{margin-top:295rpx;width:650rpx;height:98rpx;background-color:#47C877;border-radius:49rpx;font-size:36rpx;line-height:98rpx;text-align:center;color:#fff}

View File

@@ -1,66 +1,66 @@
// pages/order/order.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
// pages/order/order.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -1,5 +1,5 @@
{
"usingComponents": {
"tab":"../components/order/tab/index"
}
{
"usingComponents": {
"tab":"../components/order/tab/index"
}
}

View File

@@ -1,9 +1,9 @@
.box {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
page {
background-color: #efefef;
}
.box {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
page {
background-color: #efefef;
}

View File

@@ -1,3 +1,3 @@
<view class="box">
<tab style="width:100%"></tab>
<view class="box">
<tab style="width:100%"></tab>
</view>

View File

@@ -1 +1 @@
.box{display:flex;flex-direction:column;align-items:center;width:100%}page{background-color:#efefef}
.box{display:flex;flex-direction:column;align-items:center;width:100%}page{background-color:#efefef}

View File

@@ -1,7 +1,7 @@
.orderconfirm {
.bottom {
width: 100%;
position: fixed;
bottom: 0;
}
.orderconfirm {
.bottom {
width: 100%;
position: fixed;
bottom: 0;
}
}

View File

@@ -1,11 +1,11 @@
<view class="orderconfirm">
<shopinfo></shopinfo>
<chooseway></chooseway>
<chooseaddr></chooseaddr>
<orderyf></orderyf>
<agree></agree>
<view class="bottom">
<bottom></bottom>
</view>
<view class="orderconfirm">
<shopinfo></shopinfo>
<chooseway></chooseway>
<chooseaddr></chooseaddr>
<orderyf></orderyf>
<agree></agree>
<view class="bottom">
<bottom></bottom>
</view>
</view>

View File

@@ -1,66 +1,66 @@
// pages/particulars/particulars.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
// pages/particulars/particulars.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -1,8 +1,8 @@
{
"usingComponents": {
"content":"../components/particulars/content/index",
"orderchooseaddr":"../components/particulars/orderchooseaddr/index",
"submit":"../components/particulars/submit/index"
}
{
"usingComponents": {
"content":"../components/particulars/content/index",
"orderchooseaddr":"../components/particulars/orderchooseaddr/index",
"submit":"../components/particulars/submit/index"
}
}

View File

@@ -1,7 +1,7 @@
.box {
}
page {
background-color: #fbfbfb;
}
.box {
}
page {
background-color: #fbfbfb;
}

View File

@@ -1,5 +1,5 @@
<view class="box">
<orderchooseaddr></orderchooseaddr>
<content></content>
<submit></submit>
<view class="box">
<orderchooseaddr></orderchooseaddr>
<content></content>
<submit></submit>
</view>

View File

@@ -1 +1 @@
page{background-color:#fbfbfb}
page{background-color:#fbfbfb}

View File

@@ -1,118 +1,118 @@
// pages/personal/personal.js.
import {request} from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
openid:"",
username:"啦啦啦"
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
},
toorder() {
wx.navigateTo({
url: "/pages/order/order"
})
},
toaddress() {
wx.navigateTo({
url: "/pages/chooseaddr/chooseaddr"
})
},
toserver() {
// wx.navigateTo({
// url: "/pages/order/order"
// })
},
tomember() {
wx.navigateTo({
url: "/pages/member/member"
})
},
toorder() {
wx.navigateTo({
url: "/pages/order/order"
})
},
toyue() {
wx.navigateTo({
url: "/pages/yue/yue"
})
},
toyongjin() {
wx.navigateTo({
url: "/pages/yongjin/yongjin"
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
login(){
if(this.data.openid == ""){
wx.navigateTo({
url:"/pages/login/login"
})
}
},
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
this.setData({
openid:wx.getStorageSync("openid")
})
request({
url:"User/validateOpenid"
}).then((res)=>{
console.log(res)
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
}
// pages/personal/personal.js.
import {request} from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
openid:"",
username:"啦啦啦"
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
},
toorder() {
wx.navigateTo({
url: "/pages/order/order"
})
},
toaddress() {
wx.navigateTo({
url: "/pages/chooseaddr/chooseaddr"
})
},
toserver() {
// wx.navigateTo({
// url: "/pages/order/order"
// })
},
tomember() {
wx.navigateTo({
url: "/pages/member/member"
})
},
toorder() {
wx.navigateTo({
url: "/pages/order/order"
})
},
toyue() {
wx.navigateTo({
url: "/pages/yue/yue"
})
},
toyongjin() {
wx.navigateTo({
url: "/pages/yongjin/yongjin"
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
login(){
if(this.data.openid == ""){
wx.navigateTo({
url:"/pages/login/login"
})
}
},
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
this.setData({
openid:wx.getStorageSync("openid")
})
request({
url:"User/validateOpenid"
}).then((res)=>{
console.log(res)
})
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
}
})

View File

@@ -1,3 +1,3 @@
{
"usingComponents": {}
{
"usingComponents": {}
}

View File

@@ -1,53 +1,53 @@
.box{
// border-top: 1rpx solid #eaeaea;
display: flex;
flex-direction: column;
align-items: center;
.card{
width: 690rpx;
height: 313rpx;
background-color: #47C877;
display: flex;
box-sizing: border-box;
padding: 50rpx;
font-size: 30rpx;
flex-direction: column;
color: #fff;
margin-top: 20rpx;
.user{
display: flex;
align-items: center;
.head{
width: 80rpx;
height: 80rpx;
margin-right: 32rpx;
border-radius: 50%;
background-color: #fff;
}
}
.balance{
display: flex;
flex-direction: column;
margin-top: 52rpx;
}
}
.list{
display: flex;
width: 690rpx;
margin-top: 33rpx;
flex-direction: column;
.option{
width: 100%;
height: 80rpx;
margin-bottom: 15rpx;
box-sizing: border-box;
padding: 0 30rpx;
box-shadow:2rpx 3rpx 16rpx 1rpx rgba(51,51,51,0.1);
display: flex;
align-items: center;
justify-content: space-between;
}
}
}
.box{
// border-top: 1rpx solid #eaeaea;
display: flex;
flex-direction: column;
align-items: center;
.card{
width: 690rpx;
height: 313rpx;
background-color: #47C877;
display: flex;
box-sizing: border-box;
padding: 50rpx;
font-size: 30rpx;
flex-direction: column;
color: #fff;
margin-top: 20rpx;
.user{
display: flex;
align-items: center;
.head{
width: 80rpx;
height: 80rpx;
margin-right: 32rpx;
border-radius: 50%;
background-color: #fff;
}
}
.balance{
display: flex;
flex-direction: column;
margin-top: 52rpx;
}
}
.list{
display: flex;
width: 690rpx;
margin-top: 33rpx;
flex-direction: column;
.option{
width: 100%;
height: 80rpx;
margin-bottom: 15rpx;
box-sizing: border-box;
padding: 0 30rpx;
box-shadow:2rpx 3rpx 16rpx 1rpx rgba(51,51,51,0.1);
display: flex;
align-items: center;
justify-content: space-between;
}
}
}

View File

@@ -1,43 +1,43 @@
<view class="box">
<view class="card">
<view class="user">
<image class="head"></image>
<text bind:tap="login">{{openid == ""?'点击登录':username}}</text>
</view>
<view class="balance">
<text>账户余额</text>
<text>480.00</text>
</view>
</view>
<view class="list">
<view class="option" bindtap="toorder">
<view>我的订单</view>
<view>></view>
</view>
<view class="option" bindtap="toaddress">
<view>地址管理</view>
<view>></view>
</view>
<view class="option" bindtap="toserver">
<view>在线客服</view>
<!-- <view><text style="font-size:28rpx;color:#999;">非会员 </text>></view> -->
</view>
<view class="option" bindtap="tomember">
<view>会员中心</view>
<view><text style="font-size:28rpx;color:#999;">非会员 </text>></view>
</view>
<view class="option" bindtap="toyue">
<view>我的余额</view>
<!-- <view><text style="font-size:28rpx;color:#999;">非会员 </text>></view> -->
</view>
<view class="option" bindtap="toyongjin">
<view>当前佣金</view>
<!-- <view><text style="font-size:28rpx;color:#999;">非会员 </text>></view> -->
</view>
<view class="option" bindtap="share">
<view>分 享</view>
<!-- <view><text style="font-size:28rpx;color:#999;">非会员 </text>></view> -->
</view>
</view>
<view class="box">
<view class="card">
<view class="user">
<image class="head"></image>
<text bind:tap="login">{{openid == ""?'点击登录':username}}</text>
</view>
<view class="balance">
<text>账户余额</text>
<text>480.00</text>
</view>
</view>
<view class="list">
<view class="option" bindtap="toorder">
<view>我的订单</view>
<view>></view>
</view>
<view class="option" bindtap="toaddress">
<view>地址管理</view>
<view>></view>
</view>
<view class="option" bindtap="toserver">
<view>在线客服</view>
<!-- <view><text style="font-size:28rpx;color:#999;">非会员 </text>></view> -->
</view>
<view class="option" bindtap="tomember">
<view>会员中心</view>
<view><text style="font-size:28rpx;color:#999;">非会员 </text>></view>
</view>
<view class="option" bindtap="toyue">
<view>我的余额</view>
<!-- <view><text style="font-size:28rpx;color:#999;">非会员 </text>></view> -->
</view>
<view class="option" bindtap="toyongjin">
<view>当前佣金</view>
<!-- <view><text style="font-size:28rpx;color:#999;">非会员 </text>></view> -->
</view>
<view class="option" bindtap="share">
<view>分 享</view>
<!-- <view><text style="font-size:28rpx;color:#999;">非会员 </text>></view> -->
</view>
</view>
</view>

View File

@@ -1 +1 @@
.box{display:flex;flex-direction:column;align-items:center}.box .card{width:690rpx;height:313rpx;background-color:#47C877;display:flex;box-sizing:border-box;padding:50rpx;font-size:30rpx;flex-direction:column;color:#fff;margin-top:20rpx}.box .card .user{display:flex;align-items:center}.box .card .user .head{width:80rpx;height:80rpx;margin-right:32rpx;border-radius:50%;background-color:#fff}.box .card .balance{display:flex;flex-direction:column;margin-top:52rpx}.box .list{display:flex;width:690rpx;margin-top:33rpx;flex-direction:column}.box .list .option{width:100%;height:80rpx;margin-bottom:15rpx;box-sizing:border-box;padding:0 30rpx;box-shadow:2rpx 3rpx 16rpx 1rpx rgba(51,51,51,0.1);display:flex;align-items:center;justify-content:space-between}
.box{display:flex;flex-direction:column;align-items:center}.box .card{width:690rpx;height:313rpx;background-color:#47C877;display:flex;box-sizing:border-box;padding:50rpx;font-size:30rpx;flex-direction:column;color:#fff;margin-top:20rpx}.box .card .user{display:flex;align-items:center}.box .card .user .head{width:80rpx;height:80rpx;margin-right:32rpx;border-radius:50%;background-color:#fff}.box .card .balance{display:flex;flex-direction:column;margin-top:52rpx}.box .list{display:flex;width:690rpx;margin-top:33rpx;flex-direction:column}.box .list .option{width:100%;height:80rpx;margin-bottom:15rpx;box-sizing:border-box;padding:0 30rpx;box-shadow:2rpx 3rpx 16rpx 1rpx rgba(51,51,51,0.1);display:flex;align-items:center;justify-content:space-between}

View File

@@ -1,110 +1,110 @@
// pages/product/product.js'
import { request } from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
array: ['20粒', '30粒', '50粒', '100粒'],
userid:0
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
console.log(options)
request({
url: "Goods/goodsInfo",
data: {
id: options.shopid
}
}).then((res) => {
// console.log(res)
this.setData({
info: res.data.result,
shopid:options.shopid,
})
// console.log(this.data.type, 150)
})
request({
url:"User/validateOpenid"
}).then((res)=>{
console.log(res)
this.setData({
userid:res.data.data.user_id
})
})
},
// goshop() {
// },
bindPickerChange(e) {
console.log(e.detail.value)
request({
url: "Cart/addCart",
data: {
goods_id: this.data.shopid,
goods_num: 1,
goods_spec:"",
user_id:this.data.userid
},
name:"session_id"
}).then((res)=>{
console.log(res)
wx.switchTab({
url: '/pages/shopping/shopping'
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
}
// pages/product/product.js'
import { request } from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
array: ['20粒', '30粒', '50粒', '100粒'],
userid:0
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
console.log(options)
request({
url: "Goods/goodsInfo",
data: {
id: options.shopid
}
}).then((res) => {
// console.log(res)
this.setData({
info: res.data.result,
shopid:options.shopid,
})
// console.log(this.data.type, 150)
})
request({
url:"User/validateOpenid"
}).then((res)=>{
console.log(res)
this.setData({
userid:res.data.data.user_id
})
})
},
// goshop() {
// },
bindPickerChange(e) {
console.log(e.detail.value)
request({
url: "Cart/addCart",
data: {
goods_id: this.data.shopid,
goods_num: 1,
goods_spec:"",
user_id:this.data.userid
},
name:"session_id"
}).then((res)=>{
console.log(res)
wx.switchTab({
url: '/pages/shopping/shopping'
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
}
})

View File

@@ -1,3 +1,3 @@
{
"usingComponents": {}
{
"usingComponents": {}
}

View File

@@ -1,37 +1,37 @@
.box{
border-top: 1rpx solid #eaeaea;
display: flex;
flex-direction: column;
align-items: center;
.swiper{
margin-top: 109rpx;
width: 389rpx;
height: 657rpx;
.image{
width: 389rpx;
height: 549rpx;
background-color: #000;
}
}
.title{
font-size: 32rpx;
color: #333;
margin-bottom: 34rpx;
width: 540rpx;
}
.menery{
font-size: 34rpx;
color: #666;
margin-bottom: 70rpx;
}
.add{
width: 308rpx;
height: 98rpx;
background-color: #50CA80;
border-radius: 49rpx;
line-height: 98rpx;
font-size: 34rpx;
color: #fff;
text-align: center;
}
.box{
border-top: 1rpx solid #eaeaea;
display: flex;
flex-direction: column;
align-items: center;
.swiper{
margin-top: 109rpx;
width: 389rpx;
height: 657rpx;
.image{
width: 389rpx;
height: 549rpx;
background-color: #000;
}
}
.title{
font-size: 32rpx;
color: #333;
margin-bottom: 34rpx;
width: 540rpx;
}
.menery{
font-size: 34rpx;
color: #666;
margin-bottom: 70rpx;
}
.add{
width: 308rpx;
height: 98rpx;
background-color: #50CA80;
border-radius: 49rpx;
line-height: 98rpx;
font-size: 34rpx;
color: #fff;
text-align: center;
}
}

View File

@@ -1,24 +1,24 @@
<view class="box">
<swiper indicator-dots="{{true}}" circular="{{true}}" autoplay="{{true}}" interval="{{2000}}" class="swiper">
<block wx:for="{{info.gallery}}">
<swiper-item>
<image class="image" src="{{item.image_url}}"> </image>
</swiper-item>
</block>
<!-- <block>
<swiper-item>
<image class="image"> </image>
</swiper-item>
</block>
<block>
<swiper-item>
<image class="image"> </image>
</swiper-item>
</block> -->
</swiper>
<text class="title">{{info.goods.goods_name}}</text>
<text class="menery">$ {{info.goods.shop_price}}</text>
<picker bindchange="bindPickerChange" value="{{item.item_id?item.item_id:0}}" range="{{info.goods.goods_spec_list?info.goods.goods_spec_list:['默认规格']}}">
<view class="add">加入购物车</view>
</picker>
<view class="box">
<swiper indicator-dots="{{true}}" circular="{{true}}" autoplay="{{true}}" interval="{{2000}}" class="swiper">
<block wx:for="{{info.gallery}}">
<swiper-item>
<image class="image" src="{{item.image_url}}"> </image>
</swiper-item>
</block>
<!-- <block>
<swiper-item>
<image class="image"> </image>
</swiper-item>
</block>
<block>
<swiper-item>
<image class="image"> </image>
</swiper-item>
</block> -->
</swiper>
<text class="title">{{info.goods.goods_name}}</text>
<text class="menery">$ {{info.goods.shop_price}}</text>
<picker bindchange="bindPickerChange" value="{{item.item_id?item.item_id:0}}" range="{{info.goods.goods_spec_list?info.goods.goods_spec_list:['默认规格']}}">
<view class="add">加入购物车</view>
</picker>
</view>

View File

@@ -1 +1 @@
.box{border-top:1rpx solid #eaeaea;display:flex;flex-direction:column;align-items:center}.box .swiper{margin-top:109rpx;width:389rpx;height:657rpx}.box .swiper .image{width:389rpx;height:549rpx;background-color:#000}.box .title{font-size:32rpx;color:#333;margin-bottom:34rpx;width:540rpx}.box .menery{font-size:34rpx;color:#666;margin-bottom:70rpx}.box .add{width:308rpx;height:98rpx;background-color:#50CA80;border-radius:49rpx;line-height:98rpx;font-size:34rpx;color:#fff;text-align:center}
.box{border-top:1rpx solid #eaeaea;display:flex;flex-direction:column;align-items:center}.box .swiper{margin-top:109rpx;width:389rpx;height:657rpx}.box .swiper .image{width:389rpx;height:549rpx;background-color:#000}.box .title{font-size:32rpx;color:#333;margin-bottom:34rpx;width:540rpx}.box .menery{font-size:34rpx;color:#666;margin-bottom:70rpx}.box .add{width:308rpx;height:98rpx;background-color:#50CA80;border-radius:49rpx;line-height:98rpx;font-size:34rpx;color:#fff;text-align:center}

View File

@@ -1,66 +1,66 @@
// pages/receiving/receiving.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
// pages/receiving/receiving.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -1,6 +1,6 @@
{
"usingComponents": {
"content":"../components/particulars/content/index",
"orderchooseaddr":"../components/particulars/orderchooseaddr/index"
}
{
"usingComponents": {
"content":"../components/particulars/content/index",
"orderchooseaddr":"../components/particulars/orderchooseaddr/index"
}
}

View File

@@ -1,7 +1,7 @@
.box {
}
page {
background-color: #fbfbfb;
}
.box {
}
page {
background-color: #fbfbfb;
}

View File

@@ -1,4 +1,4 @@
<view class="box">
<orderchooseaddr></orderchooseaddr>
<content></content>
<view class="box">
<orderchooseaddr></orderchooseaddr>
<content></content>
</view>

View File

@@ -1 +1 @@
page{background-color:#fbfbfb}
page{background-color:#fbfbfb}

View File

@@ -1,66 +1,66 @@
// pages/sales1/sales1.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
// pages/sales1/sales1.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -1,5 +1,5 @@
{
"usingComponents": {
"merchandise":"../components/seles/merchandises/index"
}
{
"usingComponents": {
"merchandise":"../components/seles/merchandises/index"
}
}

View File

@@ -1,48 +1,48 @@
.box {
border-top: 1rpx solid #eee;
.fill {
padding: 42rpx 30rpx;
box-sizing: border-box;
.cause {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 45rpx;
.title {
font-size: 26rpx;
color: #333;
}
.select {
font-size: 26rpx;
color: #999;
}
}
.upload {
.title {
font-size: 26rpx;
color: #333;
margin-bottom: 45rpx;
}
.img {
width: 187rpx;
height: 187rpx;
border: 1rpx solid rgba(229, 229, 229, 1);
border-radius: 6rpx;
}
}
}
.submit{
width: 650rpx;
height: 98rpx;
border-radius: 49rpx;
background-color: #47C877;
line-height: 98rpx;
text-align: center;
color: #fff;
font-size:36rpx;
margin-top: 67rpx;
margin-left: 50rpx;
}
}
.box {
border-top: 1rpx solid #eee;
.fill {
padding: 42rpx 30rpx;
box-sizing: border-box;
.cause {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 45rpx;
.title {
font-size: 26rpx;
color: #333;
}
.select {
font-size: 26rpx;
color: #999;
}
}
.upload {
.title {
font-size: 26rpx;
color: #333;
margin-bottom: 45rpx;
}
.img {
width: 187rpx;
height: 187rpx;
border: 1rpx solid rgba(229, 229, 229, 1);
border-radius: 6rpx;
}
}
}
.submit{
width: 650rpx;
height: 98rpx;
border-radius: 49rpx;
background-color: #47C877;
line-height: 98rpx;
text-align: center;
color: #fff;
font-size:36rpx;
margin-top: 67rpx;
margin-left: 50rpx;
}
}

View File

@@ -1,16 +1,16 @@
<view class="box">
<merchandise></merchandise>
<view class="fill">
<view class="cause">
<view class="title">退货原因</view>
<view class="select">请选择 ></view>
</view>
<view class="upload">
<view class="title">添加照片(选填)</view>
<view class="img">
</view>
</view>
</view>
<view class="submit">提交</view>
<view class="box">
<merchandise></merchandise>
<view class="fill">
<view class="cause">
<view class="title">退货原因</view>
<view class="select">请选择 ></view>
</view>
<view class="upload">
<view class="title">添加照片(选填)</view>
<view class="img">
</view>
</view>
</view>
<view class="submit">提交</view>
</view>

View File

@@ -1 +1 @@
.box{border-top:1rpx solid #eee}.box .fill{padding:42rpx 30rpx;box-sizing:border-box}.box .fill .cause{display:flex;justify-content:space-between;align-items:center;margin-bottom:45rpx}.box .fill .cause .title{font-size:26rpx;color:#333}.box .fill .cause .select{font-size:26rpx;color:#999}.box .fill .upload .title{font-size:26rpx;color:#333;margin-bottom:45rpx}.box .fill .upload .img{width:187rpx;height:187rpx;border:1rpx solid #e5e5e5;border-radius:6rpx}.box .submit{width:650rpx;height:98rpx;border-radius:49rpx;background-color:#47C877;line-height:98rpx;text-align:center;color:#fff;font-size:36rpx;margin-top:67rpx;margin-left:50rpx}
.box{border-top:1rpx solid #eee}.box .fill{padding:42rpx 30rpx;box-sizing:border-box}.box .fill .cause{display:flex;justify-content:space-between;align-items:center;margin-bottom:45rpx}.box .fill .cause .title{font-size:26rpx;color:#333}.box .fill .cause .select{font-size:26rpx;color:#999}.box .fill .upload .title{font-size:26rpx;color:#333;margin-bottom:45rpx}.box .fill .upload .img{width:187rpx;height:187rpx;border:1rpx solid #e5e5e5;border-radius:6rpx}.box .submit{width:650rpx;height:98rpx;border-radius:49rpx;background-color:#47C877;line-height:98rpx;text-align:center;color:#fff;font-size:36rpx;margin-top:67rpx;margin-left:50rpx}

View File

@@ -1,66 +1,66 @@
// pages/sales2/sales2.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
// pages/sales2/sales2.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -1,3 +1,3 @@
{
"usingComponents": { "merchandise":"../components/seles/merchandises/index"}
{
"usingComponents": { "merchandise":"../components/seles/merchandises/index"}
}

View File

@@ -1,34 +1,34 @@
.box{
border-top: 1rpx solid #efefef;
.info{
border-bottom: 1rpx solid #efefef;
padding: 29rpx;
box-sizing: border-box;
.title{
font-size: 26rpx;
color: #333;
margin-bottom: 22rpx;
}
.msg{
font-size: 24rpx;
color: #999;
}
}
.submit{
display: flex;
margin-top: 36rpx;
padding: 0 30rpx;
justify-content: flex-end;
.button{
width: 133rpx;
height: 51rpx;
border: 1rpx solid #47C877;
border-radius: 25rpx;
color: #47C877;
font-size: 22rpx;
line-height: 51rpx;
text-align: center;
margin-left: 8rpx;
}
}
.box{
border-top: 1rpx solid #efefef;
.info{
border-bottom: 1rpx solid #efefef;
padding: 29rpx;
box-sizing: border-box;
.title{
font-size: 26rpx;
color: #333;
margin-bottom: 22rpx;
}
.msg{
font-size: 24rpx;
color: #999;
}
}
.submit{
display: flex;
margin-top: 36rpx;
padding: 0 30rpx;
justify-content: flex-end;
.button{
width: 133rpx;
height: 51rpx;
border: 1rpx solid #47C877;
border-radius: 25rpx;
color: #47C877;
font-size: 22rpx;
line-height: 51rpx;
text-align: center;
margin-left: 8rpx;
}
}
}

View File

@@ -1,15 +1,15 @@
<view class="box">
<view class="info">
<view class="title">等待商家处理</view>
<view class="msg">请耐心等待</view>
</view>
<merchandise></merchandise>
<view class="info">
<view class="title">退货原因: 拍多/多拍/不想要</view>
<view class="title">申请时间2019-07-21 11:23:21</view>
</view>
<view class="submit">
<view class="button">修改申请</view>
<view class="button">取消申请</view>
</view>
<view class="box">
<view class="info">
<view class="title">等待商家处理</view>
<view class="msg">请耐心等待</view>
</view>
<merchandise></merchandise>
<view class="info">
<view class="title">退货原因: 拍多/多拍/不想要</view>
<view class="title">申请时间2019-07-21 11:23:21</view>
</view>
<view class="submit">
<view class="button">修改申请</view>
<view class="button">取消申请</view>
</view>
</view>

View File

@@ -1 +1 @@
.box{border-top:1rpx solid #efefef}.box .info{border-bottom:1rpx solid #efefef;padding:29rpx;box-sizing:border-box}.box .info .title{font-size:26rpx;color:#333;margin-bottom:22rpx}.box .info .msg{font-size:24rpx;color:#999}.box .submit{display:flex;margin-top:36rpx;padding:0 30rpx;justify-content:flex-end}.box .submit .button{width:133rpx;height:51rpx;border:1rpx solid #47C877;border-radius:25rpx;color:#47C877;font-size:22rpx;line-height:51rpx;text-align:center;margin-left:8rpx}
.box{border-top:1rpx solid #efefef}.box .info{border-bottom:1rpx solid #efefef;padding:29rpx;box-sizing:border-box}.box .info .title{font-size:26rpx;color:#333;margin-bottom:22rpx}.box .info .msg{font-size:24rpx;color:#999}.box .submit{display:flex;margin-top:36rpx;padding:0 30rpx;justify-content:flex-end}.box .submit .button{width:133rpx;height:51rpx;border:1rpx solid #47C877;border-radius:25rpx;color:#47C877;font-size:22rpx;line-height:51rpx;text-align:center;margin-left:8rpx}

View File

@@ -1,66 +1,66 @@
// pages/search/search.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
// pages/search/search.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -1,6 +1,6 @@
{
"usingComponents": {
"search":"../components/index/search/index",
"hot":"../components/search/hot/index"
}
{
"usingComponents": {
"search":"../components/index/search/index",
"hot":"../components/search/hot/index"
}
}

View File

@@ -1,7 +1,7 @@
.box {
border-top: #eaeaea solid 1rpx;
width: 750rpx;
display: flex;
align-items: center;
flex-direction: column;
}
.box {
border-top: #eaeaea solid 1rpx;
width: 750rpx;
display: flex;
align-items: center;
flex-direction: column;
}

View File

@@ -1,4 +1,4 @@
<view class="box">
<search></search>
<hot></hot>
<view class="box">
<search></search>
<hot></hot>
</view>

View File

@@ -1 +1 @@
.box{border-top:#eaeaea solid 1rpx;width:750rpx;display:flex;align-items:center;flex-direction:column}
.box{border-top:#eaeaea solid 1rpx;width:750rpx;display:flex;align-items:center;flex-direction:column}

View File

@@ -1,7 +1,7 @@
.share {
background-color: white;
}
.detail {
margin-top: 41rpx;
.share {
background-color: white;
}
.detail {
margin-top: 41rpx;
}

View File

@@ -1,178 +1,178 @@
// pages/shopping/shopping.js
import { request } from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
list: [],
select: [],
userid: 0,
price: "0.00"
},
sel(a) {
console.log(a)
this.setData({
[`select[${a.detail.index}]`]: !a.detail.select
})
this.num();
},
/**
* 生命周期函数--监听页面加载
*/
getlist() {
request({
url: "Cart/cartList/session_id/" + wx.getStorageSync('openid'),
data: {
user_id: this.data.userid
}
}).then((res) => {
console.log(res)
this.setData({
list: res.data.result
})
this.num()
})
},
onLoad: function (options) {
request({
url: "User/validateOpenid"
}).then((res) => {
console.log(res)
this.setData({
userid: res.data.data.user_id
})
this.getlist()
})
},
sub() {
wx.navigateTo({
url: "/pages/orderconfirm/orderconfirm"
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.onLoad()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
num() {
let num = 0;
let sel = 0;
for (let i in this.data.select) {
console.log(i)
if (this.data.select[i]) {
num += parseFloat(this.data.list[i].goods_price) * 100
sel++
}
}
if (sel == this.data.list.length && this.data.list.length != 0) {
this.setData({
all: true
})
} else {
this.setData({
all: false
})
}
this.setData({
price: num / 100
})
},
call() {
let sel = 0;
let select = []
for (let i in this.data.list) {
console.log(i)
if (this.data.select[i]) {
// num += parseFloat(this.data.list[i].goods_price)*100
sel++
} else {
select[i] = true
}
}
if (sel == this.data.list.length) {
this.setData({
all: false,
select: []
})
} else {
this.setData({
all: true,
select
})
}
this.num()
},
del() {
for (let i in this.data.list) {
// console.log(i)
if (this.data.select[i]) {
// num += parseFloat(this.data.list[i].goods_price)*100
// sel++
request({
url: "Cart/delCart",
urldata: {
id: this.data.list[i].id
}
}).then((res) => {
console.log('删除成功')
this.setData({
list: [],
select: [],
userid: 0,
price: "0.00"
})
this.onLoad()
})
}
}
}
// pages/shopping/shopping.js
import { request } from "../../utils/bin"
Page({
/**
* 页面的初始数据
*/
data: {
list: [],
select: [],
userid: 0,
price: "0.00"
},
sel(a) {
console.log(a)
this.setData({
[`select[${a.detail.index}]`]: !a.detail.select
})
this.num();
},
/**
* 生命周期函数--监听页面加载
*/
getlist() {
request({
url: "Cart/cartList/session_id/" + wx.getStorageSync('openid'),
data: {
user_id: this.data.userid
}
}).then((res) => {
console.log(res)
this.setData({
list: res.data.result
})
this.num()
})
},
onLoad: function (options) {
request({
url: "User/validateOpenid"
}).then((res) => {
console.log(res)
this.setData({
userid: res.data.data.user_id
})
this.getlist()
})
},
sub() {
wx.navigateTo({
url: "/pages/orderconfirm/orderconfirm"
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.onLoad()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
num() {
let num = 0;
let sel = 0;
for (let i in this.data.select) {
console.log(i)
if (this.data.select[i]) {
num += parseFloat(this.data.list[i].goods_price) * 100
sel++
}
}
if (sel == this.data.list.length && this.data.list.length != 0) {
this.setData({
all: true
})
} else {
this.setData({
all: false
})
}
this.setData({
price: num / 100
})
},
call() {
let sel = 0;
let select = []
for (let i in this.data.list) {
console.log(i)
if (this.data.select[i]) {
// num += parseFloat(this.data.list[i].goods_price)*100
sel++
} else {
select[i] = true
}
}
if (sel == this.data.list.length) {
this.setData({
all: false,
select: []
})
} else {
this.setData({
all: true,
select
})
}
this.num()
},
del() {
for (let i in this.data.list) {
// console.log(i)
if (this.data.select[i]) {
// num += parseFloat(this.data.list[i].goods_price)*100
// sel++
request({
url: "Cart/delCart",
urldata: {
id: this.data.list[i].id
}
}).then((res) => {
console.log('删除成功')
this.setData({
list: [],
select: [],
userid: 0,
price: "0.00"
})
this.onLoad()
})
}
}
}
})

View File

@@ -1,25 +1,25 @@
<view class="shopping">
<view class="item" wx:for="{{list}}" wx:for-index="j" wx:key="{{j}}">
<shopping-item shopname="{{item.goods_name}}" shopdesc="{{item.spec_key_name||'默认规格'}}" price="{{item.goods_price}}" pic="{{item.image}}" num="{{item.goods_num}}" gid="{{item.id}}" index="{{j}}" select="{{select[j]}}" bindsel="sel"></shopping-item>
</view>
<!-- <view class="item">
<shopping-item shopname="J`adore - Dior" shopdesc="30支 1.30kg" price="61.78"></shopping-item>
</view>
<view class="item">
<shopping-item shopname="J`adore - Dior" shopdesc="30支 1.30kg" price="61.78"></shopping-item>
</view>
<view class="item">
<shopping-item shopname="J`adore - Dior" shopdesc="30支 1.30kg" price="61.78"></shopping-item>
</view> -->
<view class="bottom">
<view class="left">
<view bind:tap="call" class="select {{all ? 'selects':''}}"></view>
<text bind:tap="call" class="selectall">全选</text>
<text class="pri">${{price}}</text>
</view>
<view class="right">
<text class="del" bind:tap="del">删除</text>
<text class="sub" bindtap="sub">结算</text>
</view>
</view>
<view class="shopping">
<view class="item" wx:for="{{list}}" wx:for-index="j" wx:key="{{j}}">
<shopping-item shopname="{{item.goods_name}}" shopdesc="{{item.spec_key_name||'默认规格'}}" price="{{item.goods_price}}" pic="{{item.image}}" num="{{item.goods_num}}" gid="{{item.id}}" index="{{j}}" select="{{select[j]}}" bindsel="sel"></shopping-item>
</view>
<!-- <view class="item">
<shopping-item shopname="J`adore - Dior" shopdesc="30支 1.30kg" price="61.78"></shopping-item>
</view>
<view class="item">
<shopping-item shopname="J`adore - Dior" shopdesc="30支 1.30kg" price="61.78"></shopping-item>
</view>
<view class="item">
<shopping-item shopname="J`adore - Dior" shopdesc="30支 1.30kg" price="61.78"></shopping-item>
</view> -->
<view class="bottom">
<view class="left">
<view bind:tap="call" class="select {{all ? 'selects':''}}"></view>
<text bind:tap="call" class="selectall">全选</text>
<text class="pri">${{price}}</text>
</view>
<view class="right">
<text class="del" bind:tap="del">删除</text>
<text class="sub" bindtap="sub">结算</text>
</view>
</view>
</view>

View File

@@ -1,54 +1,54 @@
.shopping {
padding-bottom: 128rpx;
}
.item {
height: 186rpx;
margin-left: 46rpx;
margin-top: 59rpx;
}
.bottom {
width: 100%;
height: 98rpx;
position: fixed;
bottom: 0;
background: linear-gradient(2deg, rgba(250, 250, 250, 0.94), rgba(255, 255, 255, 0.94));
display: flex;
justify-content: space-between;
font-size: 28rpx;
line-height: 98rpx;
}
.left {
display: flex;
/* line-height: 26rpx; */
}
.select {
width: 26rpx;
height: 26rpx;
background: rgba(234, 234, 234, 1);
border-radius: 50%;
margin: auto 0;
margin-left: 46rpx;
margin-right: 24rpx;
}
.selects{
background-color: #4cc97d;
}
.pri {
color: #e0c79d;
font-size: 26rpx;
margin-left: 19rpx;
}
.right {
color: #bbbbbb;
margin-right: 31rpx;
}
.sub {
margin-left: 30rpx;
color: #4cc97d;
}
.shopping {
padding-bottom: 128rpx;
}
.item {
height: 186rpx;
margin-left: 46rpx;
margin-top: 59rpx;
}
.bottom {
width: 100%;
height: 98rpx;
position: fixed;
bottom: 0;
background: linear-gradient(2deg, rgba(250, 250, 250, 0.94), rgba(255, 255, 255, 0.94));
display: flex;
justify-content: space-between;
font-size: 28rpx;
line-height: 98rpx;
}
.left {
display: flex;
/* line-height: 26rpx; */
}
.select {
width: 26rpx;
height: 26rpx;
background: rgba(234, 234, 234, 1);
border-radius: 50%;
margin: auto 0;
margin-left: 46rpx;
margin-right: 24rpx;
}
.selects{
background-color: #4cc97d;
}
.pri {
color: #e0c79d;
font-size: 26rpx;
margin-left: 19rpx;
}
.right {
color: #bbbbbb;
margin-right: 31rpx;
}
.sub {
margin-left: 30rpx;
color: #4cc97d;
}

View File

@@ -1,66 +1,66 @@
// pages/status/status.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
// pages/status/status.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -1,6 +1,6 @@
{
"usingComponents": {
"logistics": "../components/particulars/logistics/index",
"message":"../components/order/message/index"
}
{
"usingComponents": {
"logistics": "../components/particulars/logistics/index",
"message":"../components/order/message/index"
}
}

View File

@@ -1,11 +1,11 @@
.box {
.reference {
font-size: 24rpx;
color: #999;
padding: 32rpx 20rpx;
background-color: #fff;
}
}
page {
background-color: #fbfbfb;
}
.box {
.reference {
font-size: 24rpx;
color: #999;
padding: 32rpx 20rpx;
background-color: #fff;
}
}
page {
background-color: #fbfbfb;
}

View File

@@ -1,7 +1,7 @@
<view class="box">
<view class="reference">
订单编号1234567812345789
<message></message>
</view>
<logistics></logistics>
<view class="box">
<view class="reference">
订单编号1234567812345789
<message></message>
</view>
<logistics></logistics>
</view>

View File

@@ -1 +1 @@
.box .reference{font-size:24rpx;color:#999;padding:32rpx 20rpx;background-color:#fff}page{background-color:#fbfbfb}
.box .reference{font-size:24rpx;color:#999;padding:32rpx 20rpx;background-color:#fff}page{background-color:#fbfbfb}

View File

@@ -1,75 +1,75 @@
// pages/undetermined/undetermined.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
},
chooseaddr() {
wx.navigateTo({
url: "/pages/chooseaddr/chooseaddr"
})
},
todetail() {
wx.navigateTo({
url: "/pages/product/product"
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
}
// pages/undetermined/undetermined.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
},
chooseaddr() {
wx.navigateTo({
url: "/pages/chooseaddr/chooseaddr"
})
},
todetail() {
wx.navigateTo({
url: "/pages/product/product"
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {
}
})

View File

@@ -1,6 +1,6 @@
{
"usingComponents": {
"content":"../components/particulars/content/index",
"orderchooseaddr":"../components/particulars/orderchooseaddr/index"
}
{
"usingComponents": {
"content":"../components/particulars/content/index",
"orderchooseaddr":"../components/particulars/orderchooseaddr/index"
}
}

View File

@@ -1,6 +1,6 @@
page{
background-color: #FBFBFB;
}
.box{
page{
background-color: #FBFBFB;
}
.box{
}

View File

@@ -1,4 +1,4 @@
<view class="box">
<orderchooseaddr bindtap="chooseaddr"></orderchooseaddr>
<content bindtap="todetail"></content>
<view class="box">
<orderchooseaddr bindtap="chooseaddr"></orderchooseaddr>
<content bindtap="todetail"></content>
</view>

View File

@@ -1 +1 @@
page{background-color:#FBFBFB}
page{background-color:#FBFBFB}

View File

@@ -1,7 +1,7 @@
.detail {
margin-top: 41rpx;
}
.title {
margin-top: 40rpx
.detail {
margin-top: 41rpx;
}
.title {
margin-top: 40rpx
}

View File

@@ -1,8 +1,8 @@
.yue {
.title {
margin-top: 40rpx
}
.detail {
margin-top: 41rpx;
}
.yue {
.title {
margin-top: 40rpx
}
.detail {
margin-top: 41rpx;
}
}