瀏覽代碼

2021-8-25

xiemingyang 3 年之前
父節點
當前提交
0cd2a592a5
共有 3 個文件被更改,包括 91 次插入1 次删除
  1. 37 0
      api/wx.js
  2. 41 1
      pages.json
  3. 13 0
      pages/index/index.vue

+ 37 - 0
api/wx.js

@@ -0,0 +1,37 @@
+import request from '@/utils/request'
+// #ifdef H5
+// 微信分享信息
+export function share(data) {
+	return request({
+		url: '/api/share',
+		method: 'get',
+		data
+	});
+}
+//微信配置
+export function wechatConfig(data) {
+	return request({
+		url: '/api/wechat/config',
+		method: 'get',
+		data
+	});
+}
+// 微信code地址
+export function wechatAuth(data) {
+	return request({
+		url: '/api/wechat/auth',
+		method: 'get',
+		data
+	});
+}
+// #endif
+// #ifdef MP-WEIXIN
+// 微信code地址
+export function wechatMpAuth(data) {
+	return request({
+		url: '/api/wechat/mp_auth',
+		method: 'post',
+		data
+	});
+}
+// #endif

+ 41 - 1
pages.json

@@ -1,6 +1,46 @@
 {
 	"pages": [
-		
+		{
+				"path": "pages/index/index",
+				"style": {
+					"enablePullDownRefresh": true,
+					// #ifdef MP
+					"navigationStyle": "custom",
+					// #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": "商城首页"
+				}
+			}
 	],
 	"tabBar": {
 		"color": "#C0C4CC",

+ 13 - 0
pages/index/index.vue

@@ -1241,3 +1241,16 @@ page {
 	}
 }
 </style>
+=======
+<template>
+	<view class="">
+		1111
+	</view>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>
+>>>>>>> 1062124a14605e6952753b8ba2e3f401c676404f