hwq 4 vuotta sitten
vanhempi
commit
4cbb45187e
5 muutettua tiedostoa jossa 45 lisäystä ja 98 poistoa
  1. 1 51
      api/user.js
  2. 12 40
      pages.json
  3. 22 0
      pages/index/convert.vue
  4. 10 7
      pages/index/node.vue
  5. BIN
      static/img/rengouBg.png

+ 1 - 51
api/user.js

@@ -1,15 +1,6 @@
 import request from '@/utils/request'
 import request from '@/utils/request'
 import { upFilse} from '@/utils/request';
 import { upFilse} from '@/utils/request';
 
 
-// 订单统计信息
-export function orderData(data) {
-	return request({
-		url: '/api/order/data',
-		method: 'get',
-		data
-	});
-}
-
 // 获取用户信息
 // 获取用户信息
 export function getUserInfo(data) {
 export function getUserInfo(data) {
 	return request({
 	return request({
@@ -60,48 +51,7 @@ export function setAddressDefault(data) {
 		data
 		data
 	});
 	});
 }
 }
-// 购物车列表
-export function getCartList(data) {
-	return request({
-		url: '/api/cart/list',
-		method: 'get',
-		data
-	});
-}
-
-// 修改购物车数量
-export function getCartNum(data) {
-	return request({
-		url: '/api/cart/num',
-		method: 'post',
-		data
-	});
-}
-//删除购物车
-export function cartDel(data) {
-	return request({
-		url: '/api/cart/del',
-		method: 'post',
-		data
-	});
-}
-//获取收藏夹列表
-export function getcollectList(data) {
-	return request({
-		url: '/api/collect/user',
-		method: 'get',
-		data
-	});
-}
-// 取消收藏
-export function delcollect(data) {
-	return request({
-		url: '/api/collect/del',
-		method: 'post',
-		data
-	});
-}
-
+// 上传文件
 export function uploads(data){
 export function uploads(data){
 	return upFilse({
 	return upFilse({
 		url:'/api/upload/image',
 		url:'/api/upload/image',

+ 12 - 40
pages.json

@@ -9,43 +9,24 @@
 				// #ifdef MP
 				// #ifdef MP
 				"navigationStyle": "custom",
 				"navigationStyle": "custom",
 				// #endif
 				// #endif
-				// #ifndef MP
-				// "app-plus": {
-				// 	"titleNView": {
-				// 		"type": "transparent",
-				// 		"searchInput": {
-				// 			"backgroundColor": "rgba(231, 231, 231,.7)",
-				// 			"borderRadius": "16px",
-				// 			"placeholder": "请输入关键字",
-				// 			"disabled": true,
-				// 			"placeholderColor": "#606266",
-				// 			"align": "left"
-				// 		},
-				// 		"buttons": [{
-				// 				"fontSrc": "/static/yticon.ttf",
-				// 				"text": "\ue60d",
-				// 				"fontSize": "26",
-				// 				"color": "#303133",
-				// 				"float": "left",
-				// 				"background": "rgba(0,0,0,0)"
-				// 			},
-				// 			{
-				// 				"fontSrc": "/static/yticon.ttf",
-				// 				"text": "\ue744",
-				// 				"fontSize": "27",
-				// 				"color": "#303133",
-				// 				"background": "rgba(0,0,0,0)"
-				// 			}
-				// 		]
-				// 	}
-				// },
-				// #endif
 				"navigationBarTitleText": "商城首页",
 				"navigationBarTitleText": "商城首页",
 				"app-plus": {
 				"app-plus": {
 					"titleNView":false
 					"titleNView":false
 				}
 				}
 			}
 			}
 		},
 		},
+		{
+			"path": "pages/index/node",
+			"style": {
+				"navigationBarTitleText": "兑换"
+			}
+		},
+		{
+			"path": "pages/index/convert",
+			"style": {
+				"navigationBarTitleText": "节点"
+			}
+		},
 		{
 		{
 			"path": "pages/public/register",
 			"path": "pages/public/register",
 			"style": {
 			"style": {
@@ -170,15 +151,6 @@
 				}
 				}
 			}
 			}
 		},
 		},
-		{
-			"path": "pages/index/node",
-			"style": {
-				"navigationBarTitleText": "节点",
-				"app-plus": {
-					"titleNView": false
-				}
-			}
-		},
 		{
 		{
 			"path": "pages/set/phone",
 			"path": "pages/set/phone",
 			"style": {
 			"style": {

+ 22 - 0
pages/index/convert.vue

@@ -0,0 +1,22 @@
+<template>
+	<view class="center">
+		
+		
+	</view>
+</template>
+<script>
+export default {
+	data() {
+		return {};
+	},
+	//页面加载即刻发生
+	onload() {},
+	methods: {}
+};
+</script>
+<style lang="scss">
+.center {
+	height: 0;
+	min-height: 100%;
+}
+</style>

+ 10 - 7
pages/index/node.vue

@@ -249,6 +249,16 @@ export default {
 			}
 			}
 			.item1 {
 			.item1 {
 				line-height: 1;
 				line-height: 1;
+				background: url(../../static/img/rengouBg.png) no-repeat;
+				background-position: right bottom;
+				background-size: 140rpx 115rpx ;
+				flex-grow: 1;
+				min-width: 40%;
+				margin-bottom: 30rpx;
+				border-radius: 15rpx;
+				background-color: #FFFFFF;
+				border: 1px solid $uni-color-primary;
+				padding: 15rpx 10rpx 35rpx 30rpx;
 				.ls1{
 				.ls1{
 					font-weight: bold;
 					font-weight: bold;
 					.name1{
 					.name1{
@@ -267,13 +277,6 @@ export default {
 				  text-align: right;
 				  text-align: right;
 				  font-size: 24rpx;
 				  font-size: 24rpx;
 				}
 				}
-				flex-grow: 1;
-				min-width: 40%;
-				margin-bottom: 30rpx;
-				border-radius: 10rpx;
-				background-color: #FFFFFF;
-				border: 1px solid $uni-color-primary;
-				padding: 10rpx 10rpx 30rpx 30rpx;
 			}
 			}
 		}
 		}
 	}
 	}

BIN
static/img/rengouBg.png