|
@@ -45,7 +45,7 @@
|
|
|
<view @click="handleDelete(item)" class="del-btn-box">
|
|
<view @click="handleDelete(item)" class="del-btn-box">
|
|
|
<icon class="del-btn"></icon>
|
|
<icon class="del-btn"></icon>
|
|
|
</view>
|
|
</view>
|
|
|
- <button type="default" class="phone-green-btn ht-head-btn">推送</button>
|
|
|
|
|
|
|
+ <button type="default" class="phone-green-btn ht-head-btn" @click="tuisong">推送</button>
|
|
|
<button type="default" class="phone-green-btn ht-head-btn"
|
|
<button type="default" class="phone-green-btn ht-head-btn"
|
|
|
@click.stop="handlePreview(item)">预览</button>
|
|
@click.stop="handlePreview(item)">预览</button>
|
|
|
<button type="default" class="phone-white-btn ht-head-btn"
|
|
<button type="default" class="phone-white-btn ht-head-btn"
|
|
@@ -163,6 +163,36 @@
|
|
|
searchDialogRef.value.handleShow();
|
|
searchDialogRef.value.handleShow();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ function tuisong(){
|
|
|
|
|
+
|
|
|
|
|
+ if (!plus.runtime.isApplicationExist({
|
|
|
|
|
+ pname: 'com.tencent.mm'
|
|
|
|
|
+ })) {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '请先安装微信',
|
|
|
|
|
+ icon: 'none'
|
|
|
|
|
+ });
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 分享到小程序 我想加个参数
|
|
|
|
|
+ uni.share({
|
|
|
|
|
+ provider: 'weixin',
|
|
|
|
|
+ scene: "WXSceneSession",
|
|
|
|
|
+ type: 5,
|
|
|
|
|
+ imageUrl: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/share-logo@3.png',
|
|
|
|
|
+ title: '欢迎体验uniapp12312',
|
|
|
|
|
+ miniProgram: {
|
|
|
|
|
+ id: 'gh_fa5889151e7d',
|
|
|
|
|
+ path: 'pages/Login/clientIndex?from=appcx',
|
|
|
|
|
+ type: 2,
|
|
|
|
|
+ webUrl: 'http://uniapp.dcloud.io'
|
|
|
|
|
+ },
|
|
|
|
|
+ success: ret => {
|
|
|
|
|
+ console.log(JSON.stringify(ret));
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
function goUpPage() {
|
|
function goUpPage() {
|
|
|
uni.redirectTo({
|
|
uni.redirectTo({
|
|
|
url: '/pages/admin/ShouYe/shouye'
|
|
url: '/pages/admin/ShouYe/shouye'
|