[Yugong series] wechat applet in February 2022 - scene value

Posted by no3dfx on Sat, 26 Feb 2022 03:44:12 +0100

Article catalogue

preface

The scene value is the source of entering the applet, which is the way the user clicks into the applet. The scene value can be obtained through onLaunch or onShow methods in the app.

For example, the scene value obtained is 1005, which means that the user searched the applet through the search box at the top of wechat. More business logic can be realized through this scenario value.

1, Scene value

The following is the ID and description of the scene value:

Scene value ID

explain

1000

other

1001

Discovery bar applet main entry, "recently used" list (the basic library contains "my applets" list since version 2.2.4)

1005

The search result page of the search box at the top of the wechat home page

1006

The search results page of the main entry search box of the discovery bar applet

1007

Applet message card in single person chat session

1008

Applet message card in group chat conversation

1010

Favorites

1011

Scan QR code

1012

Long press the picture to identify the QR code

1013

Scan QR code selected in mobile photo album

1014

Applet subscription message (same as 1107)

1017

Go to the entry page of applet experience

1019

Wechat wallet (wechat client version 7.0.0 is changed to payment portal)

1020

List of related profile applet for official account (obsolete)

1022

Chat top applet entry (abandoned from wechat client version 6.6.1)

1023

Android Desktop Icon

1024

Applet profile page

1025

Scan one-dimensional code

1026

Discovery bar applet main entry, "nearby applets" list

1027

List of "used applets" on the search result page of the search box at the top of wechat home page

1028

My card bag

1029

Card coupon details page in applet

1030

Open applet under automatic test

1031

Long press picture identification one-dimensional code

1032

Scan the one-dimensional code selected in the mobile phone photo album

1034

Wechat payment completion page

1035

Official account custom menu

1036

App sharing message card

1037

Applet open applet

1038

Return from another applet

1039

Shake TV

1042

Add friends search box search results page

1043

Official account template message

1044

Details of applet message card with shareTicket

1045

Circle of friends advertising

1046

Circle of friends advertising details page

1047

Scan applet code

1048

Long press the image identification applet code

1049

Mobile phone scanning applet in album

1052

List of applicable stores for cards and coupons

1053

Search the results page of the search

1054

Top search box applet shortcut entry (abandoned since wechat client version 6.7.4)

1056

Chat top music player upper right menu

1057

Bank card details page in wallet

1058

Official account

1059

Experience applet binding invitation page

1060

Wechat payment completion page (same as 1034)

1064

Wechat home page connected to Wi Fi status bar to view

1065

URL scheme details

1067

Official account advertisement

1068

Nearby applet list advertisement (abandoned)

1069

The mobile application enters wechat through openSDK and opens the applet

1071

Bank card list page in wallet

1072

QR code collection page

1073

Applet message card issued by customer service message list

1074

Small program message card issued under official account session

1077

Shake the perimeter

1078

Wechat Wi Fi connection success prompt page

1079

Wechat game center

1081

Text chain of customer service message

1082

Text chain issued by official account session

1084

Circle of friends advertising page

1088

View the system message in the session and open the applet

1089

Drop down of wechat chat main interface, "recently used" column (the basic library includes "my applet" column since version 2.2.4)

1090

Long press the menu in the upper right corner of the applet to call out the recent use history

1091

Official account article card

1092

Urban service entrance

1095

Applet advertising component

1096

Chat record, open applet

1097

Wechat payment signing native page, open the applet

1099

Page inline plug-ins

1100

Red envelope cover details page open applet

1101

Remote debugging hot update (in developer tools, preview - > auto Preview - > compile and preview)

1102

Official account profile page service Preview

1103

The main entry of the applet in the discovery bar, and the list of "my applets" (obsolete from version 2.2.4 of the basic library)

1104

Drop down of wechat chat main interface, "my applet" column (abandoned from version 2.2.4 of basic library)

1106

Pull down the chat main interface and open the applet from the top search results page

1107

Subscribe to the message and open the applet

1113

Android phone negative screen, open the applet (Samsung)

1114

Android mobile sidebar, open the applet (Samsung)

1119

Open applet in [enterprise wechat] workbench

1120

[enterprise wechat] open the applet in the profile page

1121

[enterprise wechat] open the applet in the chat plus attachment box

1124

Scan "one object and one code" to open the applet

1125

Long press the picture to identify "one object, one code"

1126

Scan "one object, one code" selected in mobile phone photo album

1129

Wechat crawler access details

1131

Floating window (from version 8.0, only passive floating window is included)

1133

Hardware device open applet details

1135

Applet profile page list of relevant applets, open the applet

1144

Official account video patch

1145

Discovery bar - Discovery applet

1146

Geographic location information open travel applet

1148

Card bag - traffic card, open applet

1150

Scan the product barcode result page and open the applet

1151

Discovery column - my order

1152

Subscription number video open applet

1153

Open the applet on the "object recognition" result page

1154

Open "single page mode" in the circle of friends

1155

Open applet in single page mode

1157

Service number session page open applet

1158

Group tool open applet

1160

Group to do

1167

H5 open applet details via open label

1168

Mobile apps run applets directly

1169

The main entrance of the applet in the discovery column, and the entrances of various life services (such as express service, travel service, etc.)

1171

Wechat sports record (Android only)

1173

Chat material with applet to open details

1175

Video number home page store entrance

1176

Open the applet for the anchor of the live broadcast room of the video Number

1177

Live video products

1178

Open small programs on the computer and mobile phone

1179

#Topic page open applet

1181

Web app opens PC applet

1183

PC wechat - applet panel - find applet - Search

1185

Group announcement

1186

Collection - Notes

1187

Floating window (from version 8.0)

1189

Expression rain advertisement

1191

Video Activity

1192

Enterprise wechat contact profile page

1194

URL Link details/

1195

Video number home page product tab

1197

The anchor of the video Number returns to the game from the live room

1198

Video Number broadcasting interface opens small games

1203

Request for wechat applet pressure test tool

2, Acquisition of scene value

onShow: function(options) {
  let option = JSON.stringify(options);
  console.log('app.js option-----' + option)
  console.log('app.js>>options.scene--------------------' + options.scene);
  var resultScene = this.sceneInfo(options.scene);
  console.log(resultScene);
},
//Scene value judgment
sceneInfo: function(s) {
  var scene = [];
  switch (s) {
    case 1001:
      scene.push(s, "Discovery bar applet main entry");
      break;
    case 1005:
      scene.push(s, "Search results page in the top search box");
      break;
    case 1006:
      scene.push(s, "The search results page of the main entry search box of the discovery bar applet");
      break;
    case 1007:
      scene.push(s, "Applet message card in single person chat session");
      break;
    case 1008:
      scene.push(s, "Applet message card in group chat conversation");
      break;
    case 1011:
      scene.push(s, "Scan QR code");
      break;
    case 1012:
      scene.push(s, "Long press the picture to identify the QR code");
      break;
    case 1014:
      scene.push(s, "Select QR code for mobile photo album");
      break;
    case 1017:
      scene.push(s, "Go to the entry page of experience Edition");
      break;
    case 1019:
      scene.push(s, "Wechat Wallet");
      break;
    case 1020:
      scene.push(s, "official account profile Page related applet list");
      break;
    case 1022:
      scene.push(s, "Chat top applet entry");
      break;
    case 1023:
      scene.push(s, "Android Desktop Icon");
      break;
    case 1024:
      scene.push(s, "Applet profile page");
      break;
    case 1025:
      scene.push(s, "Scan one-dimensional code");
      break;
    case 1026:
      scene.push(s, "List of nearby applets");
      break;
    case 1027:
      scene.push(s, "Top search box search results page used applets list");
      break;
    case 1028:
      scene.push(s, "My card bag");
      break;
    case 1029:
      scene.push(s, "Card coupon details page");
      break;
    case 1031:
      scene.push(s, "Long press picture identification one-dimensional code");
      break;
    case 1032:
      scene.push(s, "Select one-dimensional code for mobile photo album");
      break;
    case 1034:
      scene.push(s, "Wechat payment completion page");
      break;
    case 1035:
      scene.push(s, "Official account custom menu");
      break;
    case 1036:
      scene.push(s, "App Share message card");
      break;
    case 1037:
      scene.push(s, "Applet open applet");
      break;
    case 1038:
      scene.push(s, "Return from another applet");
      break;
    case 1039:
      scene.push(s, "Shake TV");
      break;
    case 1042:
      scene.push(s, "Add friends search box search results page");
      break;
    case 1044:
      scene.push(s, "belt shareTicket Applet message card");
      break;
    case 1047:
      scene.push(s, "Scan applet code");
      break;
    case 1048:
      scene.push(s, "Long press the image identification applet code");
      break;
    case 1049:
      scene.push(s, "Mobile album selection applet code");
      break;
    case 1052:
      scene.push(s, "List of applicable stores for cards and coupons");
      break;
    case 1053:
      scene.push(s, "Search the results page of the search");
      break;
    case 1054:
      scene.push(s, "Top search box applet shortcut entry");
      break;
    case 1056:
      scene.push(s, "Music player menu");
      break;
    case 1058:
      scene.push(s, "Official account");
      break;
    case 1059:
      scene.push(s, "Experience applet binding invitation page");
      break;
    case 1064:
      scene.push(s, "Wechat link Wifi status bar");
      break;
    case 1067:
      scene.push(s, "Official account advertisement");
      break;
    case 1068:
      scene.push(s, "Nearby applet list advertisement");
      break;
    case 1072:
      scene.push(s, "QR code collection page");
      break;
    case 1073:
      scene.push(s, "Applet message card issued by customer service message list");
      break;
    case 1074:
      scene.push(s, "Small program message card issued under official account session");
      break;
    case 1089:
      scene.push(s, "Wechat chat main interface drop-down");
      break;
    case 1090:
      scene.push(s, "Long press the menu in the upper right corner of the applet to call out the recent use history");
      break;
    case 1092:
      scene.push(s, "Urban service entrance");
      break;
    default:
      scene.push("Unknown entry");
      break;
  }
  return scene;
}
 // Referrinfo is returned only when the scene values 1020, 1035, 1036, 1037, 1038 and 1043 are passed appId