合并后提交
This commit is contained in:
@@ -34,16 +34,18 @@
|
|||||||
return {
|
return {
|
||||||
pricespop:true,
|
pricespop:true,
|
||||||
curProId:null,
|
curProId:null,
|
||||||
|
curPro:{}
|
||||||
};
|
};
|
||||||
},methods:{
|
},methods:{
|
||||||
closePup() {
|
closePup() {
|
||||||
this.pricespop = false
|
this.pricespop = false
|
||||||
this.$emit('closePup')
|
this.$emit('closePup')
|
||||||
// this.proPriceList = []
|
|
||||||
},
|
},
|
||||||
choosePrice(item) {
|
choosePrice(item) {
|
||||||
// console.log(item, 'choosePrice')
|
console.log(item, 'choosePrice')
|
||||||
this.curProId = item.productId
|
this.curProId = item.productId
|
||||||
|
this.curPro = item
|
||||||
},
|
},
|
||||||
oprate(val){
|
oprate(val){
|
||||||
if(!this.curProId){
|
if(!this.curProId){
|
||||||
@@ -55,10 +57,10 @@
|
|||||||
}
|
}
|
||||||
if(val=='buy'){
|
if(val=='buy'){
|
||||||
console.log('直接购买');
|
console.log('直接购买');
|
||||||
this.$emit('oprate',{name:val,id:this.curProId})
|
this.$emit('oprate',{name:val,item:this.curPro})
|
||||||
}else if(val == 'gouwuche'){
|
}else if(val == 'gouwuche'){
|
||||||
console.log('加入购物车');
|
console.log('加入购物车');
|
||||||
this.$emit('oprate',{name:val,id:this.curProId})
|
this.$emit('oprate',{name:val,item:this.curPro})
|
||||||
}
|
}
|
||||||
this.closePup()
|
this.closePup()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,18 +86,18 @@ export default {
|
|||||||
selectedIconPath: "static/tab/tab_cur_02.png",
|
selectedIconPath: "static/tab/tab_cur_02.png",
|
||||||
text: "购物车",
|
text: "购物车",
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// pagePath: "pages/taihu/index",
|
pagePath: "pages/bookShop/orderList",
|
||||||
// iconPath: "static/tab/tab_nor_03.png",
|
iconPath: "static/tab/order.png",
|
||||||
// selectedIconPath: "static/tab/tab_cur_03.png",
|
selectedIconPath: "static/tab/order_active.png",
|
||||||
// text: "太湖公益",
|
text: "订单",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
pagePath: "pages/bookShop/orderList",
|
pagePath: "pages/taihu/index",
|
||||||
iconPath: "static/tab/order.png",
|
iconPath: "static/tab/tab_nor_03.png",
|
||||||
selectedIconPath: "static/tab/order_active.png",
|
selectedIconPath: "static/tab/tab_cur_03.png",
|
||||||
text: "订单",
|
text: "太湖公益",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
pagePath: "pages/mine/mine/index",
|
pagePath: "pages/mine/mine/index",
|
||||||
iconPath: "static/tab/tab_nor_04.png",
|
iconPath: "static/tab/tab_nor_04.png",
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ if (process.env.NODE_ENV === 'development') {
|
|||||||
// baseUrl = "http://localhost:7001/";
|
// baseUrl = "http://localhost:7001/";
|
||||||
// socketUrl = "ws://localhost:6001/";
|
// socketUrl = "ws://localhost:6001/";
|
||||||
// baseUrl = "https://twin-ui.com/demo/";
|
// baseUrl = "https://twin-ui.com/demo/";
|
||||||
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
|
||||||
// baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
// baseUrl = "https://api.nuttyreading.com/"; // 线上正式
|
||||||
baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
|
||||||
// baseUrl = "http://59.110.212.44:9200/pb/";
|
// baseUrl = "http://59.110.212.44:9200/pb/";
|
||||||
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
|
||||||
// baseUrl = "http://192.168.110.110:9200/pb/";
|
// baseUrl = "http://192.168.110.110:9200/pb/";
|
||||||
|
|||||||
2
main.js
2
main.js
@@ -45,7 +45,7 @@ uni.getSystemInfo({
|
|||||||
|
|
||||||
|
|
||||||
// uView组件库
|
// uView组件库
|
||||||
import uView from "uview-ui";
|
import uView from "@/uni_modules/uview-ui";
|
||||||
Vue.use(uView);
|
Vue.use(uView);
|
||||||
// 传参格式
|
// 传参格式
|
||||||
Vue.prototype.$qs = qs
|
Vue.prototype.$qs = qs
|
||||||
|
|||||||
43
pages.json
43
pages.json
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"easycom": {
|
// "easycom": {
|
||||||
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
|
// "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
|
||||||
},
|
// },
|
||||||
"pages": [
|
"pages": [
|
||||||
{
|
{
|
||||||
"path": "pages/peanut/home",
|
"path": "pages/peanut/home",
|
||||||
@@ -436,7 +436,30 @@
|
|||||||
"path" : "pages/course/myCourse",
|
"path" : "pages/course/myCourse",
|
||||||
"style" :
|
"style" :
|
||||||
{
|
{
|
||||||
"navigationBarTitleText" : "我的课程"
|
"navigationBarTitleText" : "我的课程",
|
||||||
|
"enablePullDownRefresh": true
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path": "pages/goods/index/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "商品信息",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"app-plus": {
|
||||||
|
"bounce": "none",
|
||||||
|
"titleNView": false,
|
||||||
|
"popGesture": "none"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path": "pages/goods/order/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "确认订单",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"app-plus": {
|
||||||
|
"bounce": "none",
|
||||||
|
"titleNView": false,
|
||||||
|
"popGesture": "none"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -467,18 +490,18 @@
|
|||||||
"selectedIconPath": "static/tab/tab_cur_02.png",
|
"selectedIconPath": "static/tab/tab_cur_02.png",
|
||||||
"text": "购物车"
|
"text": "购物车"
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// "pagePath": "pages/taihu/index",
|
|
||||||
// "iconPath": "static/tab/tab_nor_03.png",
|
|
||||||
// "selectedIconPath": "static/tab/tab_cur_03.png",
|
|
||||||
// "text": "太湖公益"
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
"pagePath": "pages/bookShop/orderList",
|
"pagePath": "pages/bookShop/orderList",
|
||||||
"iconPath": "static/tab/order.png",
|
"iconPath": "static/tab/order.png",
|
||||||
"selectedIconPath": "static/tab/order_active.png",
|
"selectedIconPath": "static/tab/order_active.png",
|
||||||
"text": "订单"
|
"text": "订单"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"pagePath": "pages/taihu/index",
|
||||||
|
"iconPath": "static/tab/tab_nor_03.png",
|
||||||
|
"selectedIconPath": "static/tab/tab_cur_03.png",
|
||||||
|
"text": "太湖公益"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/mine/mine/index",
|
"pagePath": "pages/mine/mine/index",
|
||||||
"iconPath": "static/tab/tab_nor_04.png",
|
"iconPath": "static/tab/tab_nor_04.png",
|
||||||
|
|||||||
@@ -280,9 +280,9 @@
|
|||||||
oprate(data){
|
oprate(data){
|
||||||
console.log(data,'得到的内容')
|
console.log(data,'得到的内容')
|
||||||
if(data.name == 'buy'){
|
if(data.name == 'buy'){
|
||||||
this.buy(data)
|
this.buy(data.item)
|
||||||
}else if(data.name == 'gouwuche'){
|
}else if(data.name == 'gouwuche'){
|
||||||
this.addCart(data)
|
this.addCart(data.item)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 购物车
|
// 购物车
|
||||||
@@ -291,9 +291,28 @@
|
|||||||
},
|
},
|
||||||
// 直接购买
|
// 直接购买
|
||||||
buy(val){
|
buy(val){
|
||||||
uni.navigateTo({
|
var mynavData = JSON.stringify({
|
||||||
url:`/pages/bookShop/settlement?type=2&list=${val.id}`
|
goods: [
|
||||||
})
|
{
|
||||||
|
productImages: val.productImages,
|
||||||
|
productId: val.productId,
|
||||||
|
productName: val.productName,
|
||||||
|
price: val.activityPrice && val.activityPrice != 0 ? val.activityPrice:val.price,
|
||||||
|
goodsType: val.goodsType,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
navTitle: this.options.navTitle,
|
||||||
|
title: this.options.title,
|
||||||
|
typeId: 0,
|
||||||
|
}); // 这里转换成 字符串
|
||||||
|
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/goods/order/index?data=${mynavData}`,
|
||||||
|
});
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url:`/pages/bookShop/settlement?type=2&list=${val.id}`
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
closePup(e){
|
closePup(e){
|
||||||
this.pricespop = false
|
this.pricespop = false
|
||||||
|
|||||||
@@ -26,6 +26,10 @@
|
|||||||
<image src="../../static/my_05.png" mode="aspectFit"></image>
|
<image src="../../static/my_05.png" mode="aspectFit"></image>
|
||||||
<text>太湖公益</text>
|
<text>太湖公益</text>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <div class="item flexbox" @click="onPageJump()">
|
||||||
|
<image src="../../static/my_03.png" mode="aspectFit"></image>
|
||||||
|
<text>超V专享</text>
|
||||||
|
</div> -->
|
||||||
<!-- <div class="item flexbox" @click="onPageJump()">
|
<!-- <div class="item flexbox" @click="onPageJump()">
|
||||||
<image src="../../static/my_03.png" mode="aspectFit"></image>
|
<image src="../../static/my_03.png" mode="aspectFit"></image>
|
||||||
<text>太湖讲堂</text>
|
<text>太湖讲堂</text>
|
||||||
|
|||||||
Reference in New Issue
Block a user