标题
This commit is contained in:
parent
bb92c57227
commit
843ba1f20e
@ -1,4 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "添加地址",
|
||||
"usingComponents": {
|
||||
"shuru": "/components/addaddress/shuru/shuru",
|
||||
"addradd": "/components/chooseaddr/addradd/addradd",
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "地址",
|
||||
"usingComponents": {
|
||||
"address": "/components/chooseaddr/address/address",
|
||||
"addradd": "/components/chooseaddr/addradd/addradd"
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "分类",
|
||||
"usingComponents": {
|
||||
"list":"../components/classify/list/index",
|
||||
"navigation":"../components/classify/navigation/index"
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "首页",
|
||||
"usingComponents": {
|
||||
"search":"../components/index/search/index",
|
||||
"list":"../components/index/list/index"
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "会员中心",
|
||||
"usingComponents": {
|
||||
"membertop": "/components/member/membertop/membertop",
|
||||
"membershop": "/components/member/membershop/membershop"
|
||||
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "订单详情",
|
||||
"usingComponents": {
|
||||
"tab":"../components/order/tab/index"
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的",
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
// pages/product/product.js'
|
||||
import { request } from "../../utils/bin"
|
||||
var WxParse = require('../../utils/wxParse/wxParse');
|
||||
Page({
|
||||
|
||||
/**
|
||||
@ -7,14 +8,15 @@ Page({
|
||||
*/
|
||||
data: {
|
||||
array: ['20粒', '30粒', '50粒', '100粒'],
|
||||
userid:0,
|
||||
specs:{item:'默认规格'}
|
||||
userid: 0,
|
||||
specs: [{ 'item': '默认规格' }],
|
||||
article:""
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function(options) {
|
||||
onLoad: function (options) {
|
||||
console.log(options)
|
||||
request({
|
||||
url: "Goods/goodsInfo",
|
||||
@ -25,16 +27,18 @@ Page({
|
||||
// console.log(res)
|
||||
this.setData({
|
||||
info: res.data.result,
|
||||
shopid:options.shopid,
|
||||
shopid: options.shopid,
|
||||
})
|
||||
var that = this;
|
||||
WxParse.wxParse('article', 'html', that.data.info.goods.goods_content, that, 5);
|
||||
// console.log(this.data.type, 150)
|
||||
})
|
||||
request({
|
||||
url:"User/validateOpenid"
|
||||
}).then((res)=>{
|
||||
url: "User/validateOpenid"
|
||||
}).then((res) => {
|
||||
console.log(res)
|
||||
this.setData({
|
||||
userid:res.data.data.user_id
|
||||
userid: res.data.data.user_id
|
||||
})
|
||||
})
|
||||
},
|
||||
@ -48,64 +52,64 @@ Page({
|
||||
data: {
|
||||
goods_id: this.data.shopid,
|
||||
goods_num: 1,
|
||||
goods_spec:this.data.info.goods.goods_spec_list?this.data.info.goods.goods_spec_list[0][e.detail.value].item_id:'',
|
||||
user_id:this.data.userid
|
||||
goods_spec: this.data.info.goods.goods_spec_list ? this.data.info.goods.goods_spec_list[0][e.detail.value].item_id : '',
|
||||
user_id: this.data.userid
|
||||
},
|
||||
name:"session_id"
|
||||
}).then((res)=>{
|
||||
name: "session_id"
|
||||
}).then((res) => {
|
||||
console.log(res)
|
||||
wx.switchTab({
|
||||
url: '/pages/shopping/shopping'
|
||||
})
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function() {
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function() {
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function() {
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function() {
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function() {
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function() {
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function() {
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "商品详情",
|
||||
"usingComponents": {}
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
@import "../../utils/wxParse/wxParse.wxss";
|
||||
.box{
|
||||
border-top: 1rpx solid #eaeaea;
|
||||
display: flex;
|
||||
@ -33,5 +34,8 @@
|
||||
font-size: 34rpx;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
bottom: 50rpx;
|
||||
left: 221rpx;
|
||||
}
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
<import src="../../utils/wxParse/wxParse.wxml"/>
|
||||
<view class="box">
|
||||
<swiper indicator-dots="{{true}}" circular="{{true}}" autoplay="{{true}}" interval="{{2000}}" class="swiper">
|
||||
<block wx:for="{{info.gallery}}">
|
||||
@ -18,7 +19,8 @@
|
||||
</swiper>
|
||||
<text class="title">{{info.goods.goods_name}}</text>
|
||||
<text class="menery">$ {{info.goods.shop_price}}</text>
|
||||
<picker bindchange="bindPickerChange" range="{{info.goods.goods_spec_list?info.goods.goods_spec_list[0]:specs}}" range-key="item">
|
||||
<template is="wxParse" data="{{wxParseData:article.nodes}}"/>
|
||||
<picker bindchange="bindPickerChange" range="{{info.goods.goods_spec_list != null?info.goods.goods_spec_list[0]:specs}}" range-key="item">
|
||||
<view class="add">加入购物车</view>
|
||||
</picker>
|
||||
</view>
|
@ -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}
|
||||
.wxParse{margin:0 5px;font-family:Helvetica,sans-serif;font-size:28rpx;color:#666;line-height:1.8}view{word-break:break-all;overflow:auto}.wxParse-inline{display:inline;margin:0;padding:0}.wxParse-div{margin:0;padding:0}.wxParse-h1{font-size:2em;margin:.67em 0}.wxParse-h2{font-size:1.5em;margin:.75em 0}.wxParse-h3{font-size:1.17em;margin:.83em 0}.wxParse-h4{margin:1.12em 0}.wxParse-h5{font-size:.83em;margin:1.5em 0}.wxParse-h6{font-size:.75em;margin:1.67em 0}.wxParse-h1{font-size:18px;font-weight:400;margin-bottom:.9em}.wxParse-h2{font-size:16px;font-weight:400;margin-bottom:.34em}.wxParse-h3{font-weight:400;font-size:15px;margin-bottom:.34em}.wxParse-h4{font-weight:400;font-size:14px;margin-bottom:.24em}.wxParse-h5{font-weight:400;font-size:13px;margin-bottom:.14em}.wxParse-h6{font-weight:400;font-size:12px;margin-bottom:.04em}.wxParse-h1,.wxParse-h2,.wxParse-h3,.wxParse-h4,.wxParse-h5,.wxParse-h6,.wxParse-b,.wxParse-strong{font-weight:bolder}.wxParse-i,.wxParse-cite,.wxParse-em,.wxParse-var,.wxParse-address{font-style:italic}.wxParse-pre,.wxParse-tt,.wxParse-code,.wxParse-kbd,.wxParse-samp{font-family:monospace}.wxParse-pre{white-space:pre}.wxParse-big{font-size:1.17em}.wxParse-small,.wxParse-sub,.wxParse-sup{font-size:.83em}.wxParse-sub{vertical-align:sub}.wxParse-sup{vertical-align:super}.wxParse-s,.wxParse-strike,.wxParse-del{text-decoration:line-through}.wxParse-strong,.wxParse-s{display:inline}.wxParse-a{color:deepskyblue;word-break:break-all;overflow:auto}.wxParse-video{text-align:center;margin:10px 0}.wxParse-video-video{width:100%}.wxParse-img{overflow:hidden}.wxParse-blockquote{margin:0;padding:10px 0 10px 5px;font-family:Courier, Calibri,"宋体";background:#f5f5f5;border-left:3px solid #dbdbdb}.wxParse-code,.wxParse-wxxxcode-style{display:inline;background:#f5f5f5}.wxParse-ul{margin:20rpx 10rpx}.wxParse-li,.wxParse-li-inner{display:flex;align-items:baseline;margin:10rpx 0}.wxParse-li-text{align-items:center;line-height:20px}.wxParse-li-circle{display:inline-flex;width:5px;height:5px;background-color:#333;margin-right:5px}.wxParse-li-square{display:inline-flex;width:10rpx;height:10rpx;background-color:#333;margin-right:5px}.wxParse-li-ring{display:inline-flex;width:10rpx;height:10rpx;border:2rpx solid #333;border-radius:50%;background-color:#fff;margin-right:5px}.wxParse-u{text-decoration:underline}.wxParse-hide{display:none}.WxEmojiView{align-items:center}.wxEmoji{width:16px;height:16px}.wxParse-tr{display:flex;border-right:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.wxParse-th,.wxParse-td{flex:1;padding:5px;font-size:28rpx;border-left:1px solid #e0e0e0;word-break:break-all}.wxParse-td:last{border-top:1px solid #e0e0e0}.wxParse-th{background:#f0f0f0;border-top:1px solid #e0e0e0}.wxParse-del{display:inline}.wxParse-figure{overflow:hidden}.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;position:fixed;bottom:50rpx;left:221rpx}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
|
||||
"navigationBarTitleText": "购物车",
|
||||
"usingComponents": {
|
||||
"shopping-item":"/components/shopping/shoppingitem/shoppingitem"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user