diff --git a/apis/interfaces/auth.js b/apis/interfaces/auth.js
index 48ee742..87e2023 100644
--- a/apis/interfaces/auth.js
+++ b/apis/interfaces/auth.js
@@ -26,7 +26,17 @@ const getSms = (data) =>{
})
}
+// 用户隐私协议 articles/agreement/secret 用户服务协议 articles/agreement/service
+
+const secretService = (name) =>{
+ return request({
+ url: "articles/agreement/"+name
+ })
+}
+
+
export {
smsAuth,
- getSms
+ getSms,
+ secretService
}
diff --git a/manifest.json b/manifest.json
index 3bd459f..30b1c92 100644
--- a/manifest.json
+++ b/manifest.json
@@ -68,5 +68,10 @@
"uniStatistics" : {
"enable" : false
},
- "vueVersion" : "2"
+ "vueVersion" : "2",
+ "h5" : {
+ "router" : {
+ "mode" : "history"
+ }
+ }
}
diff --git a/pages.json b/pages.json
index 722320c..61c6d8f 100644
--- a/pages.json
+++ b/pages.json
@@ -134,6 +134,18 @@
"style": {
"navigationBarTitleText": "登录"
}
+ }, {
+ "path": "pages/login/guide",
+ "name": "loginGuide",
+ "style": {
+ "navigationBarTitleText": "引导页"
+ }
+ }, {
+ "path": "pages/login/agreement",
+ "name": "agreement",
+ "style": {
+ "navigationBarTitleText": "用户隐藏协议"
+ }
}, {
"path": "pages/certification/personal",
"name": "Personal",
diff --git a/pages/coupons/add.vue b/pages/coupons/add.vue
index 41871a0..8d9b540 100644
--- a/pages/coupons/add.vue
+++ b/pages/coupons/add.vue
@@ -1,5 +1,5 @@
-
+
@@ -79,7 +79,7 @@
{{datePickerValue.length == 0 ? '选择优惠券有效期区间': datePickerValue[0] + ' 至 ' + datePickerValue[1]}}
-
+
@@ -89,7 +89,7 @@
-
+
已关联{{coupongoods.length}}件商品
选择关联商品
@@ -100,9 +100,9 @@
-
-
-
+
+
+
@@ -116,6 +116,7 @@
},
data() {
return {
+ loding : true,
typeIndex : 0,
types : [
{ id: 1, text: '服务券' },
@@ -190,7 +191,7 @@
},
// 选择关联商品
onSelectGoods(){
- this.$Router.push({name: 'selectGoods', params: {type: this.types[this.typeIndex].id}})
+ this.$Router.push({name: 'couponsSelectGoods', params: {type: this.types[this.typeIndex].id}})
},
// 发布优惠券
updComponent(){
@@ -235,35 +236,6 @@
diff --git a/pages/login/guide.vue b/pages/login/guide.vue
new file mode 100644
index 0000000..3617dd4
--- /dev/null
+++ b/pages/login/guide.vue
@@ -0,0 +1,120 @@
+
+
+
+
+
+ 链商星球(中国)
+
+
+
+
+
+ 企业链
+ 从星煌开始
+
+
+
+
+
+
+
+
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 4e0f0a3..ff12c84 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -26,8 +26,13 @@
+<<<<<<< HEAD
未注册的手机号验证后将自动创建账号,登录即表示同意接收用户隐私协议和用户服务协议
+=======
+ 未注册的手机号验证后将自动创建账号,登录即表示同意接收用户隐私协议和用户服务协议
+
+>>>>>>> 1e1409f14e485939bb0a6d80e65119d65d4e6a1c
@@ -210,7 +215,7 @@
}
.btn {
- background: $mian-color;
+ background-image: linear-gradient(to bottom,#bf52eb,#8f32dd);
color: white;
border-radius: 0;
margin-top: $margin;
@@ -224,7 +229,7 @@
}
&[disabled] {
- background: rgba($color: $mian-color, $alpha: .6);
+ background: rgba($color: #8f32dd, $alpha: .6);
}
}
diff --git a/store/index.js b/store/index.js
index 8eee733..9e3927a 100644
--- a/store/index.js
+++ b/store/index.js
@@ -12,17 +12,24 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
- token : uni.getStorageSync('token') || ''
+ token : uni.getStorageSync('token') || '',
+ coupongoods : []
},
getters: {
getToken: state => {
return state.token
+ },
+ getCoupongoods: state => {
+ return state.coupongoods
}
},
mutations: {
setToken(state, tokenString) {
state.token = tokenString
uni.setStorageSync('token', tokenString)
+ },
+ setCoupongoods(state, value) {
+ state.coupongoods = value
}
}
})
diff --git a/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue b/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue
index e59fa40..a942afd 100644
--- a/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue
+++ b/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue
@@ -140,92 +140,64 @@
}
};
-