From 138db89b3193d60850e203e1847e2f91d2b00ebc Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 07 八月 2024 18:19:47 +0800
Subject: [PATCH] lll
---
wechat_staff/pages/detailDis/case.wxml | 4
wechat_jiaxuan/pages/kefu/index.wxml | 2
wechat_jiaxuan/pages/userinfo/index.wxml | 4
wechat_staff/pages/login/index.wxml | 6
wechat_staff/pages/client/index.wxml | 2
wechat_jiaxuan/components/disProduct/index.less | 5
wechat_jiaxuan/app.js | 13
wechat_jiaxuan/pages/sets/index.wxss | 2
wechat_jiaxuan/pages/detailDis/product.wxml | 10
wechat_jiaxuan/pages/detailDis/realpic.wxml | 10
wechat_staff/project.private.config.json | 2
wechat_staff/components/detailFooter/index.wxml | 4
wechat_staff/components/disRealpic/index.json | 5
wechat_jiaxuan/components/disRealpic/index.json | 5
wechat_jiaxuan/pages/consult/detail.wxml | 4
wechat_staff/app.wxss | 3
wechat_staff/pages/consult/detail.wxml | 4
wechat_staff/pages/userinfo/index.wxml | 2
wechat_staff/components/disRealpic/index.less | 12
wechat_jiaxuan/pages/detailDis/case.wxml | 10
wechat_staff/pages/detailDis/realpic.wxml | 2
wechat_jiaxuan/components/disCase/index.wxss | 1
wechat_staff/components/disProduct/index.js | 6
wechat_staff/components/disCase/index.less | 1
wechat_staff/pages/client/index.json | 3
wechat_jiaxuan/project.private.config.json | 4
wechat_jiaxuan/components/areaSel/areaSel.js | 533 +++++++++++++++---------------
wechat_staff/components/disProduct/index.wxss | 4
wechat_jiaxuan/components/disCase/index.less | 1
wechat_jiaxuan/components/disRealpic/index.wxml | 10
wechat_jiaxuan/pages/sets/index.js | 1
wechat_jiaxuan/pages/sets/index.less | 2
wechat_jiaxuan/utils/request.js | 4
wechat_staff/components/disRealpic/index.wxss | 10
wechat_staff/pages/consult/consult.js | 4
wechat_staff/components/disRealpic/index.js | 43 ++
wechat_jiaxuan/components/disProduct/index.js | 4
wechat_staff/pages/userinfo/collect.js | 3
wechat_jiaxuan/pages/sets/index.wxml | 2
wechat_jiaxuan/components/disRealpic/index.less | 9
wechat_staff/pages/userinfo/index.less | 5
wechat_staff/static/icon/zixun_ic_liulan.png | 0
wechat_staff/utils/request.js | 2
wechat_jiaxuan/app.wxss | 1
wechat_staff/pages/kefu/fond.wxml | 4
wechat_jiaxuan/pages/mine/mine.js | 65 ++-
wechat_jiaxuan/pages/userinfo/collect.js | 7
wechat_jiaxuan/static/icon/zixun_ic_liulan.png | 0
wechat_staff/components/disCase/index.wxss | 1
wechat_jiaxuan/pages/auth/auth.wxml | 4
wechat_staff/components/disProduct/index.less | 5
wechat_jiaxuan/pages/consult/consult.js | 8
wechat_staff/pages/login/index.js | 2
wechat_staff/pages/userinfo/index.wxss | 9
wechat_staff/pages/sets/index.js | 2
wechat_staff/pages/kefu/index.wxml | 4
wechat_jiaxuan/pages/userinfo/index.js | 4
wechat_staff/app.js | 2
wechat_jiaxuan/components/disCase/index.js | 4
wechat_staff/pages/sets/index.wxml | 2
wechat_staff/components/disCase/index.js | 6
wechat_jiaxuan/components/disRealpic/index.js | 50 +-
wechat_jiaxuan/pages/calculator/index.wxml | 2
wechat_jiaxuan/components/disRealpic/index.wxss | 9
wechat_jiaxuan/components/disProduct/index.wxss | 4
wechat_staff/components/disRealpic/index.wxml | 9
66 files changed, 508 insertions(+), 459 deletions(-)
diff --git a/wechat_jiaxuan/app.js b/wechat_jiaxuan/app.js
index 9503c79..0d84e2d 100644
--- a/wechat_jiaxuan/app.js
+++ b/wechat_jiaxuan/app.js
@@ -89,12 +89,13 @@
})
} else {
this.globalData.token = token
- // if (op.query.scene) {
- // let temp = op.query.scene.split('_')
- // wx.navigateTo({
- // url: `${pathMap[temp[1]]}?id=${temp[0]}&userId=${temp[2]}`,
- // })
- // }
+ wx.setStorageSync('member', res.data)
+ if (op.query.scene) {
+ let temp = op.query.scene.split('_')
+ wx.navigateTo({
+ url: `${pathMap[temp[1]]}?id=${temp[0]}&userId=${temp[2]}`,
+ })
+ }
}
})
} else {
diff --git a/wechat_jiaxuan/app.wxss b/wechat_jiaxuan/app.wxss
index cb2e17a..0405cee 100644
--- a/wechat_jiaxuan/app.wxss
+++ b/wechat_jiaxuan/app.wxss
@@ -14,6 +14,7 @@
display: flex;
border-radius: 8rpx;
}
+
.container {
min-height: 100vh;
padding: 0;
diff --git a/wechat_jiaxuan/components/areaSel/areaSel.js b/wechat_jiaxuan/components/areaSel/areaSel.js
index a7cad08..3e05148 100644
--- a/wechat_jiaxuan/components/areaSel/areaSel.js
+++ b/wechat_jiaxuan/components/areaSel/areaSel.js
@@ -1,265 +1,270 @@
-
-import {
- getArea
-} from '../../api/index'
-Component({
- properties: {
- // placeholder涓洪�夋嫨鍣ㄧ殑榛樿鎻愮ず鏂囧瓧
- placeholder: {
- type: String,
- value: '璇烽�夋嫨鐪佸競鍦板尯',
- },
- // value涓洪�夋嫨鍣ㄧ殑榛樿鍊硷紝绫诲瀷涓烘暟缁�
- value: {
- type: Array,
- value: [],
- // observer鐩戝惉value鐨勫彉鍖栵紝濡傛灉鏈夊�煎垯璋冪敤setLabel鏂规硶璁剧疆閫夋嫨鍣ㄧ殑label
- observer(selectedValues) {
- if (selectedValues && selectedValues.length) {
- this.resetValus(selectedValues)
- this.setLabel();
- }
- }
- }
- },
- data: {
- // label涓洪�夋嫨鍣ㄧ殑鏄剧ず鍊�
- label: '',
- // range涓洪�夋嫨鍣ㄧ殑鍙�夐」锛岀被鍨嬩负鏁扮粍锛屽寘鍚笁涓暟缁勶紝鍒嗗埆涓虹渷銆佸競銆佸尯/鍘�
- range: [],
- // pickerValue涓洪�夋嫨鍣ㄧ殑閫変腑鍊硷紝绫诲瀷涓烘暟缁勶紝鍖呭惈涓変釜鏁板瓧锛屽垎鍒负鐪併�佸競銆佸尯/鍘跨殑涓嬫爣
- pickerValue: [],
- // addressList涓洪�夋嫨鍣ㄧ殑鏁版嵁婧愶紝绫诲瀷涓烘暟缁勶紝鍖呭惈鐪併�佸競銆佸尯/鍘跨殑淇℃伅
- addressList: [],
- },
- // attached鐢熷懡鍛ㄦ湡鍑芥暟锛屽湪缁勪欢瀹炰緥杩涘叆椤甸潰鑺傜偣鏍戞椂鎵ц
- attached() {
- this.initData()
- },
+ import {
+ getArea
+ } from '../../api/index'
+ Component({
+ properties: {
+ // placeholder涓洪�夋嫨鍣ㄧ殑榛樿鎻愮ず鏂囧瓧
+ placeholder: {
+ type: String,
+ value: '璇烽�夋嫨鐪佸競鍦板尯',
+ },
+ // value涓洪�夋嫨鍣ㄧ殑榛樿鍊硷紝绫诲瀷涓烘暟缁�
+ value: {
+ type: Array,
+ value: [],
+ // observer鐩戝惉value鐨勫彉鍖栵紝濡傛灉鏈夊�煎垯璋冪敤setLabel鏂规硶璁剧疆閫夋嫨鍣ㄧ殑label
+ observer(selectedValues) {
+ if (selectedValues && selectedValues.length) {
+ this.resetValus(selectedValues)
+ this.setLabel();
+ }
+ }
+ }
+ },
+ data: {
+ // label涓洪�夋嫨鍣ㄧ殑鏄剧ず鍊�
+ label: '',
+ // range涓洪�夋嫨鍣ㄧ殑鍙�夐」锛岀被鍨嬩负鏁扮粍锛屽寘鍚笁涓暟缁勶紝鍒嗗埆涓虹渷銆佸競銆佸尯/鍘�
+ range: [],
+ // pickerValue涓洪�夋嫨鍣ㄧ殑閫変腑鍊硷紝绫诲瀷涓烘暟缁勶紝鍖呭惈涓変釜鏁板瓧锛屽垎鍒负鐪併�佸競銆佸尯/鍘跨殑涓嬫爣
+ pickerValue: [],
+ // addressList涓洪�夋嫨鍣ㄧ殑鏁版嵁婧愶紝绫诲瀷涓烘暟缁勶紝鍖呭惈鐪併�佸競銆佸尯/鍘跨殑淇℃伅
+ addressList: [],
+ },
+ // attached鐢熷懡鍛ㄦ湡鍑芥暟锛屽湪缁勪欢瀹炰緥杩涘叆椤甸潰鑺傜偣鏍戞椂鎵ц
+ attached() {
+ this.initData()
+ },
- methods: {
- // wx.setStorageSync('addressList', tl)
- initData(){
- let list = wx.getStorageSync('addressList')
- if(list && list.length){
- this.setData({addressList: list})
- this.resetValus(list)
- this.setLabel();
- if (!this.data.value.length) {
- this.initRange();
- }
- }else{
- getArea({
- "level": "",
- "pid": ""
- }).then(res => {
- var tl = []
- if(res && res.data && res.data.length){
- res.data.forEach(element => {
- let tc = []
- if(element.children &&element.children.length){
- element.children.forEach(c => {
- let ta = []
- if(c.children &&c.children.length){
- c.children.forEach(a => {
- ta.push({
- label: a.name,
- value: a.id ,
- regionLevel: '3',
- parentRegionCode: c.id
- })
- })
- }
- tc.push({
- label: c.name,
- value: c.id,
- regionLevel:"2",
- children:ta,
- parentRegionCode:element.id
- })
- })
- }
- tl.push({
- label: element.name,
- value: element.id,
- regionLevel:"1",
- children: tc,
- parentRegionCode:"0"
- })
- });
- }
- wx.setStorageSync('addressList', tl)
- this.setData({addressList: tl})
- this.resetValus()
- this.setLabel();
- if (!this.data.value.length) {
- this.initRange();
- }
- })
- }
- },
- resetValus(selectedValues){
- selectedValues = selectedValues || this.data.value
- let temVal = []
- let tlable =''
- if (selectedValues.length == 3) {
- var v1 = selectedValues[0]
- var v2 = selectedValues[1]
- var v3= selectedValues[2]
- var t1,t2,t3;
- this.data.addressList.forEach(item =>{
- if(v1 && v1.length ==6
- &&v2 && v2.length ==6
- &&v3 && v3.length ==6){
- if(item.value.indexOf(v1) == 0){
- t1 = item.value
- if(item.children){
- item.children.forEach(item2 =>{
- if(item2.value.indexOf(v2) == 0){
- if(item2.children){
- item2.children.forEach(item3 =>{
- if(item3.value.indexOf(v3) == 0){
- tlable = item.label +"-"+item2.label+'-'+item3.label
- t1 = item.value
- t2 = item2.value
- t3 = item3.value
- temVal = [t1,t2,t3]
- // this.value = temVal
- // this.data.label=tlable
- this.triggerEvent("change", {
- value: temVal,
- label:tlable
- });
- this.setData({value:temVal,label:tlable})
- }
- })
- }
- }
- })
- }
- }
- }
- })
- }
- },
- // getAddressItem鏂规硶鐢ㄤ簬灏嗗湴鍧�淇℃伅杞崲涓洪�夋嫨鍣ㄥ彲鐢ㄧ殑鏍煎紡
- getAddressItem(data) {
- return {
- label: data.label,
- value: data.value
- };
- },
- // setAddressList鏂规硶鐢ㄤ簬灏嗗湴鍧�鍒楄〃杞崲涓洪�夋嫨鍣ㄥ彲鐢ㄧ殑鏍煎紡
- setAddressList(list) {
- return list.map((v) => this.getAddressItem(v));
- },
- // getAddressByCode鏂规硶鐢ㄤ簬鏍规嵁value鍊艰幏鍙栧湴鍧�淇℃伅鍙婂叾鍦ㄦ暟缁勪腑鐨勪笅鏍�
- getAddressByCode(list = [], value) {
- let index = list.findIndex(item => item.value === value);
- return [index, list[index] || {}];
- },
- // openChildren鏂规硶鐢ㄤ簬鏍规嵁value鍊兼墦寮�涓嬩竴绾ч�夋嫨鍣�
- openChildren(list, keys) {
- let result = [];
- const handle = (arr, keys) => {
- let newarr = arr.map((v, index) => {
- if (keys && keys.length) {
- let [currentKey, ...nextKey] = keys;
- if (currentKey === index && Array.isArray(v.children)) {
- handle(v.children, nextKey);
- }
- }
- return this.getAddressItem(v);
- });
- result.push(newarr);
- }
- handle(list, keys);
- return result.reverse();
- },
- // onChange鏂规硶涓洪�夋嫨鍣ㄧ殑change浜嬩欢澶勭悊鍑芥暟锛岀敤浜庤缃甽abel鍜岃Е鍙慶hange浜嬩欢
- onChange(e) {
- let [r1, r2, r3] = this.data.range;
- const [v1, v2, v3] = e.detail.value;
- const selected = [r1[v1], r2[v2], r3[v3]];
- const values = selected.map(v => v.value);
- const label = selected.map(v => v.label).join('-');
-
- this.triggerEvent("change", {
- value: values,
- label:label
- });
- this.setData({
- label:label
- });
- },
- // columnChange鏂规硶涓洪�夋嫨鍣ㄧ殑columnchange浜嬩欢澶勭悊鍑芥暟锛岀敤浜庤缃畆ange鍜宲ickerValue
- columnChange(e) {
- const {
- column,
- value
- } = e.detail;
- this.setColumn(column, value);
- },
- // setColumn鏂规硶鐢ㄤ簬璁剧疆range鍜宲ickerValue
- setColumn(column, value) {
- let addressList = this.data.addressList;
- if (!addressList || addressList.length === 0) return;
- let [r1, r2, r3] = this.data.range;
- if (column === 0) {
- r2 = this.setAddressList(addressList[value].children);
- r3 = this.setAddressList(addressList[value].children[0].children);
- this.setData({
- pickerValue: [value, 0, 0]
- });
- } else if (column === 1) {
- const [v1] = this.data.pickerValue;
- r3 = this.setAddressList(addressList[v1].children[value].children);
- this.setData({
- pickerValue: [v1, value, 0]
- });
- }
- this.setData({
- range: [r1, r2, r3]
- });
- },
- // setLabel鏂规硶鐢ㄤ簬璁剧疆label
- setLabel() {
- let addressList = this.data.addressList;
- if (addressList && addressList.length) {
- const [v1, v2, v3] = this.data.value;
- const [s1, {
- label: t1,
- children: l1
- }] = this.getAddressByCode(addressList, v1);
- const [s2, {
- label: t2,
- children: l2
- }] = this.getAddressByCode(l1, v2);
- const [s3, {
- label: t3
- }] = this.getAddressByCode(l2, v3);
- const label = [t1, t2, t3].filter(v => v).join('-');
-
- const pickerValue = [s1, s2, s3];
- const range = this.openChildren(addressList, [s1, s2, s3]);
- if (label.length) {
- this.setData({
- label,
- range,
- pickerValue
- });
- }
- }
- },
- // initRange鏂规硶鐢ㄤ簬鍒濆鍖杛ange
- initRange() {
- if (!this.data.value.length) {
- const range = this.openChildren(this.data.addressList, [0, 0, 0]);
- this.setData({
- range
- });
- }
- },
-
- },
-});
\ No newline at end of file
+ methods: {
+ initData() {
+ let list = wx.getStorageSync('addressList') || []
+ if (list && list.length) {
+ this.setData({
+ addressList: list
+ })
+ this.resetValus(list)
+ this.setLabel();
+ if (!this.data.value.length) {
+ this.initRange();
+ }
+ } else {
+ getArea({
+ "level": "",
+ "pid": ""
+ }).then(res => {
+ var tl = []
+ if (res && res.data && res.data.length) {
+ res.data.forEach(element => {
+ let tc = []
+ if (element.children && element.children.length) {
+ element.children.forEach(c => {
+ let ta = []
+ if (c.children && c.children.length) {
+ c.children.forEach(a => {
+ ta.push({
+ label: a.name,
+ value: a.id,
+ regionLevel: '3',
+ parentRegionCode: c.id
+ })
+ })
+ }
+ tc.push({
+ label: c.name,
+ value: c.id,
+ regionLevel: "2",
+ children: ta,
+ parentRegionCode: element.id
+ })
+ })
+ }
+ tl.push({
+ label: element.name,
+ value: element.id,
+ regionLevel: "1",
+ children: tc,
+ parentRegionCode: "0"
+ })
+ });
+ }
+ wx.setStorageSync('addressList', tl)
+ this.setData({
+ addressList: tl
+ })
+ this.resetValus()
+ this.setLabel();
+ if (!this.data.value.length) {
+ this.initRange();
+ }
+ })
+ }
+ },
+ resetValus(selectedValues) {
+ selectedValues = selectedValues || this.data.value
+ let temVal = []
+ let tlable = ''
+ if (selectedValues.length == 3) {
+ var v1 = selectedValues[0]
+ var v2 = selectedValues[1]
+ var v3 = selectedValues[2]
+ var t1, t2, t3;
+ this.data.addressList.forEach(item => {
+ if (v1 && v1.length == 6 &&
+ v2 && v2.length == 6 &&
+ v3 && v3.length == 6) {
+ if (item.value.indexOf(v1) == 0) {
+ t1 = item.value
+ if (item.children) {
+ item.children.forEach(item2 => {
+ if (item2.value.indexOf(v2) == 0) {
+ if (item2.children) {
+ item2.children.forEach(item3 => {
+ if (item3.value.indexOf(v3) == 0) {
+ tlable = item.label + "-" + item2.label + '-' + item3.label
+ t1 = item.value
+ t2 = item2.value
+ t3 = item3.value
+ temVal = [t1, t2, t3]
+ // this.value = temVal
+ // this.data.label=tlable
+ this.triggerEvent("change", {
+ value: temVal,
+ label: tlable
+ });
+ this.setData({
+ value: temVal,
+ label: tlable
+ })
+ }
+ })
+ }
+ }
+ })
+ }
+ }
+ }
+ })
+ }
+ },
+ // getAddressItem鏂规硶鐢ㄤ簬灏嗗湴鍧�淇℃伅杞崲涓洪�夋嫨鍣ㄥ彲鐢ㄧ殑鏍煎紡
+ getAddressItem(data) {
+ return {
+ label: data.label,
+ value: data.value
+ };
+ },
+ // setAddressList鏂规硶鐢ㄤ簬灏嗗湴鍧�鍒楄〃杞崲涓洪�夋嫨鍣ㄥ彲鐢ㄧ殑鏍煎紡
+ setAddressList(list) {
+ return list.map((v) => this.getAddressItem(v));
+ },
+ // getAddressByCode鏂规硶鐢ㄤ簬鏍规嵁value鍊艰幏鍙栧湴鍧�淇℃伅鍙婂叾鍦ㄦ暟缁勪腑鐨勪笅鏍�
+ getAddressByCode(list = [], value) {
+ let index = list.findIndex(item => item.value === value);
+ return [index, list[index] || {}];
+ },
+ // openChildren鏂规硶鐢ㄤ簬鏍规嵁value鍊兼墦寮�涓嬩竴绾ч�夋嫨鍣�
+ openChildren(list, keys) {
+ let result = [];
+ const handle = (arr, keys) => {
+ let newarr = arr.map((v, index) => {
+ if (keys && keys.length) {
+ let [currentKey, ...nextKey] = keys;
+ if (currentKey === index && Array.isArray(v.children)) {
+ handle(v.children, nextKey);
+ }
+ }
+ return this.getAddressItem(v);
+ });
+ result.push(newarr);
+ }
+ handle(list, keys);
+ return result.reverse();
+ },
+ // onChange鏂规硶涓洪�夋嫨鍣ㄧ殑change浜嬩欢澶勭悊鍑芥暟锛岀敤浜庤缃甽abel鍜岃Е鍙慶hange浜嬩欢
+ onChange(e) {
+ let [r1, r2, r3] = this.data.range;
+ const [v1, v2, v3] = e.detail.value;
+ const selected = [r1[v1], r2[v2], r3[v3]];
+ const values = selected.map(v => v.value);
+ const label = selected.map(v => v.label).join('-');
+
+ this.triggerEvent("change", {
+ value: values,
+ label: label
+ });
+ this.setData({
+ label: label
+ });
+ },
+ // columnChange鏂规硶涓洪�夋嫨鍣ㄧ殑columnchange浜嬩欢澶勭悊鍑芥暟锛岀敤浜庤缃畆ange鍜宲ickerValue
+ columnChange(e) {
+ const {
+ column,
+ value
+ } = e.detail;
+ this.setColumn(column, value);
+ },
+ // setColumn鏂规硶鐢ㄤ簬璁剧疆range鍜宲ickerValue
+ setColumn(column, value) {
+ let addressList = this.data.addressList;
+ if (!addressList || addressList.length === 0) return;
+ let [r1, r2, r3] = this.data.range;
+ if (column === 0) {
+ r2 = this.setAddressList(addressList[value].children);
+ r3 = this.setAddressList(addressList[value].children[0].children);
+ this.setData({
+ pickerValue: [value, 0, 0]
+ });
+ } else if (column === 1) {
+ const [v1] = this.data.pickerValue;
+ r3 = this.setAddressList(addressList[v1].children[value].children);
+ this.setData({
+ pickerValue: [v1, value, 0]
+ });
+ }
+ this.setData({
+ range: [r1, r2, r3]
+ });
+ },
+ // setLabel鏂规硶鐢ㄤ簬璁剧疆label
+ setLabel() {
+ let addressList = this.data.addressList;
+ if (addressList && addressList.length) {
+ const [v1, v2, v3] = this.data.value;
+ const [s1, {
+ label: t1,
+ children: l1
+ }] = this.getAddressByCode(addressList, v1);
+ const [s2, {
+ label: t2,
+ children: l2
+ }] = this.getAddressByCode(l1, v2);
+ const [s3, {
+ label: t3
+ }] = this.getAddressByCode(l2, v3);
+ const label = [t1, t2, t3].filter(v => v).join('-');
+
+ const pickerValue = [s1, s2, s3];
+ const range = this.openChildren(addressList, [s1, s2, s3]);
+ if (label.length) {
+ this.setData({
+ label,
+ range,
+ pickerValue
+ });
+ }
+ }
+ },
+ // initRange鏂规硶鐢ㄤ簬鍒濆鍖杛ange
+ initRange() {
+ if (!this.data.value.length) {
+ const range = this.openChildren(this.data.addressList, [0, 0, 0]);
+ this.setData({
+ range
+ });
+ }
+ },
+
+ },
+ });
\ No newline at end of file
diff --git a/wechat_jiaxuan/components/disCase/index.js b/wechat_jiaxuan/components/disCase/index.js
index 7769bf1..0f068a2 100644
--- a/wechat_jiaxuan/components/disCase/index.js
+++ b/wechat_jiaxuan/components/disCase/index.js
@@ -69,11 +69,11 @@
},
touchmove(e) {
var touchMove = e.detail.scrollTop;
- if(touchDot - touchMove > 16){
+ if(touchMove - touchDot > 24){
touchDot = touchMove
this.fadeOut();
}
- if(touchDot - touchMove > 16){
+ if(touchDot - touchMove > 24){
touchDot = touchMove
setTimeout(() => {
this.setData({ showTouch: true })
diff --git a/wechat_jiaxuan/components/disCase/index.less b/wechat_jiaxuan/components/disCase/index.less
index 91b0286..aa56d08 100644
--- a/wechat_jiaxuan/components/disCase/index.less
+++ b/wechat_jiaxuan/components/disCase/index.less
@@ -159,6 +159,7 @@
padding: 0 10rpx;
}
.name{
+ font-size: 30rpx;
margin: 12rpx 0 8rpx;
white-space: nowrap;
overflow: hidden;
diff --git a/wechat_jiaxuan/components/disCase/index.wxss b/wechat_jiaxuan/components/disCase/index.wxss
index 4953a1c..73c9d18 100644
--- a/wechat_jiaxuan/components/disCase/index.wxss
+++ b/wechat_jiaxuan/components/disCase/index.wxss
@@ -159,6 +159,7 @@
padding: 0 10rpx;
}
.main_content .goods_list .item .name {
+ font-size: 30rpx;
margin: 12rpx 0 8rpx;
white-space: nowrap;
overflow: hidden;
diff --git a/wechat_jiaxuan/components/disProduct/index.js b/wechat_jiaxuan/components/disProduct/index.js
index e2cecb3..59064f2 100644
--- a/wechat_jiaxuan/components/disProduct/index.js
+++ b/wechat_jiaxuan/components/disProduct/index.js
@@ -82,11 +82,11 @@
},
touchmove(e) {
var touchMove = e.detail.scrollTop;
- if(touchDot - touchMove > 16){
+ if(touchMove - touchDot > 24){
touchDot = touchMove
this.fadeOut();
}
- if(touchDot - touchMove > 16){
+ if(touchDot - touchMove > 24){
touchDot = touchMove
setTimeout(() => {
this.setData({ showTouch: true })
diff --git a/wechat_jiaxuan/components/disProduct/index.less b/wechat_jiaxuan/components/disProduct/index.less
index ad28a33..eaac6c2 100644
--- a/wechat_jiaxuan/components/disProduct/index.less
+++ b/wechat_jiaxuan/components/disProduct/index.less
@@ -28,12 +28,11 @@
.main_content {
display: flex;
- height: 100%;
+ height: calc( 100% - 120rpx );
.main_left {
width: 160rpx;
height: 100%;
border-radius: 0rpx 16rpx 16rpx 0rpx;
-
.item {
width: 160rpx;
height: 100rpx;
@@ -166,7 +165,7 @@
}
}
.goods_list {
- height: calc( 100% - 222rpx);
+ height: 100%;
width: 590rpx;
box-sizing: border-box;
padding: 12rpx 40rpx;
diff --git a/wechat_jiaxuan/components/disProduct/index.wxss b/wechat_jiaxuan/components/disProduct/index.wxss
index 6c7b93f..00ad83b 100644
--- a/wechat_jiaxuan/components/disProduct/index.wxss
+++ b/wechat_jiaxuan/components/disProduct/index.wxss
@@ -24,7 +24,7 @@
}
.main_content {
display: flex;
- height: 100%;
+ height: calc(100% - 120rpx);
}
.main_content .main_left {
width: 160rpx;
@@ -153,7 +153,7 @@
background-color: #333333;
}
.main_content .main_right .goods_list {
- height: calc(100% - 222rpx);
+ height: 100%;
width: 590rpx;
box-sizing: border-box;
padding: 12rpx 40rpx;
diff --git a/wechat_jiaxuan/components/disRealpic/index.js b/wechat_jiaxuan/components/disRealpic/index.js
index 443057c..582dd03 100644
--- a/wechat_jiaxuan/components/disRealpic/index.js
+++ b/wechat_jiaxuan/components/disRealpic/index.js
@@ -15,6 +15,8 @@
menuButtonInfo: Object
},
data: {
+ acVid: '',
+ viewIdList: [],
// 鍔ㄧ敾
showTouch: true,
animationData: {},
@@ -77,11 +79,11 @@
},
touchmove(e) {
var touchMove = e.detail.scrollTop;
- if (touchDot - touchMove > 16) {
+ if(touchMove - touchDot > 24){
touchDot = touchMove
this.fadeOut();
}
- if (touchDot - touchMove > 16) {
+ if(touchDot - touchMove > 24){
touchDot = touchMove
setTimeout(() => {
this.setData({ showTouch: true })
@@ -186,18 +188,31 @@
}
},
videoClick(e) {
- const {
- videourl
- } = e.currentTarget.dataset
-
- let videoPlay = this.selectComponent('.videoPlay');
- if (videoPlay) {
- videoPlay.startPlayVideo(videourl, this);
+ const { id } = e.currentTarget.dataset
+ const { dataList, acVid, viewIdList } = this.data
+ const index = viewIdList.findIndex(i => i === 'video' + id)
+ if(acVid){
+ if('video' + id != acVid){
+ wx.createVideoContext(acVid, this).pause()
+ wx.createVideoContext('video' + id, this).play()
+ this.setData({ acVid: 'video' + id })
+ }
+ }else{
+ this.setData({ acVid: 'video' + id })
+ wx.createVideoContext('video' + id, this).play()
}
- console.log(videourl + "-------------------------------------")
- // wx.previewMedia({
- // sources: [{ url: videourl, type: 'video' }]
- // })
+ dataList.forEach(ite => {
+ if(id === ite.id && index === -1){
+ ite.viewCount += 1
+ viewIdList.push('video' + id)
+ actionDo({
+ actionType: 'view',
+ id: id
+ })
+ this.setData({ viewIdList })
+ }
+ })
+ this.setData({ dataList })
},
priviewFull(e) {
const item = e.currentTarget.dataset.item
@@ -239,14 +254,7 @@
const item = e.currentTarget.dataset.item
console.log('item', item);
if (item.openType == 'video') {
-
- let videoPlay = this.selectComponent('.videoPlay');
- if (videoPlay) {
- videoPlay.startPlayVideo(item.openContent, this);
- }
- // wx.previewMedia({
- // sources: [{ url: item.openContent, type: 'video' }]
- // })
+ return
}
if (item.openType == 'link') {
wx.navigateTo({
diff --git a/wechat_jiaxuan/components/disRealpic/index.json b/wechat_jiaxuan/components/disRealpic/index.json
index b2baa38..32640e0 100644
--- a/wechat_jiaxuan/components/disRealpic/index.json
+++ b/wechat_jiaxuan/components/disRealpic/index.json
@@ -1,6 +1,3 @@
{
- "component": true,
- "usingComponents": {
- "videoPlay": "/components/videoPlay/index"
- }
+ "component": true
}
\ No newline at end of file
diff --git a/wechat_jiaxuan/components/disRealpic/index.less b/wechat_jiaxuan/components/disRealpic/index.less
index b82c113..0af99a8 100644
--- a/wechat_jiaxuan/components/disRealpic/index.less
+++ b/wechat_jiaxuan/components/disRealpic/index.less
@@ -146,16 +146,12 @@
height: 100rpx;
}
.item {
- width: 324rpx;
- float: left;
+ width: 100%;
margin-bottom: 32rpx;
margin-right: 0;
- &:nth-of-type(2n){
- margin-right: 22rpx;
- }
.img_wrap {
width: 100%;
- height: 182rpx;
+ height: 376rpx;
border-radius: 8rpx;
overflow: hidden;
position: relative;
@@ -211,6 +207,7 @@
}
.name {
+ font-size: 30rpx;
margin: 12rpx 0 8rpx;
white-space: nowrap;
overflow: hidden;
diff --git a/wechat_jiaxuan/components/disRealpic/index.wxml b/wechat_jiaxuan/components/disRealpic/index.wxml
index 1a9e570..422a6f9 100644
--- a/wechat_jiaxuan/components/disRealpic/index.wxml
+++ b/wechat_jiaxuan/components/disRealpic/index.wxml
@@ -38,15 +38,14 @@
<!-- goods_list -->
<scroll-view bindscrolltoupper="bindscrolltoupper" bindscrolltolower="scrolltolower" binddragging="touchmove" binddragstart="touchstart" scroll-y enhanced class="goods_list">
<view class="empty"></view>
- <view wx:for="{{ dataList }}" data-item="{{item}}" class="item" bindtap="handleDetail">
- <view class="img_wrap">
+ <view wx:for="{{ dataList }}" class="item" >
+ <view data-item="{{item}}" bindtap="handleDetail" wx:if="{{ item.openType != 'video' }}" class="img_wrap">
<image src="{{ item.coverImage }}" class="img"></image>
<view wx:if="{{ item.openType == 'link' }}" data-item="{{item}}" bindtap="priviewFull" class="full">
<text>VR</text>
</view>
- <image wx:if="{{ item.openType == 'video' }}" bindtap="videoClick" data-videourl="{{ item.openContent }}" class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image>
- <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image>
</view>
+ <video id="video{{item.id}}" class="img_wrap" wx:if="{{ item.openType == 'video' }}" src="{{item.openContent}}" poster="{{ item.coverImage }}" data-id="{{ item.id }}" bindplay="videoClick"></video>
<view class="content">
<view class="name">{{ item.title }}</view>
</view>
@@ -64,8 +63,5 @@
</scroll-view>
</view>
</view>
-
-
- <videoPlay class="videoPlay"/>
</view>
<wxs module="math" src="../../utils/math.wxs"></wxs>
\ No newline at end of file
diff --git a/wechat_jiaxuan/components/disRealpic/index.wxss b/wechat_jiaxuan/components/disRealpic/index.wxss
index caac04d..9fab89e 100644
--- a/wechat_jiaxuan/components/disRealpic/index.wxss
+++ b/wechat_jiaxuan/components/disRealpic/index.wxss
@@ -134,17 +134,13 @@
height: 100rpx;
}
.main_content .goods_list .item {
- width: 324rpx;
- float: left;
+ width: 100%;
margin-bottom: 32rpx;
margin-right: 0;
}
-.main_content .goods_list .item:nth-of-type(2n) {
- margin-right: 22rpx;
-}
.main_content .goods_list .item .img_wrap {
width: 100%;
- height: 182rpx;
+ height: 376rpx;
border-radius: 8rpx;
overflow: hidden;
position: relative;
@@ -193,6 +189,7 @@
padding: 0 10rpx;
}
.main_content .goods_list .item .name {
+ font-size: 30rpx;
margin: 12rpx 0 8rpx;
white-space: nowrap;
overflow: hidden;
diff --git a/wechat_jiaxuan/pages/auth/auth.wxml b/wechat_jiaxuan/pages/auth/auth.wxml
index 592e369..e1b98e0 100644
--- a/wechat_jiaxuan/pages/auth/auth.wxml
+++ b/wechat_jiaxuan/pages/auth/auth.wxml
@@ -15,8 +15,8 @@
<text data-index="1" bindtap="onOpen" class="primary">銆奪BOM鐢ㄦ埛闅愮鏀跨瓥銆�</text>
</view>
</view>
- <button class="btn" wx:if="{{ !agreementFalg }}" bindtap="loginIn">鎵嬫満鍙峰揩鎹风櫥褰�</button>
- <button wx:else class="btn" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">鎵嬫満鍙峰揩鎹风櫥褰�</button>
+ <button hover-class="none" class="btn" wx:if="{{ !agreementFalg }}" bindtap="loginIn">鎵嬫満鍙峰揩鎹风櫥褰�</button>
+ <button hover-class="none" wx:else class="btn" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">鎵嬫満鍙峰揩鎹风櫥褰�</button>
</view>
</view>
<!-- -->
diff --git a/wechat_jiaxuan/pages/calculator/index.wxml b/wechat_jiaxuan/pages/calculator/index.wxml
index fc447c3..aefac9e 100644
--- a/wechat_jiaxuan/pages/calculator/index.wxml
+++ b/wechat_jiaxuan/pages/calculator/index.wxml
@@ -56,7 +56,7 @@
<view class="form-item">
<view class="submit-btn" bindtap="submit" wx:if="{{ userPhone != null && userPhone != 'undefined' && userPhone.length === 11 }}">绔嬪嵆璁$畻</view>
- <button class="submit-btn" wx:else
+ <button hover-class="none" class="submit-btn" wx:else
open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">绔嬪嵆璁$畻</button>
</view>
</view>
diff --git a/wechat_jiaxuan/pages/consult/consult.js b/wechat_jiaxuan/pages/consult/consult.js
index 5162839..bba30d3 100644
--- a/wechat_jiaxuan/pages/consult/consult.js
+++ b/wechat_jiaxuan/pages/consult/consult.js
@@ -138,16 +138,16 @@
},
touchmove(e) {
var touchMove = e.detail.scrollTop;
- if(touchDot - touchMove > 16){
+ if(touchMove - touchDot >24){
touchDot = touchMove
this.fadeOut();
}
- if(touchDot - touchMove > 16){
+ if(touchDot - touchMove > 24){
touchDot = touchMove
setTimeout(() => {
this.setData({ showCate: true })
this.fadeIn();
- }, 200)
+ }, 300)
}
},
fadeIn: function () {
@@ -164,7 +164,7 @@
});
setTimeout(() => {
this.setData({ showCate: false });
- }, 200); // 鍔ㄧ敾鎸佺画鏃堕棿
+ }, 300); // 鍔ㄧ敾鎸佺画鏃堕棿
},
/**
* 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず
diff --git a/wechat_jiaxuan/pages/consult/detail.wxml b/wechat_jiaxuan/pages/consult/detail.wxml
index ec4f9e2..ee2e68f 100644
--- a/wechat_jiaxuan/pages/consult/detail.wxml
+++ b/wechat_jiaxuan/pages/consult/detail.wxml
@@ -10,7 +10,7 @@
<!-- footer -->
<view wx:if="{{ origin && origin == 'b' }}">
- <button open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">鍒嗕韩</button>
+ <button hover-class="none" open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">鍒嗕韩</button>
</view>
<view wx:else class="footer" style="padding-bottom: {{bottomLift}}px;">
<view class="btns">
@@ -18,7 +18,7 @@
<image class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
<view class="name">鏀惰棌</view>
</view> -->
- <button open-type="share" class="item" bindtap="handleShare">
+ <button hover-class="none" open-type="share" class="item" bindtap="handleShare">
<image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
<view class="name">鍒嗕韩</view>
</button>
diff --git a/wechat_jiaxuan/pages/detailDis/case.wxml b/wechat_jiaxuan/pages/detailDis/case.wxml
index 69da20c..eca4ef1 100644
--- a/wechat_jiaxuan/pages/detailDis/case.wxml
+++ b/wechat_jiaxuan/pages/detailDis/case.wxml
@@ -27,16 +27,16 @@
</view>
<!-- footer -->
<view wx:if="{{ origin && origin == 'b' }}">
- <button open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">鍒嗕韩</button>
+ <button hover-class="none" open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">鍒嗕韩</button>
</view>
<view wx:else class="footer" style="padding-bottom: {{bottomLift}}px;">
<view class="btns">
- <button class="item btn">
- <image data-code="collect_cancel" bindtap="handleAction" wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
- <image wx:else data-code="collect" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
+ <button hover-class="none" data-code="{{ info.isCollection ? 'collect_cancel' : 'collect' }}" bindtap="handleAction" class="item btn">
+ <image wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
+ <image wx:else class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
<view class="name">鏀惰棌</view>
</button>
- <button open-type="share" class="item btn" bindtap="handleShare">
+ <button hover-class="none" open-type="share" class="item btn" bindtap="handleShare">
<image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
<view class="name">鍒嗕韩</view>
</button>
diff --git a/wechat_jiaxuan/pages/detailDis/product.wxml b/wechat_jiaxuan/pages/detailDis/product.wxml
index 3de3cca..6fb6f4b 100644
--- a/wechat_jiaxuan/pages/detailDis/product.wxml
+++ b/wechat_jiaxuan/pages/detailDis/product.wxml
@@ -55,16 +55,16 @@
</view>
<!-- footer -->
<view wx:if="{{ origin && origin == 'b' }}">
- <button open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">鍒嗕韩</button>
+ <button hover-class="none" open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">鍒嗕韩</button>
</view>
<view wx:else class="footer" style="padding-bottom: {{bottomLift}}px;">
<view class="btns">
- <button class="item btn">
- <image data-code="collect_cancel" bindtap="handleAction" wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
- <image wx:else data-code="collect" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
+ <button hover-class="none" data-code="{{ info.isCollection ? 'collect_cancel' : 'collect' }}" bindtap="handleAction" class="item btn">
+ <image wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
+ <image wx:else class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
<view class="name">鏀惰棌</view>
</button>
- <button open-type="share" class="item btn" bindtap="handleShare">
+ <button hover-class="none" open-type="share" class="item btn" bindtap="handleShare">
<image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
<view class="name">鍒嗕韩</view>
</button>
diff --git a/wechat_jiaxuan/pages/detailDis/realpic.wxml b/wechat_jiaxuan/pages/detailDis/realpic.wxml
index ee3a652..e20d5ec 100644
--- a/wechat_jiaxuan/pages/detailDis/realpic.wxml
+++ b/wechat_jiaxuan/pages/detailDis/realpic.wxml
@@ -7,16 +7,16 @@
<image data-url="{{ item }}" bindtap="priviewSpace" class="info_item" wx:for="{{ info.contentImgList }}" src="{{ item }}" mode="widthFix"></image>
<view class="desc">{{ info.contentText || '' }}</view>
<view wx:if="{{ origin && origin == 'b' }}">
- <button open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">鍒嗕韩</button>
+ <button hover-class="none" open-type="share" style="bottom: {{bottomLift + 6}}px;" class="share_btn">鍒嗕韩</button>
</view>
<view wx:else class="footer" style="padding-bottom: {{bottomLift}}px;">
<view class="btns">
- <button class="item btn">
- <image data-code="collect_cancel" bindtap="handleAction" wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
- <image wx:else data-code="collect" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
+ <button hover-class="none" data-code="{{ info.isCollection ? 'collect_cancel' : 'collect' }}" bindtap="handleAction" class="item btn">
+ <image wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
+ <image wx:else class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
<view class="name">鏀惰棌</view>
</button>
- <button open-type="share" class="item btn" bindtap="handleShare">
+ <button hover-class="none" open-type="share" class="item btn" bindtap="handleShare">
<image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
<view class="name">鍒嗕韩</view>
</button>
diff --git a/wechat_jiaxuan/pages/kefu/index.wxml b/wechat_jiaxuan/pages/kefu/index.wxml
index 39c2f6d..26c50a5 100644
--- a/wechat_jiaxuan/pages/kefu/index.wxml
+++ b/wechat_jiaxuan/pages/kefu/index.wxml
@@ -6,7 +6,7 @@
<!-- footer -->
<view class="footer" style="padding-bottom: {{bottomLift}}px;">
<view class="btns">
- <button open-type="share" class="item btn" bindtap="handleShare">
+ <button hover-class="none" open-type="share" class="item btn" bindtap="handleShare">
<image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
<view class="name">鍒嗕韩</view>
</button>
diff --git a/wechat_jiaxuan/pages/mine/mine.js b/wechat_jiaxuan/pages/mine/mine.js
index f94275b..e1e31c0 100644
--- a/wechat_jiaxuan/pages/mine/mine.js
+++ b/wechat_jiaxuan/pages/mine/mine.js
@@ -1,4 +1,7 @@
-import { getMemberInfo, getDictData } from '../../api/index'
+import {
+ getMemberInfo,
+ getDictData
+} from '../../api/index'
Page({
/**
* 椤甸潰鐨勫垵濮嬫暟鎹�
@@ -8,7 +11,7 @@
clientTop: 0,
member: {},
- housetype: '',
+ houseType: {},
IMG_LIUCHENG: '',
MINE_BG: ''
},
@@ -18,55 +21,75 @@
*/
onLoad(options) {
const res = wx.getMenuButtonBoundingClientRect()
- this.setData({clientHeight: res.height})
- this.setData({clientTop: res.top})
+ this.setData({
+ clientHeight: res.height
+ })
+ this.setData({
+ clientTop: res.top
+ })
},
- onShow(){
+ onShow() {
this.initData()
},
initData() {
getMemberInfo().then(res => {
- this.setData({member: res.data})
- if(res.data.housetype){
- const temp = res.data.housetype.split('-')
- let houseType = {
- val1: temp[0],
- val2: temp[1],
- val3: temp[2],
- val4: temp[3],
- val5: temp[4],
+ console.log('res', res);
+ if (res.code == 200) {
+ this.setData({
+ member: res.data
+ })
+ if (res.data.housetype) {
+ const temp = res.data.housetype.split('-')
+ let houseType = {
+ val1: temp[0],
+ val2: temp[1],
+ val3: temp[2],
+ val4: temp[3],
+ val5: temp[4],
+ }
+ this.setData({
+ houseType
+ })
+ }else{
+ this.setData({ houseType: {} })
}
- this.setData({houseType})
+ }else{
+ this.setData({ member: {}, houseType: {} })
}
+
})
getDictData({
code: 'WEIXIN_DEFAULT_IMGS',
label: 'IMG_LIUCHENG'
}).then(res => {
- this.setData({ IMG_LIUCHENG: res.data.code })
+ this.setData({
+ IMG_LIUCHENG: res.data.code
+ })
})
getDictData({
code: 'WEIXIN_DEFAULT_IMGS',
label: 'MINE_BG'
}).then(res => {
- this.setData({ MINE_BG: res.data.code })
+ this.setData({
+ MINE_BG: res.data.code
+ })
})
},
changePath(e) {
// 椤甸潰璺宠浆
- let temp = ['mysub', 'collect', 'favorite','index']
+ let temp = ['mysub', 'collect', 'favorite', 'index']
const index = e.currentTarget.dataset.index
- if(index == '4'){
+ if (index == '4') {
wx.navigateToMiniProgram({
appId: 'wx9910433b937fff92',
path: '',
envVersion: 'trial',
- extraData: {
+ extraData: {
origin: 'c'
}
})
}
- if(index == '5'){
+ if (index == '5') {
wx.navigateTo({
url: `/pages/sets/index`,
})
diff --git a/wechat_jiaxuan/pages/sets/index.js b/wechat_jiaxuan/pages/sets/index.js
index 45e6bc8..2c3f096 100644
--- a/wechat_jiaxuan/pages/sets/index.js
+++ b/wechat_jiaxuan/pages/sets/index.js
@@ -62,6 +62,7 @@
if (res && res.data.token) {
wx.setStorageSync('sessionKey', res.data.sessionKey)
wx.setStorageSync('token', res.data.token)
+ wx.setStorageSync('member', res.data)
this.setData({
showLogout: false
})
diff --git a/wechat_jiaxuan/pages/sets/index.less b/wechat_jiaxuan/pages/sets/index.less
index c60da15..133a723 100644
--- a/wechat_jiaxuan/pages/sets/index.less
+++ b/wechat_jiaxuan/pages/sets/index.less
@@ -16,7 +16,7 @@
}
.modal{
width: 610rpx;
- height: 450rpx;
+ max-height: 450rpx;
background: #FFFFFF;
border-radius: 8rpx;
padding: 60rpx 40rpx 30rpx;
diff --git a/wechat_jiaxuan/pages/sets/index.wxml b/wechat_jiaxuan/pages/sets/index.wxml
index 16f9867..72057d9 100644
--- a/wechat_jiaxuan/pages/sets/index.wxml
+++ b/wechat_jiaxuan/pages/sets/index.wxml
@@ -24,7 +24,7 @@
</view>
</view>
</van-popup>
- <van-popup show="{{ showLogout }}" round bind:close="appClose">
+ <van-popup show="{{ showLogout }}" close-on-click-overlay="{{false}}" round bind:close="appClose">
<view class="modal">
<view class="title">鎻愰啋</view>
<view class="text">浣犳槸鍚﹁閫�鍑鸿灏忕▼搴忓悧</view>
diff --git a/wechat_jiaxuan/pages/sets/index.wxss b/wechat_jiaxuan/pages/sets/index.wxss
index d59ed0d..cbcbb79 100644
--- a/wechat_jiaxuan/pages/sets/index.wxss
+++ b/wechat_jiaxuan/pages/sets/index.wxss
@@ -16,7 +16,7 @@
}
.modal {
width: 610rpx;
- height: 450rpx;
+ max-height: 450rpx;
background: #FFFFFF;
border-radius: 8rpx;
padding: 60rpx 40rpx 30rpx;
diff --git a/wechat_jiaxuan/pages/userinfo/collect.js b/wechat_jiaxuan/pages/userinfo/collect.js
index 6e68b13..df3c532 100644
--- a/wechat_jiaxuan/pages/userinfo/collect.js
+++ b/wechat_jiaxuan/pages/userinfo/collect.js
@@ -17,9 +17,8 @@
this.getList()
},
onShow() {
- const dataList = this.data.dataList
eventBus.once('caseDeBack', (info) => {
- const temp = dataList.filter(item => {
+ const temp = this.data.dataList.filter(item => {
if (item.id === info.id) {
item.isCollection = info.isCollection
item.viewCount++
@@ -29,7 +28,7 @@
this.setData({ dataList: temp})
})
eventBus.once('productDeBack', (info) => {
- const temp = dataList.filter(item => {
+ const temp = this.data.dataList.filter(item => {
if (item.id === info.id) {
item.isCollection = info.isCollection
item.viewCount++
@@ -39,7 +38,7 @@
this.setData({ dataList: temp})
})
eventBus.once('realpicDeBack', (info) => {
- const temp = dataList.filter(item => {
+ const temp = this.data.dataList.filter(item => {
if (item.id === info.id) {
item.isCollection = info.isCollection
item.viewCount++
diff --git a/wechat_jiaxuan/pages/userinfo/index.js b/wechat_jiaxuan/pages/userinfo/index.js
index 34e0e04..18074ca 100644
--- a/wechat_jiaxuan/pages/userinfo/index.js
+++ b/wechat_jiaxuan/pages/userinfo/index.js
@@ -2,7 +2,6 @@
uploadUrl,
editMember,
getMemberInfo,
- getArea,
getWxMiniPhone
} from '../../api/index'
Page({
@@ -123,9 +122,6 @@
}
})
- })
- getArea().then(res => {
- this.setData({ areaData: res.data })
})
},
regionChange(e) {
diff --git a/wechat_jiaxuan/pages/userinfo/index.wxml b/wechat_jiaxuan/pages/userinfo/index.wxml
index dc9f241..b4792a4 100644
--- a/wechat_jiaxuan/pages/userinfo/index.wxml
+++ b/wechat_jiaxuan/pages/userinfo/index.wxml
@@ -1,6 +1,6 @@
<view class="container">
<image class="avatar" src="{{ imgurlFull ? imgurlFull : '../../static/images/default_avatar.png' }}"></image>
- <button open-type="chooseAvatar" bindchooseavatar="getBindchooseavatar" class="avatar_btn">鏇存崲澶村儚</button>
+ <button hover-class="none" open-type="chooseAvatar" bindchooseavatar="getBindchooseavatar" class="avatar_btn">鏇存崲澶村儚</button>
<view class="list">
<view class="line">
<view class="label">鏄电О</view>
@@ -16,7 +16,7 @@
<view class="label">鐢佃瘽</view>
<view class="wechat_phone">
<van-field placeholder="璇疯緭鍏ョ數璇�" class="field" type="number" border="{{ false }}" model:value="{{ phone }}" maxlength="{{ 11 }}" clearable />
- <button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="btn">寰俊鎺堟潈</button>
+ <button hover-class="none" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" class="btn">寰俊鎺堟潈</button>
</view>
</view>
<view class="line">
diff --git a/wechat_jiaxuan/project.private.config.json b/wechat_jiaxuan/project.private.config.json
index 6d3511e..cec8671 100644
--- a/wechat_jiaxuan/project.private.config.json
+++ b/wechat_jiaxuan/project.private.config.json
@@ -39,7 +39,7 @@
},
{
"name": "",
- "pathName": "pages/auth/auth",
+ "pathName": "pages/userinfo/collect",
"query": "",
"launchMode": "default",
"scene": null
@@ -53,7 +53,7 @@
},
{
"name": "",
- "pathName": "pages/productVideo/index",
+ "pathName": "pages/auth/auth",
"query": "",
"launchMode": "default",
"scene": null
diff --git a/wechat_jiaxuan/static/icon/zixun_ic_liulan.png b/wechat_jiaxuan/static/icon/zixun_ic_liulan.png
index 1ca757c..ca2c4c0 100644
--- a/wechat_jiaxuan/static/icon/zixun_ic_liulan.png
+++ b/wechat_jiaxuan/static/icon/zixun_ic_liulan.png
Binary files differ
diff --git a/wechat_jiaxuan/utils/request.js b/wechat_jiaxuan/utils/request.js
index 865d53a..ea32a8d 100644
--- a/wechat_jiaxuan/utils/request.js
+++ b/wechat_jiaxuan/utils/request.js
@@ -25,9 +25,6 @@
resolve(res.data || true)
} else {
if (options.data && options.data.isAuth && (res.data.code == 5111 || res.data.code == 5112 || res.data.code == 5110)) {
- // wx.switchTab({
- // url: '/pages/index/index',
- // })
resolve(res.data)
res.data.message && wx.showToast({
title: res.data.message || '鍙戠敓閿欒',
@@ -36,6 +33,7 @@
return
}
if(res.data.code == 5111 || res.data.code == 5112 || res.data.code == 5110){
+ resolve(res.data)
return
}
res.data.message && wx.showToast({
diff --git a/wechat_staff/app.js b/wechat_staff/app.js
index fab7e6b..498f908 100644
--- a/wechat_staff/app.js
+++ b/wechat_staff/app.js
@@ -17,7 +17,7 @@
onShow() {
let users = wx.getStorageSync('token')
if (users == null) {
- wx.redirectTo({
+ wx.reLaunch({
url: '/pages/login/index',
})
wx.showLoading({
diff --git a/wechat_staff/app.wxss b/wechat_staff/app.wxss
index 4ae6440..b749b0a 100644
--- a/wechat_staff/app.wxss
+++ b/wechat_staff/app.wxss
@@ -11,6 +11,9 @@
display: flex;
border-radius: 8rpx;
}
+button.button-hover {
+ box-shadow: none;
+}
.container {
min-height: 100vh;
padding: 0;
diff --git a/wechat_staff/components/detailFooter/index.wxml b/wechat_staff/components/detailFooter/index.wxml
index 4c805a6..3b5f482 100644
--- a/wechat_staff/components/detailFooter/index.wxml
+++ b/wechat_staff/components/detailFooter/index.wxml
@@ -23,11 +23,11 @@
<!-- -->
<view wx:if="{{ showShare }}" class="shade_modal" style="padding-bottom: {{bottomLift}}px;">
<view class="btns">
- <button class="item" bindtap="handleShare">
+ <button hover-class="none" class="item" bindtap="handleShare">
<image src="../../static/icon/wechat.png"></image>
<view>灏忕▼搴忓垎浜�</view>
</button>
- <button class="item" bindtap="handleDown">
+ <button hover-class="none" class="item" bindtap="handleDown">
<image src="../../static/icon/download.png"></image>
<view>涓嬭浇娴锋姤</view>
</button>
diff --git a/wechat_staff/components/disCase/index.js b/wechat_staff/components/disCase/index.js
index bd0a568..d1d754d 100644
--- a/wechat_staff/components/disCase/index.js
+++ b/wechat_staff/components/disCase/index.js
@@ -45,16 +45,16 @@
},
touchmove(e) {
var touchMove = e.detail.scrollTop;
- if(touchMove - touchDot > 16){
+ if(touchMove - touchDot > 24){
touchDot = touchMove
this.fadeOut();
}
- if(touchDot - touchMove > 20){
+ if(touchDot - touchMove > 24){
touchDot = touchMove
setTimeout(() => {
this.setData({ showTouch: true })
this.fadeIn();
- })
+ }, 200)
}
},
fadeIn: function () {
diff --git a/wechat_staff/components/disCase/index.less b/wechat_staff/components/disCase/index.less
index 4f85a73..08832b0 100644
--- a/wechat_staff/components/disCase/index.less
+++ b/wechat_staff/components/disCase/index.less
@@ -159,6 +159,7 @@
padding: 0 10rpx;
}
.name{
+ font-size: 30rpx;
margin: 12rpx 0 8rpx;
white-space: nowrap;
overflow: hidden;
diff --git a/wechat_staff/components/disCase/index.wxss b/wechat_staff/components/disCase/index.wxss
index a02ce6a..8951f1d 100644
--- a/wechat_staff/components/disCase/index.wxss
+++ b/wechat_staff/components/disCase/index.wxss
@@ -159,6 +159,7 @@
padding: 0 10rpx;
}
.main_content .goods_list .item .name {
+ font-size: 30rpx;
margin: 12rpx 0 8rpx;
white-space: nowrap;
overflow: hidden;
diff --git a/wechat_staff/components/disProduct/index.js b/wechat_staff/components/disProduct/index.js
index 08538c9..114c58b 100644
--- a/wechat_staff/components/disProduct/index.js
+++ b/wechat_staff/components/disProduct/index.js
@@ -53,16 +53,16 @@
},
touchmove(e) {
var touchMove = e.detail.scrollTop;
- if(touchMove - touchDot > 16){
+ if(touchMove - touchDot > 24){
touchDot = touchMove
this.fadeOut();
}
- if(touchDot - touchMove > 20){
+ if(touchDot - touchMove > 24){
touchDot = touchMove
setTimeout(() => {
this.setData({ showTouch: true })
this.fadeIn();
- })
+ }, 200)
}
},
fadeIn: function () {
diff --git a/wechat_staff/components/disProduct/index.less b/wechat_staff/components/disProduct/index.less
index a6e51ad..2d8c1c7 100644
--- a/wechat_staff/components/disProduct/index.less
+++ b/wechat_staff/components/disProduct/index.less
@@ -29,12 +29,11 @@
.main_content {
display: flex;
- height: 100%;
+ height: calc( 100% - 120rpx );
.main_left {
width: 160rpx;
height: 100%;
border-radius: 0rpx 16rpx 16rpx 0rpx;
-
.item {
width: 160rpx;
height: 100rpx;
@@ -167,7 +166,7 @@
}
.goods_list {
- height: calc( 100% - 222rpx);
+ height: 100%;
width: 590rpx;
box-sizing: border-box;
padding: 12rpx 40rpx;
diff --git a/wechat_staff/components/disProduct/index.wxss b/wechat_staff/components/disProduct/index.wxss
index c683bc0..bd5aa69 100644
--- a/wechat_staff/components/disProduct/index.wxss
+++ b/wechat_staff/components/disProduct/index.wxss
@@ -24,7 +24,7 @@
}
.main_content {
display: flex;
- height: 100%;
+ height: calc(100% - 120rpx);
}
.main_content .main_left {
width: 160rpx;
@@ -151,7 +151,7 @@
background-color: #333333;
}
.main_content .main_right .goods_list {
- height: calc(100% - 222rpx);
+ height: 100%;
width: 590rpx;
box-sizing: border-box;
padding: 12rpx 40rpx;
diff --git a/wechat_staff/components/disRealpic/index.js b/wechat_staff/components/disRealpic/index.js
index fe78505..94dce6b 100644
--- a/wechat_staff/components/disRealpic/index.js
+++ b/wechat_staff/components/disRealpic/index.js
@@ -8,6 +8,8 @@
menuButtonInfo: Object
},
data: {
+ acVid: '',
+ viewIdList: [],
// 鍔ㄧ敾
showTouch: true,
animationData: {},
@@ -43,16 +45,16 @@
},
touchmove(e) {
var touchMove = e.detail.scrollTop;
- if(touchMove - touchDot > 16){
+ if(touchMove - touchDot > 24){
touchDot = touchMove
this.fadeOut();
}
- if(touchDot - touchMove > 16){
+ if(touchDot - touchMove > 24){
touchDot = touchMove
setTimeout(() => {
this.setData({ showTouch: true })
this.fadeIn();
- })
+ }, 200)
}
},
fadeIn: function () {
@@ -176,12 +178,6 @@
handleDetail(e) {
const item = e.currentTarget.dataset.item
console.log('item', item);
- if(item.openType == 'video'){
- let videoPlay = this.selectComponent('.videoPlay');
- if(videoPlay){
- videoPlay.startPlayVideo(item.openContent,this );
- }
- }
if(item.openType == 'link'){
wx.navigateTo({
url: '/pages/webView/index',
@@ -197,6 +193,35 @@
})
}
},
+ videoClick(e) {
+ const { id } = e.currentTarget.dataset
+ const { dataList, acVid, viewIdList } = this.data
+ const index = viewIdList.findIndex(i => i === 'video' + id)
+ console.log('acVid', acVid);
+ console.log('id', id);
+ if(acVid){
+ if('video' + id != acVid){
+ wx.createVideoContext(acVid, this).pause()
+ wx.createVideoContext('video' + id, this).play()
+ this.setData({ acVid: 'video' + id })
+ }
+ }else{
+ this.setData({ acVid: 'video' + id })
+ wx.createVideoContext('video' + id, this).play()
+ }
+ dataList.forEach(ite => {
+ if(id === ite.id && index === -1){
+ ite.viewCount += 1
+ viewIdList.push('video' + id)
+ actionDo({
+ actionType: 'view',
+ id: id
+ })
+ this.setData({ viewIdList })
+ }
+ })
+ this.setData({ dataList })
+ },
tagClick(e) {
if(this.data.isLoading){
return
diff --git a/wechat_staff/components/disRealpic/index.json b/wechat_staff/components/disRealpic/index.json
index b2baa38..32640e0 100644
--- a/wechat_staff/components/disRealpic/index.json
+++ b/wechat_staff/components/disRealpic/index.json
@@ -1,6 +1,3 @@
{
- "component": true,
- "usingComponents": {
- "videoPlay": "/components/videoPlay/index"
- }
+ "component": true
}
\ No newline at end of file
diff --git a/wechat_staff/components/disRealpic/index.less b/wechat_staff/components/disRealpic/index.less
index 92135a4..53871c0 100644
--- a/wechat_staff/components/disRealpic/index.less
+++ b/wechat_staff/components/disRealpic/index.less
@@ -145,15 +145,12 @@
height: 100rpx;
}
.item {
- width: 324rpx;
- margin-bottom: 32rpx;
- float: left;
- &:nth-of-type(2n){
- margin-right: 22rpx;
- }
+ width: 100%;
+ margin-bottom: 32rpx;
+ margin-right: 0;
.img_wrap {
width: 100%;
- height: 182rpx;
+ height: 376rpx;
border-radius: 8rpx;
overflow: hidden;
position: relative;
@@ -209,6 +206,7 @@
}
.name {
+ font-size: 30rpx;
margin: 12rpx 0 8rpx;
white-space: nowrap;
overflow: hidden;
diff --git a/wechat_staff/components/disRealpic/index.wxml b/wechat_staff/components/disRealpic/index.wxml
index 22473aa..2ba68ec 100644
--- a/wechat_staff/components/disRealpic/index.wxml
+++ b/wechat_staff/components/disRealpic/index.wxml
@@ -38,15 +38,14 @@
<!-- goods_list -->
<scroll-view bindscrolltoupper="bindscrolltoupper" binddragging="touchmove" binddragstart="touchstart" bindscrolltolower="scrolltolower" scroll-y enhanced class="goods_list">
<view class="empty"></view>
- <view wx:for="{{ dataList }}" data-index="index" data-item="{{item}}" class="item {{(index%2 == 0 && index == dataList.length-1)?'lastitem':''}}" bindtap="handleDetail">
- <view class="img_wrap">
+ <view wx:for="{{ dataList }}" class="item {{(index%2 == 0 && index == dataList.length-1)?'lastitem':''}}">
+ <view data-item="{{item}}" bindtap="handleDetail" wx:if="{{ item.openType != 'video' }}" class="img_wrap">
<image src="{{ item.coverImage }}" class="img"></image>
<view wx:if="{{ item.openType == 'link' }}" data-item="{{item}}" bindtap="priviewFull" class="full">
<text>VR</text>
</view>
- <image wx:if="{{ item.openType == 'video' }}" bindtap="videoClick" data-videourl="{{ item.openContent }}" class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image>
- <image wx:if="{{ false }}" class="new" src="../../static/icon/chanpin_ic_new@2x.png" mode="widthFix"></image>
</view>
+ <video id="video{{item.id}}" class="img_wrap" wx:if="{{ item.openType == 'video' }}" src="{{item.openContent}}" poster="{{ item.coverImage }}" data-id="{{ item.id }}" bindplay="videoClick"></video>
<view class="content">
<view class="name">{{ item.title }}</view>
</view>
@@ -64,7 +63,5 @@
</scroll-view>
</view>
</view>
-
- <videoPlay class="videoPlay"/>
</view>
<wxs module="format" src="../../utils/format.wxs"></wxs>
\ No newline at end of file
diff --git a/wechat_staff/components/disRealpic/index.wxss b/wechat_staff/components/disRealpic/index.wxss
index 58589b7..9a5247a 100644
--- a/wechat_staff/components/disRealpic/index.wxss
+++ b/wechat_staff/components/disRealpic/index.wxss
@@ -132,16 +132,13 @@
height: 100rpx;
}
.main_content .goods_list .item {
- width: 324rpx;
+ width: 100%;
margin-bottom: 32rpx;
- float: left;
-}
-.main_content .goods_list .item:nth-of-type(2n) {
- margin-right: 22rpx;
+ margin-right: 0;
}
.main_content .goods_list .item .img_wrap {
width: 100%;
- height: 182rpx;
+ height: 376rpx;
border-radius: 8rpx;
overflow: hidden;
position: relative;
@@ -190,6 +187,7 @@
padding: 0 10rpx;
}
.main_content .goods_list .item .name {
+ font-size: 30rpx;
margin: 12rpx 0 8rpx;
white-space: nowrap;
overflow: hidden;
diff --git a/wechat_staff/pages/client/index.json b/wechat_staff/pages/client/index.json
index 8835af0..965b8e8 100644
--- a/wechat_staff/pages/client/index.json
+++ b/wechat_staff/pages/client/index.json
@@ -1,3 +1,4 @@
{
- "usingComponents": {}
+ "usingComponents": {},
+ "navigationStyle": "custom"
}
\ No newline at end of file
diff --git a/wechat_staff/pages/client/index.wxml b/wechat_staff/pages/client/index.wxml
index ce2e854..3302972 100644
--- a/wechat_staff/pages/client/index.wxml
+++ b/wechat_staff/pages/client/index.wxml
@@ -1,3 +1,3 @@
<!--pages/client/index.wxml-->
<web-view wx:if="{{url !=null && url !=''}}" src="{{url}}"> </web-view>
-<button wx:else style="margin-top: 50%;width: 200rpx;font-size: 14px;" bind:tap="loadData">閲嶆柊鍔犺浇</button>
+<button hover-class="none" wx:else style="margin-top: 50%;width: 200rpx;font-size: 14px;" bind:tap="loadData">閲嶆柊鍔犺浇</button>
diff --git a/wechat_staff/pages/consult/consult.js b/wechat_staff/pages/consult/consult.js
index f4cbd5d..86f3eb6 100644
--- a/wechat_staff/pages/consult/consult.js
+++ b/wechat_staff/pages/consult/consult.js
@@ -136,11 +136,11 @@
},
touchmove(e) {
var touchMove = e.detail.scrollTop;
- if(touchMove - touchDot > 16){
+ if(touchMove - touchDot > 24){
touchDot = touchMove
this.fadeOut();
}
- if(touchDot - touchMove > 20){
+ if(touchDot - touchMove > 24){
setTimeout(() => {
this.setData({ showCate: true })
this.fadeIn();
diff --git a/wechat_staff/pages/consult/detail.wxml b/wechat_staff/pages/consult/detail.wxml
index 552bf59..0ea580e 100644
--- a/wechat_staff/pages/consult/detail.wxml
+++ b/wechat_staff/pages/consult/detail.wxml
@@ -24,11 +24,11 @@
<van-popup position="bottom" show="{{ showShare }}" bind:close="onClose">
<view class="share_modal">
<view class="btns">
- <button open-type="share" class="item" bindtap="handleShare">
+ <button hover-class="none" open-type="share" class="item" bindtap="handleShare">
<image src="../../static/icon/wechat.png"></image>
<view>鍙戦�佸ソ鍙�</view>
</button>
- <button class="item">
+ <button hover-class="none" class="item">
<image src="../../static/icon/download.png"></image>
<view>涓嬭浇娴锋姤</view>
</button>
diff --git a/wechat_staff/pages/detailDis/case.wxml b/wechat_staff/pages/detailDis/case.wxml
index 3de6630..0b9e900 100644
--- a/wechat_staff/pages/detailDis/case.wxml
+++ b/wechat_staff/pages/detailDis/case.wxml
@@ -28,12 +28,12 @@
<!-- footer -->
<view class="footer" style="padding-bottom: {{bottomLift}}px;">
<view class="btns">
- <button class="item btn">
+ <button hover-class="none" class="item btn">
<image data-code="collect_cancel" bindtap="handleAction" wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
<image wx:else data-code="collect" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
<view class="name">鏀惰棌</view>
</button>
- <button open-type="share" class="item btn" bindtap="handleShare">
+ <button hover-class="none" open-type="share" class="item btn" bindtap="handleShare">
<image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
<view class="name">鍒嗕韩</view>
</button>
diff --git a/wechat_staff/pages/detailDis/realpic.wxml b/wechat_staff/pages/detailDis/realpic.wxml
index 21ebea9..c174043 100644
--- a/wechat_staff/pages/detailDis/realpic.wxml
+++ b/wechat_staff/pages/detailDis/realpic.wxml
@@ -18,7 +18,7 @@
<!-- footer -->
<view class="footer" style="padding-bottom: {{bottomLift}}px;">
<view class="btns">
- <button class="item btn">
+ <button class="item btn">
<image data-code="collect_cancel" bindtap="handleAction" wx:if="{{ info.isCollection }}" class="icon" src="../../static/icon/detail_nav_collected.png" mode="widthFix"></image>
<image wx:else data-code="collect" bindtap="handleAction" class="icon" src="../../static/icon/detail_nav_collect.png" mode="widthFix"></image>
<view class="name">鏀惰棌</view>
diff --git a/wechat_staff/pages/kefu/fond.wxml b/wechat_staff/pages/kefu/fond.wxml
index 7a81d0f..3655f28 100644
--- a/wechat_staff/pages/kefu/fond.wxml
+++ b/wechat_staff/pages/kefu/fond.wxml
@@ -35,11 +35,11 @@
<!-- -->
<view wx:if="{{ showShare }}" class="shade_modal" style="padding-bottom: {{bottomLift}}px;">
<view class="btns">
- <button class="item" bindtap="handleShare">
+ <button hover-class="none" class="item" bindtap="handleShare">
<image src="../../static/icon/wechat.png"></image>
<view>灏忕▼搴忓垎浜�</view>
</button>
- <button class="item" bindtap="handleDown">
+ <button hover-class="none" class="item" bindtap="handleDown">
<image src="../../static/icon/download.png"></image>
<view>涓嬭浇娴锋姤</view>
</button>
diff --git a/wechat_staff/pages/kefu/index.wxml b/wechat_staff/pages/kefu/index.wxml
index e43bb39..7348230 100644
--- a/wechat_staff/pages/kefu/index.wxml
+++ b/wechat_staff/pages/kefu/index.wxml
@@ -10,13 +10,13 @@
<image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
<view class="name">鍒嗕韩</view>
</button> -->
- <button class="item btn" bindtap="handleShare">
+ <button hover-class="none" class="item btn" bindtap="handleShare">
<image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
<view class="name">鍒嗕韩</view>
</button>
<view class="sub_btn" >
<image class="icon" src="../../static/icon/home_ic_kefu.png" mode="widthFix"></image>
- <button class="sub_btn1" open-type="contact" bindcontact="handleContact">绔嬪嵆鍜ㄨ瀹㈡湇</button>
+ <button hover-class="none" class="sub_btn1" open-type="contact" bindcontact="handleContact">绔嬪嵆鍜ㄨ瀹㈡湇</button>
<!-- <view>绔嬪嵆鍜ㄨ瀹㈡湇</view> -->
</view>
</view>
diff --git a/wechat_staff/pages/login/index.js b/wechat_staff/pages/login/index.js
index 8ec8fb0..5f0f27a 100644
--- a/wechat_staff/pages/login/index.js
+++ b/wechat_staff/pages/login/index.js
@@ -166,7 +166,7 @@
}
})
} else {
- wx.redirectTo({
+ wx.reLaunch({
url: '/pages/login/index',
})
wx.hideLoading()
diff --git a/wechat_staff/pages/login/index.wxml b/wechat_staff/pages/login/index.wxml
index 2187148..70c204b 100644
--- a/wechat_staff/pages/login/index.wxml
+++ b/wechat_staff/pages/login/index.wxml
@@ -5,20 +5,20 @@
<!-- -->
<view class="btns">
<block wx:if="{{ status == '0' }}">
- <button class="btn speedy" wx:if="{{ !agreementFalg }}" bindtap="loginIn">鎵嬫満鍙峰揩鎹风櫥褰�</button>
+ <button hover-class="none" class="btn speedy" wx:if="{{ !agreementFalg }}" bindtap="loginIn">鎵嬫満鍙峰揩鎹风櫥褰�</button>
<button wx:else class="btn speedy" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">鎵嬫満鍙峰揩鎹风櫥褰�</button>
<view bindtap="changeStatus" class="btn">鎵嬫満楠岃瘉鐮佺櫥褰�</view>
</block>
<block wx:if="{{ status == '1' }}">
<view class="line">
<image class="icon" src="../../static/login_ic_phone@2x.png" mode="widthFix"></image>
- <van-field class="input" maxlength="{{ 11 }}" border="{{false}}" model:value="{{ phone }}" placeholder="璇疯緭鍏ユ墜鏈哄彿" />
+ <van-field class="input" type="number" maxlength="{{ 11 }}" border="{{false}}" model:value="{{ phone }}" placeholder="璇疯緭鍏ユ墜鏈哄彿" />
<view bindtap="getCode" wx:if="{{ countDown === 0 }}" class="get_code primary">鑾峰彇楠岃瘉鐮�</view>
<view wx:else class="placeholder9">{{ countDown }}s</view>
</view>
<view class="line">
<image class="icon" src="../../static/login_ic_password@2x.png" mode="widthFix"></image>
- <van-field class="input" maxlength="{{ 6 }}" border="{{false}}" model:value="{{ code }}" placeholder="璇疯緭鍏ラ獙璇佺爜" />
+ <van-field type="number" class="input" maxlength="{{ 6 }}" border="{{false}}" model:value="{{ code }}" placeholder="璇疯緭鍏ラ獙璇佺爜" />
</view>
<view bindtap="loginPhone" class="btn speedy sub_btn">绔嬪嵆鐧诲綍</view>
</block>
diff --git a/wechat_staff/pages/sets/index.js b/wechat_staff/pages/sets/index.js
index 0f40aeb..5d081be 100644
--- a/wechat_staff/pages/sets/index.js
+++ b/wechat_staff/pages/sets/index.js
@@ -29,7 +29,7 @@
wx.clearStorageSync()
setTimeout(() => {
wx.setStorageSync('sessionKey', sessionKey)
- wx.redirectTo({
+ wx.reLaunch({
url: '/pages/login/index',
})
}, 300)
diff --git a/wechat_staff/pages/sets/index.wxml b/wechat_staff/pages/sets/index.wxml
index d6e04a1..af1820c 100644
--- a/wechat_staff/pages/sets/index.wxml
+++ b/wechat_staff/pages/sets/index.wxml
@@ -14,7 +14,7 @@
</view> -->
<view class="outbut" >
- <button bindtap="showLogout" class="btn">閫�鍑虹櫥褰�</button>
+ <button hover-class="none" bindtap="showLogout" class="btn">閫�鍑虹櫥褰�</button>
</view>
</view>
diff --git a/wechat_staff/pages/userinfo/collect.js b/wechat_staff/pages/userinfo/collect.js
index 7ba7ee3..6dada3a 100644
--- a/wechat_staff/pages/userinfo/collect.js
+++ b/wechat_staff/pages/userinfo/collect.js
@@ -110,7 +110,8 @@
*/
onShow() {
this.setData({
- pageNum: 1
+ pageNum: 1,
+ dataList: []
})
this.getList()
},
diff --git a/wechat_staff/pages/userinfo/index.less b/wechat_staff/pages/userinfo/index.less
index c55939e..cbd0b51 100644
--- a/wechat_staff/pages/userinfo/index.less
+++ b/wechat_staff/pages/userinfo/index.less
@@ -36,6 +36,11 @@
flex: 1;
color: #111111;
text-align: right;
+ display: -webkit-box;
+ overflow: hidden;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ text-overflow: ellipsis;
.van-cell{
padding: 0;
}
diff --git a/wechat_staff/pages/userinfo/index.wxml b/wechat_staff/pages/userinfo/index.wxml
index ca20de9..e3922f3 100644
--- a/wechat_staff/pages/userinfo/index.wxml
+++ b/wechat_staff/pages/userinfo/index.wxml
@@ -1,7 +1,7 @@
<view class="container">
<image class="avatar" src="{{ userInfo.imgurlFull ? userInfo.imgurlFull : '../../static/images/default_avatar.png' }}"></image>
<!-- <button open-type="chooseAvatar" bindchooseavatar="getBindchooseavatar" class="avatar_btn">鏇存崲澶村儚</button> -->
- <button bind:tap="selMedia3" class="avatar_btn">鏇存崲澶村儚</button>
+ <button hover-class="none" bind:tap="selMedia3" class="avatar_btn">鏇存崲澶村儚</button>
<view class="list">
<view class="line">
<view class="label">濮撳悕</view>
diff --git a/wechat_staff/pages/userinfo/index.wxss b/wechat_staff/pages/userinfo/index.wxss
index 57706ba..a630098 100644
--- a/wechat_staff/pages/userinfo/index.wxss
+++ b/wechat_staff/pages/userinfo/index.wxss
@@ -38,8 +38,11 @@
flex: 1;
color: #111111;
text-align: right;
- white-space: break-spaces;
- word-break: break-word;
+ display: -webkit-box;
+ overflow: hidden;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ text-overflow: ellipsis;
}
.list .line .input .van-cell {
padding: 0;
@@ -73,6 +76,6 @@
border-radius: 8rpx;
font-weight: 500;
font-size: 32rpx;
- margin-top: 20rpx;
+ margin-top: 20rpx;
margin-bottom: 10rpx;
}
diff --git a/wechat_staff/project.private.config.json b/wechat_staff/project.private.config.json
index 5d51470..4a5a27e 100644
--- a/wechat_staff/project.private.config.json
+++ b/wechat_staff/project.private.config.json
@@ -60,5 +60,5 @@
]
}
},
- "libVersion": "3.5.1"
+ "libVersion": "3.4.10"
}
\ No newline at end of file
diff --git a/wechat_staff/static/icon/zixun_ic_liulan.png b/wechat_staff/static/icon/zixun_ic_liulan.png
index 1ca757c..ca2c4c0 100644
--- a/wechat_staff/static/icon/zixun_ic_liulan.png
+++ b/wechat_staff/static/icon/zixun_ic_liulan.png
Binary files differ
diff --git a/wechat_staff/utils/request.js b/wechat_staff/utils/request.js
index c0a2b74..6d6471a 100644
--- a/wechat_staff/utils/request.js
+++ b/wechat_staff/utils/request.js
@@ -23,7 +23,7 @@
if (res.data.code && (res.data.code == 5112 || res.data.code == 5111)) {
if(options.data && options.data.goLogin){
console.log("==================")
- wx.redirectTo({
+ wx.reLaunch({
url: '/pages/login/index',
})
}
--
Gitblit v1.9.3