|
@@ -28,7 +28,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<image src="../../assets/imgs/sign_show.png" class="sign-icon" @click="changeSignPop"> </image>
|
|
<image src="../../assets/imgs/sign_show.png" class="sign-icon" @click="changeSignPop"> </image>
|
|
- <sign-page if="{{showSignPop}}" ></sign-page>
|
|
|
|
|
|
+ <sign-page if="{{showSignPop}}"></sign-page>
|
|
<short-page if="{{showShortPop}}"></short-page>
|
|
<short-page if="{{showShortPop}}"></short-page>
|
|
<div class="stack-popup" @click="closeWrap" if="showPopup">
|
|
<div class="stack-popup" @click="closeWrap" if="showPopup">
|
|
<div class="customer-popup">
|
|
<div class="customer-popup">
|
|
@@ -36,8 +36,8 @@
|
|
<text class="desc">
|
|
<text class="desc">
|
|
复制微信号或者保存二维码到本地至微信添加客服好友
|
|
复制微信号或者保存二维码到本地至微信添加客服好友
|
|
</text>
|
|
</text>
|
|
- <image src="{{$app.$def.data.cutomerQrcode}}" @longpress="saveImg"></image>
|
|
|
|
- <div class="duplication"><text class="duplication-text">微信号:{{$app.$def.data.weChat}}</text><text class="duplication-button" @click="duplication">复制</text></div>
|
|
|
|
|
|
+ <image src="{{cutomerQrcode}}" @longpress="saveImg"></image>
|
|
|
|
+ <div class="duplication"><text class="duplication-text">微信号:{{cutomerName}}</text><text class="duplication-button" @click="duplication">复制</text></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</stack>
|
|
</stack>
|
|
@@ -46,6 +46,7 @@
|
|
<script>
|
|
<script>
|
|
import clipboard from '@system.clipboard';
|
|
import clipboard from '@system.clipboard';
|
|
import prompt from '@system.prompt';
|
|
import prompt from '@system.prompt';
|
|
|
|
+import { getCustomQrcode } from '../../api/index.js';
|
|
import { downImg, getStore } from '../../api/utils.js';
|
|
import { downImg, getStore } from '../../api/utils.js';
|
|
export default {
|
|
export default {
|
|
private: {
|
|
private: {
|
|
@@ -82,14 +83,17 @@ export default {
|
|
current: 0,
|
|
current: 0,
|
|
showPopup: false,
|
|
showPopup: false,
|
|
showSignPop: false,
|
|
showSignPop: false,
|
|
- showShortPop: false
|
|
|
|
|
|
+ showShortPop: false,
|
|
|
|
+ cutomerQrcode: '',
|
|
|
|
+ cutomerName:''
|
|
},
|
|
},
|
|
- onInit() {
|
|
|
|
|
|
+ onInit() {
|
|
this.$on('dispathEvt', this.changeSignPop);
|
|
this.$on('dispathEvt', this.changeSignPop);
|
|
//今日已签到过不在弹框签到
|
|
//今日已签到过不在弹框签到
|
|
- if(this.$app.$def.data.backClickCount === 0){
|
|
|
|
- this.showShortPop=true;
|
|
|
|
|
|
+ if (this.$app.$def.data.backClickCount === 0) {
|
|
|
|
+ this.showShortPop = true;
|
|
}
|
|
}
|
|
|
|
+ this.getCoustom();
|
|
},
|
|
},
|
|
onBackPress() {
|
|
onBackPress() {
|
|
// 退出逻辑
|
|
// 退出逻辑
|
|
@@ -106,6 +110,11 @@ export default {
|
|
onMenuPress() {
|
|
onMenuPress() {
|
|
this.$app.$def.showMenu();
|
|
this.$app.$def.showMenu();
|
|
},
|
|
},
|
|
|
|
+ async getCoustom() {
|
|
|
|
+ let res = await getCustomQrcode();
|
|
|
|
+ this.cutomerQrcode = res.url;
|
|
|
|
+ this.cutomerName = res.name;
|
|
|
|
+ },
|
|
tabbarChange(tab) {
|
|
tabbarChange(tab) {
|
|
this.current = tab.index;
|
|
this.current = tab.index;
|
|
this.$page.setTitleBar({ text: this.tabbar[tab.index].title });
|
|
this.$page.setTitleBar({ text: this.tabbar[tab.index].title });
|
|
@@ -122,7 +131,7 @@ export default {
|
|
//复制客服微信
|
|
//复制客服微信
|
|
duplication() {
|
|
duplication() {
|
|
clipboard.set({
|
|
clipboard.set({
|
|
- text: this.$app.$def.data.weChat,
|
|
|
|
|
|
+ text: this.cutomerName,
|
|
success: function (data) {
|
|
success: function (data) {
|
|
prompt.showToast({
|
|
prompt.showToast({
|
|
message: '复制成功!'
|
|
message: '复制成功!'
|
|
@@ -132,7 +141,7 @@ export default {
|
|
},
|
|
},
|
|
//长按保存图片
|
|
//长按保存图片
|
|
saveImg() {
|
|
saveImg() {
|
|
- downImg(this.$app.$def.data.cutomerQrcode);
|
|
|
|
|
|
+ downImg(this.cutomerQrcode);
|
|
},
|
|
},
|
|
openCustomer() {
|
|
openCustomer() {
|
|
this.showPopup = true;
|
|
this.showPopup = true;
|