From 2220e8049441853d8e4ae86077464c795ca26eb6 Mon Sep 17 00:00:00 2001
From: zmr900709 <1838875027@qq.com>
Date: Thu, 16 Jul 2020 08:53:47 +0800
Subject: [PATCH 1/2] ceshi
---
pages.json | 25 +-
pages/release/index.vue | 423 +++++++++++++++++++++++++-------
static/image/tosign/bhottom.png | Bin 0 -> 1126 bytes
static/image/tosign/delete.png | Bin 0 -> 2350 bytes
static/image/tosign/noes.png | Bin 0 -> 1579 bytes
5 files changed, 350 insertions(+), 98 deletions(-)
create mode 100644 static/image/tosign/bhottom.png
create mode 100644 static/image/tosign/delete.png
create mode 100644 static/image/tosign/noes.png
diff --git a/pages.json b/pages.json
index b5d3be8..3af9788 100644
--- a/pages.json
+++ b/pages.json
@@ -3,18 +3,7 @@
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
},
"pages": [
- {
- "path": "pages/release/tosign",
- "style": {
- "navigationBarTitleText": "",
- "navigationStyle": "custom",
- "app-plus": {
- "titleNView": false,
- "backgroundColor": "#f00",
- "animationType": "slide-in-bottom"
- }
- }
- },
+
{
"path": "pages/index/index",
"style": {
@@ -89,6 +78,18 @@
}
}
},
+ {
+ "path": "pages/release/tosign",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom",
+ "app-plus": {
+ "titleNView": false,
+ "backgroundColor": "#FFFFFF",
+ "animationType": "slide-in-bottom"
+ }
+ }
+ },
{
"path": "pages/user/info",
"style": {
diff --git a/pages/release/index.vue b/pages/release/index.vue
index 8776ddb..e1dd5a1 100644
--- a/pages/release/index.vue
+++ b/pages/release/index.vue
@@ -1,113 +1,364 @@
-
-
-
- 图片
-
-
-
- 标签
- + 新建标签
- {{item}}
-
-
- 正文
+
+
+
+ 图片
+
+
+
+ 标签
+ + 新建标签
+ {{item}}
+
+
+ 简介
+
-
- 发表
-
-
-
-
- 创建属于你的标签吧
+
+
+
+
+
+ 选择商品
+
+
+
+
+
+
+
+
+
+
+
+ {{item.content}}
+
+
+ 确定
+
+
+ 选择商品
+
-
-
+
+
+
+
+
+
+ 木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子
+
+
+
+
- 确定
-
+
+
+ 发表
+
+
+
+
+
+ 创建属于你的标签吧
+
+
+
+
+ 确定
+
diff --git a/static/image/tosign/bhottom.png b/static/image/tosign/bhottom.png
new file mode 100644
index 0000000000000000000000000000000000000000..484ced599b8a3f0fb5ea93050802e20e3e11c9c3
GIT binary patch
literal 1126
zcmV-s1eyDZP)6Te@L^3)eCDiup12}`G9}~CI)JDk
zMuEfxDMXD*Oo%RAxKI=m7aHPQ3^0Xx-1|3YI)fvWPNx*ayPMo|=6v^?-~GP-i2vE8
zL@YLfY#z8X&g^g?eV$6CF5U{y(bLltxnutPyTXW`1-gMR6_3YG3vLGr1|Ldp@AmE6
zM{fneu~=-8gFcCs2D8CVXj8m@I7ABtOM#09N1d~5dwbW3WHMR!uY||r@g;(FU{3=b
zz-gfo#bU8LC3Opn1B-yr;Jt{EIX5=;SvH#;yP2Ys$)vk*_UwW%qCU)?1GNID5WDmF
z;_CtwjYivATbq|*E(Z1hFlI0c+LKD9j^9kdiA17X7W5l>5@e0
zDQOwC%42#P#5}>7Ed2mM!vYnlsA6=*ZTeoigxt_Dv
z%;9<)E9tRXgngjku17pS{(_ZDVV84F2exh7_G`T}r|ocU
zdeq=?&v+x+sNr^&N~KTJ>2%(&t~OXFufd@9on&D$1jbXH*F*)coEl_@Jv4lb_v`enH?yv
zldUkc7HF%Ch}j^px27xhx*Wc;T+Fmd;PE(z@dct4w4my&aM|f%aNP`F`BVDQbbOvx
zAMlX>y9GF)$(Mr1pcn-2OeJUQVKU_$uJ=U~q=(<~qtKvhYI?ho=$h=T853M-#Cbtb
sTr0}6hfjoeL-bNAmHNKk15fq--#_yNH*`lbx3I)QJW?#sA?{|-L?(aQlv$ScZgy7_6l9#;q
z%f07&_Iu6|Cb%?@qu4lyQfVRLPDk_$DEk5$zQ(fz0qp0ysICY8icdX4wxdn*`0;Ep
z{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kV1oIqxX}Or
literal 0
HcmV?d00001
From 5f8e0f5f10339fc8131f5f1dcdd40c154e2b1faa Mon Sep 17 00:00:00 2001
From: zmr900709 <1838875027@qq.com>
Date: Thu, 16 Jul 2020 09:47:53 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0api=E7=AE=A1=E7=AE=A1?=
=?UTF-8?q?=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/api/user.js | 13 ++++++++
common/http.api.js | 16 ++++++++++
common/http.interceptor.js | 64 ++++++++++++++++++++++++++++++++++++++
main.js | 11 +++++++
pages/release/index.vue | 6 ++++
5 files changed, 110 insertions(+)
create mode 100644 common/api/user.js
create mode 100644 common/http.api.js
create mode 100644 common/http.interceptor.js
diff --git a/common/api/user.js b/common/api/user.js
new file mode 100644
index 0000000..a396093
--- /dev/null
+++ b/common/api/user.js
@@ -0,0 +1,13 @@
+export default {
+ init(vm){
+ return {
+ // 首页协议 列子
+ // documentInfo({document_code}) {
+ // return vm.$u.post('StartUp/documentInfo', {
+ // document_code : document_code
+ // });
+ // },
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/common/http.api.js b/common/http.api.js
new file mode 100644
index 0000000..cf7e500
--- /dev/null
+++ b/common/http.api.js
@@ -0,0 +1,16 @@
+
+// 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作,更多内容详见uView对拦截器的介绍部分:
+// https://uviewui.com/js/http.html#%E4%BD%95%E8%B0%93%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%EF%BC%9F
+// import shop from "./api/shop"
+import user from "./api/user"
+
+const install = (Vue, vm) => {
+ let userApi = user.init(vm)
+ // let shopApi = shop.init(vm)
+ // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
+ vm.$u.api = {...userApi};
+}
+
+export default {
+ install
+}
diff --git a/common/http.interceptor.js b/common/http.interceptor.js
new file mode 100644
index 0000000..f1144d9
--- /dev/null
+++ b/common/http.interceptor.js
@@ -0,0 +1,64 @@
+const install = (Vue, vm) => {
+ // 此为自定义配置参数,具体参数见上方说明
+ Vue.prototype.$u.http.setConfig({
+ baseUrl: 'https://dmmall.sdbairui.com/api',
+ loadingText: '努力加载中~',
+ loadingTime: 800
+ // ......
+ });
+
+ // 请求拦截,配置Token等参数
+ Vue.prototype.$u.http.interceptor.request = (config) => {
+ // 引用token
+ // 方式一,存放在vuex的token,假设使用了uView封装的vuex方式
+ // 见:https://uviewui.com/components/globalVariable.html
+ // config.header.token = vm.token;
+
+ // 方式二,如果没有使用uView封装的vuex方法,那么需要使用$store.state获取
+ // config.header.token = vm.$store.state.token;
+
+ // 方式三,如果token放在了globalData,通过getApp().globalData获取
+ // config.header.token = getApp().globalData.username;
+
+ // 方式四,如果token放在了Storage本地存储中,拦截是每次请求都执行的
+ // 所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值
+ const token = uni.getStorageSync('token');
+ // console.log(token);
+ // config.header.token = token;
+ config.header.Authorization = 'Bearer' + " " + token;
+ // config.header.Token = 'xxxxxx';
+
+ // 可以对某个url进行特别处理,此url参数为this.$u.get(url)中的url值
+ // if(config.url == '/user/login') config.header.noToken = true;
+ // 最后需要将config进行return
+ return config;
+ // 如果return一个false值,则会取消本次请求
+ // if(config.url == '/user/rest') return false; // 取消某次请求
+ }
+
+ // // 响应拦截,判断状态码是否通过
+ // Vue.prototype.$u.http.interceptor.response = (res) => {
+ // if(res.code == 200) {
+ // // res为服务端返回值,可能有code,result等字段
+ // // 这里对res.result进行返回,将会在this.$u.post(url).then(res => {})的then回调中的res的到
+ // // 如果配置了originalData为true,请留意这里的返回值
+ // return res.result;
+ // } else if(res.code == 201) {
+ // // 假设201为token失效,这里跳转登录
+ // vm.$u.toast('验证失败,请重新登录');
+ // setTimeout(() => {
+ // // 此为uView的方法,详见路由相关文档
+ // vm.$u.route('/pages/user/login')
+ // }, 1500)
+ // return false;
+ // } else {
+ // // 如果返回false,则会调用Promise的reject回调,
+ // // 并将进入this.$u.post(url).then().catch(res=>{})的catch回调中,res为服务端的返回值
+ // return false;
+ // }
+ // }
+}
+
+export default {
+ install
+}
diff --git a/main.js b/main.js
index f32c60f..1464370 100644
--- a/main.js
+++ b/main.js
@@ -12,3 +12,14 @@ const app = new Vue({
...App
})
app.$mount()
+
+
+
+// http拦截器,将此部分放在new Vue()和app.$mount()之间,才能App.vue中正常使用
+import httpInterceptor from '@/common/http.interceptor.js'
+Vue.use(httpInterceptor, app)
+
+// http接口API集中管理引入部分
+import httpApi from '@/common/http.api.js'
+Vue.use(httpApi, app)
+app.$mount()
diff --git a/pages/release/index.vue b/pages/release/index.vue
index e1dd5a1..5895586 100644
--- a/pages/release/index.vue
+++ b/pages/release/index.vue
@@ -159,6 +159,12 @@
},
tosign(){
+ console.log("111")
+ this.$u.api.documentInfo({
+ document_code: 'privacy'
+ }).then((res)=>{
+ console.log(res)
+ })
try {
const value = uni.getStorageSync('list_tosign');
if (value) {